cc-routine-and-class-design

Installation
SKILL.md

Skill: cc-routine-and-class-design

STOP - Crisis Invariants (NEVER SKIP)

Check Time Why Non-Negotiable
LSP Test - "Is 'A is a B' literally true?" 30 sec Wrong inheritance creates debugging hell
Containment Default - If LSP feels wrong, use containment 30 sec Containment is fixable; inheritance requires architecture changes
Parameter Count - If >7 parameters, interface is wrong 15 sec High parameter count predicts interface errors

Prerequisites

This skill assumes:

  • Object-oriented programming with class-based inheritance
  • Mutable state (objects that change over time)
  • Synchronous or simple async patterns

For functional programming, prototype-based inheritance, or heavily concurrent code, adapt principles rather than applying literally. See "Pattern-Specific Guidance" section.

Related skills

More from ryanthedev/code-foundations

Installs
1
GitHub Stars
243
First Seen
Mar 9, 2026