Guides behavior-preserving restructures: extract functions/classes, rename symbols, reduce duplication, and reorganize modules — all without adding new capabilities. Enforces the refactor-signal check discipline to prevent scope creep.
Refactoring Discipline
Behavior-preserving refactoring discipline. Activates when the task involves restructuring, extracting, or renaming existing code without adding new behavior.
Refactoring Discipline by glitchwerks · 0344ad2
npx skillmds@latest add glitchwerks/refactoring-discipline File contents
---name: refactoring-disciplinedescription: Behavior-preserving refactoring discipline. Activates when the task involves restructuring, extracting, or renaming existing code without adding new behavior.---Guides behavior-preserving restructures: extract functions/classes,rename symbols, reduce duplication, and reorganize modules — allwithout adding new capabilities. Enforces the refactor-signal checkdiscipline to prevent scope creep.
glitchwerks/claude-wayfinder/tree/main/tests/fixtures/skills/refactoring-discipline commit 0344ad2763
Frequently asked questions
Run npx skillmds@latest add glitchwerks/refactoring-discipline in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Behavior-preserving refactoring discipline. Activates when the task involves restructuring, extracting, or renaming existing code without adding new behavior. It is listed under Productivity on SkillMD.
This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
glitchwerks (@glitchwerks) published this skill. Their other Agent Skills are listed on their SkillMD profile.