agentleFS
atlassianengineatlassianengine/Skills/skills/thermo-nuclear-code-quality-review/SKILL.md

thermo-nuclear-code-quality-review

Skill1 starsChanged 3 months agoMITView on GitHub

Run an evidence-first, read-only review of a branch, diff, worktree, or implementation for structural maintainability regressions and high-leverage simplifications. Use when the user explicitly asks for a thermo-nuclear, thermonuclear, unusually harsh, or deep structural code-quality review; do not invoke for routine code review.

71 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use verify-this, control-cli 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.
  • learnerLjSkill

    verify-this

    Verify a claim with fresh local evidence: restate it falsifiably, capture baseline and treatment, compare artifacts, and return VERIFIED, NOT VERIFIED, or INCONCLUSIVE.

    Also in 7 projects that use this

  • ElyzeSolutionsSkill

    control-cli

    Build or adapt a local harness to drive, inspect, and profile an interactive CLI or TUI without external services. Use for CLI UX checks, startup regressions, memory leaks, hangs, prompt flows, or terminal demos.

    Also in 4 projects that use this

  • dorian-akhsSkill

    handoff-implement

    Creates or executes an implementation-grade handoff brief for a less capable model agent, including a measured context budget and a binding sub-agent orchestration plan. Activated explicitly via /handoff-implement.

    Also in 3 projects that use this

  • markoblogoSkill

    agents-best-practices

    Design, audit, or improve agentic systems and agent harnesses. Use for agent MVP blueprints, tool design, permission models, planning and goal loops, context compaction, memory, skills, connectors, observability, evals, safety, and provider-neutral agent architecture.

    Also in 3 projects that use this

  • ElyzeSolutionsSkill

    control-ui

    Build or adapt a local browser/CDP harness to drive and inspect a web, IDE, or Electron UI. Use for local UI verification, screenshots, accessibility snapshots, perf profiles, visual diffs, or reproducing UI bugs.

    Also in 4 projects that use this

  • toantran292Skill

    implement-ticket

    Turn a task or ticket into implemented, tested, reviewed, and PR-ready code changes.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 69 edited versions we read keep these.

  • 11

    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:

    Preserve checkout boundaries: Read the applicable repository instructions, identify dirty state, and do not overwrite or attribute …

    line 14
  2. Distinctive:

    Prove before escalating: Every finding needs a concrete code path, violated invariant, credible impact, and repair shape.

    line 15
  3. Distinctive:

    Inspect the system, not only the patch: Read full changed files and trace relevant callers, consumers, canonical owners, persistence/effect …

    line 16
  4. Distinctive:

    If the helper is available, run it from the target repository.

    line 27
  5. Distinctive:

    Read references/review-method.md completely, then gather the evidence it routes you to.

    line 34
  6. Very specific:

    Do types encode valid states, or do booleans, nullable modes, casts, any, or unknown permit contradictory combinations?

    line 54
  7. Distinctive:

    Do not prescribe “extract helpers,” “use a state machine,” or “split the file” without naming the resulting ownership boundary and showing …

    line 80
  8. Distinctive:

    Use severity for impact, not rhetorical force:

    line 84
  9. Distinctive:

    Approved with follow-ups: only bounded, non-blocking findings remain.

    line 94
  10. Distinctive:

    Approved within inspected scope: no actionable findings remain.

    line 95
  11. Distinctive:

    If there are no findings, say so directly.

    line 120
  12. Distinctive:

    Do not silently write review history, memory, tickets, or repository docs.

    line 126

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

Thermo-Nuclear Code Quality Review

Find the few structural problems that materially increase system complexity, prove them from the current checkout, and turn each one into an actionable repair with an acceptance test. The goal is not maximal criticism. It is maximal reduction of accidental complexity without changing intended behavior.

Operating contract

  • Audit is read-only by default. Inspect and report. Edit only when the user explicitly asks to implement or remediate findings.
  • Resolve the exact target. Distinguish committed branch changes, staged changes, unstaged changes, and untracked files. Never silently review only HEAD when the requested work also exists in the worktree.
  • Preserve checkout boundaries. Read the applicable repository instructions, identify dirty state, and do not overwrite or attribute unrelated concurrent work.
  • Prove before escalating. Every finding needs a concrete code path, violated invariant, credible impact, and repair shape. A preference, file length, or unfamiliar pattern alone is not a finding.
  • Inspect the system, not only the patch. Read full changed files and trace relevant callers, consumers, canonical owners, persistence/effect boundaries, and tests before judging ownership or abstraction quality.
  • Keep proof classes honest. Source inspection, static checks, focused local tests, cold-process tests, contention tests, live-provider checks, and deployed proof are different evidence classes.
  • Do not create speculative architecture. Recommend broad restructuring only when it deletes demonstrated complexity, restores an existing boundary, or has at least two concrete consumers.

