second-opinion
Skill1 starsChanged 6 months agoMITView on GitHub
Independent second opinion on work done by another agent. Reviews local changes (git diff), commit ranges, or Pull Requests to detect bugs, misalignment with the original goal, and CLAUDE.md violations. Can invoke the Claude Code /code-review command as a sub-agent (for PRs) and generates a correction plan if findings warrant it. Use when an agent just made changes and you want to validate them before continuing: "review what the agent did", "second opinion on these commits", "validate agent work", "review agent changes", /second-opinion.
31 other projects use a version of this.
Adopted by
Most recently taken up by
- snjrusmn/multi-model-clitheir own version, first seen Oct 7, 2026
- andeeplus/aplustheir own version, first seen Oct 4, 2026
- manusco/resonancetheir own version, first seen Sep 28, 2026
- nexus-a1/claude-skillstheir own version, first seen Sep 27, 2026
- arsenyinfo/skillstheir own version, first seen Sep 24, 2026
- dkpapadopoulos/auto-claude-skillstheir own version, first seen Sep 22, 2026
Used with
Projects with it also use investigate, retro and 8 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
VercelSkillinvestigate
Investigate a specific issue report with strict, evidence-driven diagnosis.
Also in 3 projects that use this
AWSSkillretro
Conduct a retrospective on a coding session.
Also in 4 projects that use this
allieraysSkillexplain
Explain what code does line by line so you can understand and learn from it.
Also in 3 projects that use this
Google CloudSkilltriage
Gather context on a change or bug and plan the implementation.
Also in 4 projects that use this
AnthropicSkilldebug
Structured debugging session — reproduce, isolate, diagnose, and fix. Trigger with an error message or stack trace, "this works in staging but not prod", "something broke after the deploy", or when behavior diverges from expected and the cause isn't obvious.
Also in 3 projects that use this
MicrosoftSkillhandoff
Compact the current conversation into a handoff document for another agent to pick up.
Also in 5 projects that use this
Other versions31 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 31
- peterkrueck/Claude-Code-Development-Kit★ 1.4ksame name
- Amazon-Quick/Amazon-Quick-official-catalog★ 50same name
- xiaobei930/cc-best★ 48same name
- manusco/resonance★ 37same name
- arsenyinfo/skills★ 28same name
- firatcand/roster★ 19same name
- cropsgg/skills★ 15same name
- microsoft/amplifier-bundle-skills★ 12same name
- flurdy/agent-skills★ 9same name
- dkpapadopoulos/auto-claude-skills★ 6same name
21 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository11 other files it gives its agents.
- capture-insightsSkill
- create-runbookSkill
- datadog-logs-analyzerSkill
- datadog-metrics-investigatorSkill
- datadog-report-publisherSkill
- datadog-service-healthSkill
- datadog-triageSkill
- k8s-error-analyzerSkill
- k8s-optimizer-costSkill
- meeting-notes-enhanceSkill
- runSkill
The file
We split this skill into the rules it gives an agent
9 rules. 0 are common, 7 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 26 edited versions we read keep these.
7
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 28
Do NOT use this skill when:
- Very specific: line 48
If the user passed pr:<N> → scope = PR.
- Distinctive: line 49
If a commit range is mentioned → scope = commits.
- Distinctive: line 51
Read the root CLAUDE.md (if it exists) for compliance checks in Step 2.
- Very specific: line 106
If scope = PR and create_plan != no:
- Distinctive: line 148
Keep descriptions brief. Link to file and line for every finding.
- Distinctive: line 149
Do not emit emojis beyond the verdict line.
- Distinctive: line 150
If zero findings survive the filter, report "No issues found" and stop.
- Distinctive: line 156
If findings with score ≥ 75 exist:
“Common” is measured: kept by at least 6 in 10 of the 26 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Agent Reviewer
Independent QA layer over agent-produced work. Spawns parallel review sub-agents to audit changes across four dimensions, scores findings, and optionally enters Plan Mode to produce a correction plan.
When to Use
Trigger when the user asks any of:
- "Review what the agent just did"
- "Second opinion on these commits / this PR"
- "Validate the agent's work before I merge"
- "Check if agent changes are correct"
- "Did the agent do what I asked?"
Do NOT use this skill when:
- The user wants a standard PR review without agent context → call
/code-reviewdirectly. - The user wants to execute or plan new work → use
mdn-runormdn-plan.
Inputs
Gather from context or ask one clarifying question:
- scope (required, infer from context):
local— no scope given; auto-detect viagit status+git diff HEAD.commits:<sha1>..<sha2>— user specifies a commit range.pr:<number>— user provides a Pull Request number.
- intent (required): what the agent was supposed to do. If not stated, ask before proceeding.
- create_plan (
yes/no/ask, defaultask): whether to enter Plan Mode if significant issues are found.
Step 0 — Detect Scope and Load Context
- If the user passed
pr:<N>→ scope = PR. - If a commit range is mentioned → scope = commits.
- Otherwise → run
git statusandgit diff HEAD; scope = local. - Read the root
CLAUDE.md(if it exists) for compliance checks in Step 2. - Restate scope and intent to the user before proceeding (cheap sanity check).
Step 1 — Collect the Diff
Depending on scope:
- PR:
gh pr diff <N>+gh pr view <N>(title, description, body, changed files). - Commits:
git log <range> --oneline+git diff <range>+ commit messages. - Local:
git diff HEAD(staged + unstaged) +git status.
Extract and store: list of changed files, full diff, associated commit messages.
Step 2 — Parallel Multi-Agent Review
Launch 4 Sonnet agents in parallel (single message, 4 Agent tool calls):
| Agent | Focus |
| #1 — Intent Alignment | Does the change do what the stated intent asked? Is anything missing or added beyond scope? |
| #2 — Bug Scan | Shallow scan for obvious bugs in the diff. Skip pre-existing issues and pedantic nitpicks. |
| #3 — CLAUDE.md Compliance | Does the code follow the instructions in the relevant CLAUDE.md files? |
| #4 — Historical Context | Run git blame on modified files; flag conflicts with prior invariants or recent related changes. |
Each agent returns a list of findings with: description, estimated severity (low / medium / high), and justification.
False positive guidelines for all agents (identical to the built-in code-review plugin):
- Pre-existing issues not touched by this diff.
- Something that looks like a bug but is not.
- Pedantic nitpicks a senior engineer would not call out.
- Issues a linter or type-checker would catch — assume CI handles those.
- General quality concerns (test coverage, documentation) unless CLAUDE.md explicitly requires them.
Step 3 — Score Findings
For each finding from Step 2, launch a parallel Haiku agent that scores it 0–100 (give this rubric verbatim):
- 0: False positive. Does not survive light scrutiny or is a pre-existing issue.
- 25: Possible issue, unverified. May be a false positive.
- 50: Real issue, but minor or unlikely to be hit in practice.
- 75: Important issue, well-verified, likely to occur in practice.
- 100: Critical and confirmed. Will definitely occur frequently.
Filter out findings with score < 75. If no findings remain, the agent work is clean — report that and stop.
Step 4 — Optional: Invoke /code-review as Sub-Agent (PR scope only)
If scope = PR and create_plan != no:
- Launch an agent that runs the built-in
code-reviewcommand on the PR. - Merge its findings into the consolidated report, labelled
[code-review]as source. - Apply the same ≥ 75 filter before merging.
This step is additive — it supplements Steps 2–3, does not replace them.
Step 5 — Consolidate and Report
Generate a Markdown report in the conversation:
## Agent Review — <scope>
### Intent
<what the agent was supposed to do>
### Verdict
✓ Aligned | ⚠ Minor issues | ✗ Significant issues
### Findings (<N> issues)
1. [HIGH] <brief description> — score: 85
File: path/to/file.py:42
Reason: <justification>
2. [MEDIUM] <brief description> — score: 77
File: path/to/other.ts:10
Reason: <justification>
### Clean Dimensions
- Intent alignment ✓ (or listed here if no issues found for that agent)
- CLAUDE.md compliance ✓
### Recommendation
<free text: merge / fix before merge / requires correction plan>Rules:
- Keep descriptions brief. Link to file and line for every finding.
- Do not emit emojis beyond the verdict line.
- If zero findings survive the filter, report "No issues found" and stop.
Step 6 — Correction Plan (Conditional)
If findings with score ≥ 75 exist:
create_plan=yes— Enter Plan Mode automatically (EnterPlanMode) with findings as requirements context.create_plan=ask— Ask the user: "Do you want me to generate a correction plan for these findings?" Proceed only on explicit confirmation.create_plan=no— Skip.
The correction plan uses the findings as requirements and follows the standard Claude Code plan structure. Reference the specific files and line numbers from the findings.
Hard Constraints
- Read-only against git and GitHub — never commit, push, or merge as part of this review.
- No fabricated findings — if an agent finds nothing, record "no issues" and continue. Do not invent issues to fill the report.
- No build steps — do not run tests, linters, or type-checkers. Assume CI handles those.
- Cite everything — every finding must include a file path and line reference.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

