用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/ForceInjection/domain-driven-design-skills --skill playwright-wrapper命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | playwright-wrapper |
| description | Playwright 브라우저 자동화 래퍼. MCP 대신 CLI 직접 호출. E2E 테스트, 스크린샷, 웹 자동화에 사용. |
| version | 1.0.0 |
| triggers | {"keywords":["playwright","브라우저 테스트","E2E 테스트","스크린샷","웹 자동화"],"file_patterns":["**/*.spec.ts","**/e2e/**"],"context":["E2E 테스트 실행","브라우저 자동화"]} |
| capabilities | ["run_e2e_tests","take_screenshot","browser_automation"] |
| model_preference | sonnet |
| auto_trigger | false |
| token_budget | 800 |
Playwright CLI를 직접 호출하여 브라우저 자동화를 수행합니다.
# 전체 테스트
npx playwright test
# 특정 파일
npx playwright test tests/e2e/auth.spec.ts
# UI 모드
npx playwright test --ui
# 헤드리스 모드 (기본)
npx playwright test --headed
# 단일 페이지 스크린샷
npx playwright screenshot https://example.com screenshot.png
# 전체 페이지
npx playwright screenshot --full-page https://example.com full.png
# 브라우저에서 작업 녹화 → 코드 생성
npx playwright codegen https://example.com
npx playwright pdf https://example.com page.pdf
// tests/e2e/example.spec.ts
import { test, expect } from '@playwright/test';
test('로그인 테스트', async ({ page }) => {
await page.goto('https://example.com/login');
await page.fill('#email', 'test@example.com');
await page.fill('#password', 'password');
await page.click('button[type="submit"]');
await expect(page).toHaveURL('/dashboard');
});
// playwright.config.ts
import { defineConfig } from '@playwright/test';
export default defineConfig({
testDir: './tests/e2e',
timeout: 30000,
use: {
headless: true,
screenshot: 'only-on-failure',
},
});
| 커맨드 | 용도 |
|---|---|
/check | 테스트 포함 전체 검사 |
/tdd | TDD 워크플로우 |
대화형 브라우저 제어가 필요한 경우:
claude plugin enable playwright@claude-plugins-official
# 세션 재시작 필요
Conduct deep academic research for philosophy, neuroscience, cognitive science, and theoretical computer science (computability, complexity, AI theory, logic). Use when user asks to: research academic topics, find scholarly papers, conduct literature reviews, analyze citations, synthesize research findings, explore philosophical arguments, investigate consciousness/cognition, study computability/decidability/Turing machines, or analyze academic debates. Triggers on: 'research papers', 'literature review', 'academic sources', 'scholarly articles', 'philosophy of mind', 'computability theory', 'neuroscience studies', 'find papers on', 'what does the research say'.
Create clear action plans with steps, success criteria, and risk awareness. Use before implementing features, making changes, starting projects, or anytime you need a roadmap to success. Triggers on "plan this", "how should we approach", "what's the strategy", "steps to complete", or when facing complex multi-step work.
Add keyboard navigation to a feature using CommandRegistryService. Use when implementing keyboard shortcuts, vim-style navigation, or hotkeys for a page or component.
基于 SOC 职业分类