preview
Fungsinya
Skill ini menunjukkan cara memulai halaman dev Windmill, yang menggambar flow atau aplikasi, memungkinkan Anda menelusuri langkahnya, dan memuat ulang saat Anda menyimpan. Skill ini untuk pengguna Windmill yang ingin melihat hasil kerjanya.
Kapan dipakai
- โSaat Anda meminta untuk melihat, membuka, atau pratinjau flow, skrip, atau aplikasi Windmill.
- โSaat agent baru saja menulis flow, skrip, atau aplikasi dan Anda ingin memeriksanya secara visual.
- โSaat Anda perlu tautan pratinjau lokal yang bekerja di alat yang hanya menerima alamat localhost.
Link skill
https://github.com/windmill-labs/windmill/blob/main/system_prompts/auto-generated/skills/preview/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
โBuka pratinjau flow yang baru saya buat supaya saya bisa melihat bagaimana langkah-langkahnya terhubung.โ
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Skill meminta agent menjalankan server dev Windmill di latar belakang dan membagikan tautannya, memakai tautan langsung untuk tab browser atau port proxy lokal untuk pratinjau di dalam alat.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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.
Pertanyaan umum
Apa yang ditampilkan halaman pratinjau?
Grafik flow atau editor skrip, dan halamannya dimuat ulang setiap Anda menyimpan.
Kapan saya perlu tautan localhost?
Saat alat yang menampilkan pratinjau hanya menerima alamat localhost, skill memakai port proxy.
Bisakah saya menelusuri langkah satu per satu?
Bisa. Halaman dev memungkinkan Anda menelusuri langkah-langkah flow.
Detail
Deskripsi asli dari pembuat
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
Popularitas
- Bintang GitHub
- 18k
- Peringkat
- #10630
- Lisensi
- โ
- Diperbarui
- 2/11/2026
Komentar
- โฆ
Skill lain dari repositori ini
commit
18kMembantu agent Anda menulis pesan commit git satu baris yang rapi dengan format konvensional, dan hanya menambahkan file yang berubah.
pr
18kMembantu agent Anda membuka pull request draf di GitHub dengan judul dan deskripsi yang jelas, lalu mengikuti putaran tinjauan.
agents
18kMembantu agent Anda membangun agent AI Windmill yang bisa dipakai ulang, dengan model, prompt sistem, alat, dan memorinya sendiri.
cli-commands
18kMembantu agent Anda menjalankan alat baris perintah Windmill wmill untuk mengelola skrip, flow, aplikasi, dan riwayat job.
Skill serupa
diffs
394kMemungkinkan agent Anda menghasilkan diff perubahan yang nyata dan dapat dibagikan sebagai tautan viewer atau file gambar, bukan ringkasan yang ditulis manual.
coding-agent
394kMembantu agent Anda menyerahkan pekerjaan pemrograman besar ke Codex, Claude Code, atau OpenCode di latar belakang, lalu memeriksa kemajuannya.
gh-issues
394kMembantu agent Anda menemukan issue GitHub, memilih yang dikerjakan, dan membuka pull request perbaikan, termasuk tindak lanjut komentar tinjauan.