commit-message-helper

commit-message-helper is a cursor rule for Cursor from BACH-AI-Tools/taiwan-holiday-mcp. It costs 0 tokens per session (960 once invoked), scanned A, a copy of commit-message-helper, MIT.

A set of rules for writing Git commit messages, which record changes made to a code project. It uses a type and optional area such as `feat(core)` or `fix(api)`, followed by a short description.

In plain words
What is it for?
It helps classify changes, suggest two or three commit messages from a diff or description, check their format, and include related task references. The rules specify Traditional Chinese for most text and a 50-character limit for short descriptions.
Why use it?
It removes guesswork about how to describe changes and keeps commit history consistent. It also asks for confirmation before choosing a message or committing.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit It helps classify changes, suggest two or three commit messages from a…

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/bach-ai-tools/taiwan-holiday-mcp/commit-message-helper
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/BACH-AI-Tools/taiwan-holiday-mcp

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 commit-message-helper

README.md
[![agentmods](https://agentmods.dev/badge/rules/bach-ai-tools/taiwan-holiday-mcp/commit-message-helper.svg)](https://agentmods.dev/rules/bach-ai-tools/taiwan-holiday-mcp/commit-message-helper)
Your own site
<a href="https://agentmods.dev/rules/bach-ai-tools/taiwan-holiday-mcp/commit-message-helper"><img src="https://agentmods.dev/badge/rules/bach-ai-tools/taiwan-holiday-mcp/commit-message-helper.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 960 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00000 $0.00960
Opus 5 $0.00000 $0.00480
Sonnet 5 $0.00000 $0.00192
Haiku 4.5 $0.00000 $0.00096

Measured 6d ago against content hash 47d863a5c7b0, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

commit-message-helper 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 6d 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.

Origin

This is a copy

100% identical to commit-message-helper — 0 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/commit-message-helper.mdc · 102 lines

What it actually says

Git Commit Message 智能協助規則

當使用者提到 git commit、提交程式碼、或要求協助撰寫 commit message 時,請遵循以下規則:

核心格式規範

使用此格式:<類型>(<範圍>): <簡短描述>

類型定義

  • feat - 新功能
  • fix - 錯誤修復
  • docs - 文件更新
  • style - 程式碼格式調整
  • refactor - 重構
  • test - 測試相關
  • chore - 建置工具變動
  • perf - 效能改善
  • ci - CI/CD 相關

範圍選項

  • core - 核心功能模組
  • api - API 介面相關
  • test - 測試相關
  • docs - 文件相關
  • config - 配置相關
  • build - 建置相關

專案特殊要求

  1. 語言使用:主要使用繁體中文,技術術語可用英文(如 API、MCP、TypeScript)
  2. Task 導向:如有相關 Task,在詳細描述中註明「相關任務: Task X.X」
  3. 簡短描述:限制在 50 字元內,使用現在式動詞
  4. 避免模糊詞彙:不使用「一些」、「部分」等模糊表達

智能協助流程

當使用者需要 commit message 協助時:

  1. 分析變更:檢視 git diff 或使用者描述的變更內容
  2. 推薦類型:根據變更性質推薦適當的類型和範圍
  3. 生成建議:提供 2-3 個符合規範的 commit message 選項
  4. 格式檢查:確認建議符合所有格式要求
  5. 讓使用者確認選擇的 commit message:呼叫 interactive-feedback-mcp,讓使用者確認使用哪個 commit message
  6. 讓使用者確認是否 commit: 呼叫 interactive-feedback-mcp,讓使用者確認是否 commit

範例模板

功能開發

feat(core): 新增台灣假期查詢功能

實作 2024-2025 年台灣國定假日資料
支援農曆新年、中秋節等傳統節日計算
新增假日類型分類功能

相關任務: Task 2.1

錯誤修復

fix(api): 修復日期格式驗證問題

解決輸入非標準日期格式時的錯誤處理
改善錯誤訊息的可讀性
新增邊界條件測試案例

文件更新

docs: 更新 MCP 伺服器使用說明

新增安裝步驟詳細說明
補充 API 端點使用範例
修正文件中的錯字和格式問題

自動檢查清單

在提供 commit message 建議前,確認:

  • 使用正確的類型前綴
  • 簡短描述在 50 字元內
  • 使用繁體中文和現在式動詞
  • 技術術語保持一致性
  • 如有 Task 關聯,已在詳細描述中註明
  • 避免使用模糊詞彙

改善建議

如果使用者提供的 commit message 不符合規範,主動提供改善建議:

  1. 指出問題:明確說明哪些地方需要改善
  2. 提供修正版本:給出符合規範的替代方案
  3. 解釋原因:說明為什麼這樣修改更好
  4. 教育意義:幫助使用者理解規範的重要性

記住:目標是協助建立一致、清晰、有意義的 commit 歷史記錄。

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. 6d ago First seen · 102 lines · 0 tokens per session scan A 47d863a5c7b0

Subscribe to this mod's changes

commit-message-helper is a cursor rule published in the GitHub repository BACH-AI-Tools/taiwan-holiday-mcp (0 stars, last pushed 9mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 960 tokens. A static security scan graded it A with 0 findings. It is 100% identical to commit-message-helper, differing in 0 lines, and is treated as a copy.