agentleFS
nyxx-stacknyxx-stack/agent-skills/skills/thermo-nuclear-simplify-review/SKILL.md

thermo-nuclear-simplify-review

Skill1 starsChanged 6 months agoApache-2.0View on GitHub

Run an agent-native simplify pass for explicit cleanup, maintainability, hardening, thermonuclear review, or code-quality audit requests. Reviews with subagents, then fixes high-confidence issues unless review-only is requested.

The file

Show its rules and text

We split this skill into the rules it gives an agent

26 rules. About 0 are common, 24 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈24

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill after implementation, before a commit or PR, or when the user asks to simplify, harden, clean up, or run a thermo-nuclear …

    line 8
  2. Distinctive:

    Default behavior is action-oriented: identify issues, fix high-confidence behavior-preserving simplifications, then verify.

    line 12
  3. Very specific:

    Run git status --short and git --no-pager diff --color=never to see what changed.

    line 18
  4. Very specific:

    If there is no git diff, review the files the user mentioned or the files modified in the current session.

    line 20
  5. Distinctive:

    Use the subagent tool to launch all three review agents concurrently in one round.

    line 24
  6. Distinctive:

    Keep review agents read-only.

    line 26
  7. Distinctive:

    Wait for all three agents to complete.

    line 30
  8. Distinctive:

    Prefer a few high-conviction findings over a long list.

    line 32
  9. Distinctive:

    If the user explicitly asked for review-only, report findings first with file/line references and do not edit.

    line 36
  10. Distinctive:

    Do not rewrite broad areas speculatively when the risk outweighs the simplification.

    line 40
  11. Distinctive:

    Run the smallest meaningful formatter, typecheck, lint, or test command for the touched area.

    line 44
  12. Distinctive:

    Do not approve merely because behavior appears correct.

    line 118
  13. Distinctive:

    Treat spaghetti growth as a design issue, not a style issue.

    line 120
  14. Distinctive:

    Prefer direct, boring, maintainable code over hacky or magical code.

    line 121
  15. Distinctive:

    Prefer deleting indirection over polishing indirection.

    line 122
  16. Distinctive:

    Prefer explicit typed boundaries over casts, hidden optionality, and ad-hoc object shapes.

    line 123
  17. Distinctive:

    Prefer canonical helpers and ownership boundaries over local one-offs.

    line 124
  18. Distinctive:

    Prefer atomic, retry-safe, bounded workflows over partial or ambiguous execution.

    line 125
  19. Distinctive:

    Treat a file crossing 1000 lines due to a change as a presumptive decomposition concern.

    line 126
  20. Distinctive:

    If there are no findings, say that clearly and include any verification gaps.

    line 145
  21. Distinctive:

    When fixing by default:

    line 151
  22. Distinctive:

    Keep edits scoped to high-confidence findings.

    line 153
  23. Distinctive:

    Use existing local patterns before introducing new abstractions.

    line 155
  24. Distinctive:

    Prefer extracting pure helpers, moving logic to the owning layer, deleting wrappers, collapsing duplicate branches, and making invariants …

    line 156
  25. Distinctive:

    Run verification after edits and report remaining risk.

    line 158
  26. Distinctive:

    Do not let the review become a broad rewrite.

    line 160

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “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 Simplify Review

Use this skill after implementation, before a commit or PR, or when the user asks to simplify, harden, clean up, or run a thermo-nuclear code-quality review.

The goal is not cosmetic cleanup. The goal is to find the smallest behavior-preserving structure that makes the change feel inevitable: fewer concepts, fewer branches, clearer ownership, stronger boundaries, and less incidental machinery.

Default behavior is action-oriented: identify issues, fix high-confidence behavior-preserving simplifications, then verify. Only stop at findings when the user explicitly asks for review-only, audit-only, no edits, or "tell me what you find."

Workflow

Phase 1: Identify Changes

Run git status --short and git --no-pager diff --color=never to see what changed. If there are staged changes, also check git --no-pager diff --cached --color=never.

If there is no git diff, review the files the user mentioned or the files modified in the current session. Use rg to search for related helpers, patterns, and ownership boundaries. Preserve unrelated work.

Phase 2: Launch Three Review Agents in Parallel

Use the subagent tool to launch all three review agents concurrently in one round. Pass each agent the full diff and enough file context to evaluate its pass.

Keep review agents read-only. They return findings only and must not edit files. If subagents are unavailable, run the same three passes locally and label the findings by pass.

Phase 3: Synthesize Findings

Wait for all three agents to complete. Merge overlapping observations, discard low-confidence nits, and prioritize structural problems, missed simplifications, spaghetti growth, boundary/type issues, file-size growth, and efficiency/atomicity defects.

Prefer a few high-conviction findings over a long list.

Phase 4: Fix by Default

