MustafaDorgham

Branch Name Validator — Git skill for Claude Code

Git community

Validate and suggest branch names following repository conventions.

How to install Branch Name Validator

Installs to ~/.claude/skills/mustafadorgham-agentic-slash-commands-branch-name-validator/SKILL.md

Terminal
mkdir -p ~/.claude/skills/mustafadorgham-agentic-slash-commands-branch-name-validator && curl -fsSL https://raw.githubusercontent.com/MustafaDorgham/agentic-slash-commands/HEAD/skills/branch-name-validator.md -o ~/.claude/skills/mustafadorgham-agentic-slash-commands-branch-name-validator/SKILL.md

Restart Claude Code, or start a new session, for it to be picked up.

What Branch Name Validator does


description: Validate and suggest branch names following repository conventions allowed-tools: Bash(git branch), Bash(git remote), Read(*.md)

Validate and generate branch names for the /create-branch command:

  1. **Detect Repository Conventions**:

    • List existing branches with git branch -a
    • Identify common prefixes (feature/, bugfix/, hotfix/, chore/, docs/)
    • Check for naming patterns (kebab-case, snake_case, etc.)
  2. **Parse GitHub Issue Integration**:

    • Extract issue n

Alternatives in Git

  • Ws Reset — Reset the current branch to main, fetch upstream, and update submodules 38.1k ★
  • Clean Worktrees (Automatic) — Automatically remove all worktrees for branches merged into master 25.5k ★
  • OSS PR — Commit + PR workflow for open source contributions: auto-creates a user-prefixed branch when on main/master, t 19.7k ★

Full documentation available on GitHub

View Source Repository