x-ipe-task-based-code-refactor
CommunitySafe, traceable code refactoring in steps.
System Documentation
What problem does it solve?
This Skill enables safe, incremental refactoring of large codebases by requiring a validated scope, a prioritized plan, and test-backed execution, ensuring changes are traceable and reversible when needed.
Core Features & Use Cases
- Reflect on Context: gather requirements, features, tech specs, and scope boundaries to map code relationships.
- Plan Refactoring: design a target structure applying SOLID, DRY, and KISS principles with phased changes and risk assessment.
- Execute Incrementally: apply changes phase-by-phase, commit checkpoints, run tests after each change, and revert if necessary.
- Update References: synchronize technical designs, requirements, and feature specifications with the new structure.
- Tracing & Compliance: preserve or apply tracing instrumentation for new and moved code.
- Rollback on Failure: stop, analyze, and revert if tests fail or behavior changes are detected.
Quick Start
Prepare the required prerequisites (refactoring_suggestion, refactoring_principle, and code_quality_evaluated) and trigger the end-to-end refactoring flow by first running x-ipe-task-based-refactoring-analysis to generate a plan, then x-ipe-task-based-improve-code-quality to validate readiness, and finally invoke this skill to execute the plan incrementally. After each phase, review test results and commit changes, updating references as needed.
Note: The execution follows a strict DoR/DoD flow and requires human approval at key decision points.
Dependency Matrix
Required Modules
None requiredComponents
💻 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: x-ipe-task-based-code-refactor Download link: https://github.com/Young-Z/X-IPE/archive/main.zip#x-ipe-task-based-code-refactor 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 223,000+ vetted skills library on demand.