cc-routine-and-class-design

Installation
SKILL.md

cc-routine-and-class-design

Three checks catch design problems that can't be patched post-hoc (they require architectural change, not a fix):

Check What
LSP test Is "A is a B" literally true? If not, the inheritance is wrong
Containment default If LSP feels like purity theater, use containment — it's fixable; inheritance isn't
Parameter count Over 7 parameters predicts interface errors — the interface is wrong

A passing test suite does not clear these: code can pass all tests on day 1 and still carry VIOLATION-level design debt that surfaces during later modification.

Shared thresholds (parameters 7±2, inheritance depth, routine length, cohesion spectrum): Read(${CLAUDE_PLUGIN_ROOT}/references/cc-foundations.md).

When NOT to apply

Installs
5
GitHub Stars
369
First Seen
Mar 9, 2026
cc-routine-and-class-design — ryanthedev/code-foundations