refactor-git-plan

Structure version control for safe, reviewable refactoring.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "refactor-git-plan" with this command: npx skills add cantagestudio/cosmicatlaspacker/cantagestudio-cosmicatlaspacker-refactor-git-plan

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)

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

refactor-dedupe-and-cleanup

No summary provided by upstream source.

Repository SourceNeeds Review
General

task-segmentation

No summary provided by upstream source.

Repository SourceNeeds Review
General

task-valid-review

No summary provided by upstream source.

Repository SourceNeeds Review