preview
What it does
This skill shows how to start the Windmill dev page, which draws a flow or app, lets you step through it, and reloads when you save. It is for people building in Windmill who want to see their work.
When to use it
- βWhen you ask to see, open or preview a Windmill flow, script or app.
- βWhen your agent has just written a flow, script or app and you want to check it visually.
- βWhen you need a local preview link that works inside a tool that only accepts localhost addresses.
Skill link
https://github.com/windmill-labs/windmill/blob/main/system_prompts/auto-generated/skills/preview/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βOpen a preview of the flow I just built so I can see how the steps connect.β
5 new skills a week. 1 minute to read.
How it works
The skill has your agent start the Windmill dev server in the background and share the link, using a direct link for a browser tab or a local proxy port for an in-tool preview.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Windmill Preview Workflow
Use this skill any time the user wants to see, open, navigate to, visualize, or preview a flow, script, or app β and any time you've just finished writing one and want to offer visual verification.
The Windmill dev page renders the flow graph / script editor, lets the user step through steps, and live-reloads on every save. It runs locally via wmill dev and is reached on a localhost port.
Two independent decisions
1. Mode: proxy or direct?
wmill dev runs in two modes; pick by asking what kind of URL whatever will display the preview needs.
- Proxy (
--proxy-port <port>) β exposes the dev page onhttp://localhost:<port>/. Use it when the embedder you'll hand the URL to only accepts localhost URLs (most in-IDE / in-chat preview embedders do, because they sandbox cross-origin loads). - Direct (default) β the user's browser loads the dev page from the remote workspace's HTTPS URL; the local
wmill devonly runs the WebSocket back-channel for live reload. Use it when the URL will be opened in a regular browser tab.
Default to direct unless you have a specific embedder that needs localhost.
2. Who starts the server?
- You start it in the background. Spawn
wmill dev β¦(orwmill app dev β¦) yourself, capture the URL it prints, do whatever's next (open a tab, hand the URL to an embedder). - The runtime starts it from
.claude/launch.json. Some runtimes (currently the Claude Desktop / Claude Code MCP preview integration β tools prefixed withmcp__Claude_Preview__) can read alaunch.jsonconfiguration and launch the dev server on demand when you invoke their preview tool. Only take this path if you actually have such a tool β otherwise nothing reads the file andwmill devnever starts.
The two decisions compose. The common cases:
| Embedder | Needs localhost? | launch.json runtime? | What to do |
|---|---|---|---|
| Regular browser tab | No | n/a | Direct mode, you start it, give URL to user |
| IDE / chat preview pane that takes any URL | No | No | Direct mode, you start it, point the embedder at the printed URL |
| IDE / chat preview pane that only accepts localhost | Yes | No | Proxy mode, you start it, point the embedder at http://localhost:<port>/ |
| Claude Desktop / Code MCP preview | Yes | Yes | Proxy mode, write a launch.json entry, invoke the MCP tool |
Never start the proxy "just in case" β it adds the localhost hop for no benefit when no embedder needs it.
Starting the server yourself
Use this when no launch.json-aware runtime is available, regardless of mode.
For flows / scripts:
# Direct mode β gives you the remote dev-page URL
wmill dev --path <wmill_path> --no-open
# Proxy mode β gives you a localhost URL that 302s to the remote dev page
wmill dev --proxy-port 4000 --path <wmill_path> --no-open
For apps:
cd <app_path>__raw_app && wmill app dev --no-open --port 4000
Each command prints the URL on stdout. Line shapes differ:
wmill dev --no-open(direct) printsGo to <url>with the full remote URL (workspace, token, path baked in).wmill dev --proxy-portprintsDev proxy listening on http://localhost:<port>β the URL to hand to an embedder ishttp://localhost:<port>/.wmill app dev --no-openprintsπ Dev server running at <url>β the local app server.
Capture the URL with a loose match (the first https?://β¦ token after startup) and either hand it to your embedder or relay it to the user: "Preview is running β open <url> in your browser." Don't construct the URL yourself; you don't have the workspace ID or auth token.
These commands are long-running β start them in the background, don't block waiting.
Letting launch.json start the server (Claude Desktop / Code MCP only)
Take this path when and only when an mcp__Claude_Preview__* MCP tool is exposed in your tool list. Skip it otherwise β without an MCP tool reading the file, wmill dev never starts.
Each flow / script / app gets its own named entry in the user's .claude/launch.json so multiple previews coexist without colliding β each entry pins a different port + path. Never reuse a generic "windmill" entry for different targets.
Step 1 β Reuse or add a per-target entry in .claude/launch.json
Convention: name the entry windmill: <wmill_path> (e.g. windmill: f/test/my_flow).
- Entry already exists β reuse it; note its
portfor the next step.
FAQ
What does the preview page show?
It draws the flow graph or the script editor, and it reloads whenever you save.
When do I need a localhost link?
When the tool that shows the preview only accepts localhost addresses, the skill uses a proxy port.
Can I go through the steps one by one?
Yes. The dev page lets you step through the steps of a flow.
Details
Original description by the author
MUST use when opening the Windmill dev page / visual preview of a flow, script, or app. Triggers on words like preview, open, navigate to, visualize, see the flow/app/script, and after writing a flow/script/app for visual verification.
repo: windmill-labs/windmill
Popularity
- GitHub stars
- 18k
- Ranking position
- #10630
- License
- β
- Updated
- 11/2/2026
Comments
- β¦
More skills from this repository
commit
18kHelps your agent write a clean one-line git commit message in conventional format, staging only the files that changed.
pr
18kHelps your agent open a draft pull request on GitHub with a clear title and description, then follow the review rounds.
agents
18kHelps your agent build a reusable Windmill AI agent with its own model, system prompt, tools and memory.
cli-commands
18kHelps your agent run the Windmill command line tool to manage scripts, flows, apps and job history.
Similar skills
diffs
394kLets your agent produce a real, shareable diff of edits as a viewer link or image file, instead of a hand-written summary.
coding-agent
394kHelps your agent hand a larger coding job to Codex, Claude Code, or OpenCode as a background worker, then check on its progress.
gh-issues
394kHelps your agent find GitHub issues, pick the ones to work on, and open pull requests with fixes, including follow-up on review comments.