Security / Original task brief

Threat-model a proposed feature or code change

Map assets, actors, trust boundaries, abuse paths, mitigations, and residual risk against the actual implementation.

Use when

A change introduces authentication, uploads, external URLs, secrets, payments, AI calls, webhooks, or new data access.

Ready to adapt
Task
Threat-model {{change}} in {{deployment_context}}.

Sensitive assets
{{sensitive_assets}}

Method
1. Inspect the real data flow and name every trust boundary, storage location, network hop, privilege transition, and human approval point.
2. Enumerate realistic attacker goals and abuse cases for identity, authorization, injection, SSRF, file handling, secrets, cost amplification, privacy, and availability.
3. Map existing controls to each abuse path and verify them in code or configuration. Mark unknown controls as unknown.
4. Propose the smallest preventive, detective, and recovery controls. Prefer fail-closed defaults and explicit limits.
5. Identify how each high-risk control can be tested before launch and monitored afterward.

Evidence to return
- Text data-flow diagram and trust-boundary table.
- Prioritized threats with preconditions, impact, evidence, and mitigation.
- Verification plan for high and critical risks.
- Residual risks requiring owner acceptance.

Stop conditions
Do not claim compliance, safety, or complete coverage. Stop launch recommendation when a critical trust boundary cannot be inspected or a cost-bearing endpoint lacks authentication, rate limits, and a hard budget boundary.

Replace these fields before you run it.

{{change}}{{sensitive_assets}}{{deployment_context}}

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