1.4 KiB
1.4 KiB
name, description
| name | description |
|---|---|
| commit-work | Erzwingt Conventional Commits mit atomaren, imperativ formulierten Commit-Messages nach strikter Spezifikation. |
Skill: Conventional Commits Expert
Purpose
Ensure all code changes are committed using the strict Conventional Commits specification.
Rules
- Atomic Commits: Stage and commit only ONE logical change at a time.
- Imperative Mood: Always use the imperative present tense (e.g., "add" instead of "added" or "adds").
- Case & Punctuation: Start the description with a lowercase letter. Do not end with a period.
- Length: Keep the first line under 50 characters.
Commit Message Structure
():
[optional body]
[optional footer(s)]
Allowed Types
feat: A new feature for the user.fix: A bug fix for the user.docs: Changes to the documentation.style: Formatting, missing semi-colons, etc. (no production code change).refactor: Refactoring production code (neither fixes a bug nor adds a feature).test: Adding missing tests or correcting existing tests.chore: Updating build tasks, package manager configs, etc.
Workflow
- Run
git diff --cachedto see staged changes. - If multiple features are changed, unstage and split them.
- Generate the commit message matching the structural rules above.
- Execute
git commit -m "<message>".