From codemap
Query the codemap structural index — central, coupled, deps, rdeps, or import path between modules.
npx claudepluginhub borda/ai-rig --plugin codemapThis skill is limited to using the following tools:
<objective>
Guides Next.js Cache Components and Partial Prerendering (PPR) with cacheComponents enabled. Implements 'use cache', cacheLife(), cacheTag(), revalidateTag(), static/dynamic optimization, and cache debugging.
Migrates code, prompts, and API calls from Claude Sonnet 4.0/4.5 or Opus 4.1 to Opus 4.5, updating model strings on Anthropic, AWS, GCP, Azure platforms.
Analyzes BMad project state from catalog CSV, configs, artifacts, and query to recommend next skills or answer questions. Useful for help requests, 'what next', or starting BMad.
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.