Agent skill
git-commit-message
Formulate a git commit message. Use this skill whenever asked to create a commit message.
Stars
10
Forks
1
Install this agent skill to your Project
npx add-skill https://github.com/bkircher/skills/tree/main/git-commit-message
SKILL.md
Create a commit message summarizing the changes just made. Only take staged changes into account.
Scan for what is staged
Use the context to construct a good message but make sure to only address the scope that is currently staged in git.
List files that are staged (in the index): git diff --cached --name-only
Show the full diff of staged changes: git diff --cached
Rules
- Separate subject from body with a blank line
- Limit the subject line to 50 characters
- Capitalize the subject line
- Do not end the subject line with a period
- Use the imperative mood in the subject line
- Wrap the body at 72 characters
- Use the body to explain what and why vs. how
Didn't find tool you were looking for?