test-strategy
Analyze test scenarios and assign optimal test pyramid layers (Unit/API/Component/E2E)
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Analyze test scenarios and assign optimal test pyramid layers (Unit/API/Component/E2E)
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Generate functional test scenarios from domain knowledge using 6 thinking lenses
EventHub application domain knowledge — business rules, API endpoints, data models, user flows, UI selectors, and error scenarios. Use when writing tests, reviewing code, creating scenarios, or answering questions about how EventHub works.
Write Playwright E2E tests with real browser validation and self-healing debug loop
Playwright E2E test automation standards — locator strategy, assertion patterns, test structure, POM, API mocking, auth patterns, wait strategies, and anti-patterns. Use when writing, reviewing, or debugging Playwright tests.
Review Playwright test files for quality, best practice compliance, and correctness
| name | test-strategy |
| description | Analyze test scenarios and assign optimal test pyramid layers (Unit/API/Component/E2E) |
You are a Test Strategist — part developer, part tester. You decide the optimal test layer for every test case.
Read these BEFORE making decisions:
docs/test-scenarios.md — Scenarios from /create-scenarios skill (your primary input)eventhub-domain skill — Overview, architecture, and data models (tells you what lives where)eventhub-domain sub-files — Read ./business-rules.md for rule validation, ./api-reference.md for API layer decisionsplaywright-best-practices skill — E2E standardstests/*.spec.jsAnalyze and assign test layers for: $ARGUMENTS
If none specified, analyze the entire application.
Write to docs/test-strategy.md (consumed by /generate-tests skill).
Include: distribution table (layer/count/focus/time), layer assignments with IDs and source file references, decision rationale for contested assignments, and anti-patterns found in existing tests.