Skip to content
Back to skills

Second Opinion

ASecurity

Load for a cross-model review, challenge, audit, or quick consult.

  • 92 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added October 6, 2026
ai-agentsbashgit

Works with

  • cursor
  • cli

Security analysis

A100/100

Pro scans all 19 files and shows the line behind each finding

Scanned November 27, 2026

npx -y skills add vanillagreencom/kendex --skill second-opinion --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Second Opinion?

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

Security grade badge for Second Opinion
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vanillagreencom-second-opinion-kendex/badge)](https://www.skillsdirectory.com/skills/vanillagreencom-second-opinion-kendex)

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: second-opinion
description: "Load for a cross-model review, challenge, audit, or quick consult."
summary: "Cross-model second opinion: review, challenge, audit, and consult through an external AI CLI (Pi on Copilot, Claude and Codex, or one a settings entry names)."
license: MIT
user-invocable: true
argument-hint: "review [scope] | challenge [description] | audit [path] | quick [question]"
dependencies:
  required: [github]
  optional: [agent-runtime]
metadata:
  author: vanillagreen
  source: kendex
  repository: "https://github.com/vanillagreencom/kendex"
  bugs: "https://github.com/vanillagreencom/kendex/issues"
tags: [review]
---

# Second Opinion

Cross-model second opinion via external AI CLI. Full contract: `second-opinion --help`.

```bash
.agents/skills/second-opinion/scripts/second-opinion <mode> [options]
```

## Workflows

| Command | Workflow | Output |
|---------|----------|--------|
| `review [scope]` | [workflows/review.md](workflows/review.md) | Review finding JSON |
| `challenge [description]` | [workflows/challenge.md](workflows/challenge.md) | Structured critique (text) |
| `audit [path]` | [workflows/audit.md](workflows/audit.md) | Review finding JSON |
| `quick [question]` | [workflows/quick.md](workflows/quick.md) | Text response |
| `detect` | (built-in) | Target name(s) a review would run |

## Execution Rules

- Execute every section of the workflow in order.
- Never skip a section on your own scope assessment.
- `<output_format>` tags are literal templates:
  - Fill `[PLACEHOLDERS]`.
  - Omit empty lines.
  - Add nothing else.
  - Do not paraphrase.
- **Pass `--target`** only when the user explicitly requests a specific model or CLI, such as "use Claude" or "ask Codex". Otherwise omit it. The script selects from the roster and the current session's model.
- A forced target that runs this session's model is refused. Report the refusal. Do not work around it.
- **Do not pass `--timeout`** unless the user explicitly asks for a different value for this specific call.
- **Always pass `--cwd`** with the absolute project root path. Never use `--cwd .`.
- Pass `--foreground` when the call can outlast the harness foreground cap. The script then detaches and prints its artifact, deadline and wait command.

## Session identity

- In a multi-model front end (Pi, OpenCode, Cursor, Copilot) or an undetected harness, export `SECOND_OPINION_CURRENT_MODEL` in that session's own environment.
- Set it to `none` when the session has no model.
- Never set it in a project settings file.

Identity resolution, normalization and the refusal rules: `second-opinion --help`.

## Multi-lane review

With `SECOND_OPINION_COUNT` of 2 or more, `review` collects that many distinct opinions on one scope and writes one union artifact. Lane resolution, the union's fields, artifact placement and the failure classes: [references/multi-lane.md](references/multi-lane.md).

## Configuration

- Set non-sensitive defaults in `kendex.settings.toml` under `[env]`. `.env.local` wins over it, and a `.env` file is never read.
- Set a key there only to change a default the scripts already read. `SECOND_OPINION_TARGET` has no default.

Keys, defaults and the built-in commands: `second-opinion --help`.

## Error Handling

On a failed run or a refused target, read [references/error-handling.md](references/error-handling.md).

Files in this skill

  • README.md3.1 KB
  • SKILL.md7.5 KB
  • kendex.settings.toml.example4.7 KB
  • references/multi-lane.md7.8 KB
  • schemas/review-finding-prompt.md2.5 KB
  • scripts/lib/kendex-env.sh16.7 KB
  • scripts/second-opinion-runtime19.9 KB
  • tests/artifact-home.test.sh5.3 KB
  • tests/claude-command.test.sh3 KB
  • tests/cli-failure-gate.test.sh12.4 KB
  • tests/codex-command.test.sh1.7 KB
  • tests/delete-sandbox.test.sh5.7 KB
  • tests/detached-run.test.sh23 KB
  • tests/execution-fallback.test.sh13.4 KB
  • tests/harness-identity.test.sh9.1 KB
  • tests/lane-scratch-durability.test.sh7 KB
  • tests/lib/git-env.bash1.2 KB
  • tests/lib/install.bash882 B
  • tests/lib/lane-world.bash24.3 KB

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.