/thermos:thermosfrom Thermos
Runs a thermo-nuclear review of a branch's diff. Two Opus reviewers run in parallel, one for bugs, breakage, security, devex and feature-gate leaks, one for maintainability and code-judo, then their findings are checked and merged into one report. Use for thermos, thermo nuclear, thermonuclear, deep review, double review, or review before merge. Pass bugs or quality to run one pass only. For a PR, check it out first with gh pr checkout. Not for fixing findings, and not for a single question about a line of code.
Ships in Thermos. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Two reviewers audit the same diff from different angles. The first looks for things that break: bugs, security holes, behaviour changes nobody asked for. The second looks for things that rot: files that grow past a healthy size, branches that tangle, abstractions that add indirection without removing any. Each reviewer returns findings with evidence. You check them, merge the two lists, and report.
This skill reads and reports. It edits no file, posts nothing to the PR and fixes nothing.
Work from the repository root, so the relative paths in later commands resolve:
cd "$(git rev-parse --show-toplevel)"
Pick the base, in this order:
A base the user named wins over everything else.
The PR's target, when the current branch has an open PR. The target repository is the
one in the PR URL, not origin, which can be a fork. Run this block only when $ref is
non-empty; if gh is missing, not logged in, or there is no open PR, both commands print
nothing, so go on to step 3 and skip step 7.
ref=$(gh pr view --json baseRefName --jq .baseRefName 2>/dev/null)
url=$(gh pr view --json url --jq .url 2>/dev/null)
repo=$(printf '%s' "$url" | sed -E 's#https://github.com/([^/]+/[^/]+)/pull/.*#https://github.com/\1.git#')
git fetch --quiet "$repo" "$ref" || { echo "fetch of the PR base failed; stop and report"; exit 1; }
base=FETCH_HEAD
The remote's default branch, when the repository has a remote. Read its name with
git symbolic-ref --short refs/remotes/origin/HEAD and drop the origin/ prefix. Fetch it
and stop on failure. Never fall back to a cached origin/<base> ref, because changes merged
into the real base would then show up as branch changes. If the default cannot be
resolved, ask the user for the base.
git fetch --quiet origin "<base>" || { echo "fetch failed; stop and ask for a base"; exit 1; }
base=FETCH_HEAD
No remote at all: use the local branch main, or the one the user named.
Then resolve the merge base and fail fast if it does not resolve:
git rev-parse --verify --quiet "$base" >/dev/null || { echo "base does not resolve"; exit 1; }
mb=$(git merge-base "$base" HEAD)
git diff --stat "$mb" && git ls-files --others --exclude-standard
Diff the working tree against $mb, not $base...HEAD. That covers committed, staged and
unstaged changes. It does not cover untracked files, which the second command lists. If the
stat is empty and no untracked file exists, stop and say there is nothing to review.
Record the changed files with NUL-delimited output, so names with spaces or non-ASCII characters come through intact, and with rename detection on:
git diff -z --name-status -M "$mb"
git ls-files -z --others --exclude-standard
For a renamed file, keep both paths: the old one (the base's name, for the base line count) and the new one (the working tree's name).
For each changed file, compare its line count at the base with its count now. For a rename, read the base count from the old path:
git show "$mb:$oldpath" 2>/dev/null | wc -l # 0 for a new file
wc -l < "$newpath"
Note every file that moves from 1000 lines or fewer to more than 1000. A file that was already over 1000 at the base is not a finding by itself. Pass the counts to the quality reviewer.
Read both rubrics:
Each reviewer gets a brief containing only:
$mb, and the diff command to run;Do not paste session history or your own conclusions. The reviewer forms its view from the code. Tell each reviewer to read the code it cites, to trace callers and callees of changed functions, and to stay read-only: no edits, no commits, no PR comments.
Send both Agent calls in one message, each with subagent_type: "general-purpose",
model: "opus", effort: "high" and run_in_background: false. The harness runs subagents in
the background unless told otherwise, and synthesis needs both results, so the flag must be
set explicitly. Set the effort explicitly too: without it, a reviewer runs at the model's
default effort, which on the current Opus is medium, below what a review needs.
Give each reviewer the brief from step 3, and nothing else.
If the user asked for one pass (bugs or quality), launch only that reviewer.
Each reviewer returns a list, nothing else. Each finding has:
blocker, high, medium, low or suggestion;file:line for the code it is about;confirmed when it traced the path to the end, plausible when it could not.No summary, no praise, no padding. An empty list is a valid answer. Ideas that improve
the code without fixing a defect are suggestion at most.
For every blocker and high finding, read the cited line yourself and confirm the
claim still holds against the code as it is. Drop a finding that does not hold, and say
in one line why. Keep a finding that holds but that you could not trace end to end as
plausible, and say what would settle it.
Merge the two lists. Remove duplicates where both reviewers flag the same line for the same reason, and keep the higher severity. Keep the two passes' findings labelled by pass, so the reader can see which lens found each one.
Only after both reviews are in: if the branch has an open PR, read its review comments
and bot findings with gh. Validate each one against the code the same way. Add the
valid ones that the reviewers missed, and mark them as coming from the PR.
Open with one verdict line:
ready when there are no blocker or high findings;changes needed when there is at least one blocker or high that holds;blocked when a finding stops the change from shipping at all.Then list the findings grouped by severity, blockers first. Each entry gives its pass,
file:line, the defect, and the evidence. After that, list the suggestions in a separate
section so they are not read as required work.
End with two short lines: what was reviewed (base, merge base, file count, any file the reviewers could not read), and what was dropped or kept as plausible in step 6. Skip anything the reader can get from the findings above.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub anolilab/skills --plugin thermosOther plugins' skills for the same job