skills/test/SKILL.md
# Test Execution Protocol ## When this skill activates Activate at the start of the **Test sub-phase** of Construction, after the Review sub-phase is complete and the human has approved the review file. This skill governs the full test execution run for a completed Beads task. Before starting, read `docs/pdlc/memory/CONSTITUTION.md` — specifically the "Test gates" section. This defines which layers are required to pass before Operation can begin, and which layers (if any) are pre-configured a
npx skillsauth add pdlc-os/pdlc skills/testInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Activate at the start of the Test sub-phase of Construction, after the Review sub-phase is complete and the human has approved the review file. This skill governs the full test execution run for a completed Beads task.
Before starting, read docs/pdlc/memory/CONSTITUTION.md — specifically the "Test gates" section. This defines which layers are required to pass before Operation can begin, and which layers (if any) are pre-configured as skipped.
Execute the six test layers below in order. Do not skip layers unless the Constitution explicitly marks them as skipped or the human issues an explicit skip instruction mid-run. If a layer is skipped, log it in docs/pdlc/memory/STATE.md's Guardrail Log section.
Purpose: Confirm all TDD-written tests still pass after any refactoring or review-driven changes.
package.json scripts, Makefile, or pyproject.toml for the test command).Purpose: Verify that service boundaries, database interactions, and external dependency contracts behave correctly when connected.
tests/integration/, __tests__/integration/, or spec/integration/ directory).Purpose: Test the complete user journey described in the PRD using a real browser instance, not a simulator or jsdom.
docs/pdlc/prds/PRD_[feature-name]_[YYYY-MM-DD].md. Identify the user journey(ies) covered by this task.npx playwright test (or yarn playwright test)npx cypress run if the project uses Cypresspackage.json scripts for e2e, test:e2e, or playwright entriesPurpose: Ensure the new code does not degrade system performance beyond the budget defined in the Constitution.
docs/pdlc/memory/CONSTITUTION.md for a "Performance budget" or "Perf budget" section. Note any defined thresholds (e.g. p95 response time < 200ms, throughput > 500 req/s).k6 scripts in a perf/ or load/ directoryartillery config filesab (Apache Bench) scripts in the Makefileautocannon or wrk commands in package.json scriptsPurpose: Ensure the UI changes in this task meet WCAG standards.
@axe-core/playwright within E2E tests, or run npx axe [url]cypress-axenpx axe-cli [url] against the running dev serverPurpose: Detect unintended visual changes to UI components or pages.
expect(page).toHaveScreenshot() with an existing baseline## Test Summary — [task-id] — [YYYY-MM-DD]
| Layer | Status | Passed | Failed | Skipped | Notes |
|---------------------|---------|--------|--------|---------|--------------------------|
| Unit | [Pass] | X | 0 | Y | |
| Integration | [Pass] | X | 0 | Y | |
| E2E | [Pass] | X | 0 | Y | |
| Performance | [Pass] | — | — | — | p95: Xms (budget: Yms) |
| Accessibility | [Pass] | — | — | — | 0 critical violations |
| Visual Regression | [Pass] | X | 0 | — | 0 diffs above threshold |
Skipped layers: [list any, with reason]
Guardrail Log entries: [list any skips or accepts]
Write this summary into the active episode file at docs/pdlc/memory/episodes/[episode-id].md under the "Test Summary" section.
Check docs/pdlc/memory/CONSTITUTION.md test gates:
docs/pdlc/memory/STATE.md — test gate status: passed.Mark the Beads task as done: bd close [task-id] --reason "All test layers complete"
Update docs/pdlc/memory/STATE.md: task complete, test gate status, any open items.
CONSTITUTION.md explicitly marks it as skipped for this project, or (b) the human issues an explicit skip instruction during the run. Any skip is a Guardrail Log entry — log it.docs/pdlc/memory/episodes/[episode-id].md.docs/pdlc/memory/STATE.md updated with test gate status (passed / failed / accepted with conditions).bd done.docs/pdlc/memory/STATE.md.bd ready queue, or (if queue is empty) episode file drafting and Construction completion.data-ai
Run a feature autonomously from approved-PRD to shipped, evaluated by a per-turn Sentinel hook. Requires bypass-permissions mode and Agent Teams mode.
development
# Variant Convergence **Topic slug:** `variant-convergence` **Triggers:** - **Inception path — Brainstorm Design Step 10.7:** after Step 10.6 (Design-Laws Audit) completes, before Step 11 (PRD design-doc link updates) and the Step 12 design approval gate. Variants are HTML mockups Muse generates. - **Construction path — Build Review Step 12.5:** after Party Review (Step 12) writes its review file and Muse appends the *As-Built Audit* section to `ux-review.md`, before the Step 13 Review approval
data-ai
Force-release a stuck roadmap-level feature claim (admin command)
devops
Bypass the deploy-before-Operation guardrails block with a single confirmation