duplication-vs-abstraction

duplication-vs-abstraction is a Refactoring & code quality skill for AI agents, published by recyclarr in the recyclarr repository on GitHub. Skillspace rates duplication-vs-abstraction D (59/100) and it passed the safety scan; the rating is based on static analysis only.

Use when weighing whether to extract a shared abstraction, base class, interface, or generic helper versus keeping code duplicated; evaluating DRY tradeoffs across parallel Sonarr and Radarr implementations, Refit or other code-generated API clients, OpenAPI/gRPC/GraphQL DTOs, or anti-corruption layers over distinct external systems; reviewing a PR that introduces a new shared abstraction spanning independent bounded contexts; considering unwinding a wrong abstraction back into duplicated copies. Triggers on phrases like "should I abstract this", "extract a base class", "these look duplicated", "DRY this up", "unify Sonarr and Radarr", "refactor to share", "rule of three", "wrong abstraction". Do NOT use for mechanical refactors within a single type or for trivial helper extraction inside one module.

Grade
D
Quality
59 / 100
Safety
Passed
GitHub stars
2,031

Unproven: rated by static analysis only, not yet compared head-to-head.

This rating describes the version of the repository we crawled; it may have changed since, so go by its current files.

Our review

Architecture
84 / 100
Maturity
Basic: a single SKILL.md
Security scan
No issues found
License
MIT
Adoption
Adopted by 0 other repositories, in 0 collections

Not checked yet

  • Not judged on the rubric yet (not a contender in its category)
  • No blind task eval yet
  • Scope (portable / vendor / repo-internal) not assessed; only the top of each category is read for scope
  • Sibling files (scripts, references) not fetched; security scan covers SKILL.md only

Skillspace indexes and rates this skill; it does not host or endorse it. Run third-party skills at your own risk.