sdk: Skill for Claude Code

.claude/skills/visualize-flow/SKILL.md

visualize-flow is a skill for Claude Code from WaniWani-AI/sdk. It costs 36 tokens per session (983 once invoked), scanned A, original, MIT.

A tool that turns a Waniwani flow definition into a Mermaid flowchart. Mermaid is a text format for diagrams that can show nodes, connections, and branching logic.

In plain words
What is it for?
Use it to diagram a selected flow file, showing its steps, direct connections, conditional branches, starting point, and ending point.
Why use it?
It makes a flow’s structure easier to inspect and document than reading chained builder calls in a source file. It also distinguishes widgets, pauses for user input, and silent actions.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

This is WaniWani-AI/sdk's own configuration. It tells Claude Code how to work on sdk itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything sdk configures →

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/WaniWani-AI/sdk/main/.claude/skills/visualize-flow/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/WaniWani-AI/sdk

Made for: Claude Code.

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 visualize-flow

README.md
[![agentmods](https://agentmods.dev/badge/skills/waniwani-ai/sdk/visualize-flow.svg)](https://agentmods.dev/skills/waniwani-ai/sdk/visualize-flow)
Your own site
<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>
Per session 36 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 983 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.00036 $0.00983
Opus 5 $0.00018 $0.00491
Sonnet 5 $0.00007 $0.00197
Haiku 4.5 $0.00004 $0.00098

Measured 7d ago against content hash 15fcf8a8db8a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

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.

.claude/skills/visualize-flow/SKILL.md · 95 lines

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 form showWidget(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

Read the full file on GitHub · 95 lines

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. 7d ago First seen · 95 lines · 36 tokens per session scan A 15fcf8a8db8a

Subscribe to this mod's changes

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.

Related

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…

liyana31811/Codexless · 70 tokens

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.

XiaoDuoYa/codex-with-chatgpt · 90 tokens

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".

pomerium/mcp-app-typescript-template · 56 tokens

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".

pomerium/mcp-app-typescript-template · 80 tokens

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…

SamG-Coder/ThreeBrowserStudio · 122 tokens

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.

serbyte-development/shellby-mcp · 47 tokens