본문으로 건너뛰기
Skillpedia
작업 및 프로젝트107k · #771

doubt-driven-development

하는 일

중요한 결정을 실행하기 전에 확인합니다. 승인하기보다 결함을 찾도록 설정된 '검토자'에게 작성했거나 계획한 내용을 분석하도록 요청합니다. 특히 중요한 상황에서 모든 것이 올바르고 안전한지 확인하는 데 도움을 줍니다.

사용하는 경우

  • ✓프로젝트의 중요한 아키텍처 결정을 내릴 때.
  • ✓중요한 부분을 수정하는 복잡한 코드를 작성할 때.
  • ✓'이것은 안전하다' 또는 '이것은 잘 작동할 것이다'처럼 자명하지 않은 주장을 할 때.

스킬 링크

https://github.com/addyosmani/agent-skills/blob/main/skills/doubt-driven-development/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/addyosmani/agent-skills/blob/main/skills/doubt-driven-development/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“이 결정을 검토해 주세요: '새 인증 방식은 일반적인 공격으로부터 안전하다.' 결함이나 잘못된 가정이 있는지 확인해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

AI는 중요한 부분('artifact')과 그것이 따라야 할 규칙('contract')을 분리합니다. 그다음 비판적으로 설정된 다른 AI에게 이 '계약'을 기준으로 'artifact'의 문제를 찾도록 합니다. 마지막으로 찾은 문제를 작성된 내용과 비교합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Doubt-Driven Development

Overview

A confident answer is not a correct one. Long sessions accumulate context that quietly turns assumptions into "facts" without anyone noticing. Doubt-driven development is the discipline of materializing a fresh-context reviewer — biased to disprove, not approve — before any non-trivial output stands.

This is not /review. /review is a verdict on a finished artifact. This is an in-flight posture: non-trivial decisions get cross-examined while course-correction is still cheap.

When to Use

A decision is non-trivial when at least one of these is true:

  • It introduces or modifies branching logic
  • It crosses a module or service boundary
  • It asserts a property the type system or compiler cannot verify (thread safety, idempotence, ordering, invariants)
  • Its correctness depends on context the future reader cannot see
  • Its blast radius is irreversible (production deploy, data migration, public API change)

Apply the skill when:

  • About to make an architectural decision under uncertainty
  • About to commit non-trivial code
  • About to claim a non-obvious fact ("this is safe", "this scales", "this matches the spec")
  • Working in code you don't fully understand

When NOT to use:

  • Mechanical operations (renaming, formatting, file moves)
  • Following a clear, unambiguous user instruction
  • Reading or summarizing existing code
  • One-line changes with obvious correctness
  • Pure tooling operations (running tests, listing files)
  • The user has explicitly asked for speed over verification

If you doubt every keystroke, you ship nothing. The skill applies only to non-trivial decisions as defined above.

Loading Constraints

This skill is designed for the main-session orchestrator, where Step 3 (DOUBT, detailed below) can spawn a fresh-context reviewer.

  • Do NOT add this skill to a persona's skills: frontmatter. A persona that follows Step 3 would spawn another persona — the orchestration anti-pattern explicitly forbidden by ../../references/orchestration-patterns.md ("personas do not invoke other personas").
  • If you find yourself applying this skill from inside a subagent context (where Claude Code prevents nested subagent spawn): the preferred path is to surface to the user that doubt-driven cannot run nested and let the main session handle it. As a last resort only, a degraded self-questioning fallback exists — rewrite ARTIFACT + CONTRACT as a fresh self-prompt with a hard mental separator from your prior reasoning, and walk Steps 1–5. This is not fresh-context review (you carry your own context with you), so flag the result as degraded and prefer escalation whenever the user is reachable.

The Process

Copy this checklist when applying the skill:

Doubt cycle:
- [ ] Step 1: CLAIM — wrote the claim + why-it-matters
- [ ] Step 2: EXTRACT — isolated artifact + contract, stripped reasoning
- [ ] Step 3: DOUBT — invoked fresh-context reviewer with adversarial prompt
- [ ] Step 4: RECONCILE — classified every finding against the artifact text
- [ ] Step 5: STOP — met stop condition (trivial findings, 3 cycles, or user override)

Step 1: CLAIM — Surface what stands

Name the decision in two or three lines:

CLAIM: "The new caching layer is thread-safe under the
        read-heavy workload described in the spec."
WHY THIS MATTERS: a race here corrupts user data and is
                  hard to detect in QA.

If you can't write the claim that compactly, you have a vibe, not a decision. Surface it before scrutinizing it.

Step 2: EXTRACT — Smallest reviewable unit

A fresh-context reviewer needs the artifact and the contract, not the journey.

  • Code: the diff or the function — not the whole file
  • Decision: the proposal in 3–5 sentences plus the constraints it has to satisfy
  • Assertion: the claim plus the evidence that supposedly supports it (kept distinct from the Step 1 CLAIM block, which is the orchestrator's hypothesis under scrutiny)

Strip your reasoning. If you hand over conclusions, you'll get back validation of your conclusions. The unit must be small enough that a reviewer can hold it in mind in one read — if it's a 500-line PR, decompose first.

Step 3: DOUBT — Invoke the fresh-context reviewer

The reviewer's prompt must be adversarial. Framing decides the answer.

Adversarial review. Find what is wrong with this artifact.
Assume the author is overconfident. Look for:
- Unstated assumptions

…
자주 묻는 질문

언제 이것을 사용하면 안 되나요?

파일 이름 바꾸기, 코드 서식 정리, 파일 이동, 기존 코드 읽기나 요약 같은 단순한 작업에는 사용하지 마세요. 검증보다 속도가 더 중요할 때도 사용하지 마세요.

'non-trivial' 결정이란 무엇인가요?

복잡한 로직이 포함되거나, 시스템의 여러 부분에 영향을 주거나, 컴퓨터 혼자서는 검증할 수 없는 주장(보안 등)을 하거나, 시간이 지나면 잃을 수 있는 정보에 의존하거나, 되돌릴 수 없는 결과가 있는 결정입니다.

왜 결함만 찾는 '검토자'를 사용하나요?

이미 완성된 것을 승인하는 것이 결함을 찾는 것보다 쉽기 때문입니다. 문제를 찾는 데 집중하는 검토자는 모든 가정에 의문을 제기하고, 더 큰 문제가 되기 전에 잠재적 오류를 발견하도록 돕습니다.

상세 정보

작성자의 원본 설명

Subjects every non-trivial decision to a fresh-context adversarial review before it stands. Use when you want every assumption cross-examined before proceeding, when stress-testing a plan for hidden failure modes, when correctness matters more than speed, when working in unfamiliar code, when stakes are high (production auth, security-sensitive logic, a high-stakes migration, irreversible operatio

repo: addyosmani/agent-skills

인기도

GitHub 스타
107k
순위
#771
라이선스
MIT
업데이트
2026. 10. 13.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