005-commit-conventions

A set of rules for writing Git commit messages, which record changes in a project's history. It uses Conventional Commits, a shared format such as `feat` for features and `fix` for bug fixes.

In plain words
What is it for?
Use it when creating commits, choosing change types and scopes, writing short summaries, and linking issues or pull requests.
Why use it?
Consistent messages make project history easier to search and allow tools to create changelogs from commits.

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/cmnemoi/cursor-rules/005-commit-conventions
Clone the repo
git clone --depth 1 https://github.com/cmnemoi/cursor-rules

Made for: Cursor.

Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 591 The whole file, excluding the scripts and references it only reads on demand.
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.00000 $0.00591
Opus 5 $0.00000 $0.00296
Sonnet 5 $0.00000 $0.00118
Haiku 4.5 $0.00000 $0.00059

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

Security

Grade A, and why

005-commit-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 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.

emush/.cursor/rules/005-commit-conventions.mdc · 95 lines

How it starts

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

Commit Message Conventions

1.0.0

Context

  • These rules apply to all commit messages in the project
  • They ensure a clear and searchable commit history
  • They facilitate automated changelog generation
  • They promote consistency across the development team

Requirements

Commit Structure

  • Use the Conventional Commits format: <type>(<scope>): <description>
  • Keep the first line under 72 characters
  • Write description in imperative, present tense (e.g., "add" not "added")
  • Use the body to explain what and why, not how
  • Reference issues and pull requests at the end of the body

Commit Types

  • feat: A new feature
  • fix: A bug fix
  • docs: Documentation changes
  • style: Changes that don't affect code functionality (formatting, etc.)
  • refactor: Code changes that neither fix bugs nor add features
  • perf: Performance improvements
  • test: Adding or correcting tests
  • chore: Changes to build process, dependencies, etc.

Commit Scope

  • Use scope to indicate the component affected (e.g., auth, api, ui)
  • Keep scope names consistent across commits
  • Use lowercase for scope names
  • Omit scope for changes that affect multiple components

Breaking Changes

  • Mark breaking changes with ! after type/scope: feat(api)!: change authentication API
  • Include BREAKING CHANGE: in the commit body with explanation
  • Provide migration instructions when possible

Language Standards

  • Write all commit messages in English
  • Use clear and concise language
  • Avoid technical jargon unless necessary
  • Be specific about what changed

Examples

feat(auth): implement JWT authentication

  • Add JWT token generation and validation
  • Create authentication middleware
  • Update user repository to support token storage

Closes #123

feat(api)!: change response format to follow JSON:API spec

BREAKING CHANGE: API responses now follow the JSON:API specification. All response objects are now wrapped in a data property and include type and id fields.

Read the full file on GitHub · 95 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. yesterday First seen · 95 lines · 591 tokens per session scan A a1cc094e2e09

Subscribe to this mod's changes

005-commit-conventions is a cursor rule published in the GitHub repository cmnemoi/cursor-rules (2 stars, last pushed 1y ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 591 tokens. 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.