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 skills add oaustegard/claude-skills --skill mapping-documentsgit clone --depth 1 https://github.com/oaustegard/claude-skillsWrote 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/oaustegard/claude-skills/mapping-documents)<a href="https://agentmods.dev/skills/oaustegard/claude-skills/mapping-documents"><img src="https://agentmods.dev/badge/skills/oaustegard/claude-skills/mapping-documents/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/oaustegard/claude-skills/mapping-documents"><img src="https://agentmods.dev/badge/skills/oaustegard/claude-skills/mapping-documents.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.1 | $0.00135 | $0.01424 |
| Opus 5.5 | $0.00054 | $0.00570 |
| Sonnet 5.5 | $0.00027 | $0.00285 |
| Haiku 4.5 | $0.00014 | $0.00142 |
Grade A, and why
mapping-documents 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 1mo 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 — 130 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Mapping Documents
Generate _MAP.md files providing hierarchical document structure with semantic annotations. Maps show section summaries, typed claims (result/definition/method/caveat/open-question), symbol definitions, and cross-section dependencies — all anchored to page numbers.
The structural analog to tree-sitting: tree-sitter parses code via grammar, docmap parses documents via font analysis + LLM extraction.
Installation
pip install pdfplumber anthropic --break-system-packages -q
Generate Maps
# Full run (structure + semantic extraction via Claude API)
python /mnt/skills/user/mapping-documents/scripts/docmap.py paper.pdf \
--out docs/ --genre paper --workers 4
# Structure only (no API calls, no cost)
python /mnt/skills/user/mapping-documents/scripts/docmap.py paper.pdf \
--out docs/ --structure-only
API key resolution: --api-key flag > ANTHROPIC_API_KEY env > API_KEY env.
Output Artifacts
Four files, forming a three-layer progressive-disclosure stack:
CLAUDE.md / project instructions ← curated invariants (you write this)
↕ (_USAGE.md bridges the gap)
_MAP.md + JSON indexes ← navigable document map (docmap generates)
↕
raw PDF ← the source document
| File | Purpose | When to read |
|---|---|---|
{stem}_USAGE.md |
Snippet for pasting into CLAUDE.md / AGENTS.md / project knowledge. Describes the reading order and JSON query patterns. | Once, at setup |
{stem}_MAP.md |
Section map: TOC with summaries, typed claims, defined symbols, dependencies. All page-anchored. | Any question about what the document says |
{stem}.symbols.json |
Flat symbol index: where defined, where used, what it means. | "Where is X defined?" |
{stem}.anchors.json |
Every claim: section ID, type, text, page number. | "What caveats exist?" / "What does §3 claim?" |
After Generating: Wire It Up
Generating the map is step 1. Step 2 is telling the agent the map exists.
What ships with it
3 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.
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.
- 1mo ago Changed 95dcf982ad52
- 2mo ago First seen · 130 lines · 135 tokens per session scan A 8a695c45e024
mapping-documents is a skill published in the GitHub repository oaustegard/claude-skills (158 stars, last pushed 4d ago), licensed MIT. It adds 135 tokens to every session and 1,424 once invoked, about $0.0005 per session on Opus 5.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-09-03.
mapping-documents compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| mapping-documentsoaustegard/claude-skills | Skill | 158 | 4d ago | MIT | A | 135 | Claude Code, Codex |
| claude-studentsjosuebustosn/claude-students | Skill | 2 | 5mo ago | MIT | A | 234 | Claude Code, Codex |
| markitdownK-Dense-AI/scientific-agent-skills | Skill | 56k | 4d ago | MIT | A | 62 | Claude Code, Codex |
| pydicomK-Dense-AI/scientific-agent-skills | Skill | 56k | 4d ago | MIT | A | 52 | Claude Code, Codex |
| liteparseK-Dense-AI/scientific-agent-skills | Skill | 56k | 4d ago | MIT | A | 87 | Claude Code |
| open-notebookK-Dense-AI/scientific-agent-skills | Skill | 56k | 4d ago | MIT | A | 96 | Claude Code, Codex |
| pptx-postersK-Dense-AI/scientific-agent-skills | Skill | 56k | 4d ago | MIT | A | 59 | Claude Code |