Start the review

  1. Determine the requested review mode and base:
    • branch: merge-base through HEAD
    • worktree: staged, unstaged, and untracked state
    • combined: branch plus worktree, kept separately attributable
    • focused: named files, symbols, commit, or subsystem
  2. If the helper is available, run it from the target repository. It is read-only and emits JSON metadata, not source contents:

    python <skill-dir>/scripts/collect_review_context.py --repo . --base <base-ref> --pretty

    Omit --base only when the user did not name one. The helper reports how it resolved the base; disclose an inferred base in the final review.

  3. Read references/review-method.md completely, then gather the evidence it routes you to. Do not paste or read the entire repository indiscriminately.
  4. Maintain a run-local evidence ledger while investigating:

    location | observed fact | invariant/impact | proof class | next query

    Reuse ledger facts instead of repeatedly rediscovering them. Do not publish raw scratch notes unless they help the user verify the conclusion.

  5. Falsify each candidate finding: look for an existing owner, helper, validation, transaction, caller constraint, or test that makes the concern invalid. Report only findings that survive.

Structural review standard

For every meaningful change, ask:

  • What invariant is this code trying to preserve, and which layer owns it?
  • Does the change add concepts, state, branches, optionality, or indirection that the model could eliminate?
  • Is there a code-judo move: a smaller ownership or data-model change that deletes whole branches, modes, wrappers, or lifecycle steps?
  • Does the implementation reuse the canonical helper and contract, or create a second authority?
  • Are UI, state, domain, infrastructure, persistence, and effect responsibilities still flowing in one direction?
  • Can partial failure leave committed state, retries, or external effects ambiguous?
  • Do types encode valid states, or do booleans, nullable modes, casts, any, or unknown permit contradictory combinations?
  • Did the change make a cohesive file materially harder to scan or push it across 1,000 lines? Treat that threshold as a trigger for a cohesion assessment, not automatic guilt.
  • Does the test suite exercise the actual invariant and a negative case, or merely restate the implementation?

Push hardest on:

  • parallel sources of truth or duplicated domain rules
  • feature checks scattered through shared flows
  • partial commits, unfenced retries, non-atomic related writes, or hidden side effects
  • missing canonical ownership and cross-layer leakage
  • state represented by combinations of flags instead of an explicit model
  • generic or pass-through abstractions that hide a simple contract
  • serial orchestration that increases failure surface without a dependency reason
  • large-file growth caused by mixed responsibilities rather than generated or declarative content
  • refactors that move complexity but do not reduce the concepts a maintainer must hold

Code-judo proposals

A dramatic simplification is useful only when it is concrete. State:

  1. the invariant and canonical owner
  2. the accidental concepts that disappear
  3. the smaller control/data flow
  4. compatibility or migration constraints
  5. the proof that would establish behavioral parity

Do not prescribe “extract helpers,” “use a state machine,” or “split the file” without naming the resulting ownership boundary and showing what complexity disappears.

Severity and verdict

Use severity for impact, not rhetorical force:

  • P0: credible data loss, security boundary failure, or irreversible/system-wide corruption
  • P1: likely correctness, durability, concurrency, or production-authority failure
  • P2: concrete structural regression or boundary defect that should be repaired before the change expands
  • P3: contained maintainability issue with a specific payoff; omit low-value nits

Verdicts:

  • Not approved: a P0/P1 or merge-blocking structural P2 survives falsification.
  • Approved with follow-ups: only bounded, non-blocking findings remain.
  • Approved within inspected scope: no actionable findings remain; proof gaps are still stated.
  • Unable to assess: essential target evidence is unavailable and cannot be discovered safely.

Passing tests do not erase a structural finding. Conversely, do not block approval on hypothetical elegance or an unproven rewrite.

Output contract

Lead with the verdict and highest-severity findings. For each finding use:

[P#] Imperative title — path:line
Evidence: exact observed control/data path.
Impact: violated invariant and concrete failure or maintenance cost.
Repair: smallest ownership/model change that removes the cause.
Acceptance: focused proof, including a negative/failure case where relevant.

Then include, only when useful:

  1. Scope and proof envelope — checkout, base/merge-base, branch/worktree portions, commands/tests run, and uninspected areas.
  2. Repair order — dependency-aware sequence for multiple findings.
  3. Code-judo opportunity — a high-confidence simplification that is broader than one finding.
  4. Reusable discoveries — verified canonical owners, invariants, helpers, or proof commands that would save a future reviewer time.
  5. Residual proof gaps — cold-start, contention, migration, live-provider, recovery, or deployment evidence still missing.

If there are no findings, say so directly. Do not invent comments to make the review look rigorous.

Agent-accretive behavior

Collect additional evidence only when it reduces uncertainty for the current review or is likely to prevent repeated discovery later. Prefer stable facts such as canonical ownership, durable invariants, known consumer paths, and the narrowest authoritative test command.

Do not silently write review history, memory, tickets, or repository docs. When no authorized durable location exists, include concise Reusable discoveries in the result as candidates. Persist them only when the user asks and only in the repository's established authority.

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.