codecartographer

codecartographer is a skill for Claude Code, Codex from HuginnIndustries/CodeCartographer. It costs 72 tokens per session (2,196 once invoked), scanned A, original, MIT.

A workflow for CodeCartographer, a system that guides repository analysis through ordered phases and checks whether each phase's findings meet its requirements. The person or coding assistant running it reads the repository and writes the findings.

In plain words
What is it for?
Use it to analyze a repository, document its architecture, interfaces, protocols, defects, and porting requirements, or synthesize a new project through validated phases.
Why use it?
It organizes complex codebase investigation and prevents later phases from starting before required earlier work is complete.

Skill for Claude CodeCodex

Install

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.

agentmods
npx agentmods add skills/huginnindustries/codecartographer/codecartographer
Any agent
npx skills add HuginnIndustries/CodeCartographer --skill codecartographer
Clone the repo
git clone --depth 1 https://github.com/HuginnIndustries/CodeCartographer

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for codecartographer

README.md
[![agentmods](https://agentmods.dev/badge/skills/huginnindustries/codecartographer/codecartographer.svg)](https://agentmods.dev/skills/huginnindustries/codecartographer/codecartographer)
Your own site
<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>
Per session 72 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,196 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 4d ago against content hash 65a1a95e4ebd, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

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.

agent-skill/codecartographer/SKILL.md · 150 lines

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"
  1. codecarto_status — always start here. It reports the active pipeline, progress, next action, and any scaffold-staleness warning. Every tool takes an absolute cwd pointing at the target repository.
  2. codecarto_init — only when no .codecarto/ exists. Choose the pipeline deliberately (see references/pipeline-selection.md). Never pass force: true without the user's explicit approval; it moves an existing workspace, findings and all, to a backup directory.
  3. codecarto_next — returns the prompt for the next eligible phase. It returns text; it does not execute anything. Use codecarto_phase only to force a specific phase out of order, and only when the user asked for that.
  4. Execute — see "Executing a phase" below.
  5. Write the handoff — see "The handoff contract" below. This is the step integrations most often miss, and completion now refuses without it.
  6. codecarto_validate — parses the validation block you appended to the primary output. Returns PASS, PASS WITH GAPS, FAIL, or MISSING.
  7. codecarto_complete — marks the phase done, applies your handoff to canonical state, and writes the closeout and THREAD_LOG.md entry. It refuses anything worse than PASS WITH GAPS.

Read the full file on GitHub · 150 lines

Changes

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.

  1. 4d ago First seen · 150 lines · 72 tokens per session scan A 65a1a95e4ebd

Subscribe to this mod's changes

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.

Related

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.

yamadashy/repomix · 58 tokens

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.

cyberkaida/reverse-engineering-assistant · 46 tokens

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…

cyberkaida/reverse-engineering-assistant · 98 tokens

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.

cyberkaida/reverse-engineering-assistant · 52 tokens

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…

cyberkaida/reverse-engineering-assistant · 209 tokens

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.

cyberkaida/reverse-engineering-assistant · 46 tokens