preview
Ce qu’il fait
Cette skill montre comment lancer la page de développement Windmill, qui affiche un flux ou une application, permet de parcourir ses étapes et se recharge à chaque enregistrement. Elle s'adresse aux personnes qui construisent dans Windmill et veulent voir leur travail.
Quand l’utiliser
- ✓Quand vous demandez à voir, ouvrir ou prévisualiser un flux, un script ou une application Windmill.
- ✓Lorsque votre agent vient d'écrire un flux, un script ou une application et que vous voulez le vérifier visuellement.
- ✓Lorsque vous avez besoin d'un lien d'aperçu local qui fonctionne dans un outil n'acceptant que les adresses localhost.
Lien du skill
https://github.com/windmill-labs/windmill/blob/main/system_prompts/auto-generated/skills/preview/SKILL.mdCopiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.
Comment l’utiliser
Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.
Message prêt à coller
Pour Claude Code, Codex ou Cursor : lancez-la dans le dossier du projet et le skill est installé.
Téléchargez le SKILL.md et placez-le dans le dossier de skills de votre agent.
Exemple de demande à votre IA
“Ouvre un aperçu du flux que je viens de construire, pour que je voie comment les étapes s'enchaînent.”
5 nouveaux skills par semaine. 1 minute de lecture.
Comment ça marche
La skill fait lancer par votre agent le serveur de développement Windmill en arrière-plan et partager le lien : un lien direct pour un onglet de navigateur, ou un port de proxy local pour un aperçu dans un outil.
Contenu technique (SKILL.md original)
Texte original de l’auteur, en anglais, directement depuis 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.
Questions fréquentes
Qu'affiche la page d'aperçu ?
Elle dessine le graphe du flux ou l'éditeur du script, et se recharge à chaque enregistrement.
Quand ai-je besoin d'un lien localhost ?
Lorsque l'outil qui affiche l'aperçu n'accepte que les adresses localhost, la skill utilise un port de proxy.
Puis-je parcourir les étapes une à une ?
Oui. La page de développement permet de parcourir les étapes d'un flux.
Détails
Description originale de l’auteur
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
Popularité
- Étoiles GitHub
- 18k
- Position au classement
- #10630
- Licence
- —
- Mis à jour
- 02/11/2026
Commentaires
- …
Autres skills de ce dépôt
commit
18kAide votre agent à rédiger un message de commit git propre sur une seule ligne, au format conventionnel, en n'ajoutant que les fichiers modifiés.
pr
18kAide votre agent à ouvrir une demande de tirage (pull request) en brouillon sur GitHub, avec un titre et une description clairs, puis à suivre les tours de relecture.
agents
18kAide votre agent à construire un agent IA Windmill réutilisable, avec son propre modèle, son prompt système, ses outils et sa mémoire.
cli-commands
18kAide votre agent à utiliser l'outil en ligne de commande Windmill pour gérer les scripts, les flux, les applications et l'historique des tâches.
Skills similaires
diffs
394kPermet à votre agent de produire un diff réel et partageable de vos modifications, sous forme de lien ou d'image, plutôt qu'un résumé écrit à la main.
coding-agent
394kAide votre agent à confier une tâche de programmation plus importante à Codex, Claude Code ou OpenCode comme travailleur en arrière-plan, puis à suivre sa progression.
gh-issues
394kAide votre agent à trouver des tickets GitHub, choisir ceux à traiter et ouvrir des pull requests avec des correctifs, y compris le suivi des commentaires de relecture.