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.
npx claudepluginhub danielrosehill/claude-code-plugins --plugin sop-writerThis skill uses the workspace's default tool permissions.
Scaffold a flowchart source file plus a Typst wrapper for printing.
Mandates invoking relevant skills via tools before any response in coding sessions. Covers access, priorities, and adaptations for Claude Code, Copilot CLI, Gemini CLI.
Share bugs, ideas, or general feedback.
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.