find-simplifications
Skill2 starsChanged 3 months agoMITView on GitHub
Find and safely implement evidence-backed reductions in dead, duplicate, redundant, over-built, or accidentally complex code. Use for scoped or repository-wide simplification, cleanup, consolidation, or dead-code work.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- acupof-ai/arletheir own version, first seen Sep 24, 2026
- HanZephyr/dsh-generalized-skillstheir own version, first seen Aug 24, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- acupof-ai/arle★ 19same name
- HanZephyr/dsh-generalized-skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository6 other files it gives its agents.
- AGENTS.mdAGENTS.md
- audit-agent-workflowsSkill
- frontend-acceptanceSkill
- page-performance-auditSkill
- polish-code-changeSkill
- review-code-changeSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
14 rules. About 0 are common, 13 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈13
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
Survey: If the user asks to find, audit, review, or propose simplifications, inspect and report only.
- Distinctive: line 13
Implement: If the user asks to simplify, clean up, remove, consolidate, or fix the findings, make the smallest safe changes and validate …
- Distinctive: line 16
Do not treat this skill as permission to change product behavior, public contracts, dependencies, deployment state, or unrelated files.
- Distinctive: line 22
Read applicable repository instructions and inspect the working tree so unrelated changes remain untouched.
- Distinctive: line 43
Start with the largest or most connected production surfaces.
- Very specific: line 47
Search with the repository's required code-intelligence tool first.
- Distinctive: line 83
Delete prose that duplicates implementation, but preserve local contracts, rationale, compatibility obligations, and non-obvious failure …
- Distinctive: line 93
Prefer high-value, high-confidence, low-risk candidates.
- Distinctive: line 97
Only in Implement mode:
- Distinctive: line 99
Start from the highest-confidence independent batch.
- Distinctive: line 100
Update callers, exports, tests, documentation, configuration, and generated artifacts that belong to the removed surface.
- Distinctive: line 103
Run the narrowest checks that exercise affected contracts, then normal repository gates in proportion to risk.
- Distinctive: line 105
Stop and report instead of guessing when external consumers, compatibility promises, migrations, or behavior choices remain unresolved.
- Distinctive: line 107
Do not commit, push, open a pull request, add a dependency, or publish anything unless the user separately authorizes it.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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
Find Simplifications
Turn a broad simplification request into a small set of proven reductions. Prefer deleting or clarifying real surface area over moving the same complexity behind a new wrapper.
Choose The Mode
- Survey: If the user asks to find, audit, review, or propose simplifications, inspect and report only.
- Implement: If the user asks to simplify, clean up, remove, consolidate, or fix the findings, make the smallest safe changes and validate them.
- Respect a supplied directory, diff, branch, or subsystem boundary. For an unscoped repository-wide request, survey broadly but keep the final candidate list selective.
Do not treat this skill as permission to change product behavior, public contracts, dependencies, deployment state, or unrelated files.
Establish Context And A Behavior Baseline
Before judging complexity:
- Read applicable repository instructions and inspect the working tree so unrelated changes remain untouched.
- Identify architecture docs, package boundaries, public exports, generated files, compatibility promises, and relevant design decisions.
- Separate production code from tests, fixtures, examples, scripts, documentation, generated output, migrations, and compatibility code.
- Note language and framework conventions before choosing analysis commands or validation.
- Identify existing tests or runtime evidence that characterize the behavior to preserve. In Implement mode, add a narrow characterization test when authorized if important behavior is otherwise unpinned.
Apply Chesterton's Fence: understand what a branch, layer, or guard protects before removing it. Repository decisions are evidence, not unquestionable truth, but intentional seams remain until current consumer and ownership evidence justifies collapsing them.
Look For High-Value Candidates
Prioritize simplifications that remove meaningful maintenance or comprehension cost:
- Dead surface: unused files, exports, methods, events, flags, configuration, dependencies, adapters, or package entry points.
- Duplicate behavior: copy-pasted implementations, parallel helpers, mirrored state, repeated schemas, or multiple representations of the same fact.
- Redundant indirection: wrappers, facades, registries, or layers that add no policy, translation, isolation, or ownership boundary.
- Speculative generality: extension points, modes, lifecycle branches, rollback paths, or abstractions with no current owner or production consumer.
- Excess defensive machinery: copies, freezes, sentinels, validators, readiness promises, or cancellation paths protecting the same transition.
- Accidental complexity: nested control flow, clever expressions, unclear names, sprawling functions, or conditional accretion that can be made direct without changing behavior.
- Hand-rolled infrastructure: parsers, globbing, retries, diffing, framing, caching, or scheduling already covered by a runtime builtin or healthy dependency.
- Obsolete prose and tests: comments that restate code, documentation of removed behavior, and tests whose only purpose is protecting an unused API.
Start with the largest or most connected production surfaces. Do not stop after the first obvious unused symbol when a broad audit was requested.
Prove Or Reject Every Candidate
Search with the repository's required code-intelligence tool first. Otherwise use rg for exact symbols, imports, calls, event names, configuration keys, package exports, dynamic import strings, wire values, and filenames, then read the callers.
Static analyzers such as compiler unused checks, linters, dependency analyzers, or clone detectors may generate leads. Use existing project configuration when available; do not add a tool merely to run the survey. Tool output is not proof by itself.
For every candidate, record:
- Surface and cost: what exists and why it creates maintenance or conceptual overhead.
- Consumer inventory: production, test or docs only, ambiguous or dynamic, and external or public consumers.
- Ownership and contract: who owns the data or lifecycle transition, and which behavior must survive.
- Proposed end state: exactly what would be deleted, folded, clarified, demoted, or replaced.
- Net reduction: code, tests, docs, configuration, and dependencies removed minus replacement glue and migration work.
- Tradeoff: capability, flexibility, compatibility, or defensive guarantee given up.
- Validation: checks that would detect the plausible regression.
Reject or downgrade a candidate when:
- A real production or external consumer exists and removal would be a feature decision.
- Dynamic dispatch, serialization, configuration, reflection, package exports, migrations, or compatibility behavior has not been checked.
- The abstraction enforces a distinct policy, trust, rollback, concurrency, or ownership boundary.
- The replacement merely relocates complexity, obscures intent, or requires wide unrelated churn.
- Inputs, outputs, errors, side effects, ordering, timing, resource ownership, or performance characteristics would change without explicit product approval.
- The evidence is only “looks complex,” a single analyzer warning, or superficial similarity.
- The change is tiny and would add more process or documentation than value.
Special Judgment Areas
Lifecycle and concurrency
Map each state flag, promise, sentinel, cancellation path, disposer, and callback to the owner or transition it protects. Collapse mechanisms only when they represent the same fact. Keep separate machinery when it protects distinct publication, rollback, containment, arbitration, resource ownership, or shutdown guarantees.
Dependency replacement
Prefer a runtime or standard-library builtin when it fully covers the need. For an external dependency, verify current maintenance, adoption, footprint, license, and security posture from authoritative sources. Account for uncovered semantics and remaining adapter code. A dependency swap is worthwhile only when the net system becomes smaller and easier to explain.
Documentation and tests
Delete prose that duplicates implementation, but preserve local contracts, rationale, compatibility obligations, and non-obvious failure boundaries. Tests are consumer evidence, not automatic justification: determine whether they protect supported behavior or only preserve obsolete machinery.
Rank The Result
Rank candidates using three independent dimensions:
- Value: meaningful surface or comprehension burden removed.
- Confidence: consumer, behavior, and contract evidence is complete.
- Risk: likelihood and impact of behavior, API, data, or compatibility regression.
Prefer high-value, high-confidence, low-risk candidates. Report fewer strong candidates rather than padding the list with guesses.
Implement Safely
Only in Implement mode:
- Start from the highest-confidence independent batch.
- Update callers, exports, tests, documentation, configuration, and generated artifacts that belong to the removed surface.
- Preserve unrelated working-tree changes and avoid opportunistic refactors.
- Compare preserved inputs, outputs, errors, side effects, ordering, timing, and resource behavior against the baseline.
- Run the narrowest checks that exercise affected contracts, then normal repository gates in proportion to risk.
- Re-search removed symbols, filenames, configuration keys, and wire values after editing.
- Stop and report instead of guessing when external consumers, compatibility promises, migrations, or behavior choices remain unresolved.
Do not commit, push, open a pull request, add a dependency, or publish anything unless the user separately authorizes it.
Report
For a survey, list candidates in ranked order with:
- location and affected surface;
- evidence and consumer classification;
- proposed reduction and estimated net effect;
- confidence, value, and risk;
- tradeoff or strongest reason to keep it;
- required validation.
Also state the scope inspected, tools or searches used, intentionally excluded areas, and rejected representative leads. If no candidate meets the bar, say so explicitly.
For implementation, report what was removed or clarified, what behavior was preserved, validation results, and remaining unverified risks.
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.

