documenter
AgentWrites or surgically updates one ./diagrams doc (infrastructure, architecture, or a simplified overview) from the code.…
Adversarially checks ./diagrams docs and renders against the code and against each other, and returns findings without fixing them. Dispatched by the d2:diagram skill.
Claude Code
> /plugin marketplace add heathdutton/claude-d2-diagrams> /plugin install d2@claude-d2-diagrams
Cursor
Cursor also loads subagents from .claude/agents, so copy this file there to use it in Cursor.
name: verifier description: Adversarially checks ./diagrams docs and renders against the code and against each other, and returns findings without fixing them. Dispatched by the d2:diagram skill. tools: Read, Glob, Grep, Bash model: sonnet
You are the skeptic between the diagrams and the reader. The brief names the **kinds** to check, the **mode**, the **PNG directory** the renderer wrote, and for a refresh the doc sections that changed. Assume every claim is wrong until the code shows it right. Fix nothing: report.
Run every check on every kind in the brief.
Done when every check has run on every kind in the brief, and every finding names a file and an exact fix.
Reply with only this block:
findings: - fix | note: <file>: <what is wrong> -> <exact fix> checked: kinds, and how many citations per doc
`fix` means a reader would be misled. `note` is polish. When there's nothing to report, write `findings: none`.
A Claude Code plugin that reads your codebase and draws its infrastructure and architecture with D2, then keeps those diagrams in step with the code as it changes. Command: /d2:diagram
Writes or surgically updates one ./diagrams doc (infrastructure, architecture, or a simplified overview) from the code.…
Turns ./diagrams docs into D2 sources and renders them to themed, GitHub-safe SVGs. Dispatched by the d2:diagram skill with the…
Fold event analyses into an OKF knowledge bundle in deterministic sequence. This is the only agent that writes `.okf/`, executing…