Wei Devils Advocate
by @mikehankk
Stress-test ideas using multiple LLMs in adversarial roles to generate counterarguments, cross-check reasoning, and expose hidden risks and failure modes. 易找...
#### Example 1: Financial Query
Query: "Should we invest in AI startups in 2026?"
Selection process:
1. Keywords: invest, startups, 2026 → queryType: financial
2. Pass to skill: { "query": "...", "queryType": "financial" }
3. Skill looks up: config.json → routing.financial.models
4. Skill selects: Models configured for financial analysis
5. Judge: Evaluates investment thesis survivability
#### Example 2: Technical Query
Query: "Is microservices architecture the right choice for our startup?"
Selection process:
1. Keywords: microservices, architecture → queryType: technical
2. Pass to skill: { "query": "...", "queryType": "technical" }
3. Skill looks up: config.json → routing.technical.models
4. Skill selects: Models with technical/coding roles
#### Example 3: Product Validation
Query: "Will users pay for this productivity app?"
Selection process:
1. Keywords: users, pay, app → queryType: social
2. Pass to skill: { "query": "...", "queryType": "social" }
3. Skill looks up: config.json → routing.social.models
4. Skill selects: Models with social/retrieval roles
Install Bun
curl -fsSL https://bun.sh/install | bash
Or on macOS with Homebrew:
brew install oven-sh/bun/bun
Install Dependencies
cd skills/wei-devils-advocate
bun install
Environment Setup
Create a .env file in the skill directory with your API keys:
# Required: OpenRouter API key (for debater models)
OPENROUTER_API_KEY=your_openrouter_api_key_hereRequired: DashScope/Bailian API key (for judge model)
DASHSCOPE_API_KEY=your_dashscope_api_key_here
Or export as environment variables:
export OPENROUTER_API_KEY=your_openrouter_api_key_here
export DASHSCOPE_API_KEY=your_dashscope_api_key_here
> Note: If environment variables are not set, the skill will throw an error with instructions on how to configure them.
Configuration Files
> 遇到模型访问问题? 请参考 README.md 了解如何根据你的网络环境选择和配置 config.json。
clawhub install wei-devils-advocate