Install
Claude Code
Run these inside Claude Code. Choose user scope, so Docanchor works in every project.
/plugin marketplace add docanchor/docanchor
/plugin install docanchor@docanchor
/docanchor:setup
Codex, Cursor, Copilot, Gemini CLI, OpenCode, and others
Install the portable Agent Skill in the project folder. Replace codex with your agent.
npx skills@1.7.6 add docanchor/docanchor --skill docanchor --agent codex --copy --yes
Then ask your agent:
Use the Docanchor skill to set up architecture documentation for this project.
Needs Python 3.9+ on PATH for the hooks and checks. The macOS system Python works. No API key, server, or Node for the plugin.
First run
Setup starts small: the system boundary, the main units, and one important journey. It grows by risk, not by file count.
No docs yet: setup new
docs/architecture/
README.md Reading path and known gaps
context.md Users and external systems
runtime/ Flows, failures, recovery
data.md Ownership and lifecycle
decisions/ADR-*.md Why, with alternatives
glossary.md One term per concept
map.json Which code each page covers
Docs exist: setup adopt (default)
docs/architecture/map.json
../ARCHITECTURE.md Mapped where it lives
../adr/*.md Your decision folder
runtime/*.md New pages for real gaps
Setup fixes statements the code contradicts with small edits. It does not move or restyle your documents.
Setup ends with sync. That records a baseline for every page in .docanchor-state.json. Commit the handbook and that file.
Upgrade
After you update Docanchor, record fresh pages again once. This moves their fingerprints to the current format and approves nothing new.
python3 <docanchor>/scripts/docanchor.py sync --root . --fresh