/grimoire:review-cartographyfrom grimoire
Verifies and refines cartography files by cross-referencing documented flows with actual code, filling gaps, fixing stale paths, and adding conditional sections.
Ships in grimoire. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Verify and refine an existing cartography file against the actual codebase. Fill gaps, fix inaccuracies, add cross-references, and introduce conditional sections where needed.
First drafts are starting points. A cartography file created during initial exploration captures what was found, not everything that exists. Code changes, flows evolve, and initial exploration misses things. Review is how cartography files become reliable navigation maps that agents can trust.
When this skill is activated, create a todo list from the following steps. Mark each task in_progress before starting it and completed when done.
- [ ] 1. Select flow — run index, identify target cartography file
- [ ] 2. Verify against codebase — spawn subagents to check each section independently
- [ ] 3. Extend missing pieces — add what subagents found missing
- [ ] 4. Cross-reference related flows — compare with index, add reciprocal related links
- [ ] 5. Add conditional sections — separate independent sub-flows if file is too large
- [ ] 6. Update file and index — write changes, update date, re-run index
Run the indexing script to list available flows:
bash skills/cartography/scripts/index-cartography.sh grimoire/cartography/
If the user specified a flow, match it against the index. If not, present the list and ask which flow to review.
Read the target cartography file in full.
Spawn subagents to independently verify each section of the cartography file against the actual codebase. Each subagent should check one area:
Entry points subagent: For each listed entry point, verify:
Key components subagent: For each listed component, verify:
Flow sequence subagent: Trace the documented sequence through the code:
Security notes subagent: Review the security observations:
Collect all subagent results before proceeding.
Based on subagent findings, update the cartography file:
Maintain the format defined in the cartography skill's
references/cartography-format.md. Keep entries as pointers — don't add code explanations.
Compare the current flow against all other flows in the index:
related field in frontmatter[[cartography/...]] links in the Related Flows sectionRun the overlap detection script to check for significant duplication:
bash skills/review-cartography/scripts/find-overlaps.sh grimoire/cartography/
If significant overlap is detected (>40% shared components between two flows), note this to
the user and suggest [[gc-cartography]] for potential merging. Consult
references/overlap-detection.md for details on how overlap is calculated and when merging
is appropriate.
If the cartography file body exceeds ~80 lines, look for opportunities to separate independent sub-flows into conditional sections:
## Conditional: [Sub-flow Name] sections<!-- condition: load only when [topic] --> commentThe condition comment should describe when an agent should load this section. Be specific enough that an agent can match it against a user's question.
If the file is already lean (<80 lines body), skip this step.
Write all changes to the cartography file:
updated field in frontmatter to today's datecreated dateValidate the updated file:
bash skills/review-cartography/scripts/validate-cartography.sh grimoire/cartography/<flow-slug>.md
Re-run the indexing script:
bash skills/cartography/scripts/index-cartography.sh grimoire/cartography/
Present to the user:
related reference should go both ways. If you add flow B to
flow A's related list, also add flow A to flow B's.What SKILL.md sets; muted values are Claude Code's defaults
24 skills in this plugin
/annotationThis skill should be used when the user says "find annotations", "list audit tags", "show @audit comments", "compile annotations", "/annotation", "find todos", "find audit comments", "what did I annotate", "annotation summary", "list audit findings", "what's annotated", or wants to discover, list, or filter @audit-* comment annotations scattered throughout a codebase. This skill is for annotation discovery only — how annotations are used downstream (spawning subagents, cross-referencing findings, etc.) is out of scope./cartographyThis skill should be used when the user says "build context on a flow", "trace a flow", "map how X works", "cartography", "/cartography", "document a flow", "create a flow map", "trace how authentication works", "map the data flow", or wants to explore and document how a specific code flow works so that context can be quickly rebuilt on future visits. This is the primary skill for creating cartography files in grimoire/cartography/./checksnpx claudepluginhub joranhonig/grimoire --plugin grimoireOther plugins' skills for the same job