Agent skill

simplify

ruthlessly simplify systems (delete first, DRY, SSOT, leverage libraries)

Stars 163
Forks 31

Install this agent skill to your Project

npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/simplify-ianwatts22-codex-config

SKILL.md

Our code should be as simple as possible. Default to deleting and centralizing.

Core Moves

  • Question requirements first: what can we remove or narrow?
  • Delete unused code, obsolete flags, dead paths, and premature abstractions.
  • Enforce SSOT: business rules, validation, enums, constants live in one place.
  • DRY duplicated logic: extract shared helpers/components only when it genuinely reduces complexity.
  • Prefer established libraries over custom boilerplate.

Practical Commands (When Useful)

  • scc . --include-ext ts,tsx --by-file (hotspots by size/complexity)
  • codefetch (if installed; convert code into markdown for review)
  • knip (dead code / unused exports)
  • jscpd (duplication; scope with --pattern to avoid noise, e.g. components/**/*.tsx)
  • rg (fast, precise code search)

Recurring Pain Points (Watch For)

  • useEffect that’s doing non-external sync work (often removable)
    • See ~/.config/docs/React/ReactEffectsGuide.md

Output Format

  • What to delete (highest leverage first)
  • What to consolidate into SSOT
  • What to replace with a library (if any)
  • Minimal migration steps

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results