skills/llm-advisor/SKILL.md
Consult other LLMs (GPT-4.1, o4-mini, Gemini 2.5 Pro, Claude Opus) for second opinions on complex bugs, hard problems, planning, and architecture decisions. Use proactively when stuck for 15+ minutes or facing complex debugging. Use when user says 'ask Gemini/GPT/Claude about X' or 'get a second opinion'.
npx skillsauth add ckorhonen/claude-skills llm-advisorInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use Simon Willison's llm CLI to consult other LLMs for second opinions, alternative perspectives, and expert advice on complex problems.
Use this skill proactively without being asked when:
Use when the user says:
# Install llm CLI
brew install llm
# or
pip install llm
# Set up OpenAI API key
llm keys set openai
# Install Gemini plugin (optional)
llm install llm-gemini
llm keys set gemini
# Install Anthropic plugin (optional)
llm install llm-anthropic
llm keys set anthropic
# Check available models
llm models
# Test a simple prompt
llm "Hello, what model are you?"
| Use Case | Model | Command |
|----------|-------|---------|
| Fast/cheap | gpt-4o-mini | llm -m gpt-4o-mini "question" |
| General purpose | gpt-4.1 | llm -m gpt-4.1 "question" |
| Complex reasoning | o4-mini | llm -m o4-mini -o reasoning_effort=high "question" |
| Deep reasoning | o3 | llm -m o3 "question" |
| Premium | gpt-4.1 | llm -m gpt-4.1 "question" |
Note: Check
llm modelsto see exactly which model IDs are installed. OpenAI model names change frequently. As of 2026,gpt-4.1is the flagship GPT ando3/o4-miniare the reasoning models.
| Use Case | Model | Command |
|----------|-------|---------|
| Fast general | gemini-2.0-flash | llm -m gemini-2.0-flash "question" |
| Advanced + thinking | gemini-2.5-pro | llm -m gemini-2.5-pro "question" |
| Long context (1M+) | gemini-2.5-pro | llm -m gemini-2.5-pro "question" |
| Deep reasoning | gemini-2.5-pro | llm -m gemini-2.5-pro -o thinking_budget=32000 "question" |
| Use Case | Model | Command |
|----------|-------|---------|
| Fast / cost-efficient | claude-haiku-4 | llm -m claude-haiku-4 "question" |
| General purpose | claude-sonnet-4-5 | llm -m claude-sonnet-4-5 "question" |
| Highest quality | claude-opus-4-5 | llm -m claude-opus-4-5 "question" |
gpt-4o-mini or gemini-2.0-flashgpt-4.1 or claude-sonnet-4-5o4-mini -o reasoning_effort=high or gemini-2.5-pro -o thinking_budget=32000gpt-4.1 or claude-sonnet-4-5 for thorough analysiso3 or claude-opus-4-5gemini-2.5-pro (1M+ context window)# Simple question
llm "What's the best way to handle rate limiting in a REST API?"
# With specific model
llm -m gpt-4.1 "Explain this error: <error message>"
# With system prompt
llm -s "You are a senior software architect" "Review this design: <design>"
# Analyze code from file
cat src/auth.ts | llm -m gpt-4.1 "Review this authentication code for security issues"
# Analyze git diff
git diff | llm -m gpt-4.1 "Review these changes for bugs"
# Analyze error logs
cat error.log | llm -m gpt-4o-mini "What's causing these errors?"
# Control reasoning effort (OpenAI o-series)
llm -m o4-mini -o reasoning_effort=high "Complex question"
llm -m o4-mini -o reasoning_effort=low "Simple question"
# Enable thinking mode (Gemini)
llm -m gemini-2.5-pro -o thinking_budget=32000 "Complex reasoning task"
# Extract code blocks from response
llm -x "Write a function to parse JSON safely"
# Continue previous conversation
llm -c "What about error handling?"
# Start new conversation with context
llm -m gpt-4.1 "I'm debugging a memory leak in a Node.js app..."
llm -c "Here's the heap snapshot: <data>"
When stuck on a difficult bug:
# Describe the problem with context
llm -m o4-mini -o reasoning_effort=high "I'm debugging this issue:
Error: Connection refused on port 5432
Environment: Docker container, Node.js 22
Stack trace: <paste stack trace>
What I've tried:
1. Verified PostgreSQL is running
2. Checked network settings
3. Tested connection from host
What else should I check?"
When evaluating design choices:
llm -m claude-opus-4-5 "I need to decide between these approaches:
Option A: Event-driven with Redis pub/sub
Option B: Direct API calls with circuit breaker
Context:
- Microservices architecture
- ~1000 requests/second
- Eventual consistency is acceptable
What are the trade-offs? Which would you recommend?"
Get a second opinion on code changes:
git diff HEAD~1 | llm -m gpt-4.1 "Review this code change for:
- Bugs or logic errors
- Security vulnerabilities
- Performance issues
- Missing edge cases
Be specific about line numbers and issues."
Before implementing a complex feature:
llm -m o3 "Review this implementation plan:
Feature: User authentication with OAuth2
Steps:
1. Add OAuth2 middleware
2. Create /auth/callback endpoint
3. Store tokens in Redis
4. Add refresh token rotation
What am I missing? What could go wrong?"
For large codebases or long documents, use Gemini's large context window:
# Analyze large codebase
find . -name "*.ts" | head -20 | xargs cat | llm -m gemini-2.5-pro "Summarize the architecture and identify any security concerns"
# Analyze long log files
cat large-app.log | llm -m gemini-2.5-pro "Find patterns indicating memory leaks or performance regressions"
For critical decisions, consult multiple models:
# Ask the same question to different models
QUESTION="Should I use JWT or session cookies for authentication in a Next.js app?"
llm -m gpt-4.1 "$QUESTION"
llm -m claude-sonnet-4-5 "$QUESTION"
llm -m gemini-2.5-pro "$QUESTION"
When you want fresh ideas:
llm -m gpt-4.1 "Here's my current approach to <problem>:
<describe approach>
What are alternative ways to solve this? What am I missing?"
# Good: Structured with clear sections
llm -m gpt-4.1 "Problem: <description>
Context:
- Language: TypeScript
- Framework: Express
- Environment: Docker
Error: <error message>
Question: What's causing this and how do I fix it?"
# Bad: Vague without context
llm "Why doesn't this work?"
# List available models
llm models
# Install missing plugin
llm install llm-gemini
llm install llm-anthropic
# Update to get latest model names
pip install --upgrade llm llm-gemini llm-anthropic
# Re-set API key
llm keys set openai
llm keys set gemini
llm keys set anthropic
# Verify key is set
llm keys
If you hit rate limits:
gpt-4o-mini instead of gpt-4.1)reasoning_effort=low for less token usageFor complex questions that need detailed answers:
# Use a model with longer output limits
llm -m gemini-2.5-pro "detailed question requiring long answer"
OpenAI, Google, and Anthropic update model names frequently. If a model ID doesn't work:
llm models list # See all installed models with current IDs
documentation
Create or expand an Idea.md / IDEA.md file from a rough description, existing repo, conversation history, notes, or other early-stage product inputs. Use when the user asks to "write an Idea.md", "turn this into an idea file", "capture this product idea", "expand this concept", or wants a repo-grounded concept brief before validation, PRD, or implementation work.
development
Write structured implementation plans from specs or requirements before touching code. Use when given a spec, requirements doc, or feature description, when user says "plan this out", "write a plan for", "how should we implement", or before starting any multi-step coding task.
testing
Expert guidance for video editing with ffmpeg, encoding best practices, and quality optimization. Use when working with video files, transcoding, remuxing, encoding settings, color spaces, or troubleshooting video quality issues.
development
Opinionated constraints for building better interfaces with agents. Use when building UI components, implementing animations, designing layouts, reviewing frontend accessibility, or working with Tailwind CSS, motion/react, or accessible primitives like Radix/Base UI.