generate-branch

generate-branch is a skill for Claude Code from sembraniteam/claude-plugins. It costs 68 tokens per session (1,332 once invoked), scanned A, original, MIT.

A guide for generating a valid Git branch name from a work description or the current code changes. A Git branch is a separate line of development used to work on changes safely.

In plain words
What is it for?
It helps name branches for tickets or coding tasks and, when directly invoked, can create and switch to the branch.
Why use it?
It removes guesswork about branch names and applies the team's naming conventions.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the AskUserQuestion tool.

Part of the git-helper plugin — 2 skills shipped together

Good fit It helps name branches for tickets or coding tasks and, when directly invoked, can create and switch to the branch.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sembraniteam/claude-plugins/generate-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.

Any agent
npx skills add sembraniteam/claude-plugins --skill generate-branch
Clone the repo
git clone --depth 1 https://github.com/sembraniteam/claude-plugins

Made for: Claude Code.

Or install git-helper, the plugin that ships this one along with the rest of its 2 skills.

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 generate-branch

README.md
[![agentmods](https://agentmods.dev/badge/skills/sembraniteam/claude-plugins/generate-branch/github.svg)](https://agentmods.dev/skills/sembraniteam/claude-plugins/generate-branch)
Your own site
<a href="https://agentmods.dev/skills/sembraniteam/claude-plugins/generate-branch"><img src="https://agentmods.dev/badge/skills/sembraniteam/claude-plugins/generate-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 generate-branch

Your own site · 80×15
<a href="https://agentmods.dev/skills/sembraniteam/claude-plugins/generate-branch"><img src="https://agentmods.dev/badge/skills/sembraniteam/claude-plugins/generate-branch.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 68 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,332 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.00068 $0.01332
Opus 5.5 $0.00027 $0.00533
Sonnet 5.5 $0.00014 $0.00266
Haiku 4.5 $0.00007 $0.00133

Measured 3mo ago against content hash a66c5f2e7359, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

generate-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 3mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/validate-branch.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

git-helper/skills/generate-branch/SKILL.md · 112 lines

How it starts

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

Generate Branch Name

Generate a valid git branch name following team naming conventions. When invoked directly by the user, this skill will ask to create and switch to the branch after generating the name. When invoked via the Skill tool by generate-commit, it outputs the branch name only — the calling skill owns the checkout step.

Input Collection

Collect from the invocation and conversation context:

  • Work description — what the user will work on (optional)
  • File paths — from the argument, limits the diff to specific files (optional)

If no work description is provided, run these commands and infer a 2–5 word description from the staged diff (primary) or unstaged diff (secondary). Append -- <files> to scope diffs to specific paths. Do not ask — infer from diff:

git --no-pager log --oneline -10
git --no-pager status --short
git --no-pager diff [-- <files>]
git --no-pager diff --cached [-- <files>]

If the diff is empty and no description was provided, ask the user for a one-sentence description of the work.

If the description is provided but unclear (e.g., a single ambiguous word like "fix" with no additional context), ask one brief clarifying question before proceeding.

Branch Construction

Select prefix — choose the best match; default to feature/ when ambiguous:

Prefix When to use
feature/ New feature development
bugfix/ Non-urgent bug fix
hotfix/ Urgent production fix
release/ Release preparation (e.g., release/v1.2.0)
chore/ Non-code tasks: docs, tooling, config
bump/ Dependency/version update

Build the slug from the work description:

  1. Extract 2–5 core words, lowercase, replace spaces and special chars with hyphens
  2. Remove leading/trailing and consecutive hyphens
  3. If scope implied by description: use type/scope/slug format

Read the full file on GitHub · 112 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 3mo ago First seen · 112 lines · 68 tokens per session scan A a66c5f2e7359

Subscribe to this mod's changes

generate-branch is a skill published in the GitHub repository sembraniteam/claude-plugins (2 stars, last pushed 4mo ago), licensed MIT. It adds 68 tokens to every session and 1,332 once invoked, about $0.0003 per session on Opus 5.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.

Related

generate-branch compared with skills from other repositories

generate-branch next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
generate-branchsembraniteam/claude-pluginsSkill24mo agoMITA68Claude Code
merge-batchdiegosouzapw/OmniRouteSkill91k4d agoMITA46Claude Code
prowler-commitprowler-cloud/prowlerSkill15ktodayApache-2.0A44Claude Code, Codex
gh-auth-isolationgithub/gh-awSkill5.8ktodayMITA20Claude Code, Codex
github-skillzeenie-ai/OpenCompanySkill1.1k2d agoMITA51Claude Code
comet-githubrpamis/cometSkill3.3ktodayMITA72Claude Code, Codex
re0-mergeLilMGenius/paperthinSkill1.5ktodayMITA51Claude Code, Codex