Data / Original task brief

Review a database migration for safe rollout and rollback

Verify schema transition, compatibility window, backfill behavior, locking, idempotency, observability, and recovery before production.

Use when

A release changes tables, constraints, indexes, data representation, or code assumptions across deploy boundaries.

Ready to adapt
Task
Review {{migration}} for {{database}} under this deployment sequence:
{{deployment_sequence}}

Method
1. Inspect the migration and every application read/write path affected by the old and new schema.
2. Determine whether mixed application versions remain compatible during rollout and rollback.
3. Evaluate locks, table rewrites, index build behavior, transaction boundaries, timeouts, retries, and expected data volume.
4. Verify backfills are bounded, resumable, observable, and idempotent. Test interruption and rerun behavior.
5. Define preflight queries, rollout checkpoints, abort thresholds, and recovery actions.

Evidence to return
- Compatibility matrix for old code/new code against old schema/new schema.
- Estimated operational risks supported by database behavior or rehearsal.
- Dry-run or staging output, including interruption/retry results.
- Exact rollback or forward-recovery plan and the point after which rollback is unsafe.

Stop conditions
Block rollout when destructive changes precede compatible code, the backfill cannot resume safely, lock impact is unknown on production-scale data, or recovery has not been rehearsed.

Replace these fields before you run it.

{{migration}}{{database}}{{deployment_sequence}}

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