<< All versions

Skill v1.0.1

currentAutomated scan100/100
marsonshine/ai-skills/find-code-simplifications

+5 new

──Details
PublishedOctober 23, 2026 at 11:29 AM
Content Hashsha256:d2489580debb5861...
Git SHA40863f99088b
Bump Typepatch
Compare with v1.0.0
──Files
Files (1 file, 3.3 KB)
SKILL.md3.3 KBactive
SKILL.md · 40 lines · 3.3 KB

version: "1.0.1" name: find-code-simplifications description: "Audit existing code, configuration, dependencies, or tests for evidence-backed simplification; apply proven reductions when requested. Not for ordinary implementation, correctness review, or prose-only editing."


Find Code Simplifications

Prefer a few well-proven candidates over a long list of guesses. A simplification should remove real maintenance cost while preserving the repository's current obligations.

Workflow

  1. Read applicable repository instructions; consult architecture, decision records, and testing policy where they establish obligations for a candidate.
  2. Bound the audit to the requested diff, directory, or whole repository and identify protected seams, compatibility requirements, and product choices that must remain.
  3. Survey production code within that scope before tests and docs, starting with the largest or most coupled surfaces.
  4. Search exact symbols, configuration keys, events, formats, package names, and wire strings; then read every meaningful caller, including outside the audit scope when needed to establish obligations.
  5. Classify consumers as production, support/test/documentation, dynamic or ambiguous, and externally public.
  6. Compare simpler alternatives for semantic fit and total maintenance cost; estimate net deletion, behavior tradeoffs, migration cost, and validation needed.
  7. Reject weak candidates and report the strongest remaining opportunities with evidence.
  8. If the user explicitly requested implementation, select only proven candidates, remove or replace the smallest coherent surface, update affected callers and evidence, and run the validation identified during the audit.

Read references/candidate-playbook.md for candidate types, proof requirements, and replacement selection.

Rules

  • Do not call code dead from static-search output alone; account for loaders, reflection, plugins, configuration, generated code, and external consumers.
  • A single implementation or a file or line count does not prove that an abstraction is unnecessary. Remove demonstrated maintenance cost, not structure based on size alone.
  • Do not treat tests or decision records as untouchable truth, but understand the behavior or rationale they protect before proposing removal.
  • Do not disguise a feature decision as cleanup. Surface behavior changes and ask when product intent is not established.
  • Use a local TODO only for a small, actionable cleanup. Use the repository's decision format for a durable cross-cutting proposal when one exists.
  • Do not implement candidates during an audit-only request.
  • An implementation request authorizes local simplification work, not removal of required behavior, unsupported compatibility, or externally consumed APIs whose ownership is unresolved.
  • Keep each applied simplification reviewable. Do not mix unrelated cleanup merely because it was found during the same audit.

Output

For an audit, state each candidate's surface, consumer evidence, proposed simplification, net deletion or complexity reduction, behavior given up, risk, and validation path. Also state important areas surveyed with no credible candidate.

For implementation, report the proven candidate applied, removed or replaced surface, behavior preserved, validation run, net reduction, and any candidates deliberately deferred.

← v1.0.0All versions