Skip to content
Back to skills

Advisor

BSecurity

Consult another LLM (with thinking/reasoning mode on) for a second opinion. Use when stuck on a design decision, want to validate an approach, or need domain expertise outside Claude's strengths. Builds focused context and calls an OpenAI-compatible endpoint configured via env vars (LITELLM_API_KEY/LITELLM_BASE_URL/ADVISOR_MODEL or OPENAI_* fallbacks). Thinking mode is on by default.

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 7, 2026
ai-agentsgoshellbashdebuggingapiperformance

Works with

  • api

Security analysis

B75/100
  • criticalModifies startup scripts or system services for persistence

Pro shows the line behind each finding and how to fix it

Scanned November 7, 2026

npx -y skills add fib7/acf-tools --skill advisor --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Advisor?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Advisor
[![Security: B — Skills Directory](https://www.skillsdirectory.com/api/skills/fib7-advisor/badge)](https://www.skillsdirectory.com/skills/fib7-advisor)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: advisor
description: Consult another LLM (with thinking/reasoning mode on) for a second opinion. Use when stuck on a design decision, want to validate an approach, or need domain expertise outside Claude's strengths. Builds focused context and calls an OpenAI-compatible endpoint configured via env vars (LITELLM_API_KEY/LITELLM_BASE_URL/ADVISOR_MODEL or OPENAI_* fallbacks). Thinking mode is on by default.
allowed-tools:
  - Bash
  - Read
  - Grep
  - Glob
---

# advisor - Consult another LLM for a second opinion

> **For multi-dimensional decisions, see the `board` skill** (`../board/SKILL.md`). It convenes a panel of synthesized personas, each covering one dimension, and integrates them. Use this `advisor` skill when one second opinion is enough.

## When to use

- The user asks for a "second opinion", "another model's take", "what would GPT/Gemini/Claude-via-LiteLLM say".
- You're about to make a non-trivial design decision and want a sanity check.
- The domain is outside your strengths (niche library, recent change, specialized math/legal/etc.).
- You're stuck debugging and want a fresh framing.
- You're about to make a risky or hard-to-reverse change and want an independent review.

## When NOT to use

- Simple lookups you can answer directly.
- Tasks the user explicitly asked **you** to do. Don't outsource your job.
- Looping calls (this is one-shot; no conversation memory).

## Pre-flight: resolve advisor.py

`advisor.py` runs via `uv` (PEP 723 shebang), auto-loads `.env` from the CWD upward, and resolves env itself. **Do not probe env, do not read shell rc files, do not grep for keys.** If a variable is missing, the script exits with `[advisor] missing API key: …` or `[advisor] missing model: …`. Show that error to the user verbatim and tell them to add the missing variable to their project `.env`.

```bash
ADVISOR_BIN="${ACF_ADVISOR_BIN:-${CLAUDE_PLUGIN_ROOT:-}/scripts/advisor.py}"
[ -x "$ADVISOR_BIN" ] || ADVISOR_BIN="$(ls -1t "$HOME"/.claude/plugins/cache/*/acf-advisor/*/scripts/advisor.py 2>/dev/null | head -1)"
test -x "$ADVISOR_BIN" || { echo "advisor: not found; install via /plugin install acf-advisor@acf-tools" >&2; exit 1; }
```

Then pipe your prompt to `"$ADVISOR_BIN"`. The script handles dotenv, env validation, the HTTP call and retries.

## Context-building protocol: the load-bearing step

The advisor LLM sees only what you send, so the context you assemble caps the quality of its answer. **Spend your effort here.** A well-worded question over weak context gets a mediocre answer. Strong context behind a sharp question gets the second opinion you're paying for.

### Mandatory checklist (every field is required)

1. **Question**: one sentence, sharp, and answerable as stated.
   - Bad: "What do you think about our auth design?"
   - Good: "Given a 50M-row users table, weekly schema migrations, and a hard requirement that no migration takes a write-lock > 30s, should we use shadow tables + dual-write or expand-contract with online DDL, and what's the second-order failure mode I'm most likely missing?"
   - The question must carry the constraints that make the obvious answers wrong.

2. **Context**: every load-bearing fact, and nothing else.
   - **Code**: paste the relevant excerpts with file:line citations, not summaries. If a function's body matters to the reasoning, include the body; if only the signature matters, include only the signature.
   - **Errors**: paste error messages, stack traces and log lines verbatim, never paraphrased.
   - **Numbers**: concrete values that bound the problem (sizes, latencies, QPS, row counts, deadlines).
   - **Constraints**: what rules out the obvious answers: performance budget, compliance, backwards compatibility, team capacity, deadline.
   - **Architecture**: the shape of the surrounding system, *only where it constrains the answer*. Not a tour of the repo.

3. **What I've considered**: alternatives you evaluated AND ruled out, with the reasons.
   - Format: "Considered X; ruled out because Y."
   - This keeps the advisor from spending its one turn on options you already discarded.
   - If you haven't weighed any alternatives yet, do that before calling the advisor.

4. **Decision dimensions and priority**: which trade-offs are in play, and which matters most.
   - Name the top 1–2 dimensions and say which one comes first. The advisor weights its answer by that.

5. **What I want from you**: a concrete, named ask. Pick one:
   - "Recommend one of {A, B, C} and name the second-order risk."
   - "List the failure modes of approach X I haven't named."
   - "Give me the strongest counterargument to my plan."
   - "Identify the load-bearing assumption that, if wrong, breaks this whole approach."
   - Avoid an open-ended "what do you think?"; it gets a vague answer.

### Bloat audit: do this before sending

Re-read the assembled prompt. For every paragraph, ask: **"Would the advisor's answer change if I deleted this?"**

- No → delete it.
- Yes → keep it, and check whether it should be sharper or longer.

In particular, strip:

- Framing/throat-clearing prose ("As you may know…", "Some background…", "Just to set context…")
- File contents that are referenced but not central (summarize them in one line instead)
- Conversation history (the advisor doesn't care how you got here)
- Restated constraints (say each constraint once, in the place it's load-bearing)
- "Here's some background" sections that carry no load-bearing fact

### Size discipline

Cap the assembled context at ~20KB. If the load-bearing facts exceed 20KB, the question is too broad, so narrow it. If you're tempted to send 50KB, you're probably asking two questions: split them into two advisor calls.

### Final structure

```
## Question
<one sharp sentence>

## Context
<load-bearing facts only — code, errors, numbers, constraints, architecture-as-it-constrains>

## What I've considered
- Considered X — ruled out because Y.
- Considered Z — ruled out because W.

## Decision dimensions
1. <dimension> (priority)
2. <dimension>

## What I want from you
<one of the named asks above>
```

## Invocation

Pipe the assembled prompt to `"$ADVISOR_BIN"` on stdin, using a heredoc with a single-quoted delimiter
so `$`, backticks and backslashes are not expanded.

**Generate a fresh delimiter per invocation and check that it does not collide.** With a fixed word
like `PROMPT`, any line of the assembled prompt that equals it ends the heredoc early. Such a line
can come from a pasted shell heredoc, a zsh-prompt doc, a log line, or this file. The prompt is then
silently truncated at that line (usually losing "What I want from you", so the advisor answers a
question with no ask), and everything after it goes to the shell as commands. Use something like
`PROMPT_<8 random hex>`. Before emitting the call, verify that no line of the prompt is exactly that
delimiter, and regenerate if one is.

```bash
cat <<'PROMPT_a3f19c2e' | "$ADVISOR_BIN"
## Question
…

## Context
…

## What I've considered
…

## Decision dimensions
…

## What I want from you
…
PROMPT_a3f19c2e
```

## Response handling

Show the user the advisor's reply verbatim under a clear header, then add your own brief take:

```
### Advisor (<model>) says:

<verbatim advisor reply>

### My take:

<one short paragraph: agree/disagree, caveats, what to actually do>
```

Pass on the stderr observability lines so the user sees what was sent and what it cost:

- `[advisor] sending: model=… effort=… thinking_budget=… timeout=… dotenv=…`: what was requested, and which `.env` was loaded.
- `[advisor] model=… prompt=… completion=… total=… reasoning=…`: token usage. Thinking mode adds reasoning-token cost and latency by design.
- `[advisor] note: reasoning fields sent but upstream returned 0 reasoning tokens …`: informational. The model or proxy didn't think on this prompt; the reply is still valid. If the user wants to skip that cost on this model, suggest `ADVISOR_REASONING_EFFORT=off`.

If the script printed a `--- reasoning ---` block on stderr, the user can read the advisor's chain of thought there. Don't re-print it on stdout unless asked.

## Disable escape hatch

Thinking mode is **on by default** (`reasoning_effort=high`, `thinking.budget_tokens=8000`; the model family decides which of these fields are sent). For a one-off cheap call, the user can set `ADVISOR_REASONING_EFFORT=off` in the environment. Don't disable it on your own: considered answers are the reason the advisor exists.

## Failure modes

| Symptom | Cause | Action |
|---|---|---|
| `advisor: not found` | plugin not installed | Tell user to run `/plugin install acf-advisor@acf-tools`, or set `ACF_ADVISOR_BIN` to a checkout path |
| `[advisor] missing API key` | env not set and no `.env` found | Tell user to add `LITELLM_API_KEY` to `.env` in their project, or shell-export it; verify the script loaded the right `.env` (see `dotenv=` in the `sending:` line) |
| `[advisor] missing model` | `ADVISOR_MODEL` not set | Ask user which model to use; suggest setting `ADVISOR_MODEL` in `.env` |
| `HTTP 401` | bad key | Verify key is current; surface error to user |
| `HTTP 404 model not found` | wrong model name for the endpoint | List available models, ask user to pick |
| `upstream rejected reasoning fields` (auto-retry) | non-reasoning model | The script retries without thinking; reply will still come through |
| `note: reasoning fields sent but upstream returned 0 reasoning tokens` | model/proxy ignored thinking fields | Informational. If user wants to avoid the wasted round-trip, set `ADVISOR_REASONING_EFFORT=off` |
| `network error` | endpoint unreachable | Confirm `LITELLM_BASE_URL` is correct and reachable |

## Critical rules

- **Do not probe env outside the project.** No reading `~/.zshrc`, `~/.claude/`, `~/.config/`. The script handles env, and tells you if something is missing.
- **One-shot only.** Each invocation is independent, with no conversation memory.
- **Never echo the API key** in any output, even on error.
- **Cap context at ~20KB** and run the bloat audit before sending.
- **Show the advisor's reply verbatim.** Don't paraphrase it. Add your take separately so the user can compare the two.
- **Thinking on by default.** Don't pass `ADVISOR_REASONING_EFFORT=off` unless the user asked.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.