preview
Skill này làm gì
Skill này hướng dẫn cách khởi động trang phát triển Windmill, trang vẽ một flow hoặc app, cho phép bạn đi qua từng bước và tải lại khi bạn lưu. Nó dành cho người xây dựng trong Windmill muốn xem công việc của mình.
Khi nào nên dùng
- ✓Khi bạn yêu cầu xem, mở hoặc xem trước một flow, script hoặc app Windmill.
- ✓Khi agent của bạn vừa viết xong một flow, script hoặc app và bạn muốn kiểm tra bằng mắt.
- ✓Khi bạn cần một liên kết xem trước cục bộ hoạt động trong công cụ chỉ chấp nhận địa chỉ localhost.
Liên kết skill
https://github.com/windmill-labs/windmill/blob/main/system_prompts/auto-generated/skills/preview/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Mở bản xem trước của flow tôi vừa xây để tôi thấy các bước kết nối với nhau thế nào.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Skill yêu cầu agent khởi động máy chủ phát triển Windmill ở chế độ nền và chia sẻ liên kết, dùng liên kết trực tiếp cho tab trình duyệt hoặc cổng proxy cục bộ cho xem trước trong công cụ.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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.
Câu hỏi thường gặp
Trang xem trước hiển thị gì?
Nó vẽ đồ thị flow hoặc trình soạn thảo script, và tự tải lại mỗi khi bạn lưu.
Khi nào tôi cần liên kết localhost?
Khi công cụ hiển thị xem trước chỉ chấp nhận địa chỉ localhost, skill dùng một cổng proxy.
Tôi có thể đi qua từng bước một không?
Có. Trang phát triển cho phép bạn đi qua từng bước của flow.
Chi tiết
Mô tả gốc của tác giả
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
Độ phổ biến
- Sao GitHub
- 18k
- Vị trí xếp hạng
- #10630
- Giấy phép
- —
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
commit
18kGiúp agent của bạn viết commit message git gọn một dòng theo định dạng quy ước, chỉ stage những file đã thay đổi.
pr
18kGiúp agent của bạn mở một pull request nháp trên GitHub với tiêu đề và mô tả rõ ràng, rồi theo dõi các vòng review.
agents
18kGiúp agent của bạn xây dựng một agent AI Windmill có thể tái sử dụng, với model, system prompt, công cụ và bộ nhớ riêng.
cli-commands
18kGiúp agent của bạn chạy công cụ dòng lệnh Windmill để quản lý script, flow, app và lịch sử job.
Skill tương tự
diffs
394kGiúp agent của bạn tạo một diff có thể chia sẻ về các chỉnh sửa, dưới dạng liên kết xem hoặc file ảnh, thay vì một bản tóm tắt viết tay.
coding-agent
394kGiúp agent của bạn giao một việc lập trình lớn cho Codex, Claude Code hoặc OpenCode chạy nền, rồi theo dõi tiến độ của nó.
gh-issues
394kGiúp agent của bạn tìm issue trên GitHub, chọn những issue cần xử lý và mở pull request với bản sửa, kể cả theo dõi nhận xét đánh giá.