cognitx-leyton

Dead Code — Development skill for Claude Code

Development community

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

Terminal
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

Full documentation available on GitHub

View Source Repository