From 73b6d1970365e835f591d2047eb1c1cbf587e39e Mon Sep 17 00:00:00 2001 From: DanielS Date: Mon, 6 Jul 2026 22:47:14 +0200 Subject: [PATCH] docs(skills): add commit-work skill with frontmatter --- .agents/skills/commit-work/skill.md | 37 +++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .agents/skills/commit-work/skill.md diff --git a/.agents/skills/commit-work/skill.md b/.agents/skills/commit-work/skill.md new file mode 100644 index 0000000..aa5a12e --- /dev/null +++ b/.agents/skills/commit-work/skill.md @@ -0,0 +1,37 @@ +--- +name: commit-work +description: 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 +1. **Atomic Commits**: Stage and commit only ONE logical change at a time. +2. **Imperative Mood**: Always use the imperative present tense (e.g., "add" instead of "added" or "adds"). +3. **Case & Punctuation**: Start the description with a lowercase letter. Do not end with a period. +4. **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 +1. Run `git diff --cached` to see staged changes. +2. If multiple features are changed, unstage and split them. +3. Generate the commit message matching the structural rules above. +4. Execute `git commit -m ""`.