sandi-metz
CommunityTest-backed Sandi Metz OO refactoring
Authordakotahp
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Provides a disciplined, test-first workflow for designing and refactoring object-oriented code using Sandi Metz principles so teams can change behavior safely, reduce long methods and large classes, and keep codebases easy to extend.
Core Features & Use Cases
- Build or Refactor Modes: Decide whether to build a new component from tests (Shameless Green) or iteratively refactor existing code based on file/class input or recent git churn.
- TDD-Driven Rounds: Enforces red → green → refactor cycles, writing minimal tests first, making the smallest change to pass, and then cleaning up with one small refactoring per round.
- Rule-Guided Assessment: Automatically assess rule violations and code smells (class length, method length, parameter counts), propose a safe refactoring sequence, and summarize each round with metrics.
- Practical Safety Nets: Requires a green test baseline before refactoring, uses git diffs and greps to scope work, and includes revert guidance if tests break.
Quick Start
Ask the skill to refactor by supplying a file path or class name, or describe a new feature to build from tests.
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: sandi-metz Download link: https://github.com/dakotahp/dotfiles/archive/main.zip#sandi-metz 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.