Borrowing it
Nothing to install: this file belongs to WaniWani-AI/sdk. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/WaniWani-AI/sdk/main/.claude/skills/visualize-flow/SKILL.mdgit clone --depth 1 https://github.com/WaniWani-AI/sdkWrote 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/waniwani-ai/sdk/visualize-flow)<a href="https://agentmods.dev/skills/waniwani-ai/sdk/visualize-flow"><img src="https://agentmods.dev/badge/skills/waniwani-ai/sdk/visualize-flow.svg" alt="Measured on agentmods" 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.00036 | $0.00983 |
| Opus 5 | $0.00018 | $0.00491 |
| Sonnet 5 | $0.00007 | $0.00197 |
| Haiku 4.5 | $0.00004 | $0.00098 |
Grade A, and why
visualize-flow 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 7d 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 — 95 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Visualize Flow
Generate a Mermaid flowchart diagram from a Waniwani SDK flow file.
Arguments
The user may provide a file path as an argument. If not provided, search for flow files using **/flows/**/*.ts patterns and ask the user which one to visualize.
Steps
1. Find and read the flow file
Read the entire flow source file. The flow is defined using the createFlow builder pattern with chained .addNode(), .addEdge(), .addConditionalEdge(), and .compile() calls.
2. Extract the graph structure
Parse the source code to identify:
Nodes — Each .addNode("name", ...) call. Classify by what the handler returns:
- Widget node — handler returns
showWidget({ tool, data })(or the legacy positional formshowWidget(tool, { data })). Look for{ tool: ... }(object form) or the second positional arg (legacy form). - Interrupt node — handler returns
interrupt({ question, field }). - Action node — handler returns a plain object like
{}or{ key: value }. These run silently and auto-advance.
Direct edges — Each .addEdge(from, to) call. START and END are sentinel constants ("__start__" and "__end__").
Conditional edges — Each .addConditionalEdge("from", ["target_a", "target_b"], (state) => { ... }) call. The second argument lists the branch targets verbatim — use it directly. Read the condition body only if you also want to label which state values lead to which target (e.g., state.country === "FR").
3. Generate Mermaid diagram
Use graph TD (top-down) layout. Apply these shape conventions:
| Node Type | Mermaid Shape | Example |
|---|---|---|
| START | Double circle | START((START)) |
| END | Double circle | END_NODE((END)) |
| Widget | Stadium/pill | name(["name (widget)<br/>field: fieldName"]) |
| Interrupt | Hexagon | name{{"name (interrupt)<br/>field: fieldName"}} |
| Action/Router | Rectangle | name["name (action)"] |
Edge conventions:
- Direct edge:
A --> B - Conditional edge:
A -->|"label"| B— use the condition as label (e.g.,country = FR,status = unregistered,default) - Dead-end edges to END: style with a different arrow if desired
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.
- 7d ago First seen · 95 lines · 36 tokens per session scan A 15fcf8a8db8a
visualize-flow is a skill published in the GitHub repository WaniWani-AI/sdk (17 stars, last pushed 2d ago), licensed MIT. It adds 36 tokens to every session and 983 once invoked, about $0.0002 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-30.
Other skills, from other repositories
codexless-browser-repair
Diagnose and temporarily repair Codexless Browser compatibility after a Codex, Chrome Skill, or Browser runtime update when Codexless Browser stopped working. Use for current-version Codexless Browser compatibility drift, not ordinary website bugs, general Browser operation, Codexless install/update work, or long-term…
codex-with-chatgpt
A connection that lets ChatGPT help plan and review coding work while Codex edits files, runs commands, tests code, and handles execution.
add-widget
Add a new widget (React UI + MCP tool) to this template. Use when asked to "add a widget", "add a new tool with UI", "create a new widget", "scaffold a widget", or "build a new MCP App feature".
create-mcp-tool
Add a plain (text-only) or UI-enhanced MCP tool to this template's server. Use when asked to "add a tool", "add an MCP tool", "create a new tool", "add a server-side tool without a widget", "add a tool with a UI", "add a tool with a widget", or "create a tool and a widget".
threebrowser-studio-mcp
Author, inspect, render, validate, animate, and save Three.js WebGPU projects in the native ThreeBrowser Studio through its real threestudio MCP tools. Use whenever Codex is asked to build or edit a ThreeBrowser Studio scene, material, Blender-style shader or texture graph, animation, lighting setup, camera, or…
install-shellby-mcp
Install and verify Shellby MCP on a Mac using terminal access only. Use when a user asks an agent to install, set up, configure, or finish a new Shellby MCP installation from this repository.