branch

branch is a cursor rule for Cursor from rajitsaha/100xprism. It costs 660 tokens per session, scanned A, original, MIT.

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

Cursor rule for Cursor

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 rules/rajitsaha/100xprism/branch
Clone the repo
git clone --depth 1 https://github.com/rajitsaha/100xprism

Made for: Cursor.

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/rules/rajitsaha/100xprism/branch.svg)](https://agentmods.dev/rules/rajitsaha/100xprism/branch)
Your own site
<a href="https://agentmods.dev/rules/rajitsaha/100xprism/branch"><img src="https://agentmods.dev/badge/rules/rajitsaha/100xprism/branch.svg" alt="Measured on agentmods" height="20"></a>
Per session 660 This file is loaded in full into every session.
When invoked 660 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin unknown 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.00660 $0.00660
Opus 5 $0.00330 $0.00330
Sonnet 5 $0.00132 $0.00132
Haiku 4.5 $0.00066 $0.00066

Measured today against content hash 2d6031c80092, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 today.

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.

.cursor/rules/branch.mdc · 105 lines

How it starts

The opening of the file, as written. The whole thing — 105 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 · 105 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. today First seen · 105 lines · 660 tokens per session scan A 2d6031c80092

Subscribe to this mod's changes

branch is a cursor rule published in the GitHub repository rajitsaha/100xprism (10 stars, last pushed 3d ago), licensed MIT. It adds 660 tokens to every session, about $0.0033 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.