cuawright-web
यह क्या करती है
यह स्किल स्थानीय Playwright ब्राउज़र में कई चरणों वाला वेब कार्य स्वचालित करती है और स्क्रीनशॉट व लॉग के साथ दोबारा इस्तेमाल होने वाली स्क्रिप्ट सहेजती है। यह उन लोगों के लिए है जिन्हें दोहराने योग्य वेब प्रक्रिया और उसके काम करने का दृश्य प्रमाण चाहिए।
कब इस्तेमाल करें
- ✓जब आप खोज या फ़ॉर्म भरने जैसे वेब कार्य को स्वचालित करना चाहते हैं।
- ✓जब आपको दोहराए जाने वाले ब्राउज़र कार्य के लिए दोबारा इस्तेमाल होने वाली स्क्रिप्ट चाहिए।
- ✓जब आपको स्क्रीनशॉट और लॉग चाहिए जो दिखाएँ कि कार्य पूरा हुआ।
Skill का लिंक
https://github.com/microsoft/CUAWright/blob/main/skills/cuawright-web/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“सरकारी टैक्स साइट पर मेरे फ़ॉर्म की स्थिति खोजने का काम स्वचालित कीजिए और हर चरण के स्क्रीनशॉट सहेजिए।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
स्किल स्थानीय Playwright ब्राउज़र को एक-एक कमांड करके चलाती है, स्क्रीनशॉट और क्रियाओं का लॉग एक रन फ़ोल्डर में सहेजती है, और दोबारा इस्तेमाल होने वाली स्क्रिप्ट लिखती है। सफलता की पुष्टि के लिए एजेंट खुद स्क्रीनशॉट देखता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
CUAWright browser skill
This skill drives the Webwright browser subsystem in cuawright.webwright.
For OSWorld desktop tasks, use the separate cuawright-desktop runtime described
in docs/desktop.md at the repository root.
You are the Webwright agent. Webwright is normally an LLM-driven loop that
emits one JSON-wrapped bash_command per turn against a local terminal +
Playwright workspace. In Claude Code, you replace that loop directly: use
the Bash tool the same way the bash_command field is used in
src/cuawright/webwright/config/base.yaml. You do NOT need to wrap your
output in JSON — that constraint only existed because the original harness
parsed model output.
This skill keeps the workspace contract (plan.md, final_runs/run_<id>/
folders, instrumented final_script.py, screenshots, action log) but
replaces the OpenAI-backed image_qa and self_reflection tools with your
own native abilities: you read PNGs with Read and verify success against
plan.md yourself. No OPENAI_API_KEY or other model API keys required.
Modes
- Default (one-shot).
final_script.pysolves the task for the literal values the user provided. Triggered by a plain prompt or by/cuawright:run <task>. - CLI tool (parameterized).
final_script.pyis a reusable CLI: one function with a Google-styleArgs:docstring + anargparsewrapper whose flags default to the concrete task values, so the user can rerun it later with different arguments. Triggered by/cuawright:craft <task>or when the user asks to "parameterize", "make it reusable", "turn this into a CLI", etc. Seereference/cli_tool_mode.md.
Prerequisites (one-time)
From the CUAWright repo root:
pip install -e .
playwright install firefox
No API keys needed for this skill.
Workspace Contract
Mirror what base.yaml's instance_template requires:
- Pick a
WORKSPACE_DIR(e.g.outputs/<task_id>/) and work only there. Keep all generated code, screenshots, logs, and notes inside it. - The required final artifact path is
final_script.py. - Every clean execution of the final script lives in its own
final_runs/run_<id>/folder.<id>is an integer higher than any existingrun_*folder. - Inside each run folder:
final_runs/run_<id>/final_script.pyfinal_runs/run_<id>/screenshots/final_execution_<step_number>_<action>.pngfinal_runs/run_<id>/final_script_log.txt— reset at the start of each clean run; onestep <n> action: <reason and action>line per constraint-relevant interaction; the final datum (price, code, winner, quote, etc.) printed at the end.
- Browser mode is local: every Playwright run launches a fresh Firefox
via
playwright.firefox.launch(headless=True). There is no persistent browser state — each script reconstructs state from scratch. (Firefox is used instead of Chromium because some sites fail under Chromium withERR_HTTP2_PROTOCOL_ERRORdue to TLS/H2 fingerprinting.) - Always use
viewport={"width": 1280, "height": 1800}. Never callpage.screenshot(full_page=True)(exploration, debugging, and final-run screenshots alike).
Workflow
Plan. Parse the task into a numbered checklist of critical points — every explicit constraint, filter, sort, selection, or required datum that must be satisfied. Write it to
WORKSPACE_DIR/plan.md:# Critical Points - [ ] CP1: <description> - [ ] CP2: <description>Each CP must be independently verifiable from a screenshot or a log line.
Explore. Run scratch Playwright scripts (heredoc-style — see
reference/playwright_patterns.md) to discover stable selectors and confirm filter controls exist. UseReadon saved PNGs to inspect UI state. Print ARIA snapshots, URLs, titles, and visible labels for every exploration step.Author
final_script.pyin a freshfinal_runs/run_<id>/. Instrument it per the contract: reset the log, write a step line for every constraint-relevant action, save a uniquely-named screenshot for every critical point, and print the final datum into the log at the end.Execute the final script once. Capture stdout/stderr.
Self-verify (this replaces
cuawright.webwright.tools.self_reflection). Walkplan.md:- For each CP, identify a screenshot path AND/OR a log line that proves
it.
Readeach cited PNG and confirm the evidence is unambiguous
- For each CP, identify a screenshot path AND/OR a log line that proves
it.
अक्सर पूछे जाने वाले सवाल
क्या इसे API key चाहिए?
विवरण के अनुसार इस स्किल के लिए किसी मॉडल की API key की ज़रूरत नहीं है।
अंत में मुझे क्या मिलता है?
आपको एक रन फ़ोल्डर में दोबारा इस्तेमाल होने वाली स्क्रिप्ट, क्रियाओं का लॉग और स्क्रीनशॉट मिलते हैं।
क्या यह डेस्कटॉप ऐप्स के लिए है?
नहीं, विवरण के अनुसार यह ब्राउज़र के लिए है, और डेस्कटॉप कार्य के लिए अलग रनटाइम है।
जानकारी
लेखक का मूल विवरण
Solve a user-specified web task code-as-action style by driving a local Playwright browser through one bash command at a time, saving screenshots and an action log into `final_runs/run_<id>/`, and visually verifying the result. Use when the user asks to automate a web task (search, filter, form-fill, multi-step flow, data extraction) and wants reusable scripts plus screenshot evidence rather than a one-shot answer.
repo: microsoft/CUAWright
लोकप्रियता
- GitHub स्टार
- 6.1k
- रैंकिंग में स्थान
- #14427
- लाइसेंस
- MIT
- अपडेट की गई
- 27/10/2026
कमेंट
- …
मिलती-जुलती skills
diffs
394kयह आपके एजेंट को बदलावों का असली diff बनाने देती है, जिसे व्यूअर लिंक या इमेज फ़ाइल के रूप में साझा किया जा सकता है, हाथ से लिखे सारांश के बजाय।
coding-agent
394kयह आपके एजेंट को बड़े कोडिंग काम Codex, Claude Code या OpenCode को बैकग्राउंड वर्कर के रूप में सौंपने, फिर उसकी प्रगति जांचने में मदद करती है।
gh-issues
394kयह आपके एजेंट को GitHub issues खोजने, उनमें से काम करने लायक चुनने, और सुधार के साथ pull requests खोलने में मदद करती है, जिसमें समीक्षा टिप्पणियों का फ़ॉलो-अप भी शामिल है।