openspec-apply-change
Implement tasks from an OpenSpec change. Use when the user wants to start implementing,…
Practical guide for creating human-readable and agent-parseable diagrams using Mermaid. Includes conservative, renderer-compatible templates and when-to-use guidance.
$ npx -y skills add comol/ai_rules_1c --skill mermaid-diagrams --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/mermaid-diagramsContext preview
The summary Claude sees to decide when to auto-load this skill.
Practical guide for creating human-readable and agent-parseable diagrams using Mermaid. Includes conservative, renderer-compatible templates and when-to-use guidance.
name: mermaid-diagrams description: "Practical guide for creating human-readable and agent-parseable diagrams using Mermaid. Includes conservative, renderer-compatible templates and when-to-use guidance."
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
Repo: comol/ai_rules_1c
Implement tasks from an OpenSpec change. Use when the user wants to start implementing,…
Archive a completed OpenSpec change in the experimental workflow. Use when the user wants to…
Enter OpenSpec explore mode - a thinking partner for exploring ideas, investigating problems,…
Propose a new OpenSpec change with all artifacts generated in one step. Use when the user…
Sync delta specs from an OpenSpec change to main specs. Use when the user wants to update…
Update an OpenSpec change by revising its existing planning artifacts and keeping them…