/ancplua-skills:supercritical-code-quality-reviewfrom ancplua-skills
Run a maximally strict structural code review that hunts complexity-collapse opportunities, oversized files, creeping conditionals, and unearned abstractions, then defends every finding against refutation before reporting it. Scope the diff first, review against eight standards, and gate approval hard. Use for a supercritical review, deep maintainability audit, especially harsh code-quality review, or when the user asks for a thermo-nuclear-style review.
Ships in ancplua-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
A review at criticality: every finding must either start a chain reaction of simplification or be absorbed before it reaches the author. The goal is not "cleaner" — the goal is less. Fewer concepts, fewer branches, fewer layers, with behavior provably unchanged.
Audit the current branch's changes for implementation quality, maintainability, and abstraction health. Do not settle for local polish. Hunt for the collapse move: a reframing of the change that makes whole conditionals, helpers, modes, or layers vanish while behavior stays identical. A good collapse move feels inevitable in hindsight; if nothing about your strongest suggestion feels inevitable, keep looking before you write it down.
Measure twice, cut once: depth of analysis first, volume of comments never.
Pull the exact diff and surface the structural smells before reading line-by-line. The diff — not the whole repo — is the unit of review; never approve from a summary, read the actual git diff.
# what changed, and which files the PR grows
git diff --stat origin/main...HEAD
# files this PR pushes toward / past the 1000-line smell threshold (standard 2)
git diff --name-only origin/main...HEAD | while read -r f; do
[ -f "$f" ] && printf '%6s %s\n' "$(wc -l < "$f")" "$f"
done | sort -rn | awk '$1 > 800'
# the conditional-creep smell: new ad-hoc branches added into existing flows (standard 3)
git diff origin/main...HEAD | grep -nE '^\+\s*(if|else if|switch|case )' | head -40
Carry the cross-file view from here into every standard below — collapse moves usually live between files, not inside one.
any/unknown, optional parameters papering over unclear invariants, and silent fallbacks are contract debt. Prefer making the invariant explicit over making the failure quiet.Ambition generates false positives; refutation is the counterweight.
file:line, the current shape, and a sketch of the collapsed shape — a sketch, not an essay.Solo pass (default, any runtime). One reviewer, the full diff, all eight standards. Keep the cross-file view — collapse moves usually live between files, not inside one.
Supercritical cascade (Claude Code 2.1.172+, nested sub-agents). For large or high-stakes diffs (roughly: >15 files or >1,500 changed lines), go critical: spawn one reviewer per standard in parallel, let each reviewer spawn a refuter per finding, and send surviving collapse proposals to an independent judge panel. Only verified findings reach the merged report. The Claude adapter adapters/claude/agents/supercritical-review-orchestrator.md implements this tree; runtimes without nested agents run the solo pass per standard instead.
Report in this order, nothing interleaved:
Few, high-conviction findings. A review drowning in nits has failed this skill. Be direct about severity — do not soften a structural problem into a suggestion — and never rude about the author.
Approve only when all of these hold:
Treat a violation of any line above as a presumptive blocker: the author owns the justification, not the reviewer.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub ancplua/ancplua-skills --plugin ancplua-skills43 skills in this plugin
/agent-log-scanScan agent transcripts and turn antipatterns into config and routine changes, not just an allowlist like fewer-permission-prompts. Use when asked to scan agent logs or session history, "why do my agents keep failing", "what happened across my sessions", to find retry loops, permission thrash, API dead-ends or limit interrupts, or raise autonomy./analyzer-purityKeep Roslyn analyzers, source generators and code fixes pure, loadable and cache-friendly inside every compiler host. Use when creating, changing, reviewing or packaging a netstandard2.0 project with IsRoslynComponent, EnforceExtendedAnalyzerRules or Microsoft.CodeAnalysis references, or when an RS1xxx/RS2xxx diagnostic, a sluggish IDE or a generator that reruns on every keystroke points at one./animation-vocabularyReverse-lookup glossary that turns a vague description of a web animation or motion effect into its exact term ("the bouncy thing when a popover opens" → Pop in; "the iOS rubber-band scroll" → Rubber-banding). Use when the user asks "what's it called when…", or describes a motion effect without knowing its name and wants the right word to prompt an AI or designer with. For naming an effect, not designing or building one./apple-designApple's approach to interface design and fluid, physical motion, translated for the web. Use when building or reviewing gesture-driven UI, spring animations, drag/swipe/sheet interactions, momentum and interruptible transitions, translucent materials and depth, typography (optical sizing, tracking, leading), reduced-motion, or the design foundations (feedback, spatial consistency, restraint) behind Apple-style interfaces./archcheck-evaluationDevelop and evaluate ArchCheck analysis - static rules SR1-SR6, runtime rules RT1-RT3, ownership inference, SARIF interpretation, finding aggregation, coverage. Use when changing a rule, analyzing repository or trace evidence, or making precision/recall or empirical result claims./c4-diagramGenerate C4 Container diagrams using C4 model conventions as editable .drawio XML files. Use when the user asks for architecture diagrams, system diagrams, C4 diagrams, container diagrams, or wants to visualize system architecture. Also use proactively when explaining systems with 3+ components where a visual would clarify the architecture.Other plugins' skills for the same job