一键导入
test
Generate test plan, test cases, test data fixtures, and Playwright E2E tests mapped to acceptance criteria.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Generate test plan, test cases, test data fixtures, and Playwright E2E tests mapped to acceptance criteria.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Switch model mid-session preserving thinking blocks. Used by /model command and by BRD §6.2 failover when the primary provider rate-limits or fails.
Six-phase ReAct loop (pre-check, thinking, self-critique, action, tool, post). Activates per-workflow via the thinking_level knob in config/workflows.yaml. Replaces standard ReAct for workflows where independent verification of the reasoning improves outcomes.
Mines completed sessions for repeating {tool sequence → outcome} tuples. Scores by frequency × success_rate × novelty. High-scoring tuples become "instincts" — candidate skill seeds — in instincts/pending/.
Walk-back algorithm for the Spec-Auditor subagent. Given a failure at phase N, identifies the earliest phase whose spec, if tightened, would have prevented the failure. Proposes a surgical amendment.
Sessions stored as trees (not lists). /fork creates a branch from any point; /tree navigates; /branch labels a path; /export produces HTML for review. All branches live in one session file under sessions/<project>/<session_id>.json.
Progressive context refinement for subagents. Don't dump everything; retrieve in passes. Start with a list of file paths and one-line abstracts; load full content only when the abstract proves insufficient.
| name | test |
| description | Generate test plan, test cases, test data fixtures, and Playwright E2E tests mapped to acceptance criteria. |
| disable-model-invocation | true |
| argument-hint | [--plan-only | --e2e-only] |
/test # full test phase
/test --plan-only # just generate test plan + cases
/test --e2e-only # just generate Playwright tests
specs/stories/ must existbackend/ and frontend/ must exist (run /implement first)/deploy first for E2E).claude/skills/test-patterns/SKILL.md for test patterns..claude/skills/test-patterns/references/playwright.md for Playwright patterns.test-engineer agent.specs/test_artefacts/:
test-plan.md — strategy, scope, environmentstest-cases.md — all cases mapped to acceptance criteriatest-data/ — realistic fixtures (JSON/PDF)e2e/flows/ — Playwright test filescp .claude/skills/test-patterns/templates/playwright.config.ts playwright.config.ts
npx playwright install --with-deps chromium
docker compose up -d --build
curl --retry 5 --retry-delay 3 http://localhost:8000/health
curl --retry 5 --retry-delay 3 http://localhost:3000
npx playwright testnpx playwright show-reportuv run pytest -x -q # unit tests still pass
npm test # vitest still passes
npx playwright test # E2E tests pass
npx playwright show-report # visual report
getByRole(), getByLabel(), getByText() — never CSS selectors or XPath. Class names change; roles don't.page.waitForTimeout(5000). Use expect(locator).toBeVisible() or page.waitForResponse() for deterministic waits.webServer to start Docker Compose. Tests that assume services are already running will fail in CI.