agent-instructions
Use when writing project instructions for a coding agent (CLAUDE.md, AGENTS.md, or equivalent). Covers what belongs in them, what does not, structure, and…
Use when creating technical diagrams as code. Covers Mermaid for architecture, sequence, and flow diagrams, choosing the right diagram type, and keeping diagrams accurate as the system changes.
$ npx -y skills add nimadorostkar/Claude-Skills-collection --skill diagrams --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/diagramsContext preview
The summary Claude sees to decide when to auto-load this skill.
Use when creating technical diagrams as code. Covers Mermaid for architecture, sequence, and flow diagrams, choosing the right diagram type, and keeping diagrams accurate as the system changes.
name: diagrams description: Use when creating technical diagrams as code. Covers Mermaid for architecture, sequence, and flow diagrams, choosing the right diagram type, and keeping diagrams accurate as the system changes. metadata: category: documents version: 1.0.0 tags: [mermaid, diagrams, architecture, documentation, visualization]
Produce technical diagrams as text, so they live in version control, appear in code review, and can be corrected when the system changes — instead of a PNG in a wiki that was accurate two years ago.
1. **Choose the type by the question** — Sequence diagrams answer "what talks to what, in what order". Flowcharts answer "what are the paths through this". State diagrams answer "what states exist and how do you move between them". Using the wrong one produces a diagram that is technically correct and useless. 2. **Draw one thing** — A diagram showing the architecture, the data flow, and the deployment topology at once shows none of them. 3. **Label the edges** — An unlabelled arrow between two boxes conveys almost nothing. "publishes OrderPlaced" conveys a great deal. 4. **Keep it under about fifteen nodes** — Beyond that, it is a map, not a diagram, and nobody will read it. 5. **Put it in version control** — Next to the code. A diagram that is not reviewed alongside the change it describes will drift, silently.
**A sequence diagram showing the failure path, which is the part that matters:**
sequenceDiagram
autonumber
participant C as Client
participant API as Orders API
participant P as Payments (3rd party)
participant DB as Postgres
participant Q as Outbox → SQS
C->>API: POST /orders (Idempotency-Key)
API->>DB: BEGIN; check idempotency key
alt key already seen
DB-->>API: existing response
API-->>C: 200 (replayed, no double charge)
else new request
API->>P: authorize(amount)
alt authorized
P-->>API: 200 auth_id
API->>DB: INSERT order + INSERT outbox(order.placed); COMMIT
API-->>C: 201 Created
Q->>Q: relay publishes order.placed
else declined
P-->>API: 402 card_declined
API->>DB: ROLLBACK
API-->>C: 402 Payment Required
else timeout (the case that actually hurts)
P--xAPI: no response after 5s
API->>DB: ROLLBACK
API-->>C: 503 + Retry-After
Note over API,P: The charge may or may not have succeeded.<br/>Reconciliation job resolves it against the<br/>gateway within 15 minutes.
end
endThe timeout branch is the one worth diagramming. Everyone understands the happy path.
**A flowchart with labelled edges and a visible trust boundary:**
flowchart LR
subgraph internet [Public internet]
U[User]
end
subgraph vpc [VPC — private]
direction TB
LB[ALB] -->|"HTTPS, terminated"| API[Orders API]
API -->|"SQL, pooled"| DB[(Postgres)]
API -->|"cache-aside, 5m TTL"| R[(Redis)]
API -->|"publishes via outbox"| SQS[[SQS]]
SQS -->|"at-least-once"| W[Fulfilment worker]
end
U -->|"HTTPS"| LB
API -.->|"outbound, via NAT"| PAY[Payments API]
style internet fill:#fee2e2,stroke:#dc2626
style vpc fill:#f0fdf4,stroke:#16a34aA curated library of 137 production-grade skills for Claude and other AI coding agents. Every skill follows one structure, speaks with one voice, and earns its place by changing what the agent does.
Repo: nimadorostkar/Claude-Skills-collection
Use when writing project instructions for a coding agent (CLAUDE.md, AGENTS.md, or equivalent). Covers what belongs in them, what does not, structure, and…
Use when an agent needs state that survives a session or a context compaction. Covers what to persist, file-based memory, structuring notes for retrieval, and…
Use when automating agent behavior with lifecycle hooks. Covers hook events, deterministic enforcement of rules the model should not be trusted to remember,…
Use when packaging skills, commands, hooks, and MCP servers into a distributable plugin. Covers manifest structure, bundling, versioning, testing, and…
Use when writing a new skill for an AI agent. Covers scoping, description writing for reliable triggering, progressive disclosure, and the difference between a…
Use when reviewing or improving an existing agent skill. Covers triggering accuracy, content quality, redundancy with the base model, and measuring whether the…