swift-thermo-nuclear-review
Skill8 starsChanged 6 days agoApache-2.0View on GitHub
Harsh Swift maintainability review for rv: hexagonal module judo, 1k-line files, spaghetti growth, value-type/enum leverage, and Swift API Design Guidelines on new public seams. Use for a Swift thermo-nuclear review, /swift-thermo-nuclear-review, or as the thermo lane in /swift-pr-review and /multi-agent-swift-pr-review on this repo. Do not use the generic thermo-nuclear-code-quality-review skill here.
In this repository18 other files it gives its agents.
- codebase-designSkill
- principle-type-system-disciplineSkill
- swift-64-concurrencySkill
- swift-adversarial-pr-reviewSkill
- swift-api-design-guidelinesSkill
- swift-concurrencySkill
- swift-evaluate-paritySkill
- swift-functional-architectureSkill
- swift-functional-coreSkill
- swift-hexagonal-spmSkill
- swift-hook-xpcSkill
- swift-pr-orchestrationSkill
- swift-protocol-boundariesSkill
- swift-pr-reviewSkill
- swift-systems-safetySkill
- swift-testing-proSkill
- swift-type-system-architectureSkill
- swift-value-semanticsSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 0 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 31
If the hunk touches that area, the matching project skill: swift-hexagonal-spm · swift-evaluate-parity · swift-hook-xpc
- Very specific: line 41
Judo / type system: Prefer a closed enum, newtype, generic, or
- Very specific: line 57
Deep, not clever: No protocol + one adopter.
- Very specific: line 93
Use the MAPR issue block (Severity, File, RootCause, Suggestion, Fixable).
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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.
Files
Swift thermo-nuclear review (rv)
Internal. This repo’s thermo pass. Do not load
thermo-nuclear-code-quality-review — that rubric is TypeScript/unknown/
any and will miss rv law.
Review the RIGHT side of the diff. High conviction only.
Load first
- Repo
AGENTS.md,docs/dev/SWIFT.md,docs/architecture/MODULES.md - This file
2b.
.claude/skills/swift-pr-review/references/swift-pack.md(Leverage the type system) - For new or re-signed
public/packageAPIs:.claude/skills/swift-pr-review/references/api-pack.mdthen.claude/skills/swift-api-design-guidelines/SKILL.md - If the hunk touches that area, the matching project skill:
swift-hexagonal-spm·swift-evaluate-parity·swift-hook-xpc
Project overlay wins. Spec-named symbols are constraints (api-pack).
Bar
Be ambitious about deleting complexity. Do not rubber-stamp “it compiles” or “tests are green.”
- Judo / type system. Prefer a closed
enum, newtype, generic, or real-seam capability protocol (some/<E:>) that removes branches, flags, or wrappers. A missedDecision/RuleID/PatternEngine-shaped seam that would collapseifs is a finding, not a nit. Loadswift-pack.mdLeverage the type system. One adopter is not a protocol. Two adapters is. - 1k lines. A file this PR pushes from under ~1000 lines to over is a smell. Prefer extract, not waive.
- No spaghetti. New special-case
ifs bolted onto an unrelated flow belong in the type that already owns the concept. - Right module. Arrows down (
MODULES.md). Engine never imports CLI / TUI / XPC / Packs. A TTY test that proves a decision is in the wrong module. - Value types.
classonly atRVService/NSObject. NoisDenied. Notry!/ IUO on production paths.evaluatestays pure (noDate()/FileManager/ProcessInfo). - Deep, not clever. No protocol + one adopter. No
anywheresomeor<E:>works (mixed lists are the exception). Prefer depth: lots of behavior behind a small typed interface. A pass-through wrapper is a finding. A capability protocol at a real seam that hides the engine is not. - API fluency. New public call sites must read without opening the
body. Load api-pack. Do not rename a PLAN/ticket-named factory.
Missing
///only on decls this diff added.
Flag
- File crossing ~1000 lines
- Feature logic leaking into a shared path (Theme deciding deny, TUI
switching on
Decisionwhen Presentation already has display seams) classin Domain / Engine / Packs / Presentation- Free function that collides with an instance property (call sites need a module qualifier)
- Unlabeled members on a public tuple
- New public boolean query that does not read as an assertion (unless spec-locked)
Date()/ I/O inside a declared-pure function- Duplicate helper when the owning module already has the canonical one
Severity
| Finding | Severity |
Contract break (class in a value layer, Date() in evaluate, TTY proving Decision) | major |
| Public call site ambiguous / wrong labels on a new seam | major |
| File crosses 1k / spaghetti growth | major |
| Pure redesign, no behavior delta | minor (never blocker) |
| Spec-locked leftover | report-only |
| Taste rename | drop |
Output
Use the MAPR issue block (Severity, File, RootCause, Suggestion,
Fixable). Empty Issues if clean.
Pre-flight (before you deliver)
- Ran
tools/gate.sh(ortools/preflight.sh+ filtered tests) — 0 failures - Did not load
thermo-nuclear-code-quality-review - Loaded
AGENTS.md+MODULES.md+SWIFT.md - New/re-signed public APIs: loaded api-pack + ADG
- Spec-named symbols were not flagged for rename
- Pure judo with no behavior delta is minor
- No invented issues on unchanged APIs
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
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.

