openspec-apply-change
Implement tasks from an OpenSpec change. Use when the user wants to start implementing, continue implementation, or work through…
Mermaid diagrams that render across viewers and stay agent-parseable. Use when drawing a flowchart, sequence, state or other diagram in Markdown or docs.
Claude Code
$ npx -y skills add comol/ai_rules_1c --skill mermaid-diagrams --agent claude-code
Codex
$ npx skills add comol/ai_rules_1c --skill mermaid-diagrams -a codex -y
Cursor
$ npx skills add comol/ai_rules_1c --skill mermaid-diagrams -a cursor -y
Gemini CLI
$ npx skills add comol/ai_rules_1c --skill mermaid-diagrams -a gemini-cli -y
GitHub Copilot
$ npx skills add comol/ai_rules_1c --skill mermaid-diagrams -a github-copilot -y
OpenCode
$ npx skills add comol/ai_rules_1c --skill mermaid-diagrams -a opencode -y
Windsurf
$ npx skills add comol/ai_rules_1c --skill mermaid-diagrams -a windsurf -y
name: mermaid-diagrams description: "Mermaid diagrams that render across viewers and stay agent-parseable. Use when drawing a flowchart, sequence, state or other diagram in Markdown or docs."
To optimize for quick human scanning in raw Markdown and robust parsing by agents, always ship an ASCII/Unicode sidecar immediately below each Mermaid block.
Policy:
Recommended primitives:
Example (Flowchart):
graph LR
A["Start"] --> B{Auth?}
B -->|Yes| C["Dashboard"]
B -->|No| D["Login"]Diagram: Auth flow (flowchart)
[Start] --> {Auth?}
{Auth?} -- Yes --> [Dashboard]
{Auth?} -- No --> [Login]Example (Text-based Sequence):
sequenceDiagram participant U as User participant W as WebApp U->>W: Open W-->>U: OK
Diagram: Happy path (sequence) User -> WebApp : Open WebApp -> User : OK
graph LR
A["Start"] --> B{Auth?}
B -->|Yes| C["Dashboard"]
B -->|No| D["Login"]
C --> E["Settings"]sequenceDiagram autonumber participant U as User participant W as WebApp participant API U->>W: Open W->>API: GET /status API-->>W: 200 W-->>U: OK
classDiagram
class User {
+String id
+String name
+login(): bool
}
class Order {
+String id
+Decimal total
+submit()
}
User "1" o-- "*" OrderstateDiagram-v2
[*] --> Idle
Idle --> Loading : fetch
Loading --> Ready : ok
Loading --> Error : fail
state Ready {
[*] --> Viewing
Viewing --> Editing : edit
Editing --> Viewing : save
}
Error --> Idle : retryerDiagram
USER ||--o{ ORDER : places
ORDER ||--|{ ORDER_LINE : contains
PRODUCT ||--o{ ORDER_LINE : referenced
USER {
string id
string email
}
PRODUCT {
string id
string name
float price
}journey
title Checkout UX
section Browse
"See product": 5: User
"Add to cart": 4: User
section Payment
"Enter card": 2: User
"3DS confirm": 2: User
section Result
"Success page": 5: Usergantt title Release Plan dateFormat YYYY-MM-DD section Dev Spec :done, des1, 2025-10-01,2025-10-05 Impl :active, des2, 2025-10-06,2025-10-20 Tests : des3, 2025-10-21, 7d section Release Freeze :milestone, m1, 2025-10-28, 0d Deploy :crit, des4, 2025-10-29, 1d
pie title Traffic by Source "Direct" : 35 "Organic" : 45 "Ads" : 20
graph TB Q1["Quick Wins<br/>High Impact - Low Effort<br/><br/>- Improve UX"] Q2["Major Projects<br/>High Impact - High Effort<br/><br/>- Rewrite Core"] Q3["Fill-ins<br/>Low Impact - Low Effort<br/><br/>- Docs polish"] Q4["Thankless<br/>Low Impact - High Effort<br/><br/>- Legacy migration"] Q1 --> Q2 Q1 --> Q3 Q2 --> Q4 Q3 --> Q4
graph LR R1["Requirement: PCI-DSS compliant"] T1["Test: PCI checklist"] SVC["Service"] SVC -- satisfies --> R1 T1 -- verifies --> R1
graph LR Checkout["Checkout"] -->|100| PSP["PSP"] PSP -->|60| Settled["Settled"] PSP -->|40| Declined["Declined"]
graph LR A["init"] --> B["feat-A"] A --> C["fix-1"] B --> D["merge"] C --> D
Implement tasks from an OpenSpec change. Use when the user wants to start implementing, continue implementation, or work through…
Archive a completed OpenSpec change in the experimental workflow. Use when the user wants to finalize and archive a change after…
Enter OpenSpec explore mode - a thinking partner for exploring ideas, investigating problems, and clarifying requirements in a…
Propose a new OpenSpec change with all artifacts generated in one step. Use when the user wants to quickly describe what they…
Sync delta specs from an OpenSpec change to main specs. Use when the user wants to update main specs with changes from a delta…
Update an OpenSpec change by revising its existing planning artifacts and keeping them coherent with one another. Use when the…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.