agentleFS
christopherkaranichristopherkarani/rv/.claude/skills/swift-thermo-nuclear-review/SKILL.md

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.

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
  1. Very specific:

    If the hunk touches that area, the matching project skill: swift-hexagonal-spm · swift-evaluate-parity · swift-hook-xpc

    line 31
  2. Very specific:

    Judo / type system: Prefer a closed enum, newtype, generic, or

    line 41
  3. Very specific:

    Deep, not clever: No protocol + one adopter.

    line 57
  4. Very specific:

    Use the MAPR issue block (Severity, File, RootCause, Suggestion, Fixable).

    line 93

≈ “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.

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

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

  1. Repo AGENTS.md, docs/dev/SWIFT.md, docs/architecture/MODULES.md
  2. This file 2b. .claude/skills/swift-pr-review/references/swift-pack.md (Leverage the type system)
  3. For new or re-signed public / package APIs: .claude/skills/swift-pr-review/references/api-pack.md then .claude/skills/swift-api-design-guidelines/SKILL.md
  4. 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.”

  1. Judo / type system. Prefer a closed enum, newtype, generic, or real-seam capability protocol (some / <E:>) that removes branches, flags, or wrappers. A missed Decision / RuleID / PatternEngine-shaped seam that would collapse ifs is a finding, not a nit. Load swift-pack.md Leverage the type system. One adopter is not a protocol. Two adapters is.
  2. 1k lines. A file this PR pushes from under ~1000 lines to over is a smell. Prefer extract, not waive.
  3. No spaghetti. New special-case ifs bolted onto an unrelated flow belong in the type that already owns the concept.
  4. 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.
  5. Value types. class only at RVService / NSObject. No isDenied. No try! / IUO on production paths. evaluate stays pure (no Date() / FileManager / ProcessInfo).
  6. Deep, not clever. No protocol + one adopter. No any where some or <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.
  7. 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 Decision when Presentation already has display seams)
  • class in 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

FindingSeverity
Contract break (class in a value layer, Date() in evaluate, TTY proving Decision)major
Public call site ambiguous / wrong labels on a new seammajor
File crosses 1k / spaghetti growthmajor
Pure redesign, no behavior deltaminor (never blocker)
Spec-locked leftoverreport-only
Taste renamedrop

Output

Use the MAPR issue block (Severity, File, RootCause, Suggestion, Fixable). Empty Issues if clean.

Pre-flight (before you deliver)

  • Ran tools/gate.sh (or tools/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

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.