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. Parks the monorepo and the `.source` enterprise submodule when either has related changes. Use when the user asks to review their local/uncommitted changes for AI slop and redundant code, or invokes nv-park-and-review.
90%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
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 commits it creates (baseline and, when needed, the
refactor) in the monorepo and in .source. Do not amend or squash a baseline commit.
.source is a separate git repo (packages-enterprise). enterprise/packages/*/src symlinks into it, and a plain git status in the monorepo hides it.
Inspect both before staging:
git status --ignore-submodules=none
git -C .source status
git -C .source diff
git -C .source log --oneline -15When .source has changes that belong to this work, commit the submodule first, then the monorepo. The monorepo commit includes the .source gitlink. A gitlink-only monorepo commit is chore(enterprise): bump submodule to <why>.
This repo sets diff.ignoreSubmodules=all, so git commit and lint-staged do not see a gitlink-only index. Stage .source and commit with git -c diff.ignoreSubmodules=none commit. Do not change git config.
Review the commit that contains the code. A monorepo commit that only moves the gitlink is not a review target. The submodule review worktree is a sibling of the monorepo:
git -C .source worktree add -b review/<branch>-<SOURCE_SHA:0:7> ../../review-source-<SOURCE_SHA:0:7> <SOURCE_SHA>Land that worktree from .source with the same fast-forward and git worktree remove. If the landed SHA moved past the gitlink already committed in the monorepo, add a second monorepo bump. Do not amend the first bump.
- [ ] 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 + teardown.source as in Submodule: git status --ignore-submodules=none, 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 diffnovuhq/novu
999f7b3
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.