brains-trust

jezweb/claude-skills · updated Apr 8, 2026

MDX-style export adds YAML metadata + attribution linking explainx.ai and this canonical listing URL.

$npx skills add https://github.com/jezweb/claude-skills --skill brains-trust
0 commentsdiscussion
summary

Consult other leading AI models for a second opinion. Not limited to code — works for architecture, strategy, prompting, debugging, writing, or any question where a fresh perspective helps.

skill.md

Brains Trust

Consult other leading AI models for a second opinion. Not limited to code — works for architecture, strategy, prompting, debugging, writing, or any question where a fresh perspective helps.

Defaults (When User Just Says "Brains Trust")

If the user triggers this skill without specifying what to consult about, apply these defaults:

  1. Pattern: Consensus (2 models from different providers) — it's called "brains trust", not "single opinion"
  2. Scope: Whatever Claude has been working on in the current session. Look at recent context: files edited, decisions made, architecture discussed, problems being solved.
  3. Mode: Infer from context:
    • Recently wrote/edited code → Code Review
    • In a planning or design discussion → Architecture
    • Debugging something → Debug
    • Building prompts or skills → Prompting
    • No clear signal → General (ask: "what are we missing? what are our blind spots?")
  4. Models: Pick the newest pro-tier model from 2 different providers (check models.flared.au). Prefer diversity: e.g. one Google + one OpenAI, or one Qwen + one Google. Never two from the same provider.
  5. Prompt focus: "Review what we've been working on. What are we missing? What could be improved? What blind spots might we have? Are there simpler approaches we haven't considered?"

Trigger → Default Mapping

Trigger Default pattern Default scope
"brains trust" Consensus (2 models) Current session work
"second opinion" Single (1 model) Current session work
"ask gemini" / "ask gpt" Single (specified provider) Current session work
"peer review" Consensus (2 models) Recently changed files
"challenge this" / "devil's advocate" Devil's advocate (1 model) Claude's current position

The user can always override by being specific: "brains trust this config file", "ask gemini about the auth approach", etc.

Setup

Set at least one API key as an environment variable:

# Recommended — one key covers all providers
export OPENROUTER_API_KEY="your-key"

# Optional — direct access (often faster/cheaper)
export GEMINI_API_KEY="your-key"
export OPENAI_API_KEY="your-key"

OpenRouter is the universal path — one key gives access to Gemini, GPT, Qwen, DeepSeek, Llama, Mistral, and more.

Current Models

Do not use hardcoded model IDs. Before every consultation, fetch the current leading models:

https://models.flared.au/llms.txt

This is a live-updated, curated list of ~40 leading models from 11 providers, filtered from OpenRouter's full catalogue. Use it to pick the right model for the task.

For programmatic use in the generated Python script: https://models.flared.au/json

Consultation Patterns

Pattern Default for What happens
Consensus "brains trust", "peer review" Ask 2 models from different providers in parallel, compare where they agree/disagree
Single "second opinion", "ask gemini", "ask gpt" Ask one model, synthesise with your own view
Devil's advocate "challenge this", "devil's advocate" Ask a model to explicitly argue against your current position

For consensus, always pick models from different providers (e.g. one Google + one Qwen) for maximum diversity of perspective.

Modes

Mode When Model tier
Code Review Review files for bugs, patterns, security Flash
Architecture Design decisions, trade-offs Pro
Debug Stuck after 2+ failed attempts Flash
Security Vulnerability scan Pro
Strategy Business, product, approach decisions Pro
Prompting Improve prompts, system prompts, KB files Flash
General Any question, brainstorm, challenge Flash

Pro tier: The most capable model from the chosen provider (e.g. google/gemini-3.1-pro-preview, openai/gpt-5.4). Flash tier: Fast, cheaper models for straightforward analysis (e.g. google/gemini-3-flash-preview, qwen/qwen3.5-flash-02-23).

Workflow

  1. Detect available keys — check OPENROUTER_API_KEY, GEMINI_API_KEY, OPENAI_API_KEY in environment. If none found, show setup instructions and stop.

  2. Fetch current modelsWebFetch https://models.flared.au/llms.txt and pick appropriate models based on mode (pro vs flash) and consultation pattern (single vs consensus). If user requested a specific provider ("ask gemini"), use that.

  3. Read target files into context (if code-related). For non-code questions (strategy, prompting, general), skip file reading.

  4. Build prompt using the AI-to-AI template from references/prompt-templates.md. Include file contents inline with --- filename --- separators. Do not set output token limits — let models reason fully.

  5. Create consultation directory at .jez/artifacts/brains-trust/{timestamp}-{topic}/ (e.g. 2026-03-10-1423-auth-architecture/). Write the prompt to prompt.txt inside it — never pass code inline via bash arguments (shell escaping breaks it).

  6. Generate and run Python script at .jez/scripts/brains-trust.py using patterns from references/provider-api-patterns.md:

    • Reads prompt from the consultation directory's prompt.txt
    • Calls the selected API(s)
    • For consensus mode: calls multiple APIs in parallel using concurrent.futures
    • Saves each response to {model}.md in the consultation directory
    • Prints results to stdout
  7. Synthesise — read the responses, present findings to the user. Note where models agree and disagree. Add your own perspective (agree/disagree with reasoning). Let the user decide what to act on.

When to Use

Good use cases:

  • Before committing major architectural changes
  • When stuck debugging after multiple attempts
  • Architecture decisions with multiple valid options
  • Reviewing security-sensitive code
  • Challenging your own assumptions on strategy or approach
  • Improving system prompts or KB files
  • Any time you want a fresh perspective

Avoid using for:

  • Simple syntax checks (Claude handles these)
  • Every single edit (too slow, costs money)
  • Questions with obvious, well-known answers

