From sop-writer
Scaffold a new decision flowchart in the current project as either Mermaid or D2 source, with a Typst wrapper that embeds the rendered SVG so it compiles into a printable PDF page. Use when the user wants to author a decision tree, branching procedure, or troubleshooting flow that will be rendered alongside or as part of a printed SOP.
How this skill is triggered — by the user, by Claude, or both
Slash command
/sop-writer:new-flowchartThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Scaffold a flowchart source file plus a Typst wrapper for printing.
Scaffold a flowchart source file plus a Typst wrapper for printing.
mermaid (default) or d2.
mermaid is easier and more familiar; render via mmdc.d2 produces nicer-looking diagrams; render via d2.flowcharts/.decision-tree, troubleshooting, process, state-machine. Used to seed the starter content.Create <output-dir>/<slug>.{mmd|d2} with starter content matching the chosen type. Example for decision-tree in Mermaid:
flowchart TD
start[Start: <situation>] --> q1{<first decision>}
q1 -->|Yes| a1[<action>]
q1 -->|No| q2{<next decision>}
q2 -->|Yes| a2[<action>]
q2 -->|No| stop[Stop / escalate]
Create <output-dir>/<slug>.typ — a small Typst wrapper that:
<slug>.svg (which compile will produce by running the diagram CLI)#set page(paper: "a4", margin: 2cm)
#align(center)[
#text(size: 18pt, weight: "bold")[<TITLE>]
]
#v(1em)
#image("<slug>.svg", width: 100%)
Print both file paths and remind the user:
d2 watcher, or the compile skill from this plugin.compile's job.#image("../flowcharts/<slug>.svg") directly instead of using a wrapper.Guides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.
npx claudepluginhub danielrosehill/claude-code-plugins --plugin sop-writer