version-management

version-management is a cursor rule for Cursor from KaelSensei/MagicAIBuilder. It costs 809 tokens per session, scanned A, original, MIT.

A set of version-control rules for automatically checking, committing, and pushing completed code changes with Git, a tool for tracking project history. It specifies quality checks and conventional commit message formats.

In plain words
What is it for?
Use it after completing a feature, bug fix, or substantial change to run linting, tests, SonarCloud checks, create a typed commit, and push the current branch.
Why use it?
It creates a consistent handoff after features, fixes, or significant additions and records what changed in the project history.

Cursor rule for Cursor

Written for Cursor: a Cursor rule (.mdc). Also seen: mentions CLAUDE.md; installed under .agents/ (shared by several agents).

Good fit Use it after completing a feature, bug fix, or substantial change to run linting, tests, SonarCloud checks, create a typed commit, and push the current branch.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/kaelsensei/magicaibuilder/version-management
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/KaelSensei/MagicAIBuilder

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 version-management

README.md
[![agentmods](https://agentmods.dev/badge/rules/kaelsensei/magicaibuilder/version-management/github.svg)](https://agentmods.dev/rules/kaelsensei/magicaibuilder/version-management)
Your own site
<a href="https://agentmods.dev/rules/kaelsensei/magicaibuilder/version-management"><img src="https://agentmods.dev/badge/rules/kaelsensei/magicaibuilder/version-management/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 version-management

Your own site · 80×15
<a href="https://agentmods.dev/rules/kaelsensei/magicaibuilder/version-management"><img src="https://agentmods.dev/badge/rules/kaelsensei/magicaibuilder/version-management.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 809 This file is loaded in full into every session.
When invoked 809 The same file — it is already loaded in full.
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.00809 $0.00809
Opus 5.5 $0.00324 $0.00324
Sonnet 5.5 $0.00162 $0.00162
Haiku 4.5 $0.00081 $0.00081

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

Security

Grade A, and why

version-management 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 20d 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/rules/version-management.mdc · 59 lines

How it starts

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

Version management

The branch flow and the promotion rules are in CLAUDE.md. This rule says what an agent may do with git.

What an agent may do

  • Commit locally on its own branch when the task asks for a change.
  • Push, open a PR or merge only when the owner asks for it. Never "automatically after a task", never on your own initiative.
  • Never push to dev, staging or main. Never force-push a shared branch; --force-with-lease is allowed on your own unmerged branch only.
  • Never enable delete_branch_on_merge. It deletes staging or dev when a promotion PR merges. Branch cleanup is the owner's job, with scripts/git-prune.sh. Agents never run that script: it deletes every local and remote branch outside its protected list and removes every other worktree, including other agents' work in progress.
  • Never skip hooks (--no-verify). SKIP_E2E=1 is the documented emergency bypass of the pre-push E2E gate; use it only when the owner agrees, and say so in the PR.
  • Never use bare git stash. Every worktree on this machine shares one stash stack. Use a temporary commit instead.

Branches

  • Start every task from origin/dev: git checkout -B <type>/<slug> origin/dev, where <type> is feature, fix, chore, docs or refactor.
  • If the current branch is merged or is dev, staging or main, create a fresh branch.
  • Feature and fix PRs target dev. Never target staging or main directly.

Commits

  • Conventional Commits with a scope, for example fix(playtest): … or refactor(deck): …. Types: feat, fix, refactor, test, docs, chore, ci, perf, style.
  • The body says why: the behaviour before, the evidence, the decision.
  • A commit is either structural or behavioural, never both (Kent Beck):
    • structural (refactor:, style:): no behaviour change; no assertion changes, and the tests are green before and after;
    • behavioural (feat:, fix:): driven by a Red test committed with it.
  • Stage explicit paths. Never git add -A or git add ..
  • Never commit secrets, .env* files (except .env.example), reports or build output.

Read the full file on GitHub · 59 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. 20d ago Changed · -24 lines · +100 tokens per session 875e9c9cd251
  2. 3mo ago First seen · 83 lines · 709 tokens per session scan A 6ef19d34696f

Subscribe to this mod's changes

version-management is a cursor rule published in the GitHub repository KaelSensei/MagicAIBuilder (2 stars, last pushed today), licensed MIT. It adds 809 tokens to every session, about $0.0032 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-08-31.

Related

version-management compared with cursor rules from other repositories

version-management next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
version-managementKaelSensei/MagicAIBuilderCursor rule2todayMITA809Cursor
git-flowkrivoox/agent-stack-templateCursor rule302mo agoMITA302Cursor
review-scope-overridesprisma/ormCursor rule48ktodayApache-2.0A8Cursor
project-cores0vers/next-app-i18n-starterCursor rule662d agoMITA68Cursor
no-git-commit-by-agentElumenotion/GuideAntsCursor rule70todayApache-2.0A156Cursor
git-commitsCiscoDevNet/essentialsCursor rule73d agoApache-2.0A517Cursor
gitChatbotXIO/ChatbotXCursor rule1.3ktodaynoneA29Cursor