What it is
design-flow changes the order of work for features with screens. Instead of writing components straight away, the agent first writes the whole flow as a YAML file, with lanes, screens and labelled arrows, plus one prototype page that holds every screen in your product's own style. A local server turns that into an infinite canvas and opens it in your browser. You review it the way you would review a design: press C and click a button, a field, an arrow or a lane to leave a comment. The comment reaches the agent session with its anchor, the agent edits the flow and replies, and the canvas redraws. When it is right you press Approve; the approval is tied to the exact version of flow.yaml you saw, and the agent does not code until the status says approved. Play runs the screens as a clickable demo, and Share exports one offline HTML file or a PNG of the canvas. We read the README and did not run the tool.
Who it's for
- Developers and designers who want to agree on screens and error paths before the agent writes components
- Anyone reviewing agent-built app flows who prefers pinning comments on a canvas to writing them in chat
Requirements
Requirements
- Node.js 20 or newer
- A coding agent that supports skills (Claude Code, Codex, Cursor and others)
- Optional: GitHub CLI signed in with gh auth login for secret-gist share links
Setup
Step 1
bashnpx skills add stvlynn/design-flowStep 2
bashTo skip the questions: npx skills add stvlynn/design-flow --skill design-flow --agent claude-code --yesStep 3
bashOptional Claude Code plugin: claude plugin marketplace add stvlynn/design-flow, then claude plugin install design-flow@design-flow
مهارة تجعل وكيل البرمجة يرسم لوحة مسار تجربة المستخدم بكل الشاشات والتفرعات والأخطاء قبل كتابة الكود، وتسمح لك بالتعليق على أي عنصر، ولا يبدأ الكتابة إلا بعد ضغطك على اعتماد.
Examples
Ask for a feature with its flow
PromptBuild sign-up and sign-in for the app. Draw the UX flow first.Expected output: The skill triggers on its own when you ask for something with screens; the agent writes flow.yaml and opens the canvas.
Call it by name
Prompt/design-flow sign-up and sign-in, including every error pathExpected output: Claude Code form, at the start of your message.
What the agent receives from a comment
text[design-flow] sign-up · new comment #4a95ec3d on Screen S02 Enter code · p "Resend code in 0:24" ([data-id="resend"]): What happens after 5 wrong codes? I only see the expiry path.What it does: The README's example of a canvas comment as it reaches the agent, anchored to a specific element.
Run the CLI by hand
shnode .claude/skills/design-flow/scripts/design-flow.mjs <command>What it does: Commands include open, check, comments, reply, resolve, status, watch, list and stop.
Pros & cons
Pros
- Pro:Forces the forgotten branches (email taken, code expired, offline) to appear before code exists
- Pro:Comments are anchored to a button, field, arrow or lane and reach the agent directly
- Pro:Approval records the exact flow version and is withdrawn if the file changes
- Pro:Exports an offline HTML demo or a PNG of the canvas, and screens run in sandboxed iframes with network blocked
Cons
- Con:Adds a planning step before any code, which is slower for tiny changes
- Con:Share links go through a secret GitHub gist and need the GitHub CLI
- Con:New project (created 2026-11-19) with 15 stars