ucsahinn/agentchef / plugins/agentchef/skills/offline-diagram-triplet
offline-diagram-triplet
VerifiedCreate editable offline diagrams from an English description or Mermaid source. Use when the agent should emit a triplet: Mermaid source, an editable .excalidraw file for excalidraw.com, and rendered SVG/PNG assets with zero network access.
Offline Diagram Triplet
Use this skill to turn an English diagram request into four local artifacts:
- Mermaid source (
.mmd) - Editable Excalidraw scene (
.excalidraw) - Rendered SVG (
.svg) - Rendered PNG (
.png)
Also create a Markdown snippet when the user wants the Mermaid source embedded in docs. Keep everything local and offline.
Workflow
- Convert the user's English brief into a small Mermaid
flowchart TDorflowchart LR. - Keep labels short and inspectable. Prefer 4-12 nodes.
- Save the Mermaid source to a
.mmdfile. - Run the bundled renderer:
node plugins/agentchef/skills/offline-diagram-triplet/scripts/render-diagram-triplet.mjs --mermaid path/to/diagram.mmd --out-dir artifacts/diagrams --name diagram-name
- Return the created file paths and include the Mermaid block in the response or target Markdown file.
Reference Routing
Read references/diagram-contract.md before extending the renderer, handling
unsupported Mermaid syntax, changing output formats, or validating Excalidraw
compatibility. For ordinary small diagrams, follow the subset below.
Mermaid Subset
Use this subset for predictable offline rendering:
flowchart LR
A[English brief] --> B[Mermaid source]
B --> C[Editable Excalidraw]
B --> D[SVG]
B --> E[PNG]
Supported node forms:
A[Rectangle]B(Rounded)C((Ellipse))D{Decision}A --> BA -->|edge label| BA -.-> BA ==> BA --- B
Avoid unsupported Mermaid features such as subgraphs, HTML labels, icons, classDefs, click handlers, remote images, and sequence diagrams unless you also implement or verify a renderer for them.
Markdown Embedding
When writing docs, embed the source:
```mermaid
flowchart LR
A[Input] --> B[Editable diagram]
```
The starter's /make-pdf style workflows can render Markdown Mermaid blocks
through their own PDF toolchain, while this skill still emits standalone local
assets for review and editing.
Safety
- Do not use network services, CDN renderers, or remote Excalidraw libraries.
- Do not install packages to render diagrams.
- Do not put secrets, private paths, tokens, or credential material into diagram labels or output filenames.
- If the diagram must include private system names, keep artifacts local and do not commit them without explicit approval.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 471k | Updated | Claude CodeCodex | Verified | Install |
| diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness. | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |