Skip to content

Skills for Claude Code CLI such as full stack dev Cloudflare, React, Tailwind v4, and AI integrations.

feat(dev-tools): replace gemini-peer-review with brains-trust

Jeremy Dawesfc5baa683d10
diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.json
index 9f30bf09..8da85005 100644
--- a/.claude-plugin/marketplace.json
+++ b/.claude-plugin/marketplace.json
@@ -39,7 +39,7 @@
},
{
"name": "dev-tools",
- "description": "Project health and permission management, dev sessions, team updates with feedback triage, GitHub releases, Gemini peer review and API guide, capabilities reference, UX audits, and responsive layout testing.",
+ "description": "Project health and permission management, dev sessions, team updates with feedback triage, GitHub releases, multi-model brains trust (second opinions from Gemini/GPT/Qwen/DeepSeek), Gemini API guide, capabilities reference, UX audits, and responsive layout testing.",
"source": "./plugins/dev-tools",
"category": "development"
},
diff --git a/CLAUDE.md b/CLAUDE.md
index 301e9708..1e11dc32 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -46,12 +46,12 @@ claude-skills/
│ │ ├── google-apps-script/
│ │ ├── elevenlabs-agents/
│ │ └── mcp-builder/
-│ ├── dev-tools/ # Context, sessions, releases, peer review
+│ ├── dev-tools/ # Context, sessions, releases, brains trust
│ │ └── skills/
│ │ ├── project-health/
│ │ ├── dev-session/
│ │ ├── github-release/
-│ │ ├── gemini-peer-review/
+│ │ ├── brains-trust/
│ │ ├── gemini-guide/
│ │ ├── claude-capabilities/
│ │ ├── team-update/
diff --git a/README.md b/README.md
index c4db71bd..cc362b3d 100644
--- a/README.md
+++ b/README.md
@@ -13,7 +13,7 @@ Workflow skills for [Claude Code](https://claude.com/claude-code) that produce t
| **frontend** | tailwind-theme-builder, shadcn-ui | Themed Tailwind v4 + shadcn/ui setup with dark mode |
| **design-assets** | color-palette, favicon-gen, icon-set-generator, gemini-image-gen, image-processing | Colour palettes, favicons, SVG icons, AI image generation, image processing |
| **integrations** | google-chat-messages, google-apps-script, elevenlabs-agents, mcp-builder | Google Chat webhooks, Apps Script, ElevenLabs agents, MCP servers |
-| **dev-tools** | project-health, dev-session, team-update, github-release, gemini-peer-review, gemini-guide, claude-capabilities, ux-audit, responsiveness-check | Project health audits, session tracking, team updates with feedback triage, releases, Gemini peer review, API guide, UX audits, responsive testing |
+| **dev-tools** | project-health, dev-session, team-update, github-release, brains-trust, gemini-guide, claude-capabilities, ux-audit, responsiveness-check | Project health audits, session tracking, team updates with feedback triage, releases, multi-model brains trust, API guide, UX audits, responsive testing |
| **shopify** | shopify-setup, shopify-products, shopify-content | Shopify API setup, product management, content pages, blog posts |
| **wordpress** | wordpress-setup, wordpress-content, wordpress-elementor | WordPress WP-CLI access, content management, Elementor page editing |
| **writing** | aussie-business-english | Australian business English writing style |
diff --git a/plugins/dev-tools/.claude-plugin/plugin.json b/plugins/dev-tools/.claude-plugin/plugin.json
index b84c13da..af5cf858 100644
--- a/plugins/dev-tools/.claude-plugin/plugin.json
+++ b/plugins/dev-tools/.claude-plugin/plugin.json
@@ -1,6 +1,6 @@
{
"name": "dev-tools",
- "description": "Project health and permission management, dev sessions, team updates with feedback triage, GitHub releases, Gemini peer review and API guide, capabilities reference, UX audits, and responsive layout testing.",
+ "description": "Project health and permission management, dev sessions, team updates with feedback triage, GitHub releases, multi-model brains trust (second opinions from Gemini/GPT/Qwen/DeepSeek), Gemini API guide, capabilities reference, UX audits, and responsive layout testing.",
"author": {
"name": "Jeremy Dawes / Jezweb",
"email": "[email protected]"
diff --git a/plugins/dev-tools/skills/brains-trust/SKILL.md b/plugins/dev-tools/skills/brains-trust/SKILL.md
new file mode 100644
index 00000000..2b6a8c05
--- /dev/null
+++ b/plugins/dev-tools/skills/brains-trust/SKILL.md
@@ -0,0 +1,130 @@
+---
+name: brains-trust
+description: >
+ Get a second opinion from leading AI models on code, architecture, strategy, prompting, or anything.
+ Queries models via OpenRouter, Gemini, or OpenAI APIs. Supports single opinion, multi-model consensus,
+ and devil's advocate patterns. Trigger with 'brains trust', 'second opinion', 'ask gemini', 'ask gpt',
+ 'peer review', 'consult', 'challenge this', or 'devil's advocate'.
+triggers:
+ - brains trust
+ - second opinion
+ - ask gemini
+ - ask gpt
+ - peer review
+ - consult
+ - challenge this
+ - devil's advocate
+ - what does gemini think
+ - what does gpt think
+user-invocable: true
+argument-hint: "[question or topic]"
+compatibility: claude-code-only
+---
+
+# 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.
+
+## Setup
+
+Set at least one API key as an environment variable:
+
+```bash
+# 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 | When | What happens |
+|---------|------|-------------|
+| **Single** (default) | Quick second opinion | Ask one model, synthesise with your own view |
+| **Consensus** | Important decision, want confidence | Ask 2-3 diverse models in parallel, compare where they agree/disagree |
+| **Devil's advocate** | Challenge an assumption | Ask a model to explicitly argue against your current position |
+
+For consensus, pick models from different providers (e.g. one Google, one OpenAI, 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 models** — `WebFetch 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](references/prompt-templates.md). Include file contents inline with `--- filename ---` separators. **Do not set output token limits** — let models reason fully.
+
+5. **Write prompt to file** at `.claude/artifacts/brains-trust-prompt.txt` — never pass code inline via bash arguments (shell escaping breaks it).
+
+6. **Generate and run Python script** at `.claude/scripts/brains-trust.py` using patterns from [references/provider-api-patterns.md](references/provider-api-patterns.md):
+ - Reads prompt from `.claude/artifacts/brains-trust-prompt.txt`
+ - Calls the selected API(s)
+ - For consensus mode: calls multiple APIs in parallel using `concurrent.futures`
+ - Saves each response to `.claude/artifacts/brains-trust-{model}.md`
+ - 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
+
+## Reference Files
+
+| When | Read |
+|------|------|
+| Building prompts for any mode | [references/prompt-templates.md](references/prompt-templates.md) |
+| Generating the Python API call script | [references/provider-api-patterns.md](references/provider-api-patterns.md) |
diff --git a/plugins/dev-tools/skills/brains-trust/references/prompt-templates.md b/plugins/dev-tools/skills/brains-trust/references/prompt-templates.md
new file mode 100644
index 00000000..b216a0f2
--- /dev/null
+++ b/plugins/dev-tools/skills/brains-trust/references/prompt-templates.md
@@ -0,0 +1,125 @@
+# Prompt Templates
+
+## AI-to-AI Framing
+
+Always use this header when constructing prompts. It prevents role confusion — the consulted model knows it's advising Claude Code, not talking to the human directly.
+
+```
+[Claude Code consulting {model_name} for a second opinion]
+
+Task: {specific task description}
+
+{mode-specific instructions}
+
+Provide direct, specific analysis. I will synthesise your findings with mine before presenting to the developer.
+```
+
+## File Attachment Format
+
+When including code or file contents in the prompt, use clear separators:
+
+```
+--- src/auth.ts ---
+{file contents}
+--- src/middleware.ts ---
+{file contents}
+```
+
+Include the full file — don't truncate. Modern models have 400K-1M context windows.
+
+## Per-Mode Templates
+
+### Code Review
+
+```
+[Claude Code consulting {model_name} for a second opinion]
+
+Task: Code review — check for bugs, logic errors, security vulnerabilities (injection, XSS, CSRF), performance issues, race conditions, type safety problems, and missing error handling.
+
+Focus on issues that matter, not style nits. Reference specific lines.
+
+Provide direct analysis with file:line references. I will synthesise your findings with mine before presenting to the developer.
+```
+
+### Architecture
+
+```
+[Claude Code consulting {model_name} for a second opinion]
+
+Task: Architecture advice — {description of the decision or problem}
+
+Analyse for: architectural anti-patterns, scalability concerns, maintainability issues, better alternatives, hidden coupling, and potential technical debt. Consider trade-offs honestly.
+
+Provide specific, actionable recommendations with rationale. I will synthesise your findings with mine before presenting to the developer.
+```
+
+### Debug
+
+```
+[Claude Code consulting {model_name} for a second opinion]
+
+Task: Debug analysis — identify root cause (not just symptoms), explain the mechanism, suggest a specific fix with code, and how to prevent recurrence.
+
+Error: {error message/description}
+What was tried: {previous attempts}
+
+Provide direct analysis with file:line references. I will synthesise your findings with mine before presenting to the developer.
+```
+
+### Security
+
+```
+[Claude Code consulting {model_name} for a second opinion]
+
+Task: Security audit — check for injection vulnerabilities, authentication/authorisation bypasses, data exposure, insecure defaults, missing input validation, CORS misconfiguration, credential handling, and OWASP Top 10.
+
+Provide analysis with file:line references and severity ratings (critical/high/medium/low). I will synthesise your findings with mine before presenting to the developer.
+```
+
+### Strategy
+
+```
+[Claude Code consulting {model_name} for a second opinion]
+
+Task: Strategy review — {description of the decision or approach}
+
+Consider: Is this the right approach? What are we missing? What could go wrong? Are there simpler alternatives? What would you do differently?
+
+Be direct and honest. Challenge assumptions. I will synthesise your findings with mine before presenting to the developer.
+```
+
+### Prompting
+
+```
+[Claude Code consulting {model_name} for a second opinion]
+
+Task: Prompt review — analyse and improve this prompt/system prompt/KB content for clarity, effectiveness, edge case handling, and potential failure modes.
+
+Consider: ambiguous instructions, missing context, contradictions, tone consistency, and whether an LLM would reliably follow these instructions.
+
+Provide specific improvement suggestions with before/after examples. I will synthesise your findings with mine before presenting to the developer.
+```
+
+### General
+
+```
+[Claude Code consulting {model_name} for a second opinion]
+
+Task: {question or topic}
+
+Give me your honest analysis. Challenge assumptions if you see them. I will synthesise your perspective with mine before presenting to the developer.
+```
+
+## Devil's Advocate Framing
+
+When the user wants their position challenged, wrap any mode template with this:
+
+```
+IMPORTANT: Your role is devil's advocate. The developer (via Claude Code) currently believes:
+
+{stated position or assumption}
+
+Your job is to argue AGAINST this position. Find the strongest counterarguments, identify what could go wrong, surface assumptions that might be wrong, and present the best case for an alternative approach.
+
+Do not hedge or agree. Push back hard. The goal is to stress-test this thinking, not validate it.
+```
diff --git a/plugins/dev-tools/skills/brains-trust/references/provider-api-patterns.md b/plugins/dev-tools/skills/brains-trust/references/provider-api-patterns.md
new file mode 100644
index 00000000..c81bf157
--- /dev/null
+++ b/plugins/dev-tools/skills/brains-trust/references/provider-api-patterns.md
@@ -0,0 +1,204 @@
+# Provider API Patterns
+
+Python patterns for calling each provider. The generated script should use `urllib` (stdlib) — no pip dependencies.
+
+## Key Detection
+
+```python
+import os
+
+OPENROUTER_KEY = os.environ.get('OPENROUTER_API_KEY')
+GEMINI_KEY = os.environ.get('GEMINI_API_KEY')
+OPENAI_KEY = os.environ.get('OPENAI_API_KEY')
+
+if not any([OPENROUTER_KEY, GEMINI_KEY, OPENAI_KEY]):
+ print("ERROR: No API keys found. Set at least one of:")
+ print(" OPENROUTER_API_KEY (recommended — covers all providers)")
+ print(" GEMINI_API_KEY")
+ print(" OPENAI_API_KEY")
+ sys.exit(1)
+```
+
+## Fetching Current Models
+
+```python
+import urllib.request, json
+
+def get_current_models():
+ """Fetch current leading models from models.flared.au"""
+ req = urllib.request.Request(
+ 'https://models.flared.au/json',
+ headers={'User-Agent': 'brains-trust/1.0'}
+ )
+ resp = urllib.request.urlopen(req, timeout=10)
+ return json.loads(resp.read())
+```
+
+## OpenRouter (Universal — All Providers)
+
+OpenRouter uses the OpenAI-compatible chat completions API. Any model available on OpenRouter can be called this way.
+
+```python
+def call_openrouter(model_id, prompt, api_key):
+ """Call any model via OpenRouter. Do NOT set max_tokens."""
+ payload = json.dumps({
+ "model": model_id,
+ "messages": [{"role": "user", "content": prompt}],
+ # No max_tokens — let the model reason fully
+ }).encode()
+
+ req = urllib.request.Request(
+ 'https://openrouter.ai/api/v1/chat/completions',
+ data=payload,
+ headers={
+ 'Authorization': f'Bearer {api_key}',
+ 'Content-Type': 'application/json',
+ 'HTTP-Referer': 'https://github.com/jezweb/claude-skills',
+ 'X-Title': 'Brains Trust',
+ }
+ )
+ resp = urllib.request.urlopen(req, timeout=120)
+ result = json.loads(resp.read())
+ return result['choices'][0]['message']['content']
+```
+
+## Google Gemini (Direct)
+
+```python
+def call_gemini(model_id, prompt, api_key):
+ """Call Gemini directly. Do NOT set maxOutputTokens."""
+ # Strip provider prefix if present
+ model = model_id.replace('google/', '')
+ url = f'https://generativelanguage.googleapis.com/v1beta/models/{model}:generateContent?key={api_key}'
+
+ payload = json.dumps({
+ "contents": [{"parts": [{"text": prompt}]}],
+ "generationConfig": {
+ "temperature": 0.3
+ # No maxOutputTokens — let the model reason fully
+ }
+ }).encode()
+
+ req = urllib.request.Request(
+ url,
+ data=payload,
+ headers={
+ 'Content-Type': 'application/json',
+ 'User-Agent': 'brains-trust/1.0'
+ }
+ )
+ resp = urllib.request.urlopen(req, timeout=120)
+ result = json.loads(resp.read())
+ return result['candidates'][0]['content']['parts'][0]['text']
+```
+
+## OpenAI (Direct)
+
+```python
+def call_openai(model_id, prompt, api_key):
+ """Call OpenAI directly. Do NOT set max_tokens."""
+ # Strip provider prefix if present
+ model = model_id.replace('openai/', '')
+
+ payload = json.dumps({
+ "model": model,
+ "messages": [{"role": "user", "content": prompt}],
+ # No max_tokens — let the model reason fully
+ }).encode()
+
+ req = urllib.request.Request(
+ 'https://api.openai.com/v1/chat/completions',
+ data=payload,
+ headers={
+ 'Authorization': f'Bearer {api_key}',
+ 'Content-Type': 'application/json',
+ }
+ )
+ resp = urllib.request.urlopen(req, timeout=120)
+ result = json.loads(resp.read())
+ return result['choices'][0]['message']['content']
+```
+
+## Routing: Model ID → Provider
+
+```python
+def call_model(model_id, prompt):
+ """Route a model ID to the correct API."""
+ # Prefer direct keys when available for the provider
+ if model_id.startswith('google/') and GEMINI_KEY:
+ return call_gemini(model_id, prompt, GEMINI_KEY)
+ elif model_id.startswith('openai/') and OPENAI_KEY:
+ return call_openai(model_id, prompt, OPENAI_KEY)
+ elif OPENROUTER_KEY:
+ return call_openrouter(model_id, prompt, OPENROUTER_KEY)
+ else:
+ raise ValueError(f"No API key available for {model_id}")
+```
+
+## Parallel Execution (Consensus Mode)
+
+```python
+from concurrent.futures import ThreadPoolExecutor, as_completed
+
+def call_consensus(model_ids, prompt):
+ """Call multiple models in parallel, return all results."""
+ results = {}
+ with ThreadPoolExecutor(max_workers=len(model_ids)) as executor:
+ futures = {
+ executor.submit(call_model, mid, prompt): mid
+ for mid in model_ids
+ }
+ for future in as_completed(futures):
+ model_id = futures[future]
+ try:
+ results[model_id] = future.result()
+ except Exception as e:
+ results[model_id] = f"ERROR: {e}"
+ return results
+```
+
+## Error Handling
+
+```python
+try:
+ result = call_model(model_id, prompt)
+except urllib.error.HTTPError as e:
+ body = e.read().decode() if e.fp else ''
+ print(f"HTTP {e.code}: {body[:500]}")
+ if e.code == 401:
+ print("Check your API key is valid and has credits")
+ elif e.code == 429:
+ print("Rate limited — wait a moment and retry")
+ elif e.code == 404:
+ print(f"Model '{model_id}' not found — check models.flared.au for current IDs")
+ sys.exit(1)
+except urllib.error.URLError as e:
+ print(f"Connection error: {e.reason}")
+ sys.exit(1)
+```
+
+## Script Structure
+
+The generated `brains-trust.py` should follow this structure:
+
+```python
+#!/usr/bin/env python3
+"""Brains Trust — multi-model consultation"""
+import os, sys, json, urllib.request
+from concurrent.futures import ThreadPoolExecutor, as_completed
+
+# 1. Check keys
+# 2. Read prompt from .claude/artifacts/brains-trust-prompt.txt
+# 3. Define call functions (from patterns above)
+# 4. Call model(s)
+# 5. Print results
+# 6. Save to .claude/artifacts/brains-trust-{model}.md
+```
+
+## Critical Rules
+
+1. **Never set `max_tokens` or `maxOutputTokens`** — let models use their full reasoning capacity
+2. **Always set `User-Agent`** header — Python's default UA gets blocked by Cloudflare Bot Fight Mode
+3. **Use 120s timeout** — pro models with long reasoning can take 30-60s
+4. **Write prompts to file** — never pass via bash arguments (shell escaping breaks on apostrophes, quotes)
+5. **Handle errors gracefully** — show the HTTP status and body, suggest fixes
diff --git a/plugins/dev-tools/skills/gemini-peer-review/SKILL.md b/plugins/dev-tools/skills/gemini-peer-review/SKILL.md
deleted file mode 100644
index 2e406713..00000000
--- a/plugins/dev-tools/skills/gemini-peer-review/SKILL.md
+++ /dev/null
@@ -1,108 +0,0 @@
----
-name: gemini-peer-review
-description: "Get a second opinion from Gemini on code, architecture, debugging, or security. Uses direct Gemini API calls — no CLI dependencies. Trigger with 'ask gemini', 'gemini review', 'second opinion', 'peer review', or 'consult gemini'."
-compatibility: claude-code-only
----
-
-# Gemini Peer Review
-
-Consult Gemini as a coding peer for a second opinion on code quality, architecture decisions, debugging, or security reviews.
-
-## Setup
-
-**API Key**: Set `GEMINI_API_KEY` as an environment variable. Get a key from https://aistudio.google.com/apikey if you don't have one.
-
-```bash
-export GEMINI_API_KEY="your-key-here"
-```
-
-## Workflow
-
-1. **Determine mode** from user request (review, architect, debug, security, quick)
-2. **Read target files** into context
-3. **Build prompt** using the AI-to-AI template from [references/prompt-templates.md](references/prompt-templates.md)
-4. **Write prompt to file** at `.claude/artifacts/gemini-prompt.txt` (avoids shell escaping issues)
-5. **Call the API** — generate a Python script that:
- - Reads `GEMINI_API_KEY` from environment
- - Reads the prompt from `.claude/artifacts/gemini-prompt.txt`
- - POSTs to `https://generativelanguage.googleapis.com/v1beta/models/{model}:generateContent`
- - Payload: `{"contents": [{"parts": [{"text": prompt}]}], "generationConfig": {"temperature": 0.3, "maxOutputTokens": 8192}}`
- - Extracts text from `candidates[0].content.parts[0].text`
- - Prints result to stdout
-
- Write the script to `.claude/scripts/gemini-review.py` and run it.
-
-6. **Synthesize** — present Gemini's findings, add your own perspective (agree/disagree), let the user decide what to implement
-
-## Modes
-
-### Code Review
-
-Review specific files for bugs, logic errors, security vulnerabilities, performance issues, and best practice violations.
-
-Read the target files, build a prompt using the Code Review template, call with `gemini-2.5-flash`.
-
-### Architecture Advice
-
-Get feedback on design decisions with trade-off analysis. Include project context (CLAUDE.md, relevant source files).
-
-Read project context, build a prompt using the Architecture template, call with `gemini-2.5-pro`.
-
-### Debugging Help
-
-Analyse errors when stuck after 2+ failed fix attempts. Gemini sees the code fresh without your debugging context bias.
-
-Read the problematic files, build a prompt using the Debug template (include error message and previous attempts), call with `gemini-2.5-flash`.
-
-### Security Scan
-
-Scan code for security vulnerabilities (injection, auth bypass, data exposure).
-
-Read the target directory's source files, build a prompt using the Security template, call with `gemini-2.5-pro`.
-
-### Quick Question
-
-Fast question without file context. Build prompt inline, write to file, call with `gemini-2.5-flash`.
-
-## Model Selection
-
-| Mode | Model | Why |
-|------|-------|-----|
-| review, debug, quick | `gemini-2.5-flash` | Fast, good for straightforward analysis |
-| architect, security-scan | `gemini-2.5-pro` | Better reasoning for complex trade-offs |
-
-Check current model IDs if errors occur — they change frequently:
-
-```bash
-curl -s "https://generativelanguage.googleapis.com/v1beta/models?key=$GEMINI_API_KEY" | python3 -c "import sys,json; [print(m['name']) for m in json.load(sys.stdin)['models'] if 'gemini' in m['name']]"
-```
-
-## When to Use
-
-**Good use cases**:
-- Before committing major changes (final review)
-- When stuck debugging after multiple attempts
-- Architecture decisions with multiple valid options
-- Security-sensitive code review
-
-**Avoid using for**:
-- Simple syntax checks (Claude handles these faster)
-- Every single edit (too slow, unnecessary)
-- Questions with obvious answers
-
-## Prompt Construction
-
-**Critical**: Always use the AI-to-AI prompting format. Write the full prompt to a file — never pass code inline via bash arguments (shell escaping will break it).
-
-When building the prompt:
-1. Start with the AI-to-AI header from [references/prompt-templates.md](references/prompt-templates.md)
-2. Append the mode-specific template
-3. Append the file contents with clear `--- filename ---` separators
-4. Write to `.claude/artifacts/gemini-prompt.txt`
-5. Generate and run the API call script
-
-## Reference Files
-
-| When | Read |
-|------|------|
-| Building prompts for any mode | [references/prompt-templates.md](references/prompt-templates.md) |
diff --git a/plugins/dev-tools/skills/gemini-peer-review/references/prompt-templates.md b/plugins/dev-tools/skills/gemini-peer-review/references/prompt-templates.md
deleted file mode 100644
index 25182894..00000000
--- a/plugins/dev-tools/skills/gemini-peer-review/references/prompt-templates.md
+++ /dev/null
@@ -1,71 +0,0 @@
-# Prompt Templates
-
-## AI-to-AI Prompting Format
-
-Always use this format when constructing prompts for Gemini. It prevents role confusion — Gemini knows it's advising Claude Code, not talking to the human.
-
-```
-[Claude Code consulting Gemini for peer review]
-
-Task: [Specific task description]
-
-Provide direct analysis with file:line references. I will synthesize your findings with mine before presenting to the developer.
-```
-
-## Per-Mode Templates
-
-### Code Review
-
-```
-[Claude Code consulting Gemini for peer review]
-
-Task: Code review — check for bugs, logic errors, security vulnerabilities (SQL injection, XSS, etc.), performance issues, best practice violations, type safety problems, and missing error handling.
-
-[If reference docs available:]
-Check against these official docs:
-- [URL]
-
-Provide direct analysis with file:line references. I will synthesize your findings with mine before presenting to the developer.
-```
-
-### Architecture Advice
-
-```
-[Claude Code consulting Gemini for peer review]
-
-Task: Architecture advice — [description of the decision or problem]
-
-Analyse for: architectural anti-patterns, scalability concerns, maintainability issues, better alternatives, potential technical debt.
-
-Provide specific, actionable recommendations and rationale. I will synthesize your findings with mine before presenting to the developer.
-```
-
-### Debugging Help
-
-```
-[Claude Code consulting Gemini for peer review]
-
-Task: Debug analysis — identify root cause (not just symptoms), explain why it's happening, suggest specific fix with code example, and how to prevent in future.
-
-Error: [error message/description]
-What was tried: [previous attempts if any]
-
-Provide direct analysis with file:line references. I will synthesize your findings with mine before presenting to the developer.
-```
-
-### Security Scan
-
-```
-[Claude Code consulting Gemini for peer review]
-
-Task: Security audit — check for injection vulnerabilities, authentication/authorisation issues, data exposure, insecure defaults, missing input validation, CORS misconfiguration, and credential handling.
-
-Provide direct analysis with file:line references and severity ratings. I will synthesize your findings with mine before presenting to the developer.
-```
-
-## Flash vs Pro
-
-- **Flash** (default): Faster (~5-15s), good for code reviews, debugging, most tasks. Safer with directory scanning.
-- **Pro**: Better reasoning (~15-30s), preferred for complex architecture decisions and security reviews. May try to use tools aggressively when scanning directories.
-
-Both models have similar quality on straightforward tasks. Pro's advantage shows on complex reasoning where trade-off analysis matters.