Prompt file imported from Habitat-Thinking/ai-literacy-superpowers (
.github/prompts/diaboli.prompt.md). Copyright stays with the author.
Diaboli
Run the advocatus-diaboli adversarial reviewer against a spec file (spec mode) or implementation (code mode).
Usage
/diaboli docs/superpowers/specs/<date>-<name>.md [--mode spec|code]
--mode defaults to spec. Pass --mode code after the final code-reviewer
PASS, before integration-agent.
Steps
- Confirm the spec file exists at the path provided
- Derive the slug: strip the date prefix and
.mdextension from the filename - Determine output path from mode:
- Spec mode:
docs/superpowers/objections/<slug>.md - Code mode:
docs/superpowers/objections/<slug>-code.md
- Spec mode:
- Read the spec file in full; in code mode also read implementation files changed on the current branch
- Read
ai-literacy-superpowers/skills/advocatus-diaboli/SKILL.mdfor the charter, six categories, severity definitions, dispatch mode weighting, and output format - Apply category weighting for the active mode (see Dispatch Modes section in SKILL.md)
- Generate objection record content following the skill's output format:
- YAML frontmatter with
mode: spec|code, all objections (disposition: pending,disposition_rationale: null) - Prose sections per objection (
## O<N> — <category> — <severity>) - Closing "Explicitly not objecting to" section (at least three entries)
- YAML frontmatter with
- Write to the mode-appropriate path (overwrite if exists)
- Validate the written file: check frontmatter structure including
mode:field, field presence, pending dispositions, category/severity enum values, objection count (1–12), prose sections, closing section - Fix any validation failures in place
- Report: output path, mode, objection count by severity, category distribution
- Remind the user to fill in dispositions before the appropriate gate:
- Spec mode: plan-approval gate
- Code mode: integration-approval gate