KoogleApp/.claude/commands/branch.md

663 B

allowed-tools description
Bash(git status:*), Bash(git branch:*), Bash(git checkout:*), Bash(git switch:*), AskUserQuestion Check git status and create a new branch

Context

  • Current git status: !git status --porcelain
  • Current branch: !git branch --show-current
  • Existing branches: !git branch -a

Your task

  1. Check if working directory is clean (no uncommitted changes from git status above)
  2. If there are uncommitted changes, warn user and stop
  3. If clean, ask user for new branch name using AskUserQuestion
  4. Create and switch to the new branch using git checkout -b <branch-name>
  5. Confirm success with current branch info