Devil's advocate and idea exploration skill. Invoke when user says 'brainstorm', 'challenge this idea', 'what could go wrong', 'are there alternatives', 'play devil's advocate', 'what am I missing'. Takes a proposal, decision, or design and produces structured critical analysis + alternatives. Modes: devils-advocate (default), explore, both.
/brainstorm <proposal>
/brainstorm <proposal> --mode devils-advocate|explore|both
/brainstorm <proposal> --context <file-or-url>
<proposal> — the idea, decision, design, or plan to analyze--mode devils-advocate — find what could go wrong (default)--mode explore — generate alternative approaches--mode both — devil's advocate + exploration--context <file> — load additional context (spec, codebase, ADR) before analyzingBefore any analysis, restate the proposal in your own words in 1-2 sentences. If the restatement differs from what the user said, ask for clarification before proceeding.
--context given)# File context
cat "<file>" 2>/dev/null | head -100
Or read the file with the Read tool. Extract the relevant constraints and requirements.
both modes)Produce structured critique across these dimensions:
Think about: failure modes, race conditions, edge cases, load scenarios, error propagation.
Think about: security, scalability, operability, cost, backward compatibility, developer experience, team expertise.
If this proposal is arguing for approach X over Y:
Before committing to this proposal, what needs to be answered?
Q: <question> | Risk if wrong: <consequence>Generate 2-4 genuinely different approaches to the same problem:
For each alternative:
### Alternative: <name>
**Core idea:** <one sentence>
**Strengths:** <what this does better than the proposal>
**Weaknesses:** <what this does worse>
**Best fit when:** <conditions where this wins>
What adjacent patterns or tools exist that the user may not have considered?
Have others tried this approach? What was the outcome?
--mode devils-advocate:# Devil's Advocate: <proposal summary>
## What Could Break
1. <failure scenario 1> — blast radius: <scope> — detection: <easy/hard>
2. ...
## What's Not Considered
- <gap 1>
- <gap 2>
## Strongest Counter-Arguments
- <counter 1>
- <counter 2>
## Validate These First
| Priority | Question | Risk if Wrong |
|----------|----------|---------------|
| 1 | <question> | <consequence> |
| 2 | ... | ... |
## Verdict
<Is this a strong proposal with manageable risks, or does it need more work before committing?>
<One paragraph. Constructive — the goal is to strengthen the proposal, not kill it.>
--mode explore:# Alternatives: <proposal summary>
## Alternative 1: <name>
...
## Alternative 2: <name>
...
## Adjacent Ideas
- ...
## Historical Context
- ...
## Recommendation
<Which alternative (or the original) looks strongest given the stated context, and why?>
--mode both:Produce both sections above in sequence.
/brainstorm We should use Redis for session storage instead of JWT
/brainstorm --mode both Refactor the auth module from cookie-based to token-based sessions
/brainstorm --mode explore We need a background job system for sending emails
/brainstorm --context ./docs/adr-012.md Migrate from monolith to microservices