create-commit-message

A rule for writing Git commit messages using Conventional Commits, a shared format that labels changes such as features, fixes, tests, or documentation.

In plain words
What is it for?
Choosing a change type and scope, then writing commit messages in the form `type(scope): description`.
Why use it?
It makes commit history easier to scan, search, and process automatically.

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/zackiles/deno-kit/create-commit-message
Clone the repo
git clone --depth 1 https://github.com/zackiles/deno-kit

Made for: Cursor.

Per session 8 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 492 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 100% copy Near-identical to another mod 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.00008 $0.00492
Opus 5 $0.00004 $0.00246
Sonnet 5 $0.00002 $0.00098
Haiku 4.5 $0.00001 $0.00049

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

Security

Grade A, and why

create-commit-message 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.

Origin

This is a copy

100% identical to create-commit-message — 8 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.cursor/rules/create-commit-message.mdc · 72 lines

What it actually says

Writing Commit Messages With Convention Commit

You must format commit messages using the Conventional Commits standard.
Only apply this rule when generating or suggesting commit messages.


Format:

<type>(<scope>): <description>
  • Type: Defines the nature of the change.
  • Scope: Derived from the file path or affected component.
  • Description: Written in imperative mood.

Types:

  • feat: A new feature.
  • fix: A bug fix.
  • docs: Documentation changes only.
  • style: Code formatting, no logic change.
  • refactor: Code restructuring, no behavior change.
  • perf: Performance improvements.
  • test: Adding or improving tests.
  • chore: Build process, dependencies, or auxiliary tools.

Commit Logic

function generateCommitMessage(file, changeDescription) {
  let changeType = "chore"
  if (/add|create|implement/i.test(changeDescription)) changeType = "feat"
  else if (/fix|correct|resolve/i.test(changeDescription)) changeType = "fix"
  else if (/refactor|restructure/i.test(changeDescription)) changeType = "refactor"
  else if (/test/i.test(changeDescription)) changeType = "test"
  else if (/doc|comment/i.test(changeDescription)) changeType = "docs"
  else if (/style|format/i.test(changeDescription)) changeType = "style"
  else if (/perf|optimize/i.test(changeDescription)) changeType = "perf"

  const scope = file.split("/").slice(0, -1).join("-")
  return `${changeType}(${scope}): ${changeDescription}`
}

Conventional Commit Examples

Input 1:

CHANGE_DESCRIPTION="add user authentication function"
FILE="src/auth/login.ts"

Output 1:

feat(src-auth): add user authentication function

Input 2:

CHANGE_DESCRIPTION="fix incorrect date parsing"
FILE="lib/utils/date.js"

Output 2:

fix(lib-utils): fix incorrect date parsing
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 · 72 lines · 8 tokens per session scan A 26bc840cf851

Subscribe to this mod's changes

create-commit-message is a cursor rule published in the GitHub repository zackiles/deno-kit (3 stars, last pushed 5mo ago), licensed MIT. It adds 8 tokens to every session and 492 once invoked, about $0.0000 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to create-commit-message, differing in 8 lines, and is treated as a copy.