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

git-commit

规范提交信息的格式与内容,确保每次代码提交遵循约定式提交标准,通过统一的类型标识、作用域和描述文本提升版本管理效率,支持自动化生成变更日志并识别不兼容更新。

0.0 (0) 21 次安装 原作者 编程导航
收录于 2026-01-22

Skills.MD

# Git Commit Messages Write commit messages following the Conventional Commits specification. ## Format ``` <type>(<scope>): <description> [optional body] [optional footer(s)] ``` ## Types | Type | Purpose | | ---------- | ------------------------------------------------------- | | `feat` | New feature | | `fix` | Bug fix | | `docs` | Documentation only | | `style` | Code style (formatting, no logic change) | | `refactor` | Code change that neither fixes a bug nor adds a feature | | `perf` | Performance improvement | | `test` | Adding or correcting tests | | `build` | Build system or external dependencies | | `ci` | CI configuration | | `chore` | Maintenance tasks | | `revert` | Reverts a previous commit | ## Rules 1. Use imperative mood in description ("add feature" not "added feature") 2. Do not end description with a period 3. Keep description under 72 characters 4. Separate subject from body with a blank line 5. Use body to explain what and why, not how ## Breaking Changes Add **!** after type/scope or include **BREAKING CHANGE:** in footer: ``` feat(api)!: remove deprecated endpoints BREAKING CHANGE: The /v1/users endpoint has been removed. ``` ## Scope Optional. Use to specify area of change (e.g., `api`, `ui`, `auth`, `db`). ## Attribution Do NOT include any AI attribution, co-author tags, or generated-by footers in commit messages.

评论 0

还没有评论,来抢沙发。