git-branch

git-branch is a command for Claude Code from kuku0922/awesome-ai-coding-enhance. It costs 26 tokens per session (2,850 once invoked), scanned A, original, MIT.

A Git command that creates a new branch after collecting the needed details. A branch is a separate line of code changes used for a feature, fix, or experiment.

In plain words
What is it for?
Use it to choose a base branch, create a named branch, and optionally push it to the shared repository.
Why use it?
It avoids repeating branch setup questions and can translate some non-English branch names before creation.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it to choose a base branch, create a named branch, and optionally push it to the shared repository.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/kuku0922/awesome-ai-coding-enhance/git-branch
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/kuku0922/awesome-ai-coding-enhance

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for git-branch

README.md
[![agentmods](https://agentmods.dev/badge/commands/kuku0922/awesome-ai-coding-enhance/git-branch/github.svg)](https://agentmods.dev/commands/kuku0922/awesome-ai-coding-enhance/git-branch)
Your own site
<a href="https://agentmods.dev/commands/kuku0922/awesome-ai-coding-enhance/git-branch"><img src="https://agentmods.dev/badge/commands/kuku0922/awesome-ai-coding-enhance/git-branch/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for git-branch

Your own site · 80×15
<a href="https://agentmods.dev/commands/kuku0922/awesome-ai-coding-enhance/git-branch"><img src="https://agentmods.dev/badge/commands/kuku0922/awesome-ai-coding-enhance/git-branch.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 26 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,850 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00026 $0.02850
Opus 5 $0.00013 $0.01425
Sonnet 5 $0.00005 $0.00570
Haiku 4.5 $0.00003 $0.00285

Measured 9d ago against content hash 30c0d617adcf, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

git-branch scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/git-branch.md · 379 lines

How it starts

The opening of the file, as written. The whole thing — 379 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Claude Command: Quick Git Branch Creation

🚀 Simple & Fast: Create Git branches quickly with one-time question collection, AI-powered translation, and essential validation. Perfect for daily development workflow.


Usage

# Interactive Mode (Recommended)
/git-branch                                        # Ask all questions at once

# Direct Mode with Parameters
/git-branch --name "feature/user-auth"             # Skip name input
/git-branch --name "用户认证" --translate            # Chinese input with AI translation
/git-branch --name "hotfix/bug-fix" --base main --push  # Full parameters

# Quick Creation
/git-branch --name "docs/readme-update" --push     # Create and push in one go

Options

Option Description
--name <branch-name> Pre-specify branch name (skips name prompt)
--base <branch> Pre-specify base branch (skips branch selection)
--push Automatically push to remote after creation
--no-translate Disable AI translation for Chinese input

🔄 Simple Pattern Workflow

Context → Task

Step 1: Context Gathering (One-time collection)

📋 Branch Creation Questions:
┌─────────────────────────────────────────┐
│  Branch Name: [________________________] │
│  Base Branch: [develop ▼]               │
│  Push to Remote: [Yes ▼]                │
│  Chinese Input: [Auto-translate ▼]     │
└─────────────────────────────────────────┘

Step 2: Task Execution (Single operation)

✅ Validation: Branch name available
✅ Translation: 用户认证 → feature/user-authentication
✅ Creation: git checkout -b feature/user-authentication
✅ Push: git push -u origin feature/user-authentication

🌐 AI Translation Features

Auto-Detection

  • Chinese Input Detected: Automatically enables translation
  • Context-Aware: Translates based on development context
  • Multiple Options: Provides several translation choices

Translation Examples

用户登录系统     → feature/user-login-system, feat/user-auth
支付功能开发     → feature/payment-system, feat/payment-gateway
页面修复        → fix/page-layout, hotfix/ui-issue
文档更新        → docs/api-documentation, docs/update-readme
代码重构        → refactor/code-optimization, refactor/improve-structure

Read the full file on GitHub · 379 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 379 lines · 0 tokens per session scan A 30c0d617adcf

Subscribe to this mod's changes

git-branch is a command published in the GitHub repository kuku0922/awesome-ai-coding-enhance (3 stars, last pushed 9mo ago), licensed MIT. It adds 26 tokens to every session and 2,850 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.