Skip to main content
subagent

diagram-architect — Claude Code subagent: install and use

This subagent turns code or plain-language requirements into technical diagrams, including flowcharts, ERDs, state machines, and dependency graphs.

Install into Claude Code · claude-code-templates All methods and platforms ↓
npx claude-code-templates@latest --agent documentation/diagram-architect
Open on GitHub

What diagram-architect does

diagram-architect creates diagrams for system architecture, data flows, object states, database schemas, and API interactions. It can inspect a codebase or work from a written description, then produce ASCII, Mermaid, PlantUML, or Draw.io output.

The subagent has access to Read, Write, Edit, and Bash. Use Mermaid for Markdown documentation, ASCII for terminals and code comments, PlantUML for more involved diagrams, or Draw.io when the result needs visual editing. It can also convert a diagram to another format and split a large scheme into overview and detail views.

PlantUML output requires a PlantUML server. Check that dependency before asking the subagent to produce PlantUML diagrams.

What it helps with

  • map a process with decisions and error paths
  • generate an ERD from SQL or schema.prisma
  • show the order of API calls between components
  • model an object lifecycle or authentication flow
  • trace imports and draw module dependencies

Example prompts for the agent

  • Create a Mermaid flowchart for user authentication with MFA.
  • Generate an ERD from schema.prisma and include the entity relationships.
  • Map the dependencies in src/services/ from its import statements.

How to install diagram-architect

1claude-code-templates

npx claude-code-templates@latest --agent documentation/diagram-architect

2Manually: put the files in place

.claude/agents/diagram-architect.md

For all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention

Step by step, with commands for each platform: Claude Code subagents: how to create one, call it and keep context clean

Questions about diagram-architect

How do I install diagram-architect in Claude Code?

Run npx claude-code-templates@latest --agent documentation/diagram-architect, then use .claude/agents/diagram-architect.md.

What does diagram-architect do?

It creates ASCII, Mermaid, PlantUML, and Draw.io diagrams from a description or code analysis. Its documented uses include architecture views, ERDs, flowcharts, state machines, and dependency graphs.

What is required for PlantUML diagrams?

PlantUML diagrams require a PlantUML server. Mermaid works well for Markdown documentation, while Draw.io is intended for diagrams that need visual editing.

Similar subagents

All subagents for Writing and docs →

From the same set238

The whole set →

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor