Skip to main content

legacy-code-safety

Applies Michael Feathers' Working Effectively with Legacy Code discipline when changing code that lacks trustworthy tests or has unclear, hard-to-observe behavior: characterize current behavior before redesigning it, find or create a seam, break the one dependency actually blocking a test, make the change, then leave the area more testable than found. Use whenever the user modifies code with weak or missing test coverage, works in an unfamiliar or "legacy" codebase, needs to test code that resists testing (hard-to-construct objects, hidden statics, framework entanglement), or is tempted to rewrite something risky instead of changing it safely. Trigger on phrases like "this code has no tests", "I need to change this safely", "how do I test this", or "this is legacy code". Distilled from Feathers' book via the agent-rules-books project (MIT licensed); references/full-reference.md carries the complete seam catalog and dependency-breaking technique index for deeper sessions.

Ir a la instalación

Datos de origen

Repositorio
infinyte/custom_claude_skills
Última actividad en el origen
24 de julio de 2026 a las 06:32
Idioma detectado de SKILL.md
inglés
Estrellas
0
Forks
0

Opciones de instalación

De forma predeterminada está seleccionado el prompt que primero revisa el origen. Puedes cambiar a un comando directo o descargar una copia local.

Revisa los archivos de origen

Lee SKILL.md y los archivos complementarios que muestra SkillsMP antes de decidir si quieres instalarlo.