doubt-driven-development
Was er macht
Prüft wichtige Entscheidungen, bevor sie umgesetzt werden. Dafür wird ein 'Reviewer' beauftragt, der Fehler finden soll, statt sie abzunicken. Er analysiert, was du geschrieben oder geplant hast. So stellst du sicher, dass alles korrekt und sicher ist, besonders in kritischen Situationen.
Wann du ihn nutzt
- ✓Wenn du eine wichtige Architekturentscheidung für ein Projekt triffst.
- ✓Wenn du komplexen Code schreibst oder Code änderst, der kritische Teile betrifft.
- ✓Wenn du eine nicht offensichtliche Behauptung aufstellst, zum Beispiel 'Das ist sicher' oder 'Das wird schnell laufen'.
Link zum Skill
https://github.com/addyosmani/agent-skills/blob/main/skills/doubt-driven-development/SKILL.mdKopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.
So nutzt du ihn
Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.
Fertige Nachricht zum Einfügen
Für Claude Code, Codex oder Cursor: Führe den Befehl in deinem Projektordner aus, dann wird der Skill installiert.
Lade die SKILL.md herunter und lege sie in den Skills-Ordner deines Agenten.
Beispielanfrage an deine KI
“Prüfe diese Entscheidung: 'Die neue Authentifizierungsmethode ist sicher gegen gängige Angriffe.' Suche nach Fehlern oder falschen Annahmen.”
5 neue Skills pro Woche. 1 Minute Lesezeit.
So funktioniert es
Die KI trennt den wichtigen Teil (das 'Artefakt') von den Regeln, die er einhalten muss (dem 'Vertrag'). Dann lässt sie eine andere KI, die kritisch eingestellt ist, anhand des Vertrags nach Problemen im Artefakt suchen. Zum Schluss vergleicht sie die gefundenen Probleme mit dem, was geschrieben wurde.
Technischer Inhalt (originale SKILL.md)
Originaltext des Autors, auf Englisch, direkt von 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
…
Häufige Fragen
Wann sollte ich das NICHT verwenden?
Nicht für einfache Aufgaben wie das Umbenennen oder Verschieben von Dateien, das Formatieren von Code oder das Lesen und Zusammenfassen bestehenden Codes. Auch dann nicht, wenn Geschwindigkeit wichtiger ist als Überprüfung.
Was ist eine 'nicht triviale' Entscheidung?
Eine Entscheidung mit komplexer Logik, die verschiedene Teile des Systems betrifft, Behauptungen aufstellt, die der Computer allein nicht prüfen kann (etwa bei der Sicherheit), von Informationen abhängt, die mit der Zeit verloren gehen können, oder Folgen hat, die sich nicht rückgängig machen lassen.
Warum einen 'Reviewer' verwenden, der nur Fehler findet?
Weil es leichter ist, etwas abzunicken, das bereits fertig ist, als Fehler zu finden. Ein Reviewer, der sich auf Probleme konzentriert, hinterfragt alle Annahmen und deckt mögliche Fehler auf, bevor sie größere Probleme verursachen.
Details
Originalbeschreibung des Autors
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
Beliebtheit
- GitHub-Sterne
- 107k
- Platz im Ranking
- #771
- Lizenz
- MIT
- Aktualisiert
- 13.10.2026
Kommentare
- …
Weitere Skills aus diesem Repository
api-and-interface-design
107kHilft beim Entwerfen klar definierter APIs und Schnittstellen. Nützlich, wenn du festlegst, wie verschiedene Teile einer Software miteinander kommunizieren.
browser-testing-with-devtools
107kHelps your agent test code directly in real browsers. It's useful for checking how something works in the environment where it will be used, finding errors and performance issues.
ci-cd-and-automation
107kBringt deinem KI-Agenten bei, wiederkehrende Aufgaben zu automatisieren, Projekte auszuliefern und Infrastruktur zu verwalten.
code-review-and-quality
107kFührt detaillierte Code-Reviews aus mehreren Blickwinkeln durch. Nützlich vor dem Mergen neuer Änderungen, um Qualität zu sichern und künftige Probleme zu vermeiden.
Ähnliche Skills
knowledge-capture
394kBringt deinem Agenten bei, Entscheidungen, Vorlieben und wichtige Fakten als kurze Notizen mit Quellenangabe in deinem Knowledge-Vault zu speichern.
knowledge-claim-consolidation
394kHilft deinem Agenten, einen Knowledge-Vault aufzuräumen: doppelte Aussagen zusammenführen, auf die richtigen Themenseiten verschieben, veraltete ausrangieren.
knowledge-correct
394kLässt deinen Agenten auf Wunsch eine bestimmte gespeicherte Knowledge-Aussage oder Seite korrigieren oder zurückziehen und den Änderungsverlauf festhalten.