new-flowchart

new-flowchart is a skill for Claude Code from danielrosehill/Claude-SOP-Writer-Plugin. It costs 73 tokens per session (585 once invoked), scanned A, original, MIT.

A scaffold for creating decision trees, troubleshooting procedures, and other branching diagrams as Mermaid or D2 source with a Typst wrapper. Mermaid and D2 are text formats for diagrams; Typst is a document tool that can produce printable PDFs.

In plain words
What is it for?
Use it to start a Mermaid or D2 flowchart, choose a title and output folder, embed the rendered SVG, and optionally add a caption or source note.
Why use it?
It gives the diagram source and print-ready document structure needed to turn a branching procedure into a compiled PDF page.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the sop-writer plugin — 6 skills shipped together

Good fit Use it to start a Mermaid or D2 flowchart, choose a title and output folder, embed the rendered SVG, and optionally add a caption or source note.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/danielrosehill/claude-sop-writer-plugin/new-flowchart
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add danielrosehill/Claude-SOP-Writer-Plugin --skill new-flowchart
Clone the repo
git clone --depth 1 https://github.com/danielrosehill/Claude-SOP-Writer-Plugin

Made for: Claude Code.

Or install sop-writer, the plugin that ships this one along with the rest of its 6 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for new-flowchart

README.md
[![agentmods](https://agentmods.dev/badge/skills/danielrosehill/claude-sop-writer-plugin/new-flowchart/github.svg)](https://agentmods.dev/skills/danielrosehill/claude-sop-writer-plugin/new-flowchart)
Your own site
<a href="https://agentmods.dev/skills/danielrosehill/claude-sop-writer-plugin/new-flowchart"><img src="https://agentmods.dev/badge/skills/danielrosehill/claude-sop-writer-plugin/new-flowchart/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for new-flowchart

Your own site · 80×15
<a href="https://agentmods.dev/skills/danielrosehill/claude-sop-writer-plugin/new-flowchart"><img src="https://agentmods.dev/badge/skills/danielrosehill/claude-sop-writer-plugin/new-flowchart.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 73 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 585 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00073 $0.00585
Opus 5 $0.00036 $0.00293
Sonnet 5 $0.00015 $0.00117
Haiku 4.5 $0.00007 $0.00059

Measured 9d ago against content hash 61c849f6a73b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

new-flowchart scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/new-flowchart/SKILL.md · 54 lines

What it actually says

new-flowchart

Scaffold a flowchart source file plus a Typst wrapper for printing.

Inputs to gather

  1. Enginemermaid (default) or d2.
    • mermaid is easier and more familiar; render via mmdc.
    • d2 produces nicer-looking diagrams; render via d2.
  2. Title — for the diagram heading.
  3. Slug — kebab-case stem.
  4. Output directory — default flowcharts/.
  5. Type — quick hint: decision-tree, troubleshooting, process, state-machine. Used to seed the starter content.

What to do

  1. 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]
    
  2. Create <output-dir>/<slug>.typ — a small Typst wrapper that:

    • Renders the title
    • Embeds <slug>.svg (which compile will produce by running the diagram CLI)
    • Optionally adds a caption / source note
    #set page(paper: "a4", margin: 2cm)
    #align(center)[
      #text(size: 18pt, weight: "bold")[<TITLE>]
    ]
    #v(1em)
    #image("<slug>.svg", width: 100%)
    
  3. Print both file paths and remind the user:

    • To preview the diagram source they can use VS Code's Mermaid preview, the d2 watcher, or the compile skill from this plugin.

Notes

  • Don't try to render here — that's compile's job.
  • If the user wants a flowchart inside an existing SOP rather than standalone, suggest editing the SOP's Typst source to #image("../flowcharts/<slug>.svg") directly instead of using a wrapper.
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 54 lines · 73 tokens per session scan A 61c849f6a73b

Subscribe to this mod's changes

new-flowchart is a skill published in the GitHub repository danielrosehill/Claude-SOP-Writer-Plugin (3 stars, last pushed 4mo ago), licensed MIT. It adds 73 tokens to every session and 585 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories