code-smells/oo-abusers

Community

Spot OO anti-patterns and refactor cleanly.

Authorjohnnystefan
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill helps you expose OO Abusers such as switch statements, temporary fields, refused bequests, and alternative classes with mismatched interfaces so your domain models can rely on true polymorphism.

Core Features & Use Cases

  • Detection: Walk through code to locate type-based conditionals, seldom-used fields, off-kilter inheritance, and duplicate behaviors hiding behind different method names.
  • Treatment: Recommend structured refactors like Replace Conditional with Polymorphism, Extract Class, Introduce Null Object, delegation in place of bad inheritance, and alignment of class interfaces.
  • Use Case: While reviewing a payment service, spot a switch on payment methods and get guided steps to move the logic into dedicated subclasses and reduce ghost fields so the hierarchy is logical.

Quick Start

Ask the agent to inspect a suspected switch or temporary field in the business layer and propose a polymorphic refactor or delegation to resolve it.

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-smells/oo-abusers
Download link: https://github.com/johnnystefan/test-saas-business/archive/main.zip#code-smells-oo-abusers

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.