# Diagram

> Generate architecture diagrams for a codebase subsystem or module. Explores source files and produces Mermaid diagrams in docs/. Use when this capability is needed.

- Skill: `tomevault-io/diagram-4` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/diagram-4`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/diagram-4/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Research & Search
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/diagram-4

---


Generate architecture diagrams for: $ARGUMENTS

## Workflow

1. Launch the `architecture-diagrammer` agent with the target subsystem
2. The agent will:
   - Explore all files in the target module
   - Map entry points, data flows, and component relationships
   - Produce `docs/<target>-architecture.md` with Mermaid diagrams
3. 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:
- File produced: `docs/<target>-architecture.md`
- Number and types of diagrams generated
- Key architectural insights discovered

---
> Converted and distributed by [TomeVault](https://tomevault.io/claim/kastalien-research) — claim your Tome and manage your conversions.
<!-- tomevault:4.0:skill_md:2026-04-11 -->

