Test / Original task brief

Triage a failing test without weakening the assertion

Classify whether the failure is a product regression, stale expectation, environment problem, flaky harness, or test isolation defect.

Use when

A CI or local test fails and the tempting response is to loosen, skip, or rewrite the test before understanding it.

Ready to adapt
Task
Triage {{failing_test}}. The observed output is:
{{failure_output}}

Recent change
{{recent_change}}

Method
1. Run the smallest command that reproduces the failure and record whether it is deterministic.
2. Read the assertion and the product code it exercises. State the user-visible contract the test is meant to protect.
3. Compare the failing path with a passing neighbor and inspect environment, fixture, clock, network, ordering, and shared-state boundaries.
4. Classify the cause: product regression, correct behavior with stale expectation, environment/setup, flaky timing, or test isolation.
5. Fix the causal layer. Change the assertion only when the intended contract has changed and explain that decision explicitly.

Evidence to return
- Minimal reproduction command and output.
- Cause classification with supporting observations.
- Focused test result before and after the fix.
- Relevant suite result and any remaining flake risk.

Stop conditions
Do not add retries, sleeps, skips, broad mocks, or weaker assertions merely to turn CI green. Stop if the intended behavior is ambiguous and needs an owner decision.

Replace these fields before you run it.

{{failing_test}}{{failure_output}}{{recent_change}}

Keep unknowns explicit. Remove a section only when it truly does not apply; do not replace evidence requirements with a request for confidence.

Task boundary

The first lines define one outcome and the environment in which it must be achieved.

Method

The method asks the coding agent to inspect and execute rather than jump directly to a plausible patch.

Evidence to return

The result must include paths, commands, measurements, or browser observations that another person can check.

Stop conditions

The agent is told when not to guess, broaden scope, weaken a guard, or overstate completion.

Continue from the next engineering decision.

ReviewOriginal brief

Review a change set before merge

Inspect the actual diff in repository context and report only actionable defects with severity, evidence, and a concrete failure scenario.

Use when: A branch or working tree is ready for an independent correctness, security, and maintainability review.

Open prompt
ReviewOriginal brief

Audit a web task for keyboard and screen-reader access

Exercise a real user flow with semantic, focus, state, contrast, target-size, and responsive evidence rather than a static checklist alone.

Use when: A web interface has a form, dialog, menu, custom control, upload, or task flow that must work beyond pointer input.

Open prompt