Skip to content
Back to skills

2170 Branch 9f644124

ASecurity

Create a new git branch with conventional naming (supports Chinese input)

  • 9 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 11, 2026
code-qualitybashtestingrefactoringgitdocumentation

Security analysis

A100/100

Scanned October 11, 2026

npx -y skills add tools-only/X-Skills --skill 2170-branch_9f644124 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 2170 Branch 9f644124?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for 2170 Branch 9f644124
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tools-only-2170-branch-9f644124/badge)](https://www.skillsdirectory.com/skills/tools-only-2170-branch-9f644124)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

SKILL.md
---
description: "Create a new git branch with conventional naming (supports Chinese input)"
argument-hint: Branch name or description (e.g., "user login" or "feature/user-login")
allowed-tools: Bash, Read, TodoWrite, AskUserQuestion
---

# Git Branch

Create a new branch following naming conventions.

## Phase 1: Parse Input

**Parse `$ARGUMENTS`**:
- If formatted (feature/xxx, fix/xxx): use as-is
- If description: generate branch name
- If empty: ask user for branch purpose

## Phase 2: Generate Branch Name

**Format**: `<type>/<description>`

**Types**:
| Type | Use Case |
|------|----------|
| feature/ | New features |
| fix/ | Bug fixes |
| hotfix/ | Urgent fixes |
| refactor/ | Refactoring |
| docs/ | Documentation |
| test/ | Testing |
| chore/ | Maintenance |

**Rules**:
- Lowercase
- Hyphens for spaces
- Under 50 characters
- Descriptive but concise

**Examples**:
- "user login" → `feature/user-login`
- "fix crash" → `fix/crash`
- "update docs" → `docs/update`

**Chinese input**: Translate to English
- "用户登录" → `feature/user-login`
- "修复首页崩溃" → `fix/homepage-crash`

## Phase 3: Handle Uncommitted Changes

**If uncommitted changes exist**, ask:
- Stash changes?
- Commit first?
- Carry to new branch? (default)

## Phase 4: Create Branch

**Actions**:
1. `git checkout -b <branch-name>`
2. Ask: push to remote? (`git push -u origin <branch>`)
3. Show success message

## Output Language

- All messages: Chinese
- Branch names: English

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.