feature-branch

feature-branch is a skill for Claude Code, Codex from fmind/dot. It costs 33 tokens per session (558 once invoked), scanned A, original, MIT.

A workflow for creating and switching to a new Git branch for a specific piece of work. A branch is an independent line of changes that can later be reviewed and merged.

In plain words
What is it for?
Use it to inspect the current repository, derive a conventional branch name, check for uncommitted work, and create the branch from the main branch.
Why use it?
It keeps new work separate from the main branch and applies a predictable name based on the change type and description.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/fmind/dot/feature-branch
Any agent
npx skills add fmind/dot --skill feature-branch
Clone the repo
git clone --depth 1 https://github.com/fmind/dot

Made for: Claude Code, Codex.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/fmind/dot/feature-branch.svg)](https://agentmods.dev/skills/fmind/dot/feature-branch)
Your own site
<a href="https://agentmods.dev/skills/fmind/dot/feature-branch"><img src="https://agentmods.dev/badge/skills/fmind/dot/feature-branch.svg" alt="Measured on agentmods" height="20"></a>
Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 558 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00033 $0.00558
Opus 5 $0.00016 $0.00279
Sonnet 5 $0.00007 $0.00112
Haiku 4.5 $0.00003 $0.00056

Measured yesterday against content hash edfc946d15e5, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

feature-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 yesterday.

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/feature-branch/SKILL.md · 53 lines

What it actually says

Feature Branch

Create and switch to a <type>/<slug> branch off main for the work the user described; conventional-commit owns the commits that follow.

Workflow

  1. Ask when the work is undescribed: without a description, an issue reference, or a desired branch name, ask and stop.

  2. Inspect the tree:

    git branch --show-current   # current branch
    git status --short          # uncommitted changes
    
  3. Derive the name as <type>/<slug>:

    • <type>: a commit type from conventional-commit, usually feat, fix, chore, docs, refactor, test, perf, or ci.
    • <slug>: lowercase ASCII kebab-case, under 50 characters, no trailing punctuation.
  4. Reuse a valid name: when the user's input already is a valid branch name, use it as is.

  5. Confirm the base: off a branch other than main (or the default branch), warn and ask first.

  6. Confirm a dirty tree: uncommitted changes move with the new branch; surface them and ask before continuing.

  7. Create and switch; if the branch already exists, stop and report it:

    git switch -c <branch>
    
  8. Report only these two lines after success:

    Branch: <branch>
    From: <parent-branch>
    

Gotchas

  • No push: the branch stays local; github-pull-request pushes it with -u when the PR is opened.

Documentation

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. yesterday First seen · 53 lines · 33 tokens per session scan A edfc946d15e5

Subscribe to this mod's changes

feature-branch is a skill published in the GitHub repository fmind/dot (4 stars, last pushed today), licensed MIT. It adds 33 tokens to every session and 558 once invoked, about $0.0002 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-09-03.