- Skill Name
- planpack-mermaid-diagram
- Skill Description
- Create concise, human-reviewable Mermaid diagrams for PlanPack pipelines, lineage, blockers, handoffs, and agent orchestration. Use when asked to visualize a PlanPack, compare pipeline options, show serial vs parallel subagent flow, or produce Mermaid for the PlanPack viewer.
PlanPack Mermaid Diagram
Goal: a diagram a technical human can scan row by row, then inspect in the viewer.
Default to flowchart TD unless lineage/dependency mapping is the main ask.
Procedure
- Identify the plan source, orchestrator, human gates, agent lanes, and final handoff.
- Serial work: one straight top-to-bottom spine, no side quests.
- Parallel work: one
subgraphwithdirection LR; each lane a nested subgraph withdirection TB. Every lane reaches one join node before the next row starts. No edges between lanes unless one truly depends on another. - Show feedback loops (human review, validation failure, blocks) as a short edge back to the orchestrator only when they matter; a labeled blocker node often reads better.
- Short human-readable titles (2-5 words, optional 3-7 word second line). Detail belongs in the plan's human view, not the diagram. Do not use profile IDs as visible titles.
- Add class styles at the bottom.
Example shape:
Rendering diagram…
Visual Grammar
- Humans: gates and review decisions. Agents: concrete worker roles.
- Blockers/failures: red/pink only. Completion/handoff: green. Process feedback: amber.
Default palette:
classDef source fill:#e8f3ff,stroke:#2563eb,color:#071b3a;
classDef orchestrator fill:#f5f2e8,stroke:#6f5d2a,color:#211a07;
classDef human fill:#fff4cc,stroke:#b88700,color:#2b2100;
classDef agent fill:#ecfdf3,stroke:#16803c,color:#062b15;
classDef validation fill:#eef2ff,stroke:#4f46e5,color:#14143d;
classDef blocker fill:#ffe8e8,stroke:#dc2626,color:#3b0707;
classDef done fill:#dcfce7,stroke:#15803d,color:#052e16;
classDef feedback fill:#fff7ed,stroke:#ea580c,color:#431407;
Shape Rules
- Prefer 12-22 nodes; one primary diagram before optional detail diagrams.
- No decorative icons, emojis, paragraph labels, crossing loops, or dependency spaghetti.
- Quote labels containing spaces or punctuation.
- Do not include implementation details that are not visible in the plan.
- The viewer renders Mermaid with
securityLevel: "strict":clicktooltip directives are disabled, so never rely on hover detail.
Output
- Mermaid code block.
- Two to five terse notes only if tradeoffs matter.