dotfiles: Skill for Claude Code

.claude/skills/branch/SKILL.md

branch is a skill for Claude Code from ahonn/dotfiles. It costs 17 tokens per session (483 once invoked), scanned A, original, MIT.

A rule for naming and creating Git branches with a type and short kebab-case description, such as feat/user-auth or fix/login-crash.

In plain words
What is it for?
Use it when starting work, branching from the default branch, validating a branch name, and creating the new branch.
Why use it?
It keeps branch names consistent and makes the purpose of each line of work clear before development begins.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions Codex.

This is ahonn/dotfiles's own configuration. It tells Claude Code how to work on dotfiles itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything dotfiles configures →

Reuse

Borrowing it

Nothing to install: this file belongs to ahonn/dotfiles. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/ahonn/dotfiles/master/.claude/skills/branch/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/ahonn/dotfiles

Made for: Claude Code.

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 branch

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/ahonn/dotfiles/branch"><img src="https://agentmods.dev/badge/skills/ahonn/dotfiles/branch.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 17 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 483 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00017 $0.00483
Opus 5.5 $0.00007 $0.00193
Sonnet 5.5 $0.00003 $0.00097
Haiku 4.5 $0.00002 $0.00048

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

Security

Grade A, and why

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 20d 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.

.claude/skills/branch/SKILL.md · 34 lines

What it actually says

Conventional Branch Names

Branch names use the same type vocabulary as conventional commits:

<type>/<short-kebab-description>

Examples: feat/user-auth, fix/login-crash, refactor/api-client, chore/update-deps.

Rules

  1. Type — the conventional-commit type the dominant commit on this branch would have: feat, fix, refactor, perf, docs, test, build, ci, chore, revert.
  2. Description — 2–4 words, kebab-case, specific: what the branch delivers, not how. Lowercase only, no spaces.
  3. Ticket IDs — if the work has a ticket, put its ID after the type: feat/lin-123-user-auth.
  4. No agent-branded prefixes — never codex/..., claude/..., or agent/.... The branch describes the work, not the tool that wrote it.
  5. Base — use the user's requested starting point. Otherwise prefer the up-to-date default branch, except when the task clearly continues current branch work. Inspect repository state before choosing it; preserve uncommitted work.

Procedure

If the user only asks for a branch name, propose the name without changing repository state. Use the creation steps when creating a branch is within the requested work.

  1. Derive type and description from the requested work (or "$ARGUMENTS" if provided).
  2. Validate: git check-ref-format --branch <name>.
  3. Inspect git status --short --branch and the available refs. Resolve the requested base; if a fresh remote base is needed, fetch that ref and verify it before proceeding. Do not assume the current checkout is the default branch or up to date.
  4. Create with git switch -c <name> <verified-base>; omit the base only when intentionally branching from current HEAD. If switching would disturb unrelated edits, use an isolated worktree when appropriate or ask for the unresolved starting-point decision. Do not stash, discard, reset, or overwrite work implicitly.
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. 20d ago Changed · +3 lines · -47 tokens per session d7435f3bda10
  2. 1mo ago First seen · 31 lines · 64 tokens per session scan A 22a667d27bc2

Subscribe to this mod's changes

branch is a skill published in the GitHub repository ahonn/dotfiles (63 stars, last pushed 6d ago), licensed MIT. It adds 17 tokens to every session and 483 once invoked, about $0.0001 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.