proj-refactor
CommunitySafe, incremental code refactoring guide.
Software Engineering#maintainability#patterns#refactor#code-quality#best-practices#incremental#tests
Authorzhangloveyan
Version1.0.0
Installs0
System Documentation
What problem does it solve?
本技能提供一套实用的代码重构框架,帮助团队在不改变对外行为的前提下提升代码可维护性与结构清晰度。
Core Features & Use Cases
- 小步重构:每次只改动一个小部分,降低风险。
- 测试驱动:确保重构不改变外部行为,必要时补充测试。
- 任务文档同步:更新产出清单与下一步指令,保持可追溯。
- Use Case: 现有模块存在坏味道时执行重构,先编写/扩展测试,然后提取方法或类,重构后运行全量测试。
Quick Start
在目标模块中识别一个小的重构机会并附带测试实现。
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: proj-refactor Download link: https://github.com/zhangloveyan/backend-skill/archive/main.zip#proj-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 510,000+ vetted skills library on demand.