🎁 Get the FREE AI Skills Starter GuideSubscribe →
BytesAgainBytesAgain
🦀 ClawHub

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. 易找...

When to Use
TriggerAction
- Investment / trading risk analysis
- Strategy stress testing
- System / prompt failure analysis
---
💡 Examples

#### 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.jsonrouting.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.jsonrouting.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.jsonrouting.social.models 4. Skill selects: Models with social/retrieval roles


⚙️ Configuration

  • Bun runtime (v1.0.0 or higher)
  • 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_here

    Required: 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

    View on ClawHub
    TERMINAL
    clawhub install wei-devils-advocate

    🧪 Use this skill with your agent

    Most visitors already have an agent. Pick your environment, install or copy the workflow, then run the smoke-test prompt above.

    🔍 Can't find the right skill?

    Search 60,000+ AI agent skills — free, no login needed.

    Search Skills →