skills/diagram-generator/SKILL.md
Generate a diagram and route to the right engine — draw.io XML (precise, editable, C4, swimlanes) or Excalidraw JSON (hand-drawn, sketch, wireframes). One entry for flowcharts, architecture, ER, sequence, mind maps. Don't use for Mermaid or slides.
npx skillsauth add luongnv89/skills diagram-generatorInstall 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.
Single entry point for "make me a diagram". This umbrella picks the right engine and hands off to it — both produce the same diagram taxonomy (flowchart, architecture, C4, ER, sequence, mind map) through the same four phases (Understand → Propose → Generate → Validate); they differ only in output format and aesthetic.
| Pick | When the user wants... | Output | Nested skill |
|---|---|---|---|
| draw.io | Precise, professional diagrams to edit later in draw.io / diagrams.net / Confluence; official C4 styling; swimlanes; multi-page | .drawio XML | drawio-generator |
| Excalidraw | A hand-drawn, sketchy, whiteboard feel; wireframes; quick collaborative sketches | .excalidraw JSON | excalidraw-generator |
Routing rules:
Once the engine is chosen, invoke the nested skill by name — the runtime resolves names regardless of filesystem path:
/drawio-generator — generate draw.io XML/excalidraw-generator — generate Excalidraw JSONEach engine owns its full workflow, references/, agents/, and validation checks. This umbrella
stays short to protect the agent's context budget; it only routes.
If the user explicitly requested a format, tool, editing target, or aesthetic and its engine is unavailable,
stop and explain which nested skill must be installed; provide the matching command
(asm install github:luongnv89/skills:skills/diagram-generator/drawio-generator or
asm install github:luongnv89/skills:skills/diagram-generator/excalidraw-generator) and ask the user to
install it or explicitly change the requested output. Do not substitute the other engine. If no format or aesthetic was explicit, an available
engine may be offered as a fallback only after explaining the output difference and receiving user approval.
If neither engine is available, fail with an installation error and name both required skills. Never invent
XML or JSON under the wrong engine as a fallback.
Input: "Draw a sketchy onboarding wireframe for mobile."
Route: excalidraw-generator
Expected output: one validated .excalidraw JSON artifact
Verify every routed run:
After routing, emit:
◆ Route Diagram
Engine available: √ pass
Route justified: √ pass
Output validated: √ pass
Result: PASS | FAIL | PARTIAL
Use × fail — reason when a check fails. Report PASS only after the nested engine's acceptance
criteria and expected result are verified.
tools
Run Herdr loops for one open GitHub issue (resolve→review→fix) or an existing PR (review→lazy fixer) until CLEAN. Don't use for plain resolution without review, review-only/no-fix requests, backlog automation, or merging.
tools
Manage AI agent fleets in Herdr: split root + sub-agents into one tab as a tiled grid, message/wait/read via herdr CLI, steer any pane. Use for Herdr multi-agent fleets. Don't use for tmux, screen, or non-Herdr terminals.
development
Generate or update docs to match the code, citing each claim to path:line and asking on ambiguity; runbook docs also get a check-only validation script. Don't use for API-reference autogen (JSDoc/Sphinx), landing pages, or CLAUDE.md/AGENTS.md.
data-ai
Sync a GitHub fork with upstream while keeping unmerged feature branches and open PRs mergeable. Use for rebase on upstream, PR conflicts, integration main. Don't use for git init, releases, or non-fork repos.