doubt-driven-development
하는 일
중요한 결정을 실행하기 전에 확인합니다. 승인하기보다 결함을 찾도록 설정된 '검토자'에게 작성했거나 계획한 내용을 분석하도록 요청합니다. 특히 중요한 상황에서 모든 것이 올바르고 안전한지 확인하는 데 도움을 줍니다.
사용하는 경우
- ✓프로젝트의 중요한 아키텍처 결정을 내릴 때.
- ✓중요한 부분을 수정하는 복잡한 코드를 작성할 때.
- ✓'이것은 안전하다' 또는 '이것은 잘 작동할 것이다'처럼 자명하지 않은 주장을 할 때.
스킬 링크
https://github.com/addyosmani/agent-skills/blob/main/skills/doubt-driven-development/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
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.
댓글
- …
이 저장소의 다른 스킬
api-and-interface-design
107k잘 정의된 API와 인터페이스를 만드는 데 도움을 줍니다. 소프트웨어의 서로 다른 부분이 통신하는 방식을 설계할 때 유용합니다.
browser-testing-with-devtools
107k에이전트가 실제 브라우저에서 코드를 직접 테스트하도록 돕습니다. 사용 환경에서 어떻게 작동하는지 확인하고, 오류와 성능 문제를 찾는 데 유용합니다.
ci-cd-and-automation
107k반복 작업을 자동화하고, 프로젝트를 배포하며, 인프라를 관리하도록 에이전트에게 가르칩니다.
code-review-and-quality
107k여러 측면에서 상세한 코드 검토를 수행합니다. 새 변경 사항을 병합하기 전에 품질을 확인하고 향후 문제를 막는 데 유용합니다.
비슷한 스킬
knowledge-capture
394k에이전트가 결정, 선호, 핵심 사실을 출처 표시와 함께 짧은 메모로 Knowledge 볼트에 저장하도록 가르칩니다.
knowledge-claim-consolidation
394k에이전트가 중복 주장을 합치고, 올바른 주제 페이지로 옮기고, 오래된 주장을 폐기해 Knowledge 볼트를 정리하도록 돕습니다.
knowledge-correct
394k에이전트가 요청에 따라 특정 Knowledge 주장이나 페이지를 고치거나 철회하고, 무엇이 바뀌었는지 기록을 남기도록 돕습니다.