Skip to content
Back to skills

Github Commit

ASecurity

Create a well-formatted git commit following best practices

  • 57 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added May 31, 2026
code-qualitygitapi

Works with

  • api

Security analysis

A100/100

Scanned May 31, 2026

npx -y skills add diegosouzapw/awesome-omni-skill --skill github-commit --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Github Commit?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Github Commit
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/diegosouzapw-github-commit/badge)](https://www.skillsdirectory.com/skills/diegosouzapw-github-commit)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
model: sonnet
name: github-commit
description: Create a well-formatted git commit following best practices
---

# Git Commit Skill

When this skill is invoked, create a git commit following these steps:

## Instructions

1. **Check git status** to see what files are staged/unstaged
2. **Review the changes** using `git diff` (or `git diff --staged` if files are already staged)
3. **Verify no sensitive data** is being committed (secrets, private keys, API keys, tokens, credentials)
4. **Stage files if needed** with `git add`
5. **Create the commit** using `git commit -S` to sign the commit

## Commit Message Guidelines

Follow these seven rules for great commit messages:

1. **Separate subject from body with a blank line**
2. **Limit the subject line to 50 characters**
3. **Capitalize the subject line**
4. **Do not end the subject line with a period**
5. **Use the imperative mood in the subject line** (e.g., "Add feature" not "Added feature")
6. **Wrap the body at 72 characters**
7. **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 `-S` flag to sign commits with GPG
- 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>

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.