agentleFS
AnastasiyaWAnastasiyaW/codex-claude-code-config/skills/development/thermo-nuclear-code-quality-review/SKILL.md

thermo-nuclear-code-quality-review

Skill153 starsChanged 7 months agoMITView on GitHub

Run an opt-in strict maintainability review for giant files, spaghetti growth, misplaced logic, weak boundaries, unnecessary abstractions, and missed structural simplifications. Use for a thermonuclear review, harsh code-quality audit, code-judo review, or a file approaching 1000 lines. Do not use as an automatic rewrite mandate or for cosmetic cleanup.

24 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use principle-never-block-on-the-human, principle-boundary-discipline and 10 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.
  • shishivSkill

    principle-never-block-on-the-human

    Apply when tempted to ask 'should I do X?' on reversible work. Proceed, present the result, let the human course-correct after the fact; reserve confirmation for irreversible actions.

    Also in 3 projects that use this

  • shishivSkill

    principle-boundary-discipline

    Apply when wiring validation, error handling, or framework adapters. Concentrate guards at system boundaries (CLI, config, network, external APIs); trust internal types and keep business logic in pure functions.

    Also in 3 projects that use this

  • bolasblackSkill

    maintain-verification-skill

    Periodic pass that keeps a project's verification skill and feature map honest: parallel source readers per feature, one live session driving every feature, at most one PR of proven corrections. Use for /maintain-verification-skill or \"audit the verify skill\".

    Also in 3 projects that use this

  • shreyT19Skill

    principle-laziness-protocol

    Apply when refactoring, evaluating diff size, or tempted to add abstractions, layers, or signal threading. Bias toward deletion and the smallest change that solves the problem.

    Also in 3 projects that use this

  • +8 more from shishiv

The file

We split this skill into the rules it gives an agent

2 rules. 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 24 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If no finding survives reachability, materiality, and evidence screening, say so.

    line 45
  2. Very specific:

    Use a fresh reviewer for non-trivial changes.

    line 49

“Common” is measured: kept by at least 6 in 10 of the 24 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Strict Code Quality Review

This is an unusually demanding review mode, not an instruction to rewrite code by taste. Inspect the current diff and surrounding architecture, then report only high-conviction findings grounded in a contract, reachable behavior, or a material maintainability risk.

Review Bar

Ask:

  • Can a simpler ownership boundary remove whole branches or concepts?
  • Did the diff add ad-hoc flags, special cases, or feature logic to a shared path instead of using the canonical layer?
  • Did a cohesive module become more coupled or cross a meaningful shape limit?
  • Are wrappers, casts, optionality, and sequential orchestration earning their complexity?
  • Does a proposed decomposition reduce what a reader must hold in mind, rather than merely move the same complexity into more files?

A file crossing roughly 1000 lines is a strong signal to inspect decomposition, not an automatic failure. Apply the project's actual shape policy and explain why a split would improve ownership. Do not manufacture a rewrite when the current structure is coherent and the change is small.

Output

Report findings in this order:

  1. structural regressions;
  2. missing simplifications with a concrete alternative;
  3. spaghetti or branching growth;
  4. boundary and type-contract problems;
  5. file shape and decomposition;
  6. lower-severity readability issues.

For each finding include file/line, contract or evidence, user/operator impact, and a concrete remedy. Separate BLOCKER, ADVISORY, and ACCEPTED decisions. If no finding survives reachability, materiality, and evidence screening, say so.

Independence and scope

Use a fresh reviewer for non-trivial changes. This review does not replace focused tests, security proof, or proof-verify; it evaluates maintainability and architecture. It must not silently edit production code or turn an advisory concern into a rewrite.

Gotchas

  • Ambition without a contract becomes over-engineering. Keep the selection gate: a sufficient implementation is a reason to stop expanding.
  • A line count is a probe, not a universal design law.
  • Moving code across files without reducing coupling is not a successful decomposition.
  • Passing tests do not erase a material architecture regression, but a style preference without impact is not a blocker.

Troubleshooting

SymptomLikely causeAction
Review proposes a rewrite for a tiny diffScope or trigger was too broadLimit the review to changed behavior and material risks
Many low-value nitsNo severity/materiality screenKeep only findings with evidence and an actionable remedy
File is large but coherentThreshold treated as a verdictRecord ACCEPTED with rationale and keep the stable boundary
Suggested split adds more indirectionComplexity moved, not removedReject it and compare the reader's concepts before/after

Source

Adapted from Cursor Team Kit's MIT-licensed thermo-nuclear-code-quality-review: https://github.com/cursor/plugins/tree/main/cursor-team-kit/skills/thermo-nuclear-code-quality-review

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.