commit-message
写清晰的基于表情符号的提交消息,遵循常规提交格式。在提交代码、编写git提交消息、暂存更改或需要提交消息格式指导时使用。支持✨ feat、🐛 fix、♻️ refactor、🧹 tidy、✅ test、📝 docs等类型。
📖 中文导读:写清晰的基于表情符号的提交消息,遵循常规提交格式。在提交代码、编写git提交消息、暂存更改或需要提交消息格式指导时使用。支持✨ feat、🐛 fix、♻️ refactor、🧹 tidy、✅ test、📝 docs等类型。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。
name: commit-message description: Write git one-line commit messages.
commit-message
Instructions
Follow strict commit discipline to maintain a clean, useful git history.
Commit Message Guidelines
Commit messages should be clear, concise, and follow a standard format, and should explain the "why" behind the change.
Commit Message Format
Use <type emoji>(<target>): <description> format. <type emoji> indicates change type, <target> is optional scope, <description> is one-line concise summary with no indent.
Types:
- ✨
feat: New feature - 🐛
fix: Bug fix - ♻️
refactor: Code refactoring - ✅
test: Adding/updating tests - 📝
docs: Documentation changes - 🎨
style: Code style changes (formatting) - 🔧
chore: Build process, dependencies - ⚡
perf: Performance improvements - 🧹
tidy: Structural code changes (renaming, extracting methods)
Examples
Examples:
✨(auth): add OAuth2 login support since many users requested it
🐛: fix crash on null pointer in order processing
♻️(cart): extract calculateTotal method
✅: add tests for user registration
📝: update API documentation for payment endpoint