If the user explicitly asked for review-only, report findings first with file/line references and do not edit.

Otherwise, apply behavior-preserving simplifications after synthesis. Work through the high-confidence findings directly instead of merely reporting them. If a finding is a false positive, too risky, or not worth addressing, note it and move on.

Do not rewrite broad areas speculatively when the risk outweighs the simplification. Do not ask permission between fixes unless the next step would be destructive, irreversible, or outside the requested scope.

Phase 5: Verify

Run the smallest meaningful formatter, typecheck, lint, or test command for the touched area. If verification is unavailable or too expensive, say exactly what was not run.

Subagent Passes

Spawn all three in one round when possible:

Pass A: Reuse and Canonicality

Mission: find duplicated logic, bespoke helpers, wrong-layer code, and missed canonical utilities.

Prompt shape:

You are reviewing this change for reuse and canonicality only.

Look for:
- duplicated logic or near-duplicate helpers
- bespoke utilities where the repo already has a canonical helper
- feature logic leaking into shared/general modules
- code living in the wrong package, layer, service, route, component, or boundary
- wrappers or pass-through abstractions that do not earn their keep

Return only high-confidence findings with file/line evidence, why it matters, and the simplest behavior-preserving remedy.
Do not edit files.

Pass B: Structural Thermo-Nuclear Maintainability

Mission: be ambitious about simplification. Find the code-judo move that deletes complexity instead of moving it around.

Prompt shape:

You are running an unusually strict maintainability review.

Look for:
- a cleaner reframing that deletes branches, modes, helpers, layers, or state
- ad-hoc conditionals bolted onto busy flows
- one-off booleans, nullable modes, fallback paths, or special cases becoming permanent control-flow debt
- files pushed toward or past 1000 lines without a strong reason
- type-boundary drift: any/unknown/casts/optional fields hiding a clearer invariant
- magical generic handling where direct explicit code would be easier to reason about

Bias toward structural feedback over naming or style.
Return only high-conviction findings with file/line evidence, why the design regresses, and the smallest behavior-preserving simplification.
Do not edit files.

Pass C: Efficiency, Orchestration, and Atomicity

Mission: find avoidable work and brittle orchestration where simpler structure also improves reliability.

Prompt shape:

You are reviewing this change for efficiency, orchestration, and atomicity only.

Look for:
- independent work serialized for no reason
- repeated expensive computation, extra renders, redundant IO, or unnecessary network/database calls
- missed batching, pagination, field selection, or bounded-output controls
- partial updates that can leave state half-applied
- resource leaks, unbounded loops, polling, or log/result dumps
- retry/idempotency gaps around writes or external calls

Do not chase micro-optimizations.
Return only findings where the simpler structure is also clearer or safer, with file/line evidence and a concrete remedy.
Do not edit files.

Thermo-Nuclear Standards

Apply these as the approval bar:

  • Do not approve merely because behavior appears correct.
  • Push for structural simplification when behavior can stay the same.
  • Treat spaghetti growth as a design issue, not a style issue.
  • Prefer direct, boring, maintainable code over hacky or magical code.
  • Prefer deleting indirection over polishing indirection.
  • Prefer explicit typed boundaries over casts, hidden optionality, and ad-hoc object shapes.
  • Prefer canonical helpers and ownership boundaries over local one-offs.
  • Prefer atomic, retry-safe, bounded workflows over partial or ambiguous execution.
  • Treat a file crossing 1000 lines due to a change as a presumptive decomposition concern.

Findings Format

For review-only output, lead with findings:

- [P1] Structural issue title - path/to/file.ext:123
  Why this matters:
  Simplest remedy:

Severity guidance:

  • P0: likely correctness, data-loss, security, or production-breaking risk.
  • P1: structural regression, maintainability blocker, unsafe orchestration, or highly likely future bug.
  • P2: meaningful simplification, boundary cleanup, reuse, or efficiency fix worth doing before merge.
  • P3: optional cleanup. Avoid unless there are no larger findings.

If there are no findings, say that clearly and include any verification gaps.

For default fix output, summarize what was fixed, what was intentionally skipped, and what verification ran. Do not dump every intermediate subagent finding unless it explains a skipped issue or remaining risk.

Fix Mode

When fixing by default:

  • Keep edits scoped to high-confidence findings.
  • Preserve public APIs and behavior unless the user explicitly asks to change them.
  • Use existing local patterns before introducing new abstractions.
  • Prefer extracting pure helpers, moving logic to the owning layer, deleting wrappers, collapsing duplicate branches, and making invariants explicit.
  • Iterate until the high-confidence fixable findings have been addressed or consciously rejected.
  • Run verification after edits and report remaining risk.

Do not let the review become a broad rewrite. The right fix is the one that removes real complexity while keeping behavior obvious.

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.