Debug / Original task brief

Debug a reproducible failure from evidence to root cause

Reproduce the defect, isolate the failing boundary, explain the causal chain, and prove the smallest repair with a regression test.

Use when

A bug is reported with symptoms but the root cause is unknown or several plausible explanations are competing.

Ready to adapt
Task
Find and fix the root cause of: {{observed_failure}}.

Expected behavior
{{expected_behavior}}

Known reproduction
{{reproduction_steps}}

Method
1. Reproduce the failure in the current artifact and capture the exact error, state, request, or geometry that proves it.
2. Trace backward through the system one boundary at a time. Compare a failing case with the closest working case.
3. State one root-cause hypothesis and the observation that would falsify it. Test that hypothesis before editing.
4. Add a focused regression test that fails for the verified reason.
5. Implement the smallest causal repair, then rerun the focused test and the relevant full suite.

Evidence to return
- Reproduction evidence from before the change.
- Root cause with the exact file and line or runtime boundary.
- Why competing explanations were rejected.
- Test and execution output after the repair.

Stop conditions
Do not patch symptoms, blame cache or timing without evidence, weaken security controls, or claim success if the original reproduction was not exercised after the change.

Replace these fields before you run it.

{{observed_failure}}{{reproduction_steps}}{{expected_behavior}}

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