active/dev.diagram/SKILL.md
Create or revise engineering diagrams in ASCII or Mermaid.
npx skillsauth add kevinslin/skills dev.diagramInstall 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.
Construct diagrams that stay readable in their final destination. Support only two output formats: ASCII for plain-text readability and Mermaid for renderable Markdown.
When the user invokes the skill with positional hints, treat them as:
$dev.diagram [format] [diagram-kind]
Examples:
$dev.diagram mermaid general-flow$dev.diagram mermaid linear-flow$dev.diagram ascii decision-treeIf the format and diagram kind conflict, follow the user's explicit format and adapt the kind to that format. If a named diagram kind is unknown, fall back to the closest kind in Choose The Diagram Kind.
linear-flow for one request or operation through ordered stages. In Mermaid, render it as sequenceDiagram.general-flow for a call path with important branches grouped by components, ownership, or lifecycle boundaries. In Mermaid, render it as graph TD.sequence but not linear-flow.+, -, |, /, \, <, >.yes, no, enabled, disabled, true, or false.+------------------+
| Start request |
+------------------+
|
v
+------------------+
| Check condition |
+------------------+
| yes | no
v v
+---------+ +--------------+
| Path A | | Pass through |
+---------+ +--------------+
mermaid fence.graph TD for general-flowsequenceDiagram for linear-flow and actor/message sequencesflowchart TD for most other flowsstateDiagram-v2 for state transitionsA["label text here"], not A[label text here].<br/> is allowed inside quoted labels.{} may stay unquoted only when they contain simple words.flowchart TD unless left-to-right materially improves readability.sequenceDiagram, keep participant ids syntax-safe and alphanumeric, such as CreateHelper, ArchiveParser, or SkillClient.sequenceDiagram, use readable aliases with participant CreateHelper as Create helper, then reference only the safe id in arrows.version_no=1 instead of version_no="1".Use general-flow when the diagram should answer an architectural routing or composition question, such as "which component handles this request?" or "how does this configuration become runtime behavior?"
subgraph blocks for real component, ownership, or lifecycle boundaries.graph TD
subgraph Incoming
direction LR
A["Client"] --> B{"/apis/example/v1/widgets"}
end
subgraph Runtime
direction LR
B --> C["Gateway"]
C -->|known route| D["Core handler"]
C -->|extension route| E["Extension proxy"]
D --> F["Storage"]
end
Use linear-flow when the diagram should answer an ordered processing question, such as "what stages does one request pass through?"
sequenceDiagram
participant Client
participant Pipeline
participant Authn as Authentication
participant Authz as Authorization
participant Handler as REST Endpoint
Client->>Pipeline: Request
Pipeline->>Authn: Authenticate
Authn-->>Pipeline: User info
Pipeline->>Authz: Authorize
Authz-->>Pipeline: Allowed or denied
Pipeline->>Handler: Handle
Handler-->>Pipeline: Response
Pipeline-->>Client: Response
flowchart TD
A["Start request"] --> B["Check condition"]
B -->|yes| C["Path A"]
B -->|no| D["Pass through"]
/tmp/diagram.mmd.npx -y @mermaid-js/mermaid-cli -i /tmp/diagram.mmd -o /tmp/diagram.svg.mermaid-cli input; it can fail on /dev/fd/... paths.development
Generate incremental Slack digests for channels, topics, and categories.
testing
Audit an OpenClaw maturity-scorecard surface into an evidence-backed component score report. Use when given a surface from an OpenClaw maturity-scorecard.md and asked to score coverage, quality, readiness, or generate a detailed surface report plus per-component subreports.
tools
Turn an existing concrete spec into a reusable generic spec template. Use when asked to create a generic spec, template spec, reusable implementation template, or generalized version of a spec from a specific implementation such as one plugin, channel, integration, feature, or PR.
data-ai
Trace how something works with an investigator subagent and a skeptical reviewer subagent.