git-conventions

A set of rules for naming Git commits and choosing the right pull-request merge approach.

In plain words
What is it for?
It guides developers on when to use commit types such as fix, refactor, or test, including changes made before code is released.
Why use it?
It keeps the project's history and automatically generated release notes consistent.

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/jentic/jentic-one/git-conventions
Clone the repo
git clone --depth 1 https://github.com/jentic/jentic-one

Made for: Cursor.

Per session 1,117 This file is loaded in full into every session.
When invoked 1,117 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.01117 $0.01117
Opus 5 $0.00558 $0.00558
Sonnet 5 $0.00223 $0.00223
Haiku 4.5 $0.00112 $0.00112

Measured 2d ago against content hash 231b27738201, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

git-conventions 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 2d 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-conventions.mdc · 133 lines

How it starts

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

Git Conventions

Conventional Commits are enforced repo-wide by the commit-msg hook (uv run cz check, pure Python — no Node). The allowed types and the schema regex live in pyproject.toml ([tool.commitizen.customize]) and are guarded by tests/arch/test_commit_convention.py. This document is the human-readable source of truth those reference; keep all three in sync.

Commit Types — Use the Correct Type

Reserve fix exclusively for real bug fixes — something was broken in production (on main), now it works. Misusing fix pollutes the auto-generated changelog.

fix in feature branches

If you created the code and the bug in the same feature branch, it's not a fix. You're refactoring your own unshipped work:

# ❌ WRONG — AppLink was created in this branch, not shipped yet
fix(ui): harden AppLink against XSS and correct prop spread order

# ✅ CORRECT — refactoring new code before it ships
refactor(ui): harden AppLink against XSS and correct prop spread order

# ❌ WRONG — our own new password toggle broke the e2e locator
fix(e2e): use getByRole for password field to avoid toggle collision

# ✅ CORRECT — adjusting tests for our own new feature
test(e2e): use getByRole for password field to avoid toggle collision

Rule of thumb: if the bug doesn't exist on main, it's not a fix.

# ❌ WRONG — not a bug fix, and scope should be the file or area
fix(ci): fix CI concurrency and duplicate Docker builds on main

# ✅ CORRECT — use the type that matches the change
ci(release.yaml): fix CI concurrency and duplicate Docker builds on main

Type reference

Type Use for
feat New user-facing feature
fix Bug fix (something was broken, now it works)
test Adding or updating tests
ci CI/CD pipeline changes
chore Dependency updates, tooling, configs
docs Documentation only
style Formatting, whitespace (no logic change)
refactor Code restructuring (no behavior change)
perf Performance improvement
build Build system or external deps (Docker, pkg)
revert Reverting a previous commit

Read the full file on GitHub · 133 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. 2d ago First seen · 133 lines · 1,117 tokens per session scan A 231b27738201

Subscribe to this mod's changes

git-conventions is a cursor rule published in the GitHub repository jentic/jentic-one (173 stars, last pushed 4d ago), licensed Apache-2.0. It adds 1,117 tokens to every session, about $0.0056 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.