AgentSkillsCN

commit

生成带表情符号前缀的英文提交信息并推送。当用户希望提交并推送更改,或使用“/commit”时,可使用此功能。

SKILL.md
--- frontmatter
name: commit
description: Generate English commit message with emoji prefix and push. Use when user wants to commit and push changes, or uses /commit.

Commit and Push Workflow

Steps

  1. Analyze changes: Run git status and git diff to see all modified/untracked files
  2. Group related files: Files belonging to the same feature go in one commit, unrelated files get separate commits
  3. For each commit group:
    • Select emoji prefix based on change type
    • Write concise English commit message
    • Stage files: git add <files>
    • Commit (no Claude attribution)
  4. Push all commits to remote

Emoji Prefixes

EmojiType
New feature
🐛Bug fix
📝Documentation
♻️Refactoring
🎨Styling/formatting
Performance
🔒Security
🧪Tests
🔖Version bump
🚀Deployment
⚙️Configuration
🗑️Remove code/files

Commit Message Format

code
<emoji> <Short description in English>

Example: ✨ Add return deadline display to product detail page

Rules

  • English only for commit messages
  • No Claude attribution (no "Co-Authored-By" or "Generated with Claude")
  • Group related files (component + styles + utils for same feature = one commit)
  • Separate unrelated changes into different commits
  • Use HEREDOC for commit messages to handle special characters