diagram
Generate a specific diagram — architecture, flow, db, sequence, deps Arguments: <type> [scope] — types: architecture, flow <feature>, db, sequence <endpoint>, deps <module>.
SKILL.mdcodemap-dev/skills/diagram/SKILL.md
GitHubGenerate Diagram
Create a visual diagram for the specified aspect of the codebase. Request: $ARGUMENTS
Instructions
Read the primary skill:
${CLAUDE_PLUGIN_ROOT}/skills/codemap-diagram/SKILL.md— diagram generation rules and types
Parse
$ARGUMENTSfor diagram type and optional scope:architecture→ C4 container diagram of the entire systemflow <feature>→ flowchart of a specific featuredb→ ERD of all database tablessequence <endpoint>→ sequence diagram for a requestdeps <module>→ dependency graph for a module- If no argument or unrecognized → ask user which type they want
Launch the diagrammer agent with the diagram type, scope, and any additional context from the user's message.
The agent analyzes code, builds mxGraph XML using templates, saves .drawio files, and calls drawio-mcp for a preview (rendered inline only in clients that support MCP Apps).