Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add skills/huginnindustries/codecartographer/codecartographernpx skills add HuginnIndustries/CodeCartographer --skill codecartographergit clone --depth 1 https://github.com/HuginnIndustries/CodeCartographerWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/huginnindustries/codecartographer/codecartographer)<a href="https://agentmods.dev/skills/huginnindustries/codecartographer/codecartographer"><img src="https://agentmods.dev/badge/skills/huginnindustries/codecartographer/codecartographer.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00072 | $0.02196 |
| Opus 5 | $0.00036 | $0.01098 |
| Sonnet 5 | $0.00014 | $0.00439 |
| Haiku 4.5 | $0.00007 | $0.00220 |
Grade A, and why
codecartographer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 150 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Driving CodeCartographer
CodeCartographer is a pipeline state machine, not an agent. It hands you a phase prompt, checks the artifact you produce against that phase's criteria, and gates completion. It never reads your repository and never writes your findings — you do that.
Three roles, and you hold two of them:
| Role | Who | Does |
|---|---|---|
| State machine | the MCP server | phase order, prompts, validation parsing, completion gate, canonical state |
| Orchestrator | you | pick the pipeline, drive the loop, choose an executor, verify, and hold the cross-phase duties (references/orchestration.md) |
| Executor | you, or a model you delegate to | read the repo, write the phase artifact |
Being the orchestrator does not preclude executing phases yourself — a single chat driving these tools inline is the normal case, and it holds both the Orchestrator and Executor rows. What makes a run orchestrated is performing the phase-boundary duties (convention promotion, open-question re-triage, contradiction sweeps, gap routing), not delegating the work. If the workspace GUIDE.md predates this contract and says the orchestrator must not execute phases, trust this guide.
The drive loop
codecarto_status → codecarto_init (first time only)
↓
┌──────── codecarto_next ────────┐
│ ↓ │
│ execute the phase │
│ (write primary output) │
│ ↓ │
│ write the phase handoff │
│ ↓ │
│ codecarto_validate │
│ ↓ │
│ codecarto_complete │
└───────── repeat until ──────────┘
status reports "complete"
codecarto_status— always start here. It reports the active pipeline, progress, next action, and any scaffold-staleness warning. Every tool takes an absolutecwdpointing at the target repository.codecarto_init— only when no.codecarto/exists. Choose the pipeline deliberately (seereferences/pipeline-selection.md). Never passforce: truewithout the user's explicit approval; it moves an existing workspace, findings and all, to a backup directory.codecarto_next— returns the prompt for the next eligible phase. It returns text; it does not execute anything. Usecodecarto_phaseonly to force a specific phase out of order, and only when the user asked for that.- Execute — see "Executing a phase" below.
- Write the handoff — see "The handoff contract" below. This is the step integrations most often miss, and completion now refuses without it.
codecarto_validate— parses the validation block you appended to the primary output. ReturnsPASS,PASS WITH GAPS,FAIL, orMISSING.codecarto_complete— marks the phase done, applies your handoff to canonical state, and writes the closeout andTHREAD_LOG.mdentry. It refuses anything worse thanPASS WITH GAPS.
What ships with it
9 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- references/carrying-results-forward.md 3.3 KB
- references/deep-audit-synthesis.md 3.4 KB
- references/executors.md 4.8 KB
- references/handoff-contract.md 4.8 KB
- references/kernel-first-rewrite.md 4.0 KB
- references/library.md 2.9 KB
- references/orchestration.md 5.6 KB
- references/phase-recovery.md 3.3 KB
- references/pipeline-selection.md 3.1 KB
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 4d ago First seen · 150 lines · 72 tokens per session scan A 65a1a95e4ebd
codecartographer is a skill published in the GitHub repository HuginnIndustries/CodeCartographer (4 stars, last pushed 4d ago), licensed MIT. It adds 72 tokens to every session and 2,196 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
repomix
Pack and analyze codebases into AI-friendly single files using Repomix. Use when the user wants to explore repositories, analyze code structure, find patterns, check token counts, or prepare codebase context for AI analysis. Supports both local directories and remote GitHub repositories.
ctf-pwn
Solve CTF binary exploitation challenges by discovering and exploiting memory corruption vulnerabilities to read flags. Use for buffer overflows, format strings, heap exploits, ROP challenges, or any pwn/exploitation task.
deep-analysis
Performs focused, depth-first investigation of specific reverse engineering questions through iterative analysis and database improvement. Answers questions like "What does this function do?", "Does this use crypto?", "What's the C2 address?", "Fix types in this function". Makes incremental improvements (renaming…
ctf-rev
Solve CTF reverse engineering challenges using systematic analysis to find flags, keys, or passwords. Use for crackmes, binary bombs, key validators, obfuscated code, algorithm recovery, or any challenge requiring program comprehension to extract hidden information.
pyghidra-scripting
Write and run Python (PyGhidra) code inside the Ghidra session that ReVa's MCP server is already attached to, using the five ReVa scripting tools — run-script, list-scripts, read-script, write-script, edit-script. Use this whenever the user asks to execute Python against the current program, reach for the Ghidra Flat…
ctf-crypto
Solve CTF cryptography challenges by identifying, analyzing, and exploiting weak crypto implementations in binaries to extract keys or decrypt data. Use for custom ciphers, weak crypto, key extraction, or algorithm identification.