oop-best-practices
Installation
SKILL.md
OOP Best Practices
Use this skill for everyday coding decisions that shape readability, cohesion, and long-term maintainability.
Use it especially when the task benefits from:
- stronger naming and more explicit abstractions
- clearer object responsibilities and encapsulated invariants
- message-based collaboration and role-oriented objects
- composition over inheritance in everyday design choices
Working Style
- Write code for the next reader, not just for the compiler.
- Keep behavior close to the concept that owns it.
- Prefer simple collaborations over clever object graphs.
- Use names, boundaries, and APIs to reveal intent.
- Let objects carry their own rules when they can.