Dead Code — Development skill for Claude Code
List orphan functions, classes, atoms, and endpoints with no inbound references — framework entry points excluded.
How to install Dead Code
Installs to ~/.claude/commands/cognitx-leyton-graphrag-code-dead-code.md
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/cognitx-leyton/graphrag-code/HEAD/.claude/commands/dead-code.md -o ~/.claude/commands/cognitx-leyton-graphrag-code-dead-code.md Restart Claude Code, or start a new session, for it to be picked up.
What Dead Code does
allowed-tools: Bash(codegraph query:*), Bash(codegraph query:*), Bash(.venv/bin/codegraph query:*) description: List orphan functions, classes, atoms, and endpoints with no inbound references — framework entry points excluded
Usage
/dead-code [path_prefix]
Scope defaults to `codegraph/codegraph/` if no prefix is given. Pass any string that matches a `:File.path` prefix to scope elsewhere (e.g. `packages/twenty-server/src/engine/`).
Returns four categories of orphan, each t
Alternatives in Development
- Convex Functions 354 ★
- Clio — Claude Code CLI Clone — Agentic coding CLI that connects to Anthropic API (or compatible endpoints) to provide a terminal-based Claude 172 ★
- Inngest Functions — How to create dynamic Inngest functions that the sidecar loads automatically 135 ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
Code Graph
Query the code graph for functions, classes, files, and call relationships
Catalog Dtd
verify an index against its directory in both directions; every entry is declared and present, declared and mi
Exclusion Transparency Rules
Governs how excluded items (countries, options, candidates) must be justified whenever a filtering or scoring
Remove Deadcode
Find and remove dead code — unused exports, unreachable functions, orphaned files, and stale feature flags. Fi
ADR Walk
Enforce ADR supersession. Find dead ADRs (status=superseded but still in active context), validate that supers
Massu Cleanup
Dead code removal — unused imports, orphaned files, dead exports, and stale references
Related Agents
Backend Entrypoint Discovery Agent
Inventory ALL entry points in a backend repo — REST routes, GraphQL operations, and queue/event/cron handlers
Docplan Auditor
Cold semantic-grouping judgment for a DocPlan. Given ONLY the DocPlan (its sections + excluded[]) and the Conv
Ba Diagram Reviewer
Soát ĐỘ PHỦ NGHIỆP VỤ của sơ đồ Mermaid vừa sinh (đã render được) — bắt vai trò/lane thiếu, điểm quyết định só