preview
O que ela faz
Esta skill mostra como iniciar a página de desenvolvimento do Windmill, que desenha um fluxo ou app, permite avançar passo a passo e recarrega ao salvar. É para quem constrói no Windmill e quer ver o trabalho.
Quando usar
- ✓Quando você pede para ver, abrir ou visualizar um fluxo, script ou app do Windmill.
- ✓Quando seu agente acabou de escrever um fluxo, script ou app e você quer conferi-lo visualmente.
- ✓Quando você precisa de um link de prévia local que funcione dentro de uma ferramenta que aceita apenas endereços localhost.
Link da skill
https://github.com/windmill-labs/windmill/blob/main/system_prompts/auto-generated/skills/preview/SKILL.mdCopie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.
Como usar
O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.
Mensagem pronta para colar
Para Claude Code, Codex ou Cursor: rode na pasta do projeto e a skill fica instalada.
Baixe o SKILL.md e coloque na pasta de skills do seu agente.
Exemplo do que pedir para a IA
“Abra uma prévia do fluxo que acabei de montar para eu ver como os passos se conectam.”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
A skill faz o agente iniciar o servidor de desenvolvimento do Windmill em segundo plano e compartilhar o link, usando um link direto para uma aba do navegador ou uma porta de proxy local para uma prévia dentro de outra ferramenta.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do 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.
Perguntas frequentes
O que a página de prévia mostra?
Desenha o grafo do fluxo ou o editor do script, e recarrega sempre que você salva.
Quando preciso de um link localhost?
Quando a ferramenta que mostra a prévia aceita apenas endereços localhost, a skill usa uma porta de proxy.
Posso ver os passos um a um?
Sim. A página de desenvolvimento permite avançar pelos passos de um fluxo.
Detalhes
Descrição original do autor
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
Popularidade
- Estrelas no GitHub
- 18 mil
- Posição no ranking
- #10630
- Licença
- —
- Atualizada em
- 02/11/2026
Comentários
- …
Mais skills deste repositório
commit
18 milAjuda seu agente a escrever uma mensagem de commit do git limpa, de uma linha, no formato convencional, incluindo apenas os arquivos alterados.
pr
18 milAjuda seu agente a abrir um pull request em rascunho no GitHub, com título e descrição claros, e depois acompanhar as rodadas de revisão.
agents
18 milAjuda seu agente a criar um agente de IA reutilizável no Windmill, com modelo próprio, prompt de sistema, ferramentas e memória.
cli-commands
18 milAjuda seu agente a usar a ferramenta de linha de comando do Windmill, o wmill, para gerenciar scripts, fluxos, apps e o histórico de jobs.
Skills parecidas
diffs
394 milPermite que seu agente gere um diff real e compartilhável das edições, como link de visualização ou arquivo de imagem, em vez de um resumo escrito à mão.
coding-agent
394 milAjuda seu agente a passar um trabalho grande de programação para o Codex, Claude Code ou OpenCode em segundo plano e acompanhar o andamento.
gh-issues
394 milAjuda seu agente a encontrar issues do GitHub, escolher quais resolver e abrir pull requests com correções, acompanhando os comentários de revisão.