commit-message

作者: github

生成符合慣例的提交訊息——在建立提交、撰寫提交訊息或尋求 Git 提交協助時使用

npx skills add https://github.com/github/copilot-cli-for-beginners --skill commit-message

Commit Message Skill

Generate commit messages following the Conventional Commits specification.

Format

<type>(<scope>): <description>

[optional body]

[optional footer]

Types

TypeWhen to Use
featNew feature
fixBug fix
docsDocumentation only
styleFormatting (no code change)
refactorCode change that neither fixes nor adds
perfPerformance improvement
testAdding or updating tests
choreMaintenance tasks

Rules

  1. Subject line maximum 72 characters
  2. Use imperative mood ("add" not "added" or "adds")
  3. No period at the end of subject line
  4. Separate subject from body with blank line
  5. Body explains what and why, not how

Examples

Simple:

fix(auth): prevent redirect loop on expired sessions

With body:

feat(api): add rate limiting to public endpoints

- Limits requests to 100/minute per IP
- Returns 429 status with retry-after header
- Configurable via RATE_LIMIT_MAX env variable

Closes #234