cuawright-web
하는 일
이 스킬은 여러 단계로 된 웹 작업을 로컬 Playwright 브라우저에서 자동화하고, 재사용 가능한 스크립트, 스크린샷, 로그를 저장합니다. 반복 가능한 웹 작업 흐름과 작동했다는 시각적 증거를 원하는 사람을 위한 것입니다.
사용하는 경우
- ✓검색이나 양식 작성 같은 웹 작업을 자동화하고 싶을 때.
- ✓반복되는 브라우저 작업을 위해 재사용 가능한 스크립트가 필요할 때.
- ✓작업이 완료되었음을 보여 주는 스크린샷과 로그를 원할 때.
스킬 링크
https://github.com/microsoft/CUAWright/blob/main/skills/cuawright-web/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“세무 사이트에서 제 신고 상태를 검색하도록 자동화하고, 각 단계의 스크린샷을 저장해 주세요.”
매주 새 스킬 5개. 읽는 데 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 키가 필요한가요?
설명에 따르면 이 스킬에는 모델 API 키가 필요하지 않습니다.
마지막에 무엇을 받나요?
실행 폴더에 재사용 가능한 스크립트, 작업 로그, 스크린샷이 담깁니다.
데스크톱 앱용인가요?
아니요. 설명에 따르면 브라우저용이며, 데스크톱 작업은 별도의 런타임을 사용합니다.
상세 정보
작성자의 원본 설명
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
- 업데이트
- 2026. 10. 27.
댓글
- …