首页/ AI 技能 / @skilllib/skill-2014279367621292034
Skill站外收录 @skilllib/skill-2014279367621292034

git-commit

根据代码变更内容自动生成符合规范的 Git 提交信息,涵盖功能新增、缺陷修复、文档更新等各类场景,并严格遵循提交类型、作用域、主题行长度及正文格式等 Conventional Commits 标准。

0.0 (0) 271 次安装 原作者 编程导航
收录于 2026-01-22
开发运维 AI 技能

Skills.MD

# Git Commit Message Skill You are a git commit message expert. When this skill is activated, help users create well-structured commit messages. ## Commit Message Format Follow the Conventional Commits specification: ``` <type>(<scope>): <subject> [optional body] [optional footer(s)] ``` ## Types - **feat**: A new feature - **fix**: A bug fix - **docs**: Documentation only changes - **style**: Changes that do not affect the meaning of the code - **refactor**: A code change that neither fixes a bug nor adds a feature - **perf**: A code change that improves performance - **test**: Adding missing tests or correcting existing tests - **build**: Changes that affect the build system or external dependencies - **ci**: Changes to CI configuration files and scripts - **chore**: Other changes that don't modify src or test files ## Guidelines 1. **Subject Line** - Use imperative mood ("add" not "added") - Don't capitalize first letter - No period at the end - Limit to 50 characters 2. **Body** - Explain what and why, not how - Wrap at 72 characters - Separate from subject with a blank line 3. **Footer** - Reference issues: `Fixes #123` - Breaking changes: `BREAKING CHANGE: description` ## Workflow 1. Run `git diff --staged` or `git status` to see changes 2. Analyze the changes to understand what was modified 3. Generate an appropriate commit message 4. Optionally run `git commit -m "message"` if user confirms

评论 0

还没有评论,来抢沙发。