git-commit-permission

git-commit-permission is a cursor rule for Cursor from VictorCostaOliveira/agents-tdd-flow. It costs 195 tokens per session, scanned A, original, MIT.

A set of rules requiring explicit user permission before making a Git commit, which records changes in a Git repository.

In plain words
What is it for?
Use it to control when the coding agent may create commits. It allows commits only when the user asks for one or authorizes it.
Why use it?
It prevents changes from being committed without the user's approval.

Cursor rule for Cursor

Written for Cursor: a Cursor rule (.mdc).

Good fit Use it to control when the coding agent may create commits. It allows commits only when the user asks for one or authorizes it.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/victorcostaoliveira/agents-tdd-flow/git-commit-permission
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/VictorCostaOliveira/agents-tdd-flow

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-commit-permission

README.md
[![agentmods](https://agentmods.dev/badge/rules/victorcostaoliveira/agents-tdd-flow/git-commit-permission/github.svg)](https://agentmods.dev/rules/victorcostaoliveira/agents-tdd-flow/git-commit-permission)
Your own site
<a href="https://agentmods.dev/rules/victorcostaoliveira/agents-tdd-flow/git-commit-permission"><img src="https://agentmods.dev/badge/rules/victorcostaoliveira/agents-tdd-flow/git-commit-permission/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-commit-permission

Your own site · 80×15
<a href="https://agentmods.dev/rules/victorcostaoliveira/agents-tdd-flow/git-commit-permission"><img src="https://agentmods.dev/badge/rules/victorcostaoliveira/agents-tdd-flow/git-commit-permission.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 195 This file is loaded in full into every session.
When invoked 195 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.00195 $0.00195
Opus 5.5 $0.00078 $0.00078
Sonnet 5.5 $0.00039 $0.00039
Haiku 4.5 $0.00019 $0.00019

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

Security

Grade A, and why

git-commit-permission 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 22d 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/git-commit-permission.mdc · 14 lines

What it actually says

Commits — somente com permissão

  • Não execute git commit, merges que concluam commit, nem finalize operações equivalentes (ex.: git commit --amend, git rebase que grave histórico) sem o usuário pedir ou autorizar explicitamente.
  • Não assuma que “está pronto” autoriza commit — confirme ou espere instrução explícita (“pode commitar”, “faz o commit”, etc.).
  • Pode preparar mensagens de commit em texto, git status, git diff, stage (git add) se o usuário pedir preparação — mas não grave o commit até autorização.
  • Se o fluxo exigir commit (CI, hook), pergunte antes ou peça que o usuário execute o commit localmente.

Resumo: commit = só quando o usuário pedir ou autorizar.

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. 22d ago Changed · -10 tokens per session b18d35eb1c08
  2. 3mo ago First seen · 14 lines · 205 tokens per session scan A 8b5f7643e026

Subscribe to this mod's changes

git-commit-permission is a cursor rule published in the GitHub repository VictorCostaOliveira/agents-tdd-flow (2 stars, last pushed 22d ago), licensed MIT. It adds 195 tokens to every session, about $0.0008 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

git-commit-permission compared with cursor rules from other repositories

git-commit-permission next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
git-commit-permissionVictorCostaOliveira/agents-tdd-flowCursor rule222d agoMITA195Cursor
pull-requestueberdosis/tiptapCursor rule39kyesterdayMITA0Cursor
commitsm3au/playwright-bdd-cursor-templateCursor rule225d agoMITA0Cursor
git-workflowuseshape/ShapeCursor rule432d agononeA174Cursor
conventional-commitsssoriche/dotfilesCursor rule726d agononeA0Cursor
git-disciplinemennyg19-cmyk/MasterGenAIInstructionsCursor rule24d agononeA656Cursor
git-commit-standardsivangrynenko/cursorrulesCursor rule881y agoMITA0Cursor