Diagram

From Kastalien-Research/thoughtbox · View interactive version

Diagram is an AI agent skill from the GitHub repository Kastalien-Research/thoughtbox. Generate architecture diagrams for a codebase subsystem or module. Explores source files and produces Mermaid diagrams in docs/.

How to use this skill

Skill file

Generate architecture diagrams for: $ARGUMENTS

Workflow

  1. Launch the architecture-diagrammer agent with the target subsystem
  2. The agent will:
  1. Report which diagrams were produced

Execution

Use the Task tool to launch the architecture-diagrammer agent:

Task({
  subagent_type: "architecture-diagrammer",
  prompt: "Generate architecture diagrams for the '$ARGUMENTS' subsystem. Explore the codebase, trace data flows, and produce docs/$ARGUMENTS-architecture.md with Mermaid diagrams covering: system context, sequence diagrams for key flows, component architecture, and startup lifecycle.",
  description: "Diagram $ARGUMENTS architecture"
})

Output

After the agent completes, summarize:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.