๐บ๏ธ docmap
docmap โ instant documentation structure for LLMs and humans.
Navigate massive docs without burning tokens.

The Problem
Documentation files are everywhere โ READMEs, design docs, changelogs, API references, PDFs. But:
- LLMs can't open large markdown files or PDFs (token limits)
- Humans have to open each file to see what's inside
- There's no "file tree" for documentation content
- And once you find a section, there's no way to say "show me the Python code block" or "find the warning callout"
The Solution
docmap .
โญโโโโโโโโโโโโโโโโโโโโโโโโ docs/ โโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ 22 files โ 645 sections โ ~109k tokens โ
โ 18 callouts ยท 41 code blocks ยท 7 tables ยท 2 math โ
โ 33 tasks (19 done) ยท 4 wiki ยท 6 embeds โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
โโโ README.md (3.8k, 18 ยง) ยท 14 code ยท 1 tables
โโโ docs/ARCHITECTURE.md (7.7k, 33 ยง) ยท 6 code ยท 3 callouts
โโโ docs/API.md (12.1k, 47 ยง) ยท 21 code ยท 4 tables
โโโ CHANGELOG.md (15.2k, 41 ยง) ยท 2 callouts
One command. Full inventory. No LLM needed.
Install the CLI
# macOS/Linux
brew tap JordanCoin/tap && brew install docmap
# Windows
scoop bucket add docmap https://github.com/JordanCoin/scoop-docmap
scoop install docmap
Other options: Releases | go install github.com/JordanCoin/docmap@latest
Install the Claude Code skill
docmap ships a Claude Code skill (SKILL.md) that teaches Claude when and how to use the CLI โ the drill-downs, line lookups, search across notables, and --since git integration. Pick whichever install method fits your workflow.
Option A โ Plugin marketplace (recommended)
Inside Claude Code, add this repo as a marketplace and install the plugin:
/plugin marketplace add JordanCoin/docmap
/plugin install docmap@docmap
That's it. Claude Code clones the repo, picks up .claude-plugin/marketplace.json, and installs the docmap plugin from plugins/docmap/. The skill becomes available as /docmap and Claude will auto-invoke it when you're working with markdown docs.
Update later with /plugin marketplace update.
Option B โ Personal user skill
Drop the SKILL.md into your personal Claude skills folder so it's available across every project, no marketplace needed:
mkdir -p ~/.claude/skills/docmap
curl -o ~/.claude/skills/docmap/SKILL.md \
https://raw.githubusercontent.com/JordanCoin/docmap/main/plugins/docmap/skills/docmap/SKILL.md
Option C โ Project-scoped (commit to your repo)
If you want every contributor on a specific project to auto-load the docmap skill while working in that repo, commit it to .claude/skills/:
mkdir -p .claude/skills/docmap
curl -o .claude/skills/docmap/SKILL.md \
https://raw.githubusercontent.com/JordanCoin/docmap/main/plugins/docmap/skills/docmap/SKILL.md
git add .claude/skills/docmap/SKILL.md
Browse the skill
Read the shipped SKILL.md on GitHub before installing: plugins/docmap/skills/docmap/SKILL.md.
Usage
docmap . # Map everything in a directory
docmap README.md # Deep dive single file
docmap report.pdf # PDF document structure
docmap config.yaml # YAML file structure
docmap README.md --section "API" # Filter to section
docmap README.md --expand "API" # Show section content
docmap file.md --type code # List every code block
docmap file.md --type code --lang python # Only Python code blocks
docmap file.md --type callout --kind warning # Only warning callouts
docmap file.md --type table # Every table with its headers
docmap file.md --at 154 # What's at line 154?
docmap file.md --since HEAD~5 # Constructs on lines changed since a git ref
docmap file.md --search "auth" # Search titles, content, and notables
docmap . --refs # Cross-references between docs
docmap file.md --json # Full typed AST as JSON
Output
Single file deep dive
docmap docs/ARCHITECTURE.md
โญโโโโโโโโโโโโโโโโ ARCHITECTURE.md โโโโโโโโโโโโโโโโโโฎ
โ Sections: 33 โ ~7.7k tokens โ
โ 3 callouts ยท 6 code blocks ยท 2 tables โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