Help us improve
Share bugs, ideas, or general feedback.
From ai-toolkit
Executes git branch operations including create from issue ID, merge with validation, delete, switch, and status, enforcing rules from project git-workflow.md.
npx claudepluginhub taylorhuston/ai-toolkitHow this command is triggered — by the user, by Claude, or both
Slash command
/ai-toolkit:branch create ISSUE-ID | merge [target] | delete branch-name | switch branch-name | status | "natural language"claude-sonnet-4-5This command is limited to the following tools:
The summary Claude sees in its command listing — used to decide when to auto-load this command
# /branch Command **WHAT**: Unified branch operations (create, merge, delete, switch, status) with git-workflow enforcement. **WHY**: Ensure consistent branch naming, enforce quality gates on merge, prevent workflow violations. **HOW**: See git-workflow.md for branching rules, merge validation requirements, and naming patterns. **CRITICAL**: Always read `docs/development/workflows/git-workflow.md` FIRST for project-specific rules. ## Usage ## Operations ### Create 1. Read git-workflow.md for branching pattern and base branch 2. Parse issue ID → determine type (TASK → feature, BUG →...
/feature-flowOrchestrates complete git workflow: analyzes staged changes or issue number, creates branches/issues/commits, runs lints/tests, creates merge requests.
/gitExecutes Git operations (status, add, commit, push, pull, branch, merge) with intelligent commit messages, branch management, workflow optimization, and status recommendations.
/sc-gitExecutes Git operations (status, add, commit, push, pull, branch, merge) with intelligent commit message generation, branch management, and workflow recommendations.
/git-workflowOrchestrates git workflow from code review and quality gates through commit, push, and PR creation to target branch. Supports flags: --skip-tests, --draft-pr, --no-push, --squash, --conventional, --trunk-based.
/git-workflowGuides git workflows: prepare PRs, clean merged/stale branches, resolve conflicts, create version tags. Uses pr|clean|conflicts|tag args or auto-detects from git status.
/branchDisplays Claude Code usage costs broken down by git branch or PR. Specify optional [branch-name] or omit to view all branches.
Share bugs, ideas, or general feedback.
WHAT: Unified branch operations (create, merge, delete, switch, status) with git-workflow enforcement.
WHY: Ensure consistent branch naming, enforce quality gates on merge, prevent workflow violations.
HOW: See git-workflow.md for branching rules, merge validation requirements, and naming patterns.
CRITICAL: Always read docs/development/workflows/git-workflow.md FIRST for project-specific rules.
/branch create TASK-001 # Create work branch
/branch merge [develop|main] # Merge with validation
/branch delete feature/TASK-001 # Delete merged branch
/branch switch develop # Switch branches
/branch status # Show workflow state
# Natural language
/branch "merge to develop"
/branch "create for TASK-001"
feature/TASK-001 from develop)develop (BLOCK if feature/bugfix)Reads docs/development/workflows/git-workflow.md YAML frontmatter:
---
branching_strategy: "three-branch"
main_branch: "main"
develop_branch: "develop"
work_branch_pattern: "type/ISSUE-ID"
merge_rules:
to_develop: "tests_pass"
to_main: "staging_validated"
---
If missing: Use defaults (three-branch: main ← develop ← work branches)
Task: "Execute Git branch operation following project workflow rules.
CRITICAL:
1. FIRST: Read docs/development/workflows/git-workflow.md
- Extract YAML frontmatter
- Understand strategy, patterns, merge rules
- Use as source of truth
2. Execute operation:
- create: Follow pattern, create from base
- merge: Apply validation, block if fail
- delete: Check merge status, confirm, delete
- switch: Handle uncommitted, switch, pull
- status: Show state and readiness
3. Validation enforcement:
- Merge to develop: Run tests (auto-detect)
- Merge to main: Verify source=develop, check staging
- Block if fail, show clear errors
4. Git commands:
- git checkout, branch, merge, push
- Parse output, handle conflicts
5. Natural language:
- Parse intent from quoted string
- Map to structured operation
- Execute with same validation
All rules defined in git-workflow.md - this command enforces them."