| name | test |
| description | Design, run, and improve tests for a change using project conventions and subagent verification. |
/test: prove behavior with tests
Use /test when the user explicitly asks to test, verify, reproduce, harden, or add coverage for behavior.
This is an explicit workflow skill: it should run only when the user invokes it.
/test favors:
- Creating a failing test or repro before feature/bugfix work when feasible
- Proving behavior with the smallest meaningful test
- Testing observable user/system outcomes over implementation details
- Running the focused test command before the smallest relevant broader suite
- Verifying UI, browser, and runtime changes in the real runtime
- Evidence over confidence
Test discovery
Before adding tests:
- Inspect nearby tests for naming, fixtures, setup, and assertion style.
- Identify the focused test command for the relevant area.
- Prefer existing test utilities over new helpers.
- Avoid introducing new test frameworks.
Workflow
- State the observable behavior under test from the user/system point of view.
- Find the closest existing test pattern.
- For features or bug fixes, add a failing focused test or repro first when feasible.
- Confirm the focused test fails for the expected reason before changing implementation.
- Implement or adjust only what is needed for the test to pass.
- Run the focused test command again.
- Run the smallest relevant broader suite after the focused check passes.
- For UI, browser, or runtime changes, verify the real runtime with
browse, e2e, or related verification.
- Summarize exact commands, results, and remaining gaps.
Use debugging-and-error-recovery for unexpected failures, browse for browser runtime behavior, e2e for end-to-end
coverage, and qa or verify for final evidence when appropriate.
Subagent use
Use the test-engineer subagent for non-trivial testing work.
Ask test-engineer to inspect:
- Missing happy-path, edge-case, and error-path coverage
- Whether a failing test or repro came before implementation when feasible
- Whether assertions prove observable behavior rather than implementation details
- Flaky setup or timing assumptions
- Whether focused and broader commands are appropriately scoped
- Whether runtime verification is needed
For security-sensitive behavior, also use security-auditor. For large behavior changes, use code-reviewer after
tests pass.
Final response
Report:
- Behavior verified
- Tests added or changed
- Commands run, including focused command first and broader suite if run
- Pass/fail results for each command
- Runtime verification used, such as
browse, qa, verify, or e2e when applicable
- Remaining gaps or unverified areas