new-branch

new-branch is a skill for Claude Code from thettwe/nyann. It costs 155 tokens per session (1,123 once invoked), scanned A, original, MIT.

A tool for creating a new Git branch that follows the repository’s configured branching strategy. A branch is a separate line of work used to develop a change without altering the main code immediately.

In plain words
What is it for?
Use it to start branches for new features, bug fixes, releases, or emergency production fixes.
Why use it?
It chooses the appropriate branch type and naming pattern, reducing mistakes when starting feature, bug-fix, release, or hotfix work.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: names the AskUserQuestion tool.

Part of the nyann plugin — 41 skills, 41 commands, 3 hooks shipped together

Good fit Use it to start branches for new features, bug fixes, releases, or emergency production fixes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/thettwe/nyann/new-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 thettwe/nyann --skill new-branch
Clone the repo
git clone --depth 1 https://github.com/thettwe/nyann

Made for: Claude Code.

Or install nyann, the plugin that ships this one along with the rest of its 41 skills, 41 commands, 3 hooks.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/thettwe/nyann/new-branch"><img src="https://agentmods.dev/badge/skills/thettwe/nyann/new-branch.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 155 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,123 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.00155 $0.01123
Opus 5.5 $0.00062 $0.00449
Sonnet 5.5 $0.00031 $0.00225
Haiku 4.5 $0.00015 $0.00112

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

Security

Grade A, and why

new-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 2mo 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.

skills/new-branch/SKILL.md · 121 lines

How it starts

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

new-branch

You are creating a git branch that matches the repo's active profile. Never run git branch or git checkout -b directly — route through bin/new-branch.sh so the branching strategy, base branch, and name pattern stay consistent.

1. Infer purpose

Read the user's phrasing. Purpose inference:

User says something like... Purpose
"new feature for X", "landing page", "add X" feature
"bug in checkout", "fix Y", "bugfix" bugfix
"release v1.2", "cut a release" release
"hotfix production", "emergency fix" hotfix

If the phrasing is ambiguous ("I want a branch for the auth work"), you MUST call the AskUserQuestion tool (not plain text):

{
  "questions": [
    {
      "question": "What kind of branch do you need?",
      "header": "Purpose",
      "multiSelect": false,
      "options": [
        { "label": "Feature", "description": "New functionality or enhancement" },
        { "label": "Bugfix", "description": "Fix for an existing issue" },
        { "label": "Release", "description": "Cut a release branch" },
        { "label": "Hotfix", "description": "Emergency fix against a tagged version" }
      ]
    }
  ]
}

Don't guess when stakes are non-trivial (release vs hotfix especially).

2. Derive a slug

Short, lowercase-kebab, no spaces. Map the user's words:

  • "bug in the checkout button" → checkout-button
  • "add a landing page" → landing-page
  • "v1.2.0" release → slug is 1.2.0, use --version 1.2.0 (see below).

Enforce the regex ^[a-z0-9][a-z0-9._-]*$. If the user's phrasing doesn't reduce to a clean slug, propose one and ask for confirmation.

3. Release / hotfix version flag

release and hotfix patterns in GitFlow use {version} not {slug}. For those purposes, ask the user which version (unless they already said), then pass --version <x.y.z> to the orchestrator.

4. Invoke the orchestrator

bin/new-branch.sh \
  --target <cwd> \
  --profile <active-profile-name> \
  --purpose <feature|bugfix|release|hotfix> \
  --slug <slug> \
  [--version <x.y.z>] \
  --checkout

Read the full file on GitHub · 121 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. 2mo ago First seen · 121 lines · 155 tokens per session scan A f10fc8e2d732

Subscribe to this mod's changes

new-branch is a skill published in the GitHub repository thettwe/nyann (7 stars, last pushed 23d ago), licensed MIT. It adds 155 tokens to every session and 1,123 once invoked, about $0.0006 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-09-03.

Related

new-branch compared with skills from other repositories

new-branch next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
new-branchthettwe/nyannSkill723d agoMITA155Claude Code
branch-and-worktree-workflowcbrock84/headcountSkill2.6ktodayMITA70Claude Code
watch-proliver-kriska/claude-elixir-phoenixSkill579yesterdayMITA50Claude Code
releaseoliver-kriska/claude-elixir-phoenixSkill579yesterdayMITA60Claude Code
catchupoliver-kriska/claude-elixir-phoenixSkill579yesterdayMITA48Claude Code
pr-reviewoliver-kriska/claude-elixir-phoenixSkill579yesterdayMITA59Claude Code
phx-pr-reviewoliver-kriska/claude-elixir-phoenixSkill579yesterdayMITA61Claude Code, Codex