release-branch

release-branch is a cursor rule for Cursor from danielvm-git/bigpowers. It costs 59 tokens per session (2,877 once invoked), scanned A, original, MIT.

A procedure for deciding whether a completed feature branch should be merged, turned into a pull request, kept, or discarded.

In plain words
What is it for?
Use it to check tests and coverage, create or merge a GitHub pull request, or handle a hotfix release.
Why use it?
It prevents unfinished or unverified work from being released and cleans up the branch and worktree afterward.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is bash scripts/land-branch.sh <task-slug> "feat(scope): description".

Good fit Use it to check tests and coverage, create or merge a GitHub pull request, or handle a hotfix release.

Compare 6 cursor rules from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/danielvm-git/bigpowers
agentmods
npx agentmods add rules/danielvm-git/bigpowers/release-branch

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

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

Your own site · 80×15
<a href="https://agentmods.dev/rules/danielvm-git/bigpowers/release-branch"><img src="https://agentmods.dev/badge/rules/danielvm-git/bigpowers/release-branch.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 59 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,877 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.00059 $0.02877
Opus 5.5 $0.00024 $0.01151
Sonnet 5.5 $0.00012 $0.00575
Haiku 4.5 $0.00006 $0.00288

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

Security

Grade A, and why

release-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 27d 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/rules/release-branch.mdc · 307 lines

How it starts

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

Release Branch

HARD GATE — Do NOT merge or release if tests fail or if coverage gates are not met. If the branch is red, return to develop-tdd to fix regressions or add missing tests before proceeding.

Finalize a completed feature branch: verify coverage gates, integrate onto main, and clean up the worktree.

Additional modes

  • --hotfix: Cherry-pick to main + tag. Skip PR in solo.
  • --squash-state: Squash chore(state): commits before merge.

Integrate mode

Read specs/state.yaml key workflow_mode (team-pr | solo-git). Fall back to profiles/solo-git.md.

Mode When Ship path
solo-local workflow_mode: solo-git Auto: scripts/land-branch.sh if present, else fallback (Step 5)
team-pr workflow_mode: team-pr (default) gh pr create → gh pr merge --squash

If unsure, prefer solo-local. Also read state.yaml vcs.kind: Git follows the procedures below; Jujutsu uses workspaces/bookmarks and must not call Git-only landing scripts.

Process

Timing: bash scripts/bp-timing.sh start release-branch at invocation; bash scripts/bp-timing.sh end release-branch before handoff.

1. Final verification

<full test command> && <typecheck command> && <lint command>
git log main...HEAD --oneline | grep -vE "^[a-f0-9]+ (feat|fix|docs|style|refactor|perf|test|build|ci|chore|revert)(\(.+\))?!?: .+$" && echo "❌ Non-conventional commits found" || echo "✅ Commits verified"
# Block AI agent attribution (P1)
git log main...HEAD --format="%B" | grep -qiE 'co[- ]authored[- ]by' && echo "❌ Co-authored-by footer found — blocked" || echo "✅ No AI attribution"
  • All tests pass, no type errors, no lint violations, all commits follow Conventional Commits
  • NO Co-authored-by or Co-Authored-By in any commit body — P1 rule (CONVENTIONS.md § Git Attribution). land-branch.sh blocks the merge if found.

Read the full file on GitHub · 307 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. 27d ago Changed · -1 lines 7e2b6f9ea58d
  2. 2mo ago First seen · 308 lines · 59 tokens per session scan A 7ac0017e74a5

Subscribe to this mod's changes

release-branch is a cursor rule published in the GitHub repository danielvm-git/bigpowers (298 stars, last pushed 5d ago), licensed MIT. It adds 59 tokens to every session and 2,877 once invoked, about $0.0002 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.

Related

release-branch compared with cursor rules from other repositories

release-branch next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
release-branchdanielvm-git/bigpowersCursor rule2985d agoMITA59Cursor
pudo-optimizeDongDuong2001/pudo-code-systemCursor rule515d agoMITA12Cursor
git-masterJkudjo/oh-my-cursorCursor rule118d agoMITA14Cursor
git-workflownedcodes-ok/cursorrules-collectionCursor rule389mo agoMITA891Cursor
github-repo-triagecdbattags/aiCursor rule59mo agoMITA459Cursor
publishing-dotnettoolAaronontheweb/dotnet-cursor-rulesCursor rule1381y agoApache-2.0A43Cursor
changesetsadobe/spectrum-design-dataCursor rule161yesterdayApache-2.0A0Cursor