Community写作与编辑github.com

BOUAHMEDimane/cursor-commit-message-helper

Cursor Agent Skill for writing conventional commit messages

cursor-commit-message-helper 是什么?

cursor-commit-message-helper is a Cursor agent skill that cursor Agent Skill for writing conventional commit messages.

兼容平台~Claude Code~Codex CLI✓Cursor
npx skills add BOUAHMEDimane/cursor-commit-message-helper

Installed? Explore more 写作与编辑 skills: steipete/notion, langchain-ai/langchain, bytedance/podcast-generation · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

Commit Message Helper

Format

Use Conventional Commits:

():

[optional body explaining WHY, not WHAT]

Types

TypeUsage
featNew feature
fixBug fix
docsDocumentation only
styleFormatting, no logic change
refactorCode change without feat/fix
testAdding or updating tests
choreMaintenance (deps, config)

Rules

  1. Subject line: max 72 characters, imperative mood ("add" not "added")
  2. Scope is optional but recommended (e.g. auth, api, ui)
  3. Body explains why, not what (the diff shows what)
  4. One logical change per commit

Workflow

  1. Run git diff --staged to see staged changes
  2. Identify the primary type and scope
  3. Draft the message
  4. Verify: subject ≤ 72 chars, imperative mood, explains why if non-obvious

Examples

Feature: feat(auth): add JWT token refresh endpoint

Prevents users from being logged out during long sessions

Bug fix: fix(reports): correct date formatting in timezone conversion

Timestamps were displayed in local time instead of UTC

Documentation: docs: add setup instructions to README

相关技能