code-architecture-wrong-abstraction

Community

Avoid wrong abstractions; wait for patterns.

Authorflpbalada
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill guides developers on when to create shared abstractions versus duplicating code, preventing premature refactoring and complex, hard-to-maintain abstractions.

Core Features & Use Cases

  • Rule of Three: wait for at least 3 similar occurrences before abstracting.
  • Guided decision-making: criteria to determine whether a pattern is stable enough to extract.
  • Refactoring playbook: steps to revert a bad abstraction and re-align with correct structure.
  • Use Case: during a refactor of utility functions, repository-wide code duplication is evaluated and either preserved or extracted as a shared utility.

Quick Start

Review your codebase for repeated logic, apply the Rule of Three, inline later when patterns stabilize, and extract a proper abstraction only when the behavior is consistent across places.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: code-architecture-wrong-abstraction
Download link: https://github.com/flpbalada/my-opencode-config/archive/main.zip#code-architecture-wrong-abstraction

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.