From product-playbook-for-agentic-coding
Move uncommitted changes to a new branch without committing
How this command is triggered — by the user, by Claude, or both
Slash command
/product-playbook-for-agentic-coding:move-changes <new-branch-name>git/The summary Claude sees in its command listing — used to decide when to auto-load this command
# Git Move Changes to New Branch You are an AI assistant tasked with moving local changes to a new branch. Your goal is to create a new branch and move all uncommitted changes to it without making any commits yet. ## Your Goal Create a new branch and move all uncommitted changes to it, keeping the original branch clean. ## Process ### Step 1: Check Current Status First, analyze the current state: Check: - Current branch name - Uncommitted changes (modified, deleted, untracked files) ### Step 2: Get Branch Name Ask the user for the new branch name, or suggest one based on the chan...
You are an AI assistant tasked with moving local changes to a new branch. Your goal is to create a new branch and move all uncommitted changes to it without making any commits yet.
Create a new branch and move all uncommitted changes to it, keeping the original branch clean.
First, analyze the current state:
git status
git branch --show-current
Check:
Ask the user for the new branch name, or suggest one based on the changes:
feature/new-auth, refactor/cleanup)Create a new branch and switch to it. All uncommitted changes will move with you:
git checkout -b <branch-name>
Important: Uncommitted changes stay in the working directory and move with you to the new branch.
Verify that all changes are now on the new branch:
git status
git branch --show-current
Confirm:
Provide a summary:
User Request: "Move my changes to a new branch called 'playbook-restructure'"
Execution:
main branch)git checkout -b playbook-restructureCreated new branch 'playbook-restructure' and moved all local changes:
- 5 deleted files
- 4 modified files
- 9 untracked files
All changes are now on the new branch. Nothing has been committed yet.
Remember: This only creates the branch and moves changes. No commits are made unless explicitly requested.
npx claudepluginhub daviswhitehead/product-playbook-for-agentic-coding-plugin --plugin product-playbook-for-agentic-coding/commit-push-prCommits staged and unstaged changes with an appropriate message, pushes to a new branch, and creates a pull request via gh CLI.
/create-branchCreates a feature branch with intelligent naming and auto-incrementing numbering, or auto-generates a branch name from uncommitted changes when no description is provided.