branch

branch is a skill for Claude Code, Codex from rajitsaha/100xprism. It costs 17 tokens per session (653 once invoked), scanned A, original, MIT.

A workflow for creating a separate Git branch, which is an independent line of development for a change. It detects the project's default branch, updates it, and names the new branch according to the kind of work.

In plain words
What is it for?
Use it when beginning a feature, bug fix, maintenance task, refactor, documentation change or test change.
Why use it?
It removes repetitive branch setup and reduces the chance of starting work from an outdated base or using an unclear branch name.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Good fit Use it when beginning a feature, bug fix, maintenance task, refactor, documentation change or test change.

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

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 branch

README.md
[![agentmods](https://agentmods.dev/badge/skills/rajitsaha/100xprism/branch/github.svg)](https://agentmods.dev/skills/rajitsaha/100xprism/branch)
Your own site
<a href="https://agentmods.dev/skills/rajitsaha/100xprism/branch"><img src="https://agentmods.dev/badge/skills/rajitsaha/100xprism/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/rajitsaha/100xprism/branch"><img src="https://agentmods.dev/badge/skills/rajitsaha/100xprism/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 653 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.00653
Opus 5 $0.00009 $0.00327
Sonnet 5 $0.00003 $0.00131
Haiku 4.5 $0.00002 $0.00065

Measured 9d ago against content hash f799329fa603, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, 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 9d 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.

.agents/skills/branch/SKILL.md · 106 lines

How it starts

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

Branch — Create Feature Branch

Create a feature branch from the default branch with a descriptive, conventional name.

Do NOT ask for permission. Create the branch and push it.


Step 1 — Detect default branch

PROJECT_ROOT=$(git rev-parse --show-toplevel)
cd "$PROJECT_ROOT"
DEFAULT_BRANCH=$(git symbolic-ref refs/remotes/origin/HEAD 2>/dev/null | sed 's@^refs/remotes/origin/@@')
DEFAULT_BRANCH="${DEFAULT_BRANCH:-main}"
CURRENT_BRANCH=$(git branch --show-current)
echo "Default branch: $DEFAULT_BRANCH"
echo "Current branch: $CURRENT_BRANCH"

If not on the default branch, warn:

⚠️ Currently on '$CURRENT_BRANCH', not '$DEFAULT_BRANCH'.
Creating branch from current HEAD. Proceed only if intentional.

Step 2 — Pull latest

git fetch origin
git checkout "$DEFAULT_BRANCH"
git pull origin "$DEFAULT_BRANCH"

Step 3 — Generate branch name

Derive a branch name from the task description using conventional prefixes:

Prefix Use when
feat/ New feature
fix/ Bug fix
chore/ Maintenance, deps, config
refactor/ Code restructuring
docs/ Documentation only
test/ Test additions or fixes

Naming rules:

  • Lowercase, hyphen-separated: feat/add-user-auth
  • Max 50 characters for the slug portion
  • No special characters beyond hyphens
  • Derived from the task description or user input

Examples:

"Add user authentication"         → feat/add-user-auth
"Fix login timeout bug"           → fix/login-timeout
"Update dependencies"             → chore/update-deps
"Refactor payment module"         → refactor/payment-module
"Add API documentation"           → docs/api-docs

Step 4 — Create and push branch

BRANCH_NAME="<prefix>/<slug>"
git checkout -b "$BRANCH_NAME"
git push -u origin "$BRANCH_NAME"

If the branch already exists locally or remotely:

git checkout "$BRANCH_NAME"
git pull origin "$BRANCH_NAME" 2>/dev/null || true

Read the full file on GitHub · 106 lines

Files

What ships with it

1 file 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. 9d ago First seen · 106 lines · 17 tokens per session scan A f799329fa603

Subscribe to this mod's changes

branch is a skill published in the GitHub repository rajitsaha/100xprism (10 stars, last pushed 9d ago), licensed MIT. It adds 17 tokens to every session and 653 once invoked, about $0.0001 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-08-31.