Official코딩 & 개발github.com

webapp-testing

로컬 웹 애플리케이션을 Playwright로 상호작용하고 테스트하기 위한 툴킷입니다. 프론트엔드 기능 검증, UI 동작 디버깅, 브라우저 스크린샷 캡처, 브라우저 로그 보기를 지원합니다.

webapp-testing란 무엇인가요?

이 스킬은 로컬 웹 애플리케이션을 테스트하기 위해 Playwright를 사용하는 방법을 안내합니다. 개발자는 네이티브 Python Playwright 스크립트를 작성하여 정적 HTML 파일이나 동적 웹앱을 테스트할 수 있습니다. `scripts/with_server.py` 헬퍼 스크립트는 단일 또는 다중 서버의 수명 주기를 관리하여, 서버를 수동으로 시작/종료하지 않고도 안정적인 테스트 환경을 제공합니다. 웹앱이 이미 실행 중인 경우에는 정찰-후-행동(Reconnaissance-Then-Action) 패턴을 사용하여 먼저 DOM을 분석하고 선택자를 식별한 후, 원하는 동작을 수행합니다. 주요 사용 사례로는 UI 기능 검증, 버튼/링크 등 요소 발견, 스크린샷 캡처, 콘솔 로그 수집 등이 있습니다. 이 스킬은 Claude Code, Cursor, Codex 등 다양한 AI 에이전트 플랫폼에서 사용할 수 있으며, 모든 스크립트를 블랙박스로 호출하여 컨텍스트 창을 오염시키지 않도록 설계되었습니다.

지원 대상~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/anthropics/skills/tree/main/skills/webapp-testing

Installed? Explore more 코딩 & 개발 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

웹 애플리케이션 테스트

로컬 웹 애플리케이션을 테스트하려면 네이티브 Python Playwright 스크립트를 작성하세요.

사용 가능한 헬퍼 스크립트:

  • scripts/with_server.py - 서버 수명 주기 관리 (여러 서버 지원)

항상 스크립트를 --help와 함께 먼저 실행하여 사용법을 확인하세요. 스크립트를 실행하기 전에는 소스 코드를 읽지 마세요. 맞춤형 솔루션이 절대적으로 필요한 경우에만 소스를 참조하세요. 이 스크립트들은 매우 커서 컨텍스트 창을 오염시킬 수 있습니다. 컨텍스트 창에 포함시키기보다는 블랙박스 스크립트로 직접 호출하도록 설계되었습니다.

의사 결정 트리: 접근 방식 선택하기

사용자 작업 → 정적 HTML인가?
    ├─ 예 → HTML 파일을 직접 읽어 선택자 식별
    │         ├─ 성공 → 선택자를 사용해 Playwright 스크립트 작성
    │         └─ 실패/불완전 → 동적으로 간주 (아래 참조)
    │
    └─ 아니오 (동적 웹앱) → 서버가 이미 실행 중인가?
        ├─ 아니오 → 실행: python scripts/with_server.py --help
        │        그런 다음 헬퍼를 사용하고 간소화된 Playwright 스크립트 작성
        │
        └─ 예 → 정찰-후-행동:
            1. 탐색 및 networkidle 대기
            2. 스크린샷 캡처 또는 DOM 검사
            3. 렌더링된 상태에서 선택자 식별
            4. 발견된 선택자로 작업 실행

예제: with_server.py 사용하기

서버를 시작하려면 --help를 먼저 실행한 다음 헬퍼를 사용하세요:

단일 서버:

python scripts/with_server.py --server "npm run dev" --port 5173 -- python your_automation.py

여러 서버 (예: 백엔드 + 프론트엔드):

python scripts/with_server.py \
  --server "cd backend && python server.py" --port 3000 \
  --server "cd frontend && npm run dev" --port 5173 \
  -- python your_automation.py

자동화 스크립트를 만들 때는 Playwright 로직만 포함하세요 (서버는 자동으로 관리됩니다):

from playwright.sync_api import sync_playwright

with sync_playwright() as p:
    browser = p.chromium.launch(headless=True) # 항상 chromium을 헤드리스 모드로 실행
    page = browser.new_page()
    page.goto('http://localhost:5173') # 서버가 이미 실행 중이고 준비됨
    page.wait_for_load_state('networkidle') # 중요: JavaScript 실행을 기다림
    # ... 자동화 로직
    browser.close()

