From m2m-developer
Move uncommitted work (staged, unstaged, and untracked files) from the current branch onto a new feature branch created from the latest default branch. Use when user has changes on the wrong branch or wants to start a clean feature branch with current work.
How this skill is triggered — by the user, by Claude, or both
Slash command
/m2m-developer:move-changes-to-branchThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Move uncommitted work (staged, unstaged, and untracked files) from the current branch onto a new feature branch created from the latest default branch.
Move uncommitted work (staged, unstaged, and untracked files) from the current branch onto a new feature branch created from the latest default branch.
git status
If the working tree is clean with no untracked files, stop and tell the user there's nothing to move.
Summarize staged changes, unstaged changes, and untracked files.
If $ARGUMENTS is empty, ask the user for the new branch name. Use conventional prefixes: feat/, fix/, chore/, refactor/, docs/.
DEFAULT_BRANCH=$(git remote show origin | grep 'HEAD branch' | awk '{print $NF}')
If git remote show origin fails (no remote configured), ask the user which branch to base off of.
git stash push --include-untracked -m "move-changes-to-branch: temp stash"
git checkout $DEFAULT_BRANCH
git pull origin $DEFAULT_BRANCH
git checkout -b <new-branch-name>
git stash pop
If merge conflicts occur: Do NOT auto-resolve. List the conflicted files and ask the user how to proceed.
# Stage all changes including untracked files
git add <files>
# Commit with a descriptive message
git commit -m "$(cat <<'EOF'
[type]: [concise description]
[Optional body explaining why, not what]
Co-Authored-By: Claude Opus 4.6 <[email protected]>
EOF
)"
git log)Show:
npx claudepluginhub month2month/m2m-developer-plugin --plugin m2m-developerStages, commits, and optionally pushes local changes with a conventional commit message. Analyzes diffs, confirms with user. Automatically creates feature branches on protected branches.
Commits changes with a short imperative git message following strict style rules; creates new branch if on main. Uses git status, diff, log for context.
Creates git commits with clear messages from working tree changes, following repo conventions or conventional commits. Handles clean trees and detached HEAD.