flow-chart-from-counts

flow-chart-from-counts is a skill for Claude Code, Codex from saajunaid/caddis-plugin. It costs 31 tokens per session (3,090 once invoked), scanned A, original, MIT.

A tool that turns a list of counted transitions between steps into a zoomable Mermaid flow-chart web page. Mermaid is a text-based format for generating diagrams, and the counts show how often each transition occurred.

In plain words
What is it for?
Use it to visualise how cases, calls, orders, tickets, or sessions move from one step to another when you have from-to counts.
Why use it?
It makes branching and rejoining processes easier to inspect than a plain table. The generated page also records the chart's legend, date and time zone, and what data is not shown.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to visualise how cases, calls, orders, tickets, or sessions move from one step to another when you have from-to counts.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/saajunaid/caddis-plugin/flow-chart-from-counts
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 saajunaid/caddis-plugin --skill flow-chart-from-counts
Clone the repo
git clone --depth 1 https://github.com/saajunaid/caddis-plugin

Made for: Claude Code, Codex.

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 flow-chart-from-counts

README.md
[![agentmods](https://agentmods.dev/badge/skills/saajunaid/caddis-plugin/flow-chart-from-counts/github.svg)](https://agentmods.dev/skills/saajunaid/caddis-plugin/flow-chart-from-counts)
Your own site
<a href="https://agentmods.dev/skills/saajunaid/caddis-plugin/flow-chart-from-counts"><img src="https://agentmods.dev/badge/skills/saajunaid/caddis-plugin/flow-chart-from-counts/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 flow-chart-from-counts

Your own site · 80×15
<a href="https://agentmods.dev/skills/saajunaid/caddis-plugin/flow-chart-from-counts"><img src="https://agentmods.dev/badge/skills/saajunaid/caddis-plugin/flow-chart-from-counts.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 31 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,090 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.00031 $0.03090
Opus 5.5 $0.00012 $0.01236
Sonnet 5.5 $0.00006 $0.00618
Haiku 4.5 $0.00003 $0.00309

Measured 1mo ago against content hash e8b09f9cc6b3, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

flow-chart-from-counts 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 1mo ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/check-render.mjs, scripts/edges_to_mermaid.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

.github/skills/media/flow-chart-from-counts/SKILL.md · 194 lines

How it starts

The opening of the file, as written. The whole thing — 194 lines — stays where its author put it; the contents beside it link to each section on GitHub.

flow-chart-from-counts

Turns counted paths (N cases went from step A to step B) into a flow chart page that a reader can trust: counts on every arrow, a legend for the box types, a title with the date and time zone, a note that names what is not drawn, and a viewer with zoom, pan and full screen.

Paths below are relative to the folder that holds this file.

When to use it

  • "Draw how cases move through the process", "show the journey with counts", "flow chart of calls / orders / tickets / sessions from this table".
  • You have, or can query, rows of from, to, count, or an event table with one row per step.
  • A Sankey or a funnel was asked for, but the paths branch and rejoin: a flow chart shows that better.

Use something else for:

  • An interactive page from a JSON model with lanes, playback and an inspector: flow-studio.
  • Mermaid syntax for other diagram kinds (sequence, ERD, class): mermaid-diagrams.
  • A diagram of a SQL object's structure: db-diagram.

What is in the folder

file use
scripts/edges_to_mermaid.py CSV edge list to first-draft Mermaid source (standard library only)
assets/viewer-template.html page with the zoom/pan/full-screen viewer, theme tokens and one example chart
scripts/check-render.mjs headless render check: fails on no SVG, error text, too few nodes, page errors; saves screenshots
references/edge-list-sql.md SQL pattern: event table to edge list and box counts, and the checks to run on it

Process

  1. Get the edge list. From an event table, use references/edge-list-sql.md. Run its checks (START rows add up to the cases; path occurrences in equal path occurrences out per step). Count arrows as distinct cases per pair. Get the box counts (distinct cases per step) at the same time.
  2. Name the node types with the reader, or from the process owner's own glossary: for example automatic step, in-scope step, optional step, hand-off, end. Write a nodes.csv (name,type,count).
  3. Make the first draft:
    python scripts/edges_to_mermaid.py edges.csv --nodes nodes.csv --min 25 \
           --in-scope scope --optional choice --out chart.mmd --strict
    
    --out writes UTF-8 (do not use > in Windows PowerShell 5.1: it can write UTF-16). The note on hidden paths goes to stderr. Keep it: it goes under the chart. --strict exits 1 on a warning: line, which means an arrow is larger than its box: fix the query before you draw. Duplicate from,to rows are added together. Node types become classes named t_<type>.
  4. Put it in the page. Copy assets/viewer-template.html. Paste the source into the <script type="text/plain"> block. Set data-title (what, which day) and data-sub (the UTC window, the unit of the counts, the minimum path size). Replace the legend and the note. For more charts, add one .fv block and one source script per chart.
  5. Render and check:
    node <skill folder>/scripts/check-render.mjs page.html --out shots [--channel msedge]
    
    Run it from a folder whose node_modules has playwright. It exits 1 when a check fails.
  6. Look at the screenshots (chart-N.png is the chart at Fit, chart-1-full.png is full screen) and run the tidy checklist below. If a rule fails, change the layout with the layout fixes, and go back to step 5.
  7. Show the page and the screenshots only when every checklist rule passes. Say which labels are your reading (see Wording). If a rule cannot be met, say which rule and why.

Read the full file on GitHub · 194 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 1mo ago First seen · 194 lines · 31 tokens per session scan A e8b09f9cc6b3

Subscribe to this mod's changes

flow-chart-from-counts is a skill published in the GitHub repository saajunaid/caddis-plugin (0 stars, last pushed 3d ago), licensed MIT. It adds 31 tokens to every session and 3,090 once invoked, about $0.0001 per session on Opus 5.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-10-24.

Related

flow-chart-from-counts compared with skills from other repositories

flow-chart-from-counts next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
flow-chart-from-countssaajunaid/caddis-pluginSkill03d agoMITA31Claude Code, Codex
goga-cookbookqarium/gogaSkill468d agoBSD-3-ClauseA19Claude Code, Codex
goga-review-planqarium/gogaSkill468d agoBSD-3-ClauseA11Claude Code, Codex
goga-define-experienceqarium/gogaSkill468d agoBSD-3-ClauseA6Claude Code, Codex
goga-task-by-specifyingqarium/gogaSkill468d agoBSD-3-ClauseA14Claude Code, Codex
goga-define-requirementsqarium/gogaSkill468d agoBSD-3-ClauseA7Claude Code, Codex
goga-discoverqarium/gogaSkill468d agoBSD-3-ClauseA31Claude Code, Codex