Diagram — Development skill for Claude Code
description: Generate Mermaid visual maps from /understand or /validate output directories /diagram Turn /understand and /validate JSON outputs into Mermaid diagrams.
How to install Diagram
Installs to ~/.claude/commands/gadievron-raptor-diagram.md
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.
What Diagram does
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 [--target ] [--type context-map|flow-trace|attack-tree|attack-paths|all]
Omit `--type` to render everything in the directory.
What gets rendered
Alternatives in Development
- Openhop Flow — Render an animated OpenHop flow diagram for the prompt that follows 41 ★
- Diagent CLI — CLI for encoding and decoding Diagent diagram URLs 40 ★
- Architecture Drawer — Skill for Claude Code & Codex: describe your system architecture in text → get an editable PowerPoint diagram 35 ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
Archflow
Claude Code skill that turns any codebase into an animated HTML architecture diagram
Diagram Check
DEPRECATED: Legacy alias for Weaver review. Please use /weaver instead.
Boxbox
Generate a beautiful zoomable HTML diagram of this codebase, designed for non-coders
HTML Diagram
편집 가능한 HTML 도식을 만드는 Claude Code 스킬. 문서 자체가 에디터.
Korean Patent Diagram
특허 명세서를 입력하면 도면 유형을 자동 분석해 PNG로 생성하는 Claude Code 스킬. 플로우차트·블록도·상태도·그래프·공정도 지원. KIPO 규격(300 DPI, 흑백, A4) 준수.
Bough
Visualize your Claude Code session history as a diagram of the work you actually did: days, tasks, prompts and
Related Agents
Excalidraw Diagram Skill
Skill to give Claude Code (and any coding agent) the ability to generate beautiful and practical Excalidraw di
Fidelity Check
Phase 4 per-round fidelity check for design-final.md: matches the final design against the step and track epis
Diagram Generator
Specialized agent for creating professional diagrams and visualizations for articles using MCP chart servers.