정찰-후-행동 패턴

  1. 렌더링된 DOM 검사:

    page.screenshot(path='/tmp/inspect.png', full_page=True)
    content = page.content()
    page.locator('button').all()
    
  2. 검사 결과에서 선택자 식별

  3. 발견된 선택자를 사용하여 작업 실행

일반적인 실수

❌ 하지 말 것 - 동적 앱에서 networkidle을 기다리기 전에 DOM 검사 ✅ 할 것 - 검사 전에 page.wait_for_load_state('networkidle') 대기

모범 사례

  • 번들 스크립트를 블랙박스로 사용 - 작업을 수행할 때 scripts/에 있는 스크립트 중 도움이 될 만한 것이 있는지 고려하세요. 이 스크립트들은 일반적이고 복잡한 워크플로를 안정적으로 처리하며 컨텍스트 창을 오염시키지 않습니다. --help로 사용법을 확인한 후 직접 호출하세요.
  • 동기 스크립트에는 sync_playwright() 사용
  • 작업 완료 후 항상 브라우저 닫기
  • 설명적인 선택자 사용: text=, role=, CSS 선택자 또는 ID
  • 적절한 대기 추가: page.wait_for_selector() 또는 page.wait_for_timeout()

참고 파일

  • examples/ - 일반적인 패턴을 보여주는 예제:
    • element_discovery.py - 페이지에서 버튼, 링크, 입력 요소 발견
    • static_html_automation.py - file:/ URL을 사용한 로컬 HTML 자동화
    • console_logging.py - 자동화 중 콘솔 로그 캡처

Individual skills in this repo

This repo contains 19 individual skills — each has its own dedicated page.

academy-guide

Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials, and use cases from Claude Academy (academy.claude.com), Anthropic's learning hub. Trigger on: "how do I", "how can I", "getting started with", "what can Claude do", "teach me", "learn to use"; questions about artifacts, projects, skills, plugins, connectors, MCP; requests about rolling Claude out to a team, class, or organization; and any ask for training materials, onboarding content, or learning resources. Use it when the user is learning how to use a feature or product — not when they are mid-task and just want the task done. This skill composes with other skills: after consulting product documentation to answer how a Claude feature works, also check here for a matching course or tutorial — a docs-grounded answer and an Academy recommendation belong together. Only recommend on a strong match; never invent Academy content.

algorithmic-art

Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists

anthropics/template-skill

Replace with description of the skill and when Claude should use it.

brand-guidelines

Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.

canvas-design

Create beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists

claude-api

|-

discernment-nudge

After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals, or emails, estimates or projections, analysis or interpretation of data, factual claims they may rely on, or a multi-step argument — invoke this skill BEFORE finalizing your reply and then, if it applies, append 2-3 short follow-up questions, each tied to something specific in what you just produced, that help the user check key facts, probe the reasoning or assumptions, and notice missing context. Do this at most once per conversation. Skip it when the user asked a trivial how-to or simple lookup, wants a purely educational explanation, asked you only to format, convert, or assemble a file from content they provided, is writing code they will run, is doing creative writing or casual chat, or already asked you to double-check, cite, or review — the skill file explains these boundaries and the exact output format.

doc-coauthoring

Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision docs, or similar structured content. This workflow helps users efficiently transfer context, refine content through iteration, and verify the doc works for readers. Trigger when user mentions writing docs, creating proposals, drafting specs, or similar documentation tasks.

docx

Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include: any mention of

frontend-design

Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.

internal-comms

A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill whenever asked to write some sort of internal communications (status reports, leadership updates, 3P updates, company newsletters, FAQs, incident reports, project updates, etc.).

mcp-builder

Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).

pdf

Use this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple PDFs into one, splitting PDFs apart, rotating pages, adding watermarks, creating new PDFs, filling PDF forms, encrypting/decrypting PDFs, extracting images, and OCR on scanned PDFs to make them searchable. If the user mentions a .pdf file or asks to produce one, use this skill.

pptx

Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx or .potx file (even if the extracted content will be used elsewhere, like in an email or summary); editing, modifying, or updating existing presentations; combining or splitting slide files; working with templates (.potx), layouts, speaker notes, or comments. Trigger whenever the user mentions \

skill-creator

Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill

slack-gif-creator

Knowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like

theme-factory

Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with colors/fonts that you can apply to any artifact that has been creating, or can generate a new theme on-the-fly.

web-artifacts-builder

Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use for complex artifacts requiring state management, routing, or shadcn/ui components - not for simple single-file HTML/JSX artifacts.

xlsx

Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .xltx, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path — even casually (like \

관련 스킬