Critical Rules

  1. Never hardcode model IDs — always fetch from models.flared.au first
  2. Never cap output tokens — don't set max_tokens or maxOutputTokens
  3. Always write prompts to file — never pass via bash arguments
  4. Include file contents inline — attach code context directly in the prompt
  5. Use AI-to-AI framing — the model is advising Claude, not talking to the human
  6. Print progress to stderr — the Python script must print status updates (Calling gemini-2.5-pro..., Received response from qwen3.5-plus.) so the user knows it's working during the 30-90 second wait

Reference Files

When Read
Building prompts for any mode references/prompt-templates.md
Generating the Python API call script references/provider-api-patterns.md
how to use brains-trust

How to use brains-trust on Cursor

AI-first code editor with Composer

1

Prerequisites

Before installing skills in Cursor, ensure your development environment meets these requirements:

  • Cursor installed and configured on your development machine
  • Node.js version 16.0+ with npm package manager (verify with node --version)
  • Active project directory or workspace where you want to add brains-trust
2

Execute installation command

Execute the skills CLI command in your project's root directory to begin installation:

$npx skills add https://github.com/jezweb/claude-skills --skill brains-trust

The skills CLI fetches brains-trust from GitHub repository jezweb/claude-skills and configures it for Cursor.

3

Select Cursor when prompted

The CLI will show a list of available agents. Use arrow keys to navigate and space to select Cursor:

◆ Which agents do you want to install to?
│ ── Universal (.agents/skills) ── always included ────
│ • Amp
│ • Antigravity
│ • Cline
│ • Codex
│ ●Cursor(selected)
│ • Cursor
│ • Windsurf
4

Verify installation

Confirm successful installation by checking the skill directory location:

.cursor/skills/brains-trust

Reload or restart Cursor to activate brains-trust. Access the skill through slash commands (e.g., /brains-trust) or your agent's skill management interface.

Security & Verification Notice

We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.

Skills execute code in your development environment. Always verify the publisher's identity, review recent commits, and test in isolated environments before production deployment.

List & Monetize Your Skill

Submit your Claude Code skill and start earning

GET_STARTED →

Use Cases

Task Automation & Efficiency

Automate repetitive workflows and reduce manual effort

Example

Generate reports, summarize documents, draft communications

Save 3-5 hours per week on routine tasks

Knowledge Enhancement

Learn new skills, understand complex topics, get expert guidance

Example

Explain concepts, provide examples, suggest learning resources

Accelerate learning and skill development by 2x

Quality Improvement

Enhance output quality through reviews, suggestions, and refinements

Example

Review drafts, suggest improvements, catch errors

Improve work quality by 30-40% with less effort

Implementation Guide

Prerequisites

  • Claude Desktop or compatible AI client with skill support
  • Clear understanding of task or problem to solve
  • Willingness to iterate and refine outputs

Time Estimate

15-45 minutes depending on use case complexity

Installation Steps

  1. 1.Install skill using provided installation command
  2. 2.Test with simple use case relevant to your work
  3. 3.Evaluate output quality and relevance
  4. 4.Iterate on prompts to improve results
  5. 5.Integrate into regular workflow if valuable

Common Pitfalls

  • Expecting perfect results without iteration
  • Not providing enough context in prompts
  • Using skill for tasks outside its intended scope
  • Accepting outputs without review and validation

Best Practices

✓ Do

  • +Start with clear, specific prompts
  • +Provide relevant context and constraints
  • +Review and refine all outputs before using
  • +Iterate to improve output quality
  • +Document successful prompt patterns

✗ Don't

  • Don't use without understanding skill limitations
  • Don't skip validation of outputs
  • Don't share sensitive information in prompts
  • Don't expect skill to replace human judgment

💡 Pro Tips

  • Be specific about desired format and style
  • Ask for multiple options to choose from
  • Request explanations to understand reasoning
  • Combine AI efficiency with human expertise

When to Use This

✓ Use When

Use when skill capabilities match your task, clear ROI on time saved, and you can validate outputs. Best for repetitive tasks, learning, and quality improvement.

✗ Avoid When

Avoid when task requires deep expertise you can't validate, involves sensitive decisions, or when learning process is more valuable than speed of completion.

Learning Path

  1. 1Familiarize yourself with skill capabilities and limitations
  2. 2Start with low-risk, non-critical tasks
  3. 3Progress to more complex and valuable use cases
  4. 4Build expertise through regular use and experimentation

Discussion

Product Hunt–style comments (not star reviews)
  • No comments yet — start the thread.
general reviews

Ratings

4.671 reviews
  • Mei Singh· Dec 16, 2024

    brains-trust is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.

  • Li Taylor· Dec 12, 2024

    Useful defaults in brains-trust — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.

  • Mei Reddy· Dec 4, 2024

    Registry listing for brains-trust matched our evaluation — installs cleanly and behaves as described in the markdown.

  • Kiara Agarwal· Dec 4, 2024

    I recommend brains-trust for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.

  • Kaira Flores· Dec 4, 2024

    brains-trust fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.

  • Anika Mensah· Nov 23, 2024

    Useful defaults in brains-trust — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.

  • Kiara Patel· Nov 23, 2024

    brains-trust reduced setup friction for our internal harness; good balance of opinion and flexibility.

  • Li Rao· Nov 19, 2024

    We added brains-trust from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.

  • Anika Haddad· Nov 11, 2024

    We added brains-trust from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.

  • Emma Ndlovu· Nov 7, 2024

    Solid pick for teams standardizing on skills: brains-trust is focused, and the summary matches what you get after install.

showing 1-10 of 71

1 / 8