skills/orchestra-uml/SKILL.md
Generate UML diagrams as Mermaid code and save them to .orchestra/uml/. Supports sequence, class, deployment, component, and state diagram types.
npx skillsauth add mpazaryna/agentic-factory orchestra-umlInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
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
development
Comprehensive Cloudflare platform skill covering Workers, Pages, storage (KV, D1, R2), AI (Workers AI, Vectorize, Agents SDK), feature flags (Flagship), networking (Tunnel, Spectrum), security (WAF, DDoS), and infrastructure-as-code (Terraform, Pulumi). Use for any Cloudflare development task. Biases towards retrieval from Cloudflare docs over pre-trained knowledge.
tools
Send and receive transactional emails with Cloudflare Email Service (Email Sending + Email Routing). Use when building email sending (Workers binding or REST API), email routing, Agents SDK email handling, or integrating email into any app — Workers, Node.js, Python, Go, etc. Also use for email deliverability, SPF/DKIM/DMARC, wrangler email setup, MCP email tools, or when a coding agent needs to send emails. Even for simple requests like "add email to my Worker" — this skill has critical config details.
tools
Build AI agents on Cloudflare Workers using the Agents SDK. Load when creating stateful agents, durable workflows, real-time WebSocket apps, scheduled tasks, MCP servers, chat applications, voice agents, or browser automation. Covers Agent class, state management, callable RPC, Workflows, durable execution, queues, retries, observability, and React hooks. Biases towards retrieval from Cloudflare docs over pre-trained knowledge.
tools
Planning conductor — runs the full PRD → Spec → Gherkin loop in a single interactive session with human approval gates.