# Doubt driven development

> Doubt driven development is an open-source agent skill for developer tools. Makes the agent cross-examine non-trivial decisions with a fresh-context adversarial. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/ajyadav013/claude-kit/tree/main/skills/doubt-driven-development
- **Repository:** https://github.com/ajyadav013/claude-kit
- **GitHub stars:** 13
- **License:** MIT
- **Skill name:** doubt-driven-development
- **Collection:** https://github.com/ajyadav013/claude-kit
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

This skill has the agent pause before committing to a non-trivial decision and hand a stripped-down version of it to a reviewer that starts with no prior context and is asked to find problems rather than approve. The workflow runs in a fixed sequence: state the claim and why it matters, isolate the artifact and its contract without the reasoning behind it, run the adversarial review, then sort each finding as a contract misread, a valid fix, an accepted trade-off, or noise. The loop is capped at three cycles before the user is brought in.

The skill is written for the main session, since nested subagent spawning is not allowed in Claude Code. It also lists a read-only option for cross-model review through the Codex or Gemini CLI. The agent must ask the user before using either tool and confirm the exact invocation, and it must pipe prompts through stdin rather than interpolating them into shell arguments. Its author positions it as a layer on top of spec, test or source-driven workflows rather than a primary development loop.

## When your agent uses it

> Subject every non-trivial decision to fresh-context adversarial review before it stands. Use when correctness beats speed or stakes are high. Do NOT use as primary loop — layer on spec/test/source-driven.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/ajyadav013/claude-kit/tree/HEAD/skills/doubt-driven-development)
- [License: MIT](https://github.com/ajyadav013/claude-kit/tree/HEAD/skills/doubt-driven-development)

## Features

- **Fresh-context adversarial review:** Runs a reviewer with isolated context and a prompt that asks for issues only, not validation.
- **Claim and contract extraction:** Separates the decision under scrutiny and its constraints from the author's reasoning before review.
- **Finding reconciliation:** Classifies each reviewer finding against the artifact text as misread, actionable, trade-off or noise.
- **Bounded doubt loop:** Stops after trivial findings, three cycles or an explicit user override, then escalates.
- **Optional cross-model second opinion:** Offers a read-only Gemini CLI or Codex CLI review, with user confirmation before any run.

## Good for

- Double-check a caching design for thread safety before writing the code
- Challenge a data migration plan before it runs against production
- Review a public API change for contract violations
- Test a claim that an algorithm scales before committing to it
- Scrutinize unfamiliar code before modifying it

## Install

### Claude Code

This skill ships in the `claude-kit` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add ajyadav013/claude-kit
/plugin install claude-kit@claude-kit
```

Or copy only this skill to `~/.claude/skills/doubt-driven-development`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ajyadav013/claude-kit.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/doubt-driven-development &&
cp -R "$tmp/skills/doubt-driven-development" ~/.claude/skills/doubt-driven-development &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/doubt-driven-development` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/doubt-driven-development` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ajyadav013/claude-kit.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/doubt-driven-development &&
cp -R "$tmp/skills/doubt-driven-development" ~/.agents/skills/doubt-driven-development &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/doubt-driven-development` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/doubt-driven-development` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ajyadav013/claude-kit.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/doubt-driven-development &&
cp -R "$tmp/skills/doubt-driven-development" ~/.cursor/skills/doubt-driven-development &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/doubt-driven-development` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/ajyadav013/claude-kit.git --path skills/doubt-driven-development
```

Or copy the folder to `~/.gemini/skills/doubt-driven-development` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/doubt-driven-development`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ajyadav013/claude-kit.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/doubt-driven-development &&
cp -R "$tmp/skills/doubt-driven-development" ~/.copilot/skills/doubt-driven-development &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/doubt-driven-development` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/ajyadav013/claude-kit.git
```

Then copy `claude-kit/skills/doubt-driven-development` into your agent's skills folder as `doubt-driven-development`. Agents that support SKILL.md read one folder per skill.

## FAQ

### When should the skill be used?

For non-trivial decisions, meaning changes to branching logic, module boundaries, properties the compiler cannot verify, context the future reader cannot see, or irreversible actions. It advises against use for renames, formatting, file moves, simple instructions and one-line obvious changes.

### Does Doubt driven development run scripts or need extra tools?

The folder contains only the SKILL.md file and no scripts. Cross-model review is optional and uses the Gemini or Codex CLI if the user chooses it.

### Can Doubt driven development be added to a persona or subagent?

The skill says it should not be added to a persona's skills list, because a persona following it would spawn another persona. Inside a subagent it recommends escalating to the main session instead.

### Does Doubt driven development send the reasoning to the reviewer?

No. The reviewer receives only the artifact and contract, not the claim or the orchestrator's reasoning, so the review is not biased toward agreement.

### How do I install Doubt driven development in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/doubt-driven-development to use it in all your projects, or to .claude/skills/doubt-driven-development in one project. Or install the claude-kit plugin, which includes it: /plugin marketplace add ajyadav013/claude-kit, then /plugin install claude-kit@claude-kit.

### Does Doubt driven development run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Doubt driven development?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Doubt driven development?

The closest alternatives to Doubt driven development are Doubt driven development, Interrogate, Epistemic interrogation, Adversarial review and Second opinion.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Doubt driven development](https://ai-powered.com/skills/doubt-driven-development): Doubt driven development is an open-source agent skill for developer tools.
- [Interrogate](https://ai-powered.com/skills/interrogate): Interrogate is an open-source agent skill for developer tools.
- [Epistemic interrogation](https://ai-powered.com/skills/epistemic-interrogation): Epistemic interrogation is an open-source agent skill for developer tools.
- [Adversarial review](https://ai-powered.com/skills/adversarial-review): Adversarial review is an open-source agent skill for developer tools.
- [Second opinion](https://ai-powered.com/skills/second-opinion-awrshift): Second opinion is an open-source agent skill for developer tools.
- [Gap analysis](https://ai-powered.com/skills/gap-analysis): Gap analysis is an open-source agent skill for developer tools.
- [Adversarial code review](https://ai-powered.com/skills/adversarial-code-review): Adversarial code review is an open-source agent skill for security.
- [Harness review](https://ai-powered.com/skills/harness-review-chachamaru127): Harness review is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/doubt-driven-development-ajyadav013-2
