मुख्य सामग्री पर जाएँ
Skillpedia
सामान्य कोडिंग18k · #10630

preview

यह क्या करती है

यह स्किल दिखाती है कि Windmill dev पेज कैसे शुरू करें, जो flow या app को बनाकर दिखाता है, आपको उसके चरणों से गुज़रने देता है, और सेव करने पर रीलोड होता है। यह उन लोगों के लिए है जो Windmill में बनाते हैं और अपना काम देखना चाहते हैं।

कब इस्तेमाल करें

  • ✓जब आप Windmill flow, script या app देखने, खोलने या प्रीव्यू करने को कहते हैं।
  • ✓जब आपके एजेंट ने अभी flow, script या app लिखा हो और आप उसे दृश्य रूप से जाँचना चाहते हों।
  • ✓जब आपको localhost पते वाले टूल में काम करने वाला लोकल प्रीव्यू लिंक चाहिए।

Skill का लिंक

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

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/windmill-labs/windmill/blob/main/system_prompts/auto-generated/skills/preview/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“मेरी अभी बनी flow का प्रीव्यू खोलिए, ताकि मैं देख सकूँ कि चरण कैसे जुड़ते हैं।”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

स्किल एजेंट को Windmill dev सर्वर बैकग्राउंड में चलाने और लिंक साझा करने को कहती है: ब्राउज़र टैब के लिए सीधा लिंक, या टूल के भीतर प्रीव्यू के लिए लोकल proxy port।

तकनीकी सामग्री (मूल 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.
अक्सर पूछे जाने वाले सवाल

प्रीव्यू पेज क्या दिखाता है?

flow ग्राफ़ या script एडिटर को बनाता है, और सेव करने पर रीलोड होता है।

localhost लिंक कब चाहिए?

जब प्रीव्यू दिखाने वाला टूल केवल localhost पते स्वीकार करता है, तब स्किल proxy port इस्तेमाल करती है।

क्या मैं चरणों को एक-एक करके देख सकता हूँ?

हाँ। dev पेज आपको flow के चरणों से एक-एक करके गुज़रने देता है।

जानकारी

लेखक का मूल विवरण

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
लाइसेंस
—
अपडेट की गई
2/11/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

commit

18k

यह आपके एजेंट को conventional फ़ॉर्मेट में एक साफ़ एक-पंक्ति git commit संदेश लिखने में मदद करती है, केवल बदली हुई फ़ाइलें stage करते हुए।

कोडिंगसामान्य कोडिंग

pr

18k

यह आपके एजेंट को GitHub पर साफ़ शीर्षक और विवरण के साथ ड्राफ़्ट pull request खोलने में मदद करती है, और फिर समीक्षा दौरों का पालन करती है।

कोडिंगसामान्य कोडिंग

agents

18k

यह आपके एजेंट को Windmill में एक दोबारा इस्तेमाल होने वाला AI एजेंट बनाने में मदद करती है, जिसका अपना मॉडल, सिस्टम प्रॉम्प्ट, टूल्स और मेमोरी हो।

AI और एजेंटएजेंट

cli-commands

18k

यह आपके एजेंट को Windmill कमांड-लाइन टूल चलाने में मदद करती है, ताकि scripts, flows, apps और job इतिहास संभाला जा सके।

कोडिंगडिप्लॉय और क्लाउड (DevOps)

मिलती-जुलती skills