Generate UML diagrams as Mermaid code and save them to .orchestra/uml/. Supports sequence, class, deployment, component, and state diagram types. Use when documenting system architecture, agent workflows, deployment topology, or state machines.
Ships in orchestra. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Produce a Mermaid diagram that documents system structure or behavior. Output goes to .orchestra/uml/.
Choose the type that matches what you're documenting:
| Type | Use When | Mermaid Block |
|---|---|---|
| sequence | Agent-to-tool flows, multi-step workflows, API call chains | sequenceDiagram |
| class | Data models, object relationships, schema structure | classDiagram |
| deployment | On-device vs cloud allocation, infrastructure topology | graph TB with subgraphs |
| component | High-level system overview, major pieces and connections | graph LR |
| state | Workflow states, agent decision logic, valid transitions | stateDiagram-v2 |
Read $ARGUMENTS. If no type is given, ask:
.orchestra/uml/ diagrams to avoid duplication and match styleUse the appropriate Mermaid syntax:
Sequence:
sequenceDiagram
participant A as Agent
participant T as Tool / MCP Server
participant API as External API
A->>T: tool call with params
T->>API: downstream request
API-->>T: response
T-->>A: structured result
Class:
classDiagram
class Artifact {
+String ticket
+String status
+Date created_on
}
class PRD {
+String objective
+List criteria
}
Artifact <|-- PRD
Deployment:
graph TB
subgraph Device["On-Device"]
App["App"]
Model["Local Model"]
end
subgraph Cloud["Cloud"]
Worker["Cloudflare Worker"]
DB["D1 Database"]
end
App -->|inference| Model
App -->|API call| Worker
Worker -->|query| DB
Component:
graph LR
A["Component A"]
B["Component B"]
C["Component C"]
A -->|action| B
B -->|result| C
State:
stateDiagram-v2
[*] --> Draft
Draft --> Approved
Approved --> InProgress
InProgress --> Complete
Complete --> [*]
Save to .orchestra/uml/{project}-{type}-{purpose}.md
Naming convention: [project]-[diagram-type]-[purpose].md
chiropractic-sequence-soap-pipeline.mdorchestra-component-plugin-structure.mdkairos-state-daily-rhythm.mdInclude frontmatter per ADR-001 (UML carries created_on only — no status, no ticket):
---
created_on: {YYYY-MM-DD}
---
Full file structure:
---
created_on: YYYY-MM-DD
---
# {Diagram Title}
> {One sentence: what this diagram shows and why it exists}
```mermaid
{diagram code}
{Optional: call out non-obvious decisions, constraints, or what to look at first}
### 5. Cross-Reference
If this diagram was prompted by a spec or ADR, add a reference line to that document pointing back to the diagram. The relationship is:
- **Specs** document *what* — reference the UML for *how*
- **ADRs** document *why* — reference the UML for the topology that resulted from the decision
## Examples
See `examples/` for reference diagrams:
| File | Type | What It Shows |
|------|------|---------------|
| `examples/sequence.md` | sequence | Multi-phase agent workflow with parallel tool calls and retry logic |
## Quality Checks
- [ ] Diagram type matches what's being shown (don't use sequence for topology)
- [ ] Participants and nodes have human-readable labels, not code identifiers
- [ ] Mermaid syntax is valid — no unclosed blocks, correct arrow types
- [ ] Filename follows `[project]-[type]-[purpose].md` convention
- [ ] `created_on` frontmatter is present
- [ ] One sentence description is present below the title
What SKILL.md sets; muted values are Claude Code's defaults
18 skills in this plugin
/orchestra-adrCapture an architectural decision record — document a decision that was made during work, why it was made, and its consequences. Use when a significant technical or process decision needs to be recorded for future agents and developers./orchestra-afkConductor discipline for unattended (AFK) sessions — advance the work item from repo state, pause at human decisions by committing a gate file, resume from answered gates. The repo is the workspace; gates are files; approval is a commit. Use when running as a scheduled or headless session with nobody at the keyboard — the session must leave the repo in a state the next session (or a human) can pick up cold./orchestra-devlogOther plugins' skills for the same job
/orchestra:orchestra-uml <diagram-type> <what to diagram>from orchestra
npx claudepluginhub mpazaryna/agentic-factory --plugin orchestra