# devils-advocate-loop

> Adversarially challenges a design or decision until every serious objection is resolved or explicitly accepted.

- Source: https://doutorai.pt/en/components/loops__devils-advocate-loop
- Type: Loops
- Category: General
- Downloads: 0
- Site: Doutor AI (https://doutorai.pt/en) - AI tools for small businesses

An open-source community component, curated and adapted by Doutor AI.

## What it does and how to use it

A **skill** that teaches Claude Code to do general tasks well. It is packaged knowledge the model uses whenever it is relevant.

1. Install the skill (command above).
2. In Claude Code, describe what you need - the skill turns on by itself when the context fits.
3. No commands to memorize: you talk in plain language and the skill does the rest.

## Install (Claude Code)

```bash
mkdir -p .claude/loops && curl -fsSL https://doutorai.pt/data/lib/loops__devils-advocate-loop.md -o .claude/loops/devils-advocate-loop.md
```

Paste this command into the terminal, in your project folder, and the component installs automatically.

## Content

```
---
name: devils-advocate-loop
description: Adversarially challenges a design or decision until every serious objection is resolved or explicitly accepted.
category: evaluation
interval: 15m
stop-condition: No unresolved serious objections remain - each is fixed or consciously accepted with rationale.
components: [agent:expert-advisors/architect-review, agent:expert-advisors/critical-thinking, command:git-workflow/pr-review]
tags: [evaluation, design-review, decision-making, loop]
---

# Devil's-Advocate Loop

> **Loop Engineering** - put a dedicated critic in the loop. It keeps attacking the 

- 🔒 Full content on the Pro plan (€7.99/month) -
```

## Related components

- [adversarial-review-loop](https://doutorai.pt/en/components/loops__adversarial-review-loop): Has a second, independent model review every change before merge so two different reviewers must agree - code only lands when both clear the
- [anti-spin-build-loop](https://doutorai.pt/en/components/loops__anti-spin-build-loop): Builds toward a machine-checkable contract with explicit anti-spin guardrails - stops on no progress, repeated approaches, flip-flopping, or
- [build-test-fix-loop](https://doutorai.pt/en/components/loops__build-test-fix-loop): Builds the next item on the plan, then runs tests, typecheck and lint, feeding every failure back as the next instruction until the build is
- [builder-reviewer-loop](https://doutorai.pt/en/components/loops__builder-reviewer-loop): Passes code between a builder and an independent reviewer subagent until the review has no blocking findings and tests pass.
- [completion-contract-loop](https://doutorai.pt/en/components/loops__completion-contract-loop): Writes a contract of what "done" means and what evidence proves each requirement before any work starts, then refuses to claim success witho
- [docs-sweep-loop](https://doutorai.pt/en/components/loops__docs-sweep-loop): Keeps documentation aligned with the current codebase and opens a reviewable pull request on every pass.

## Save hours every week with AI, no hassle

**Doutor AI** gives you 1,859 ready-to-copy AI prompts, by industry and in plain English - plus a complete technical library for those who want to go further. [See plans →](https://doutorai.pt/en/pricing)

---
Content by Doutor AI (https://doutorai.pt/en). When quoting, please cite the source: https://doutorai.pt/en/components/loops__devils-advocate-loop
