cc-routine-and-class-design

Evaluates routine and class design using Code Complete checklists.

351|31|Updated Jan 9, 2026
One-click install
npx skills add https://github.com/ryanthedev/code-foundations --skill cc-routine-and-class-design
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cc-routine-and-class-design
Source: https://github.com/ryanthedev/code-foundations/tree/main/skills/cc-routine-and-class-design
Command: npx skills add https://github.com/ryanthedev/code-foundations --skill cc-routine-and-class-design

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps engineers identify and fix design issues in routines and class interfaces by applying Code Complete checklists, reducing future maintenance costs.

Core Features & Use Cases

  • CHECKER mode: runs design checklists against code to surface violations (LSP, containment, parameter count) with severity labels (VIOLATION/WARNING/PASS).
  • APPLIER mode: guides interface design decisions, inheritance vs containment, and cohesion improvements to improve long-term maintainability.
  • Use Case: Review a legacy class with deep inheritance to decide whether to extract routines or refactor interfaces.

Quick Start

Run a design-check on your class by invoking the skill in CHECKER mode and review the severity-tagged results for a representative module.

Frequently Asked Questions about cc-routine-and-class-design

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I evaluate class design quality and check for LSP violations?

To evaluate class design quality, run a design checklist in CHECKER mode to surface LSP violations, containment defaults, and parameter limits with severity labels like VIOLATION, WARNING, or PASS.

When should I use inheritance versus containment in routine design?

Decide between inheritance versus containment by using APPLIER mode, which guides interface design decisions and cohesion improvements to ensure long-term maintainability and adherence to LSP.

How do I refactor a legacy class with deep inheritance to improve cohesion?

Refactor a legacy class with deep inheritance by invoking the skill to evaluate whether to extract routines or refactor interfaces, applying strict containment defaults and checking for empty overrides.

What is a routine design checklist for assessing interface maintainability?

A routine design checklist assesses interface maintainability by enforcing strict adherence to LSP, containment defaults, parameter limits, and the avoidance of empty overrides during code reviews.

Can I use this skill to guide interface design decisions during the design phase?

Yes, you can use APPLIER mode during the design phase to guide interface design decisions, evaluate inheritance versus containment, and improve cohesion before implementation begins.

Why does my class design fail the cohesion check during a code review?

Your class design fails the cohesion check because the evaluation identifies violations of LSP, excessive parameter counts, or empty overrides, flagging them as WARNING or VIOLATION severity issues.