git-flow

Rules for Git Flow, a branching method that keeps production, integration, and individual work on separate branches. They also define pull-request, commit, and branch-cleanup practices.

In plain words
What is it for?
Choosing a branch type, targeting pull requests, following release and hotfix paths, writing conventional commits, and removing merged branches safely.
Why use it?
They help prevent unfinished or mixed changes from being placed directly on shared production or integration branches.

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/krivoox/agent-stack-template/git-flow
Clone the repo
git clone --depth 1 https://github.com/krivoox/agent-stack-template

Made for: Cursor.

Per session 302 This file is loaded in full into every session.
When invoked 302 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.00302 $0.00302
Opus 5 $0.00151 $0.00151
Sonnet 5 $0.00060 $0.00060
Haiku 4.5 $0.00030 $0.00030

Measured yesterday against content hash 73063665f9f3, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

git-flow 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 yesterday.

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/git-flow.mdc · 30 lines

What it actually says

Git Flow

Full guide: docs/guides/git-flow.md.

Branch Role
main Production
develop Integration
feat/* fix/* chore/* refactor/* docs/* Work
  1. Never commit or push directly to main or develop (the release bot is the only exception).
  2. Branch from an up-to-date develop. PRs target develop; a release is a developmain PR.
  3. A hotfix may branch from main when it is genuinely urgent; sync it back to develop immediately.
  4. Delete the branch after merge, then git fetch --prune. Never reuse a merged branch.
  5. No force-push to main or develop.
  6. Commit only when the user asks.
  7. Conventional Commits (feat:, fix:, chore: …) — enforced by commitlint in the commit-msg hook.
  8. Classify first; open one of docs/guides/new-feature.md, bugfix.md, refactor.md or chore.md. Do not mix intents on one branch.
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. yesterday First seen · 30 lines · 302 tokens per session scan A 73063665f9f3

Subscribe to this mod's changes

git-flow is a cursor rule published in the GitHub repository krivoox/agent-stack-template (30 stars, last pushed 11d ago), licensed MIT. It adds 302 tokens to every session, about $0.0015 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-30.