Design Flow
A UX flow canvas your coding agent draws before it writes code.
Every screen, branch, error and way back, on one infinite canvas. You comment, the agent fixes it, you approve, then it codes.
Join our Discord group! ⬇️ 加入我们的 Discord 群组

Ask an agent to build a sign-up flow and it starts writing components. The branches it forgot (email already taken, code expired, five wrong passwords, offline) turn up in review, after the code exists.
With Design Flow, the agent first writes the flow as .design-flow/<feature>/flow.yaml (the lanes, the screens and the arrows between them) and prototype.html (every screen as one working page in your product's own style). A local server lays it out as a canvas and opens it in your browser. You click any button, field or arrow and leave a comment; the comment arrives in the agent's session; the agent changes the flow, replies, and the canvas updates while you watch. When it is right you press Approve, and only then does the agent start coding.
Install
You need Node.js 20 or newer. The skill ships with everything it runs — the CLI, the server and the canvas — so there is nothing else to install.
Install it with the skills CLI:
npx skills add stvlynn/design-flow
The CLI asks which agents to install it for (Claude Code, Codex, Cursor and others) and whether to install it for this project or for your user. To skip the questions:
npx skills add stvlynn/design-flow --skill design-flow --agent claude-code --yes
Add -g to install it for every project:
npx skills add stvlynn/design-flow --skill design-flow --agent claude-code -g --yes
The skill lands in .claude/skills/design-flow/ (or ~/.claude/skills/design-flow/ with -g).
Optional: the Claude Code plugin
The skill works on its own: it tells the agent to run design-flow watch in the background, so your comments reach it while you work. If you use Claude Code and want comments attached to your next message even when no watcher is running, install the repository as a plugin as well:
claude plugin marketplace add stvlynn/design-flow
claude plugin install design-flow@design-flow
The plugin adds a prompt hook (unread comments and approvals are attached to your next message) and a monitor that streams them into the session. It loads in the next session, or after /reload-plugins. Plugin monitors need a recent Claude Code; on older versions the prompt hook still delivers comments.
Use it
1. Ask for a feature with screens
The skill triggers on its own when you ask for something with screens or steps, or when you ask for a UX flow:
Build sign-up and sign-in for the app. Draw the UX flow first.
In Claude Code you can also call it by name, at the start of your message:
/design-flow sign-up and sign-in, including every error path
Installed as a plugin, the same skill is also available as /design-flow:design-flow.
The agent picks a feature name, runs design-flow open sign-up, and writes .design-flow/sign-up/flow.yaml. Your browser opens the canvas at http://127.0.0.1:27420/….
2. Read the canvas
- Lanes group the flow (sign up, sign in, errors). An error lane marked "reachable from any step" holds interruptions that can happen anywhere.
- Frames are the agent's HTML for each screen, rendered at the device's viewport in a sandbox with no network. Each has an id (
S02) and a title.
- Arrows are labelled with the action or trigger. Red arrows are errors; dashed arrows go back.
- Badges mark screens that return home, animate or count down; the legend and notes sit above and below.
Scroll to pan, ⌘-scroll to zoom. Drag a frame to move it; Design Flow remembers it, and Re-layout puts everything back.
3. Comment on anything
Press C and click: a button inside a screen, a screen's title, an arrow, a lane or empty canvas.