visualize-flow

Installation
SKILL.md

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:

Related skills
Installs
1
Repository
waniwani-ai/sdk
GitHub Stars
2
First Seen
10 days ago