1password
Install and use 1Password CLI (`op`) to sign in, inspect vault items, read secrets safely, and inject secrets into commands.
Create, validate, update, and render diagram-as-code artifacts with Mermaid-first schema awareness plus PlantUML, Graphviz DOT, and Excalidraw JSON adapters.
$ npx -y skills add HybridAIOne/hybridclaw --skill diagram --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/diagramContext preview
The summary Claude sees to decide when to auto-load this skill.
Create, validate, update, and render diagram-as-code artifacts with Mermaid-first schema awareness plus PlantUML, Graphviz DOT, and Excalidraw JSON adapters.
name: diagram
description: Create, validate, update, and render diagram-as-code artifacts with Mermaid-first schema awareness plus PlantUML, Graphviz DOT, and Excalidraw JSON adapters.
user-invocable: true
disable-model-invocation: false
metadata:
hybridclaw:
category: publishing
short_description: "Validated diagram-as-code artifacts."
tags:
- diagram
- mermaid
- plantuml
- graphviz
- excalidraw
- visualization
related_skills:
- excalidraw
- manim-video
- write-blog-postUse this skill when the user wants a rendered static diagram, a validated diagram source artifact, or a revision to an existing diagram source.
Default to Mermaid unless the user asks for another format or the shape is a better fit for another adapter:
Use the runtime tools directly:
The tool output includes these fields:
{
"success": true,
"valid": true,
"source": "...",
"source_artifact_ref": "/workspace/.generated-diagrams/skills/diagram/diagram-...",
"rendered_artifact_ref": "/workspace/.generated-diagrams/skills/diagram/diagram-...",
"type": "flowchart",
"format": "mermaid",
"artifacts": [],
"runtime_events": [],
"warnings": []
}On validation failure, `success` and `valid` are false and `errors` plus `suggested_fix` may be present. When `render_to` is `"none"`, `rendered_artifact_ref` is `null`. Invalid source is still saved with `source_artifact_valid: false` so the operator can inspect or repair it.
1. Pick the diagram type before writing syntax. If uncertain, set `type` to `auto`, but prefer an explicit type when the user request clearly names one. 2. For Mermaid, read [references/mermaid-types.md](references/mermaid-types.md) when you need grammar examples or when the diagram type is not obvious. 3. Draft complete source yourself when the user needs a specific diagram. Do not rely on the tool's generated starter unless the request is generic. 4. Call `diagram_validate` before rendering when you wrote or revised source manually. 5. If validation fails, use the returned `errors` and `suggested_fix`, revise once, then validate again. Make at most 2 fix-up attempts before surfacing the failure with the invalid source artifact. The runtime also caps automatic pre-render fix-up at 2 attempts. 6. Call `diagram_create` or `diagram_update` with `render_to` set to `svg` by default. Use `png` or `pdf` only when requested and the adapter can render that target. 7. Return the source artifact and rendered artifact paths to the user.
Use these defaults:
| User intent | Type | | --- | --- | | messages, API call flow, actors, request/response | `sequence` | | process, decision tree, pipeline, system flow | `flowchart` | | lifecycle, status machine, transitions | `state` | | database schema, entities, relationships | `er` | | classes, interfaces, inheritance, methods | `class` | | timeline, schedule, milestones, roadmap | `gantt` | | branches, commits, merges, release train | `git-graph` | | brainstorm, taxonomy, concept map, outline | `mindmap` | | shares, proportions, percentages | `pie` |
For `diagram_update`, preserve the existing `type` and `format` unless the user explicitly asks to convert. When the user gives natural-language update instructions:
1. Read the existing source artifact when needed. 2. Apply the change to the source yourself. 3. Validate the full updated source. 4. Call `diagram_update` with the complete updated source, original format/type, and desired `render_to`.
If the user only asks to annotate a diagram and exact placement does not matter, the tool can add a small update annotation when passed only `artifact_ref` plus `instructions`.
Enterprise-ready self-hosted AI assistant runtime with sandboxed execution, secure credentials, approvals, and memory
Install and use 1Password CLI (`op`) to sign in, inspect vault items, read secrets safely, and inject secrets into commands.
Coordinate cross-functional project delivery by tracking commitments, dependencies, decisions, and risks; maintain project…
Search Airtable bases and tables, read records and computed fields, and prepare guarded record CRUD requests with schema-based…
Expose HybridClaw as a custom Alexa skill and prepare guarded Alexa smart-home/device control payloads without exposing Amazon…
View Apple Calendar schedules, draft or import `.ics` files, and coordinate host-side calendar actions on macOS.
Control Apple Music playback, inspect now playing, start playlists, and automate the macOS Music app.