dependency-mapper · qdhenry — Claude Code command: dependency map
The dependency-mapper command connects code dependencies, Linear tasks, and Git history into project maps. Use it to spot cycles, blockers, and task order.
no license ★ 1,357 updated 2026-03-01
.claude/commands/dependency-mapper.mdWhat dependency-mapper does
dependency-mapper examines JavaScript, TypeScript, and Python imports, file relationships, Git history, and Linear task links. It can render the result as a tree, Mermaid diagram, or dependency matrix. The command also detects cycles and derives a task sequence with a topological sort.
For Linear work, it reads blocking links, parent and child tasks, referenced task IDs, and related tasks from the same project. File analysis separates internal modules, external npm packages, and connected Linear tasks. If Linear MCP is unavailable, the command falls back to code analysis.
Install it as .claude/commands/dependency-mapper.md with no leading space in the path. After that, ask Claude Code to inspect a module, a task, or the project dependency graph.
What it helps with
- find circular dependencies in a codebase
- connect project files to Linear tasks
- identify blockers between tasks
- calculate a task execution order
- render relationships as a tree or Mermaid diagram
Example prompts for the agent
- Show the dependency map for task
LIN-123. - Map dependencies for the
src/authmodule. - Check the codebase for circular dependencies and suggest a task order.
How to install dependency-mapper
Manually: put the files in place
.claude/commands/dependency-mapper.mdCall it with /dependency-mapper. For all projects use ~/.claude/commands/
Manually: put the files in place
~/.codex/prompts/dependency-mapper.mdCall it with /prompts:dependency-mapper. Codex marks this format deprecated in favour of skills
Manually: put the files in place
.github/prompts/dependency-mapper.prompt.mdManually: put the files in place
.gemini/commands/dependency-mapper.tomlGemini stores commands as TOML: the prompt text goes into the prompt field
Questions about dependency-mapper
How do I install dependency-mapper in Claude Code?
Save the command file at .claude/commands/dependency-mapper.md with no leading space in the path.
What does dependency-mapper do?
It analyzes code links, Linear tasks, and Git history, then produces dependency maps. It can also detect cycles and calculate task order.
Can it work without Linear MCP?
Yes. When Linear MCP is unavailable, it runs code-only analysis.
Similar slash commands
All slash commands for Agent setup: memory, context, orchestration →dependency-mapper by other authors comes first.