git-branch-create

git-branch-create is a cursor rule for Cursor from oakensoul/nextjs-cursor-prompts. It costs 0 tokens per session (2,863 once invoked), scanned A, original, MIT.

A Git branch creation guide for selecting a branch type, choosing its starting branch, applying a naming convention, and preparing its initial setup. A branch is a separate line of work in a repository.

In plain words
What is it for?
Use it when starting feature, bugfix, experimental, or similar work that needs a correctly named and configured branch.
Why use it?
It helps teams create branches consistently so their purpose, starting point, tracking, and required preparation are clear.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it when starting feature, bugfix, experimental, or similar work that needs a correctly named and configured branch.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/oakensoul/nextjs-cursor-prompts/git-branch-create
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.

Clone the repo
git clone --depth 1 https://github.com/oakensoul/nextjs-cursor-prompts

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 git-branch-create

README.md
[![agentmods](https://agentmods.dev/badge/rules/oakensoul/nextjs-cursor-prompts/git-branch-create/github.svg)](https://agentmods.dev/rules/oakensoul/nextjs-cursor-prompts/git-branch-create)
Your own site
<a href="https://agentmods.dev/rules/oakensoul/nextjs-cursor-prompts/git-branch-create"><img src="https://agentmods.dev/badge/rules/oakensoul/nextjs-cursor-prompts/git-branch-create/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 git-branch-create

Your own site · 80×15
<a href="https://agentmods.dev/rules/oakensoul/nextjs-cursor-prompts/git-branch-create"><img src="https://agentmods.dev/badge/rules/oakensoul/nextjs-cursor-prompts/git-branch-create.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 2,863 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.00000 $0.02863
Opus 5.5 $0.00000 $0.01145
Sonnet 5.5 $0.00000 $0.00573
Haiku 4.5 $0.00000 $0.00286

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

Security

Grade A, and why

git-branch-create 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.

.cursor/prompts/git/git-branch-create.mdc · 473 lines

How it starts

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

Git Branch Creation Guide

This prompt handles systematic branch creation following Git workflow standards, ensuring proper naming conventions, base branch selection, and documentation setup.

🎯 BRANCH CREATION OBJECTIVES:

  1. DETERMINE branch type and apply appropriate naming conventions
  2. SELECT correct base branch based on workflow standards
  3. CREATE branch with proper setup and initial configuration
  4. ESTABLISH tracking and team communication
  5. PREPARE development environment for the new branch

📋 BRANCH CREATION PROCESS:

STEP 1: Branch Type and Naming Analysis

Branch Type Classification:
## Branch Type Assessment

**FEATURE BRANCH:**
- [ ] New functionality or enhancement
- [ ] User-facing feature development
- [ ] API endpoint creation
- [ ] UI/UX improvements
- Naming: `feature/[description]`

**BUGFIX BRANCH:**
- [ ] Non-critical bug resolution
- [ ] Issue tracking integration
- [ ] Performance improvements
- [ ] Code quality fixes
- Naming: `bugfix/[issue-id]-[description]`

**EXPERIMENTAL BRANCH:**
- [ ] Proof of concept work
- [ ] Technology evaluation
- [ ] Architecture exploration
- [ ] Research and development
- Naming: `experiment/[description]`

**DOCUMENTATION BRANCH:**
- [ ] Documentation updates
- [ ] README improvements
- [ ] API documentation
- [ ] User guides and tutorials
- Naming: `docs/[description]`

**REFACTOR BRANCH:**
- [ ] Code restructuring
- [ ] Performance optimization
- [ ] Technical debt reduction
- [ ] Architecture improvements
- Naming: `refactor/[description]`
Branch Naming Validation:
# Validate branch name against conventions
BRANCH_NAME="[proposed-name]"

# Check naming patterns
case $BRANCH_NAME in
  feature/*|bugfix/*|docs/*|refactor/*|experiment/*)
    echo "✅ Valid branch name format"
    ;;
  *)
    echo "❌ Invalid branch name format"
    echo "Use: feature/*, bugfix/*, docs/*, refactor/*, experiment/*"
    exit 1
    ;;
esac

# Check for proper description format
if [[ $BRANCH_NAME =~ ^[a-z]+/[a-z0-9-]+$ ]]; then
  echo "✅ Valid naming convention"
else
  echo "❌ Use lowercase, hyphens only, no spaces or special characters"
  exit 1
fi

Read the full file on GitHub · 473 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 · 473 lines · 0 tokens per session scan A ebe19be1bf46

Subscribe to this mod's changes

git-branch-create is a cursor rule published in the GitHub repository oakensoul/nextjs-cursor-prompts (4 stars, last pushed 1y ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,863 tokens. 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.