Help us improve
Share bugs, ideas, or general feedback.
From codemap
Queries Python codemap index for central/coupled modules, direct/reverse dependencies, and import paths between modules. Use after /codemap:scan for dependency analysis.
npx claudepluginhub borda/ai-rig --plugin codemapHow this skill is triggered — by the user, by Claude, or both
Slash command
/codemap:queryThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
<objective>
Guides dependency graph exploration using CocoSearch for impact analysis, connection tracing, and hub identification.
Audits module dependencies to find circular imports, analyze coupling scores, and map cross-package dependencies for restructuring decisions.
Share bugs, ideas, or general feedback.
Query the codemap structural index for import-graph analysis. Python projects only — the index covers .py files; queries on non-Python projects will return empty or error. scan-query is available on PATH (installed by /codemap:scan).
Queries:
central [--top N] — most-imported modules (highest blast radius, default top 10)coupled [--top N] — modules with most imports (highest coupling, default top 10)deps <module> — what does this module import?rdeps <module> — what imports this module?path <from> <to> — shortest import path between two modulesNOT for: building or rebuilding the index (use /codemap:scan).
Run scan-query via Bash with the appropriate arguments:
# timeout: 20000
scan-query <QUERY_ARGS>
Replace <QUERY_ARGS> with the appropriate command:
| Goal | Command |
|---|---|
| what imports X (reverse deps) | rdeps <module> |
| what X imports (direct deps) | deps <module> |
| most-imported modules | central --top 10 |
| most-coupled modules | coupled --top 10 |
| path between A and B | path <from> <to> |
scan-query is on PATH and locates the index automatically via git root — no setup required. If the index is missing it prints a clear error.
For rdeps / deps: list the modules, one per line.
For central / coupled: list top modules by count with a brief note.
For path: show the import chain as A → B → C → D.
If the result is {"error": "..."}: surface the error and suggest re-running /codemap:scan.