663 B
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
- Check if working directory is clean (no uncommitted changes from git status above)
- If there are uncommitted changes, warn user and stop
- If clean, ask user for new branch name using AskUserQuestion
- Create and switch to the new branch using
git checkout -b <branch-name> - Confirm success with current branch info