convention-solid-ocp
CommunityScale software safely by embracing OCP.
AuthorsunLeee
Version1.0.0
Installs0
System Documentation
What problem does it solve?
The Open/Closed Principle (OCP) advocates designing software so that existing code remains stable while new features are added through extension rather than modification.
Core Features & Use Cases
- Encourages designing abstractions and extension points to accommodate new requirements without touching existing code.
- Applies to library APIs, plugins, and modular architectures to reduce regression risk and simplify testing.
- Use Case: When adding a new feature, implement a new concrete class or strategy that conforms to an existing interface instead of altering existing implementations.
Quick Start
Introduce an abstract interface for a feature, create concrete extension classes, and wire them through a factory or dependency injection to enable new behavior without changing existing code.
Dependency Matrix
Required Modules
None requiredComponents
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: convention-solid-ocp Download link: https://github.com/sunLeee/optimization/archive/main.zip#convention-solid-ocp Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.