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.
npx skills add saajunaid/caddis-plugin --skill flow-chart-from-countsgit clone --depth 1 https://github.com/saajunaid/caddis-pluginWrote 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.
[](https://agentmods.dev/skills/saajunaid/caddis-plugin/flow-chart-from-counts)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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.
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
- 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. - 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). - 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--outwrites 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.--strictexits 1 on awarning:line, which means an arrow is larger than its box: fix the query before you draw. Duplicatefrom,torows are added together. Node types become classes namedt_<type>. - Put it in the page. Copy
assets/viewer-template.html. Paste the source into the<script type="text/plain">block. Setdata-title(what, which day) anddata-sub(the UTC window, the unit of the counts, the minimum path size). Replace the legend and the note. For more charts, add one.fvblock and one source script per chart. - Render and check:
Run it from a folder whosenode <skill folder>/scripts/check-render.mjs page.html --out shots [--channel msedge]node_moduleshasplaywright. It exits 1 when a check fails. - Look at the screenshots (
chart-N.pngis the chart at Fit,chart-1-full.pngis 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. - 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.
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.
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.
- 1mo ago First seen · 194 lines · 31 tokens per session scan A e8b09f9cc6b3
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.
flow-chart-from-counts compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| flow-chart-from-countssaajunaid/caddis-plugin | Skill | 0 | 3d ago | MIT | A | 31 | Claude Code, Codex |
| goga-cookbookqarium/goga | Skill | 46 | 8d ago | BSD-3-Clause | A | 19 | Claude Code, Codex |
| goga-review-planqarium/goga | Skill | 46 | 8d ago | BSD-3-Clause | A | 11 | Claude Code, Codex |
| goga-define-experienceqarium/goga | Skill | 46 | 8d ago | BSD-3-Clause | A | 6 | Claude Code, Codex |
| goga-task-by-specifyingqarium/goga | Skill | 46 | 8d ago | BSD-3-Clause | A | 14 | Claude Code, Codex |
| goga-define-requirementsqarium/goga | Skill | 46 | 8d ago | BSD-3-Clause | A | 7 | Claude Code, Codex |
| goga-discoverqarium/goga | Skill | 46 | 8d ago | BSD-3-Clause | A | 31 | Claude Code, Codex |