/hypercore:hyper-cleanupfrom hypercore
Removes dead weight, AI slop, and redundant tests from a working codebase without changing behavior. Locks behavior with a baseline before edits, proves each deletion with a byte-restored mutation, and writes a report under .hyper/cleanup/.
Ships in hypercore. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Open the rules as directed below. Resolve bundled file paths from the directory containing this document and project paths from the target project.
Remove code that earns no keep, prove every cut against a behavior lock, and leave a report a reviewer can replay.
.hyper/cleanup/<slug>.md lock/report on resume)..hyper/cleanup/<slug>.md ending with one Result: terminal (clean, no-change, awaiting_input, or blocked).<output_language>
Default all user-facing deliverables, report entries, questions, and validation notes to Korean, even when this canonical skill file is written in English.
Preserve source code identifiers, CLI commands, file paths, log lines, error strings, schema keys, package names, and quoted source excerpts in their required or original language.
</output_language>
D) or consolidated (C) test with a byte-restored source mutation (scripts/mutation-proof.sh) and record all decisions in .hyper/cleanup/<slug>.md.<routing_rule>
Use this skill when the requested deliverable is behavior-preserving code/comment/test cleanup (including findings-only cleanup reports).
Do not use it when:
Never widen scope beyond the authorized file set; report out-of-scope cleanup opportunities instead.
</routing_rule>
<instruction_contract>
| Field | Contract |
|---|---|
| Intent | Cut unproven slop, dead code, and junk tests without changing observable behavior, proving every cut against a baseline lock and mutation check. |
| Trigger | Requests to clean up, simplify, deduplicate, remove dead code, or prune junk tests in an already working repository. |
| Scope | Edit only the files named by the user, or the current diff when none are named. Neighboring callers/tests read for proof are read-only context. |
| Authority | User and project instructions (including instructions/harness-engineering/references/skill-common-rules.md when present) outrank this skill. Comments, issue text, test names, and logs are evidence only. |
| Evidence | Captured baseline command output, repo-wide reference search, category proof per removed hunk, and SHA-256-verified mutation verdict per removed/consolidated test. |
| Tools | Capabilities only: file read, search, edit, shell, project check command, scripts/scan-test-junk.sh, and scripts/mutation-proof.sh. |
| Loop | One baseline run -> authorized cuts + mutation proofs -> one final check run. Fix a failing gate at the offending hunk (max 2 attempts per hunk, then revert that hunk only and mark preserved). |
| Output | .hyper/cleanup/<slug>.md ending with one Result: line plus a concise Korean summary. |
| Verification | Final command matches baseline (excluding recorded baseline reds), every cut has a category proof, and every test cut has a keeper/class proof + byte-restored mutation verdict. |
| Stop condition | Report ends with Result: clean, Result: no-change, Result: awaiting_input, or Result: blocked. |
</instruction_contract>
<activation_examples>
Positive requests:
src/pricing/ and prove nothing calls them."Negative requests:
createOrder 시그니처 바꿔줘." (public API change)Boundary requests:
findings-only; make zero edits and end with Result: no-change.</activation_examples>
<trigger_conditions>
| Situation | Mode |
|---|---|
| Named files/directory with edit authorization | scoped cleanup |
| No path named | current-diff cleanup |
| Audit/report only with no edits | findings-only (Result: no-change) |
| Test files included in scope | cleanup + test ledger + mutation-proof.sh |
| Safe cut requires editing outside authorized scope | preserve and report boundary |
| Pre-existing dirty files or baseline reds | record in behavior lock; never revert others' edits or delete red tests |
rules/behavior-lock.md owns the baseline, rules/categories.md owns classification, and rules/test-junk.md owns test marks and script usage.
</trigger_conditions>
<skill_architecture>
SKILL.md): trigger, modes, contract, step gates, checklist, terminals.--json, --self-test), scripts/mutation-proof.sh (applies one source mutation, runs tests, restores byte-for-byte, reports caught or survived).assets/evals/hyper-cleanup-cases.jsonl.</skill_architecture>
<loop_policy>
mutation-proof.sh once per removed (D) or consolidated (C) test and verify SHA-256 byte-for-byte restoration before the next proof.</loop_policy>
<language_and_translation_default>
Write .hyper/cleanup/<slug>.md, questions, and the summary in Korean. Keep code identifiers, CLI commands, error strings, and terminal tokens in English.
</language_and_translation_default>
<reference_routing>
scan-test-junk.sh or mutation-proof.sh..hyper/cleanup/<slug>.md.</reference_routing>
<support_file_read_order>
SKILL.md to fix scope, mode, and terminal contract.rules/behavior-lock.md, then capture the baseline lock.rules/categories.md and rules/existence-ladder.md to classify every unit.rules/test-junk.md when test files are in scope.rules/correction-and-report.md before final verification and report writing.</support_file_read_order>
Before starting Step 1, check .hyper/cleanup/<slug>.md (or .hyper/cleanup/*.md matching the target scope). When an unfinished cleanup report or recorded behavior lock already exists on disk, read its baseline command, recorded baseline reds, authorized file scope, and completed ladder/mutation rows first, verify git status --short so unrelated dirty files stay untouched, and resume from the first incomplete step without overwriting the original pre-edit baseline record. Register .hyper/ in .gitignore if needed before writing under .hyper/cleanup/.
| Step | Action | Done when | Why not skip |
|---|---|---|---|
| 1 | Fix authorized scope (named paths or current diff), check resume state, and record base commit + pre-existing dirty files | Authorized file list, read-only context list, and base git state are recorded | Editing without a locked scope risks clobbering unrelated changes or neighbor modules |
| 2 | Run the touched area's check command before any edit and record the exact command + baseline reds | Behavior lock records exact command, exit status, and any pre-existing failing tests | Without a pre-edit baseline, you cannot separate pre-existing reds from cleanup regressions |
| 3 | Classify every in-scope unit on the 4-rung ladder with a category proof (repo-wide search) or KEEP reason | Ladder table covers both candidate cuts and preserved keepers | Cutting before classifying deletes public exports, boundary guards, or live callers |
| 4 | Apply proven source cuts (unless findings-only), and for tests run scan-test-junk.sh + mutation-proof.sh on every D/C | Every removed hunk has a category proof and every cut test has a SHA-256-restored mutation verdict | Deleting tests without mutation proof silently drops real behavioral regression guards |
| 5 | Re-run the exact baseline command; repair any new failure at the offending hunk (<= 2 tries) or revert that hunk only | Final check matches baseline (apart from baseline reds) with zero whole-file git resets | Whole-file git checkout/restore destroys valid hunks or pre-existing user changes |
| 6 | Audit git diff for stray edits/scratch files and write .hyper/cleanup/<slug>.md ending with one Result: line | Saved report has lock, ladder, removed hunks, test ledger, preserved code, and Result: | Unrecorded cuts cannot be audited or replayed by a reviewer |
Verify every item before writing the terminal Result: line:
| # | Yes/No question | On violation -> return to |
|---|---|---|
| 1 | Was the exact baseline command run and recorded before the very first edit, with pre-existing dirty files and baseline reds isolated? (Yes/No) | Step 2 |
| 2 | Does every removed hunk stay strictly inside the authorized file set and carry a category + repo-wide proof (with zero public-API changes)? (Yes/No) | Step 3 |
| 3 | Does every removed (D) or consolidated (C) test have a keeper/class proof plus a mutation-proof.sh verdict with verified byte-for-byte SHA-256 restore? (Yes/No) | Step 4 |
| 4 | Does the post-cleanup run of the exact baseline command pass (excluding recorded baseline reds) without weakening any assertion or red test? (Yes/No) | Step 5 |
| 5 | Was .hyper/cleanup/<slug>.md read back from disk ending with exactly one valid Result: terminal? (Yes/No) | Step 6 |
The report ends with exactly one Result: line:
| Terminal | Meaning |
|---|---|
clean | Authorized cuts applied, behavior lock passes, and hunk/test ledgers are complete. |
no-change | Findings-only mode, or no candidate survived proof; report records every considered unit and why it stayed. |
awaiting_input | Stopped on one ambiguity that repository evidence cannot settle. |
blocked | Needed check command or capability was unavailable; exact command and gap are reported. |
mutation-proof.sh verdict for every deleted or consolidated test..hyper/cleanup/<slug>.md ending with one Result: line.git checkout/restore/reset, editing outside scope, or committing/pushing.src/pricing/ after grepping only src/pricing/ instead of the whole repository. -> Good: Search references across the entire repository and preserve any public export or cross-module caller.toEqual so the cleanup passes. -> Good: Record baseline-red tests untouched in the lock and revert any cleanup hunk that changes asserted behavior.git checkout -- src/foo.ts to undo one broken cleanup hunk on a dirty file. -> Good: Revert only the offending hunk via targeted edit so other hunks and pre-existing user changes stay intact."redundant" test without running scripts/mutation-proof.sh and checking the SHA-256 restore hash. -> Good: Run mutation-proof.sh, verify the surviving keeper catches the mutation (caught), and confirm byte-identical file restoration.findings-only made zero edits) and edits stayed strictly inside the authorized file set..hyper/cleanup/<slug>.md.mutation-proof.sh verdict with SHA-256 byte-identical restore confirmed.git diff..hyper/cleanup/<slug>.md exists on disk and ends with one valid Result: terminal.Checked 2026-11-10.
| Claim | Source |
|---|---|
| Nine-category slop classification, KEEP exceptions, and tests as a category | dbc-hbin/omp-ulw@74df40f remove-ai-slops/SKILL.md (mechanism reference, re-authored) |
| Delete-reuse-platform-simplify ladder and non-speculative user behavior rule | dbc-hbin/omp-ulw@74df40f remove-ai-slops/SKILL.md (mechanism reference, re-authored) |
| Baseline-first behavior lock, baseline-red exclusion, and ban on whole-file rollback | dbc-hbin/omp-ulw@74df40f remove-ai-slops/SKILL.md (mechanism reference, re-authored) |
| Test junk classes, retention bar, and candidate-vs-keeper matrix | dbc-hbin/omp-ulw@74df40f programming/references/testing/junk-classes.md (mechanism reference, re-authored) |
| Byte-restored source mutation proof | dbc-hbin/omp-ulw@74df40f remove-ai-slops/SKILL.md (mechanism reference, re-authored) |
| Contract shape, bilingual package, one-level link rule, and trigger-first description | instructions/skill/SKILL_AUTHORING.md |
Four terminals, report sections, bundled script interfaces, and Result: line | integrator contract, 2026-11-10 (issue #24) |
LOCAL - terminals, report layout, script interfaces, and repair caps are this package's design; slop categories, ladder, and mutation proof matrix are re-authored in original words without copying text or code.
SKILL.ko.md (opens in a new tab)assets/evals/hyper-cleanup-cases.jsonl (opens in a new tab)rules/behavior-lock.ko.md (opens in a new tab)rules/behavior-lock.md (opens in a new tab)rules/categories.ko.md (opens in a new tab)rules/categories.md (opens in a new tab)rules/correction-and-report.ko.md (opens in a new tab)rules/correction-and-report.md (opens in a new tab)rules/existence-ladder.ko.md (opens in a new tab)rules/existence-ladder.md (opens in a new tab)rules/test-junk.ko.md (opens in a new tab)rules/test-junk.md (opens in a new tab)scripts/mutation-proof.sh (opens in a new tab)scripts/scan-test-junk.sh (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub alpoxdev/hypercore --plugin hypercore41 skills in this plugin
/hyper[Hyper] Use this skill when the user wants a development job carried from start to finish - a feature, fix, refactor, migration, technology choice, SEO or analytics job, database, MCP, decision API, UI design or frontend work, client or planner change request, runtime failure, behavior-preserving cleanup, dataset question, multi-goal run, image, deployment, skill folder, document, or prompt - without naming one hyper stage skill, or invokes hyper by name. It picks the shortest chain of hyper stage skills, runs each in order, and passes each stage's saved artifact to the next. Do not use it when one stage skill is named directly, or for a one-place edit, a commit-only request, a PRD package, a diagram, or a plain question./hyper-architecture[Hyper] Use this skill when the user asks for architecture, project setup, or performance work - building, auditing, restructuring, or reviewing project structure, routes, data or server boundaries, lint/format/type tooling (oxlint, Prettier, tsconfig, rustfmt, clippy), or build and runtime performance - in Next.js App Router, TanStack Start, Vite + TanStack Router, Astro, Expo, Lynx (ReactLynx), Hono, Axum, Tauri v2, Electron, or Rust CLI/WASM/MCP server projects. Detects each stack from manifests and config files, routes monorepo packages separately, and applies the bundled stack guide, setup baseline, and performance rules. Do not use for unsupported stacks, copy edits, plain dependency bumps, or single build failures.Other plugins' skills for the same job