Awesome-omni-skill github-commit
Create a well-formatted git commit following best practices
install
source · Clone the upstream repo
git clone https://github.com/diegosouzapw/awesome-omni-skill
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/diegosouzapw/awesome-omni-skill "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/tools/github-commit" ~/.claude/skills/diegosouzapw-awesome-omni-skill-github-commit && rm -rf "$T"
manifest:
skills/tools/github-commit/SKILL.mdsource content
Git Commit Skill
When this skill is invoked, create a git commit following these steps:
Instructions
- Check git status to see what files are staged/unstaged
- Review the changes using
(orgit diff
if files are already staged)git diff --staged - Verify no sensitive data is being committed (secrets, private keys, API keys, tokens, credentials)
- Stage files if needed with
git add - Create the commit using
to sign the commitgit commit -S
Commit Message Guidelines
Follow these seven rules for great commit messages:
- 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 (e.g., "Add feature" not "Added feature")
- Wrap the body at 72 characters
- Use the body to explain what and why vs. how
Additional guidelines:
- Style: Casual and human, but professional
- Language: Always in English
- Format:
- Short title describing the change
- If more context is needed, add a blank line followed by a commit body with further clarifications
Important Notes
- Always use
flag to sign commits with GPG-S - Be specific but concise
- No need for issue numbers unless critical
- Avoid generic messages like "fix bug" or "update code"
- Never commit sensitive data: secrets, private keys, API keys, tokens, .env files, wallet private keys, seed phrases, mnemonics, keystore files, or any credentials
References
Based on: https://chris.beams.io/git-commit