본문으로 건너뛰기
Skillpedia
일반 코딩18k · #10630

preview

하는 일

이 스킬은 Windmill 개발 페이지를 시작하는 방법을 설명합니다. 이 페이지는 플로우나 앱을 그려 주고, 단계별로 살펴보게 하며, 저장할 때마다 새로고침됩니다. 작업 결과를 눈으로 보고 싶은 Windmill 빌더를 위한 스킬입니다.

사용하는 경우

  • ✓Windmill 플로우, 스크립트 또는 앱을 보거나 열거나 미리보고 싶다고 요청할 때.
  • ✓에이전트가 플로우, 스크립트 또는 앱을 방금 작성했고 시각적으로 확인하고 싶을 때.
  • ✓localhost 주소만 받는 도구 안에서 작동하는 로컬 미리보기 링크가 필요할 때.

스킬 링크

https://github.com/windmill-labs/windmill/blob/main/system_prompts/auto-generated/skills/preview/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/windmill-labs/windmill/blob/main/system_prompts/auto-generated/skills/preview/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“방금 만든 플로우를 열어서 단계들이 어떻게 연결되는지 볼 수 있게 해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

스킬은 에이전트가 Windmill 개발 서버를 백그라운드에서 시작하고 링크를 공유하게 합니다. 브라우저 탭에는 직접 링크를, 도구 내 미리보기에는 로컬 프록시 포트를 씁니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 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 on http://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 dev only 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 … (or wmill 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 with mcp__Claude_Preview__) can read a launch.json configuration 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 and wmill dev never 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) prints Go to <url> with the full remote URL (workspace, token, path baked in).
  • wmill dev --proxy-port prints Dev proxy listening on http://localhost:<port> — the URL to hand to an embedder is http://localhost:<port>/.
  • wmill app dev --no-open prints 🚀 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 port for the next step.
자주 묻는 질문

미리보기 페이지에는 무엇이 보이나요?

플로우 그래프나 스크립트 편집기를 그려 주며, 저장할 때마다 새로고침됩니다.

localhost 링크는 언제 필요한가요?

미리보기를 보여 주는 도구가 localhost 주소만 받는 경우에 스킬은 프록시 포트를 씁니다.

단계를 하나씩 살펴볼 수 있나요?

네. 개발 페이지에서 플로우의 단계를 하나씩 살펴볼 수 있습니다.

상세 정보

작성자의 원본 설명

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

인기도

GitHub 스타
18k
순위
#10630
라이선스
—
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