copilot-commit-style
1
总安装量
1
周安装量
#53221
全站排名
安装命令
npx skills add https://github.com/nguyenhuy158/skills --skill copilot-commit-style
Agent 安装分布
amp
1
opencode
1
kimi-cli
1
codex
1
github-copilot
1
gemini-cli
1
Skill 文档
Copilot Commit Style Instructions
This skill provides the mandatory rules for formatting git commit messages according to the project’s Conventional Commits specification.
Commit Message Format
Every commit message MUST follow this exact format:
<emoji> <type>(<scope>): <description>
[optional body]
[optional footer(s)]
Constraints:
- Emoji is REQUIRED: Every commit must start with a relevant emoji.
- Scope is REQUIRED: You must specify a scope in parentheses. Format:
type(scope): description. - Lowercase Types:
<type>must be in lowercase. - Separation: A colon and space must follow the scope.
- Single Line Only: The commit header must be a single line. No newline characters within the header.
- Length Limit: The entire commit header (including emoji and scope) must be less than 80 characters.
Allowed Types & Emojis
| Emoji | Type | Meaning | SemVer |
|---|---|---|---|
| ⨠| feat |
New feature | MINOR |
| ð | fix |
Bug fix | PATCH |
| ð | docs |
Documentation changes | None |
| ð¨ | style |
Formatting, missing semi-colons, etc. | None |
| â»ï¸ | refactor |
Code change that neither fixes a bug nor adds a feature | None |
| â¡ï¸ | perf |
Code change that improves performance | PATCH |
| â | test |
Adding missing tests or correcting existing tests | None |
| ð· | build |
Changes that affect the build system or external dependencies | None |
| ð | ci |
Changes to CI configuration files and scripts | None |
| ð§ | chore |
Other changes that don’t modify src or test files | None |
| ⪠| revert |
Reverts a previous commit | None |
Note: A BREAKING CHANGE (which triggers a MAJOR version bump) is signaled by adding a ! after the type/scope or by including BREAKING CHANGE: in the footer.
Examples
â Correct Format:
⨠feat(auth): add OAuth2 login flowð fix(api): resolve memory leak in workerð docs(readme): update installation guideâ¡ï¸ perf(db)!: optimized query for user lookup
â Incorrect Format:
feat: add something(Missing scope and emoji)⨠feat: add something(Missing scope)feat(ui): add something(Missing emoji)⨠fix memory leak(Missing type/scope format)â¡ï¸ fix(stock): very long description that exceeds the character limit of eighty characters per line(Over 80 chars)ð fix(api): first line\nsecond line(Contains multiple lines in header)