Diagram banner
gadievron gadievron

Diagram

Development community

Description

--- description: Generate Mermaid visual maps from /understand or /validate output directories --- # /diagram Turn `/understand` and `/validate` JSON outputs into Mermaid diagrams. Instead of reading raw JSON, you get a visual map of entry points, trust boundaries, sinks, attack trees, and attack paths. ## Usage ``` /diagram <out-dir> [--target <name>] [--type context-map|flow-trace|attack-tree|attack-paths|all] ``` Omit `--type` to render everything in the directory. ## What gets rendered

Installation

Installs to ~/.claude/commands/gadievron-raptor-diagram.md

Terminal
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/gadievron/raptor/HEAD/.claude/commands/diagram.md -o ~/.claude/commands/gadievron-raptor-diagram.md

Restart Claude Code, or start a new session, for it to be picked up.

Full documentation available on GitHub

View Source Repository