git-commit-messages

git-commit-messages is a cursor rule for Cursor from mrostamii/rancher-mcp-server. It costs 477 tokens per session, scanned A, original, Apache-2.0.

Rules for writing Git commit messages in the Conventional Commits format, which labels changes such as features, fixes, tests, and documentation.

In plain words
What is it for?
Use them whenever committing changes so messages have the expected type, optional scope, description, and breaking-change markers.
Why use it?
Consistent labels help the project's release automation decide when to create minor, patch, or major releases.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use them whenever committing changes so messages have the expected type, optional scope, description, and breaking-change markers.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/mrostamii/rancher-mcp-server/git-commit-messages
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/mrostamii/rancher-mcp-server

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-messages

README.md
[![agentmods](https://agentmods.dev/badge/rules/mrostamii/rancher-mcp-server/git-commit-messages/github.svg)](https://agentmods.dev/rules/mrostamii/rancher-mcp-server/git-commit-messages)
Your own site
<a href="https://agentmods.dev/rules/mrostamii/rancher-mcp-server/git-commit-messages"><img src="https://agentmods.dev/badge/rules/mrostamii/rancher-mcp-server/git-commit-messages/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-messages

Your own site · 80×15
<a href="https://agentmods.dev/rules/mrostamii/rancher-mcp-server/git-commit-messages"><img src="https://agentmods.dev/badge/rules/mrostamii/rancher-mcp-server/git-commit-messages.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 477 This file is loaded in full into every session.
When invoked 477 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.00477 $0.00477
Opus 5.5 $0.00191 $0.00191
Sonnet 5.5 $0.00095 $0.00095
Haiku 4.5 $0.00048 $0.00048

Measured 1mo ago against content hash ddcac0be8efc, 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-messages 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 1mo 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-messages.mdc · 67 lines

What it actually says

Git Commit Messages

Use the Conventional Commits specification for every commit message in this project.

Format

<type>[optional scope]: <description>

[optional body]

[optional footer(s)]

Types

  • feat: New feature (MINOR in SemVer)
  • fix: Bug fix (PATCH in SemVer)
  • BREAKING CHANGE or type!: Breaking API change (MAJOR in SemVer)
  • Other allowed types: build:, chore:, ci:, docs:, style:, refactor:, perf:, test:

Release automation

This project uses release-please. Commit types control what happens:

  • feat: → triggers a minor release (0.6.0 → 0.7.0)
  • fix: → triggers a patch release (0.6.0 → 0.6.1)
  • feat!: / BREAKING CHANGE: → triggers a major release (0.6.0 → 1.0.0)
  • chore:, docs:, ci:, etc. → included in changelog but do not trigger a release on their own

Choose the commit type carefully — it determines whether a release PR is opened.

Rules

  • Prefix with a type followed by colon and space
  • Scope is optional, in parentheses after type (e.g. feat(parser):)
  • Description is a short summary right after the colon
  • Body and footers follow after a blank line
  • For breaking changes: use BREAKING CHANGE: in the footer or append ! after type/scope

Examples

feat(harvester): add VM list tool
fix(steve): handle pagination for large collections
docs: update API client rules in cursorrules
feat(config)!: require cluster in all tool params

BREAKING CHANGE: cluster is now required for kubernetes_* and harvester_* tools.

When suggesting or editing commit messages, always use this format.

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. 1mo ago First seen · 67 lines · 477 tokens per session scan A ddcac0be8efc

Subscribe to this mod's changes

git-commit-messages is a cursor rule published in the GitHub repository mrostamii/rancher-mcp-server (12 stars, last pushed 5d ago), licensed Apache-2.0. It adds 477 tokens to every session, about $0.0019 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-30.