Agent skill

devils-advocate

Use when evaluating a decision, challenging an approach, or weighing pros and cons of architecture/technology choices.

Stars 0
Forks 0

Install this agent skill to your Project

npx add-skill https://github.com/hairihou/dotfiles/tree/main/src/.config/claude/skills/devils-advocate

SKILL.md

Devil's Advocate

Parallel advocate/critic analysis that surfaces tensions and decision factors for a given topic.

Topic: $ARGUMENTS

1. Gather Context

Search the codebase for code, documentation, and configuration related to the topic (Glob/Grep to locate, Read up to 5 key files). Identify:

  • Current state and constraints
  • Stakeholders and affected systems
  • Prior art or existing patterns in the codebase

2. Run Parallel Sub-agents

Use the Agent tool to launch both agents simultaneously in a single message (two Agent tool calls in parallel). Each agent receives the gathered context but cannot see the other's output.

For each agent, read the prompt template from ${CLAUDE_SKILL_DIR}/agents/ and substitute {{topic}} and {{context}} with actual values.

Agent Prompt file
Advocate ${CLAUDE_SKILL_DIR}/agents/advocate.md
Critic ${CLAUDE_SKILL_DIR}/agents/critic.md

3. Synthesize

After both agents return, combine their outputs into the following format. Do not editorialize — present both sides faithfully, then identify where they conflict.

Output Format

markdown
## Advocate

[Advocate agent output — arguments in favor]

## Critic

[Critic agent output — arguments against, risks, alternatives]

## Key Tensions

| Advocate claims | Critic claims |
| --------------- | ------------- |
| [Position A]    | [Counter A]   |

## Decision Factors

[What information or validation would resolve each tension — actionable next steps]

Common Mistakes

  • Topic too broad (e.g., "frontend strategy" → narrow to "adopting React Server Components for the dashboard")
  • Editorializing in synthesis — present both agents' outputs faithfully before identifying tensions
  • Ignoring Decision Factors — the actionable next steps are the most valuable part, not just the debate itself

Expand your agent's capabilities with these related and highly-rated skills.

hairihou/dotfiles

retrospect

Guided personal reflection that separates fact, interpretation, and emotion through structured inquiry. Use when "something feels off", "need to process this", "had a conflict", or decisions feel unclear. Not for technical decision analysis — use devils-advocate for that.

0 0
Explore
hairihou/dotfiles

1on1-prep

Prepare for 1on1 meetings using a Psychological Safety x Responsibility framework. Use when preparing for a 1on1, noticing behavioral changes, or planning a difficult conversation with a report.

0 0
Explore
hairihou/dotfiles

bonsai

Maintain and groom config files in the current repository. Use when "bonsai", "tidy up", "prune configs", "clean up", "spring cleaning", or reviewing config health. Not for code quality review — use code-critic for that.

0 0
Explore
hairihou/dotfiles

npm-update-report

Dependency update workflow with vulnerability assessment and verification. Use when asked to check outdated packages, bump dependencies, run audit, do periodic dependency maintenance, or when security vulnerabilities are reported.

0 0
Explore
hairihou/dotfiles

session-insights

Analyze the current conversation for inefficiencies and improvement opportunities. Use when "how did this session go", "what went wrong", "what could I have done better", or reviewing session quality. Not for personal reflection — use retrospect. Not for logging work — use diary.

0 0
Explore
hairihou/dotfiles

pr

Create or update a GitHub pull request. Use when asked to create a PR, submit for review, or push changes as a PR. Not for code review comments — use conventional-comments for that.

0 0
Explore

Didn't find tool you were looking for?

Be as detailed as possible for better results