Skip to content
Back to skills

Diagram

ASecurity

Generate architecture diagrams for a codebase subsystem or module. Explores source files and produces Mermaid diagrams in docs/.

  • 64 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added May 27, 2026
data-aibash

Security analysis

A100/100

Scanned May 27, 2026

npx -y skills add Kastalien-Research/thoughtbox --skill diagram --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Diagram?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Diagram
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/kastalien-research-diagram/badge)](https://www.skillsdirectory.com/skills/kastalien-research-diagram)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: diagram
description: Generate architecture diagrams for a codebase subsystem or module. Explores source files and produces Mermaid diagrams in docs/.
argument-hint: [subsystem or module path, e.g. "observatory", "hub", "persistence"]
user-invocable: true
allowed-tools: Read, Glob, Grep, Bash, Write, Task
---

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

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.