#Refactoring
1 prompt · 5 skillsPrompts
Skills
Refactor Without Behavior ChangePin current behavior with characterization tests, then restructure in small always-green steps so the diff provably changes no behavior.Claude Code · CodingClaude CodeSKILL.mdRefactor Without Behavior ChangePin current behavior with characterization tests, then restructure in small always-green steps so the diff provably changes no behavior.Use when restructuring, renaming, extracting, or moving existing code where the requirement is that observable behavior stays identical.@libraryCodingLegacy Code ArchaeologyA disciplined method for reading unfamiliar code — entry points, data flow tracing, and a written mental map — before changing a single line.Claude Code · CodingClaude CodeSKILL.mdLegacy Code ArchaeologyA disciplined method for reading unfamiliar code — entry points, data flow tracing, and a written mental map — before changing a single line.Use when dropped into an unfamiliar or legacy codebase and asked to change behavior you don't yet understand.@libraryCodingTDD Red-Green-Refactor LoopEnforces a strict test-first cycle where every line of production code exists only to make a failing test pass.Claude Code · CodingClaude CodeSKILL.mdTDD Red-Green-Refactor LoopEnforces a strict test-first cycle where every line of production code exists only to make a failing test pass.Use when implementing a new feature or bugfix and you want the test suite to drive the design instead of being written after the fact.@libraryCodingPython Clean Code StandardsPEP 8 plus pragmatic Python rules: type hints, dataclasses, error handling, and async patterns.Cline · CodingClineOtherPython Clean Code StandardsPEP 8 plus pragmatic Python rules: type hints, dataclasses, error handling, and async patterns.@libraryCodingTypeScript Strict Mode ExpertEnforces strict TypeScript patterns: no any, explicit return types, exhaustive switch, and discriminated unions.Claude Code · CodingClaude CodeCLAUDE.mdTypeScript Strict Mode ExpertEnforces strict TypeScript patterns: no any, explicit return types, exhaustive switch, and discriminated unions.@libraryCoding