analyze

analyze is a skill for Claude Code from miltonian/cartographer. It costs 44 tokens per session (355 once invoked), scanned A, original, MIT.

A codebase-analysis guide for building a documented picture of how a software project works.

In plain words
What is it for?
It is for tracing important workflows, identifying the entities involved, grouping them by purpose, and recording where the evidence comes from.
Why use it?
It helps replace guesswork with recorded behaviors, relationships, boundaries, and evidence from the source code.

Skill for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter.

Part of the cartographer plugin — 5 skills, 1 command, 1 agent, 1 hook, 1 MCP server shipped together

Good fit It is for tracing important workflows, identifying the entities involved, grouping them by purpose, and recording where the evidence comes from.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/miltonian/cartographer/analyze
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.

Any agent
npx skills add miltonian/cartographer --skill analyze
Clone the repo
git clone --depth 1 https://github.com/miltonian/cartographer

Made for: Claude Code.

Or install cartographer, the plugin that ships this one along with the rest of its 5 skills, 1 command, 1 agent, 1 hook, 1 MCP server.

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 analyze

README.md
[![agentmods](https://agentmods.dev/badge/skills/miltonian/cartographer/analyze.svg)](https://agentmods.dev/skills/miltonian/cartographer/analyze)
Your own site
<a href="https://agentmods.dev/skills/miltonian/cartographer/analyze"><img src="https://agentmods.dev/badge/skills/miltonian/cartographer/analyze.svg" alt="Measured on agentmods" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 355 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00044 $0.00355
Opus 5 $0.00022 $0.00178
Sonnet 5 $0.00009 $0.00071
Haiku 4.5 $0.00004 $0.00036

Measured 7d ago against content hash 4bc58de8432d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

analyze 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 7d 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.

plugin/skills/analyze/SKILL.md · 42 lines

What it actually says

Codebase Analysis

Verify tools: call cartographer_get_summary. If it fails, stop — MCP tools are not connected.

Set the project root: cartographer_set_project.

If analyzing a specific concern (e.g., "analyze auth"), create a perspective first with cartographer_create_perspective — it auto-switches, so entities you write next join it. No separate cartographer_switch_perspective needed.

How to Analyze

Behaviors first. Identify the most important things this system does. Trace each behavior from entry point to completion. Record every entity encountered along the flow. Record the path as a behavior slice.

Boundaries emerge from behaviors. Cluster entities that participate in the same flows. Name by concern, not by directory.

Evidence is mandatory. Every cartographer_write_entity and cartographer_write_relationship call must include source anchors (filePath, lineStart, lineEnd, snippet). Set confidence: proven for direct observations, lower for inferences. Include reasoning for anything below proven.

Descriptions are for everyone. Name entities by what they do, not how they're implemented. Behavior flows read like stories. Technical detail belongs in evidence anchors, not descriptions.

After Analysis

Call cartographer_get_summary and report what was found. Open the map with cartographer_open_map.

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. 7d ago First seen · 42 lines · 44 tokens per session scan A 4bc58de8432d

Subscribe to this mod's changes

analyze is a skill published in the GitHub repository miltonian/cartographer (1 stars, last pushed 2mo ago), licensed MIT. It adds 44 tokens to every session and 355 once invoked, about $0.0002 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.