Security

Doubt Driven Development

Try it

Stress-test high-risk changes with fresh-context skepticism before implementation or release. Use when work involves production, permissions, security contro...

What it does

Stress-test high-risk changes with fresh-context skepticism before implementation or release. Use when work involves production, permissions, security contro...

The skill document

Doubt Driven Development

Use this skill to slow down only where being wrong is expensive. The goal is not pessimism; the goal is to make the riskiest assumption visible and testable.

Workflow

  1. Name the claim

    • Write the proposed change or decision as one falsifiable sentence.
    • Example: Publishing this skill version is safe because validation and CI cover the release surface.
  2. List failure modes

    • What would make the claim false?
    • Include behavior, tests, release metadata, permissions, secrets handling, and rollback paths.
  3. Seek disconfirming evidence

    • Read the smallest relevant code, docs, config, logs, CI output, and release artifacts.
    • Prefer direct evidence over confidence, memory, or broad statements.
  4. Force a safer alternative

    • If evidence is weak, choose a smaller change, add a check, or stop for user decision.
    • Do not proceed by relying on trust in the agent's prior answer.
  5. Decide

    • proceed: evidence supports the claim and verification passed.
    • patch first: fix a concrete gap before shipping.
    • stop: risk is unresolved or requires user judgment.

Fresh-Context Review

Use an isolated review pass when the blast radius is high and the runtime supports it. The reviewer should receive the artifact and task, not your intended conclusion.

Good review prompt shape:

Review this change for release-blocking correctness, test, and security issues. Focus on concrete defects and cite files or commands.

Avoid prompts that disclose the expected answer or ask the reviewer to validate your plan.

Risk Signals

Escalate scrutiny when you see:

  • Broad permissions or sandbox changes.
  • Network publishing, package release, or public registry updates.
  • Handling of tokens, private user data, or local credential stores.
  • Destructive file, database, cloud, or infrastructure commands.
  • Large generated diffs with little reviewable structure.
  • CI failures that were fixed by retrying without root cause.
  • Claims like "obviously safe", "only docs", or "no tests needed" on release paths.

Sandbox Review Posture

For Codex sandbox, approval, and policy work, treat review as a boundary check, not a permission grant. Auto-review can decide whether a boundary-crossing action should run, but it does not expand writable roots, enable network access, or weaken protected paths.

When mundane work keeps needing approval, prefer a narrower boundary fix such as a specific writable root or exact command prefix. Do not solve noisy review traffic by making broad rules that remove the boundary being reviewed.

Output Template

Claim: 
Main risk: 
Evidence checked: 
Decision: proceed | patch first | stop
Reason: 

Keep the output terse. If the decision is patch first or stop, name the next concrete action.

Related skills

对每个非平凡决策进行对抗性审查,防止Agent过度自信导致的错误。 当正确性比速度更重要时、在陌生领域工作时、高风险操作时触发。 触发场景:架构决策、非平凡代码提交、声称"这是安全的/可扩展的/符合规格的"、 不确定领域的工作、生产环境部署、数据迁移、不可逆操作。

3 installs

Mandatory risk-driven verification workflow for maintained-code changes. Use when implementing, fixing, refactoring, deleting, migrating, or reviewing code to identify all materially affected behavior, map failure risks to sufficient tests, execute required evidence, and report unresolved test gaps

2 installs

Orchestrate the complete coding workflow with multiple development modes (TDD/incremental/spec-dr...

1 installs

Guide Codex through complex or production-risk implementation work in small validated checkpoints. Use when a user asks for staged implementation, step revie...

2 installs

Use when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technic...