refactor-git-plan

📁 cantagestudio/cosmicatlaspacker 📅 3 days ago
2
总安装量
2
周安装量
#69287
全站排名
安装命令
npx skills add https://github.com/cantagestudio/cosmicatlaspacker --skill refactor-git-plan

Agent 安装分布

amp 2
gemini-cli 2
github-copilot 2
codex 2
kimi-cli 2
cursor 2

Skill 文档

Refactor: Git Plan

Structure version control for safe, reviewable refactoring.

Branch Strategy

Naming Convention

refactor/<scope>-<action>
Examples: refactor/auth-extract-service

Commit Granularity

One Commit Per

  • Single rename across files
  • One method extraction
  • One file move
  • One pattern application

Commit Message Format

refactor(<scope>): <action>

<what changed and why>

Risk: low|medium|high
Tests: passing|added|updated

Safety Practices

Before Starting

  • Ensure clean state (git status)
  • Create branch
  • Verify tests pass

During Refactoring

  • Commit frequently
  • Run tests after each commit

If Something Breaks

  • git reset –soft HEAD~1 (undo, keep changes)
  • git checkout — . (discard changes)
  • git revert (revert specific)