Help us improve
Share bugs, ideas, or general feedback.
From claude-commands
Creates a new git branch from the latest origin/main, stashing and restoring uncommitted changes. Auto-generates branch names from context or accepts user-provided names. Also supports cherry-picking commits from the previous branch.
npx claudepluginhub jleechanorg/claude-commands --plugin claude-commandsHow this command is triggered — by the user, by Claude, or both
Slash command
/claude-commands:newbranchcommands/The summary Claude sees in its command listing — used to decide when to auto-load this command
## ⚡ EXECUTION INSTRUCTIONS FOR CLAUDE **When this command is invoked, YOU (Claude) must execute these steps immediately:** **This is NOT documentation - these are COMMANDS to execute right now.** **Use TodoWrite to track progress through multi-phase workflows.** ## 🚨 EXECUTION WORKFLOW ### Phase 1: Context Analysis & Name Generation 1. **Analyze Context**: If the user did NOT provide a branch name, look at: - Recent conversation history - Current uncommitted changes (`git status`, `git diff --stat`) - Last 3 commit messages 2. **Generate Name**: If no name provided, propose a d...
/create-branchCreates a new feature branch with optimized short naming and auto-incrementing numbers, from a description or auto-generated from uncommitted changes.
/update-branch-nameRenames current git branch to follow naming conventions based on changes, suggests descriptive names, and updates local/remote tracking.
/commit-push-prCommits current changes (staged/unstaged) to a new branch if on main, pushes to origin, and creates a GitHub pull request via gh.
Share bugs, ideas, or general feedback.
When this command is invoked, YOU (Claude) must execute these steps immediately: This is NOT documentation - these are COMMANDS to execute right now. Use TodoWrite to track progress through multi-phase workflows.
git status, git diff --stat)fix-auth-bug, feat-navigation-refactor).Action Steps:
newbranch.py Python script.origin/main (avoiding local main checkout), cherry-picking commits if requested.origin/mainCreates a fresh branch from the latest origin/main while carrying forward your current working tree changes. This command is worktree-safe and does not require the local main branch to be available.
/newbranch - Creates a new branch with an auto-generated name based on context./nb - Alias for /newbranch./nb feature-xyz - Creates a branch named feature-xyz./nb bring in changes abc123 - Creates a branch named bring-in-changes and cherry-picks commit abc123.origin/main.origin/main.origin/<branch_name>./nb
→ Creates branch like dev1751992265
/nb my-feature
→ Creates branch named my-feature
/newbranch bugfix-123
→ Creates branch named bugfix-123
/nb bring in changes abc123 def456
→ Creates branch named bring-in-changes and cherry-picks abc123 + def456
/nb feature tweaks with commits
→ Creates branch named feature-tweaks and cherry-picks every local commit not on origin/main
origin/main before creating the branchgit branch --set-upstream-to=origin/maingit push -u origin <branch>