Commit local changes as a baseline, hop into a lightweight review worktree, run a thermo-nuclear code quality review scoped to ONLY that commit, commit the resulting refactor as a separate follow-up commit, then land it back and tear the worktree down. Use when the user asks to review their local/uncommitted changes for AI slop and redundant code, or invokes nv-review-local-changes.
79
100%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Passed
No findings from the security scan
Snapshot the current work as a baseline commit, immediately exit to a throwaway review worktree, audit only that commit with the thermo-nuclear code quality review, then land the cleanup as its own follow-up commit. Keeps the feature diff and the review-driven refactor separately reviewable, and frees the main checkout the moment the baseline is committed.
Invoking this skill authorizes the two commits it creates (steps 1 and 4). Do not amend or squash the baseline commit.
- [ ] 1. Baseline commit (the work to review)
- [ ] 2. Exit to a review worktree (one command)
- [ ] 3. Thermo-nuclear review scoped to that commit only
- [ ] 4. Triage + fix, then a separate refactor commit
- [ ] 5. Land back on the original branch + teardowngit status, git diff (staged + unstaged), git log --oneline -15 for message style.type(scope): concise why (scopes: dashboard, api-service, worker, shared, …). Use a HEREDOC for the message.lint-staged + biome check --write run on commit and may auto-format staged files; the commit still succeeds. If a hook fails, fix and make a new commit (never --amend).git rev-parse HEAD # BASE_SHAMove the rest of the workflow (review, triage edits, refactor commit) out of the main
checkout so it is free for other work. Do not use nv-worktree-create here — a
single lightweight command is enough; no env copying, install, or build is needed for a
review pass:
git worktree add -b review/<branch>-<BASE_SHA:0:7> ../review-<BASE_SHA:0:7> <BASE_SHA>Gather the exact scope, then launch one thermo-nuclear-code-quality-review subagent (Task tool, readonly: true, foreground so you can act on results):
git show <BASE_SHA> --stat # changed file list
git show <BASE_SHA> # committed diff to paste into the promptSubagent prompt template:
Perform a thermo-nuclear code quality review scoped STRICTLY to a single commit. Load
and apply the rubric from the `thermo-nuclear-code-quality-review` skill.
SCOPE (critical): Review ONLY the lines changed in commit <BASE_SHA>. You may READ full
files for context, but every finding MUST point at a line introduced/modified by this
commit. Do not report on pre-existing code or the wider branch.
Full Repository Path: <worktree path>
Commit under review: <BASE_SHA> "<subject>"
Changed files (read full current contents for context):
- <path 1>
- <path 2> ...
The committed diff:
```diff
<paste `git show <BASE_SHA>` diff>
```
Focus on: AI slop, redundant/dead code, duplicated logic, unnecessary abstractions or
props, inverted/confusing boolean naming, and state-management smells (redundant state
vs derived values, effect misuse, stale-closure/dep-array issues). For every finding
give: file, specific symbol/line from this commit, severity, WHY it's a problem, and a
concrete minimal fix. Separate must-fix from optional. Skip nitpicks that don't affect
correctness or maintainability. Do NOT modify files — return findings only.Grep (call sites, setters, other callers) — do not trust the review blindly.ReadLints on every touched file; Grep for stale identifiers after any rename. Only fix pre-existing lints if necessary.git commit -m "$(cat <<'EOF'
refactor(<scope>): <what was removed/renamed and why>
EOF
)"git log --oneline -3 shows BASE_SHA then the refactor commit.From the main checkout, fast-forward the original branch onto the review branch, then remove the worktree — plain commands, no cleanup skill needed:
git merge --ff-only review/<branch>-<BASE_SHA:0:7>
git worktree remove ../review-<BASE_SHA:0:7>
git branch -d review/<branch>-<BASE_SHA:0:7>If --ff-only fails, the original branch moved while you were reviewing — do not
force anything; report the divergence and leave the review branch in place for the
user to reconcile.
--amend the baseline.thermo-nuclear-code-quality-review — the audit rubric used in step 3deslop — remove AI slop from a diffd921755
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.