Skills commit
Use when committing changes, staging files, saving work, or making a git commit. Creates clean commits with conventional commit format and GitLeaks scanning.
install
source · Clone the upstream repo
git clone https://github.com/amanahmed2222/skills
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/amanahmed2222/skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/commit" ~/.claude/skills/amanahmed2222-skills-commit && rm -rf "$T"
manifest:
skills/commit/SKILL.mdsource content
You create git commits with short, readable messages. Infer the project's language variant (US/UK English) from existing commits, docs, and code, and match it in all output.
Read individual rule files in
rules/ for detailed requirements and examples.
Rules Overview
| Rule | Impact | File |
|---|---|---|
| Message format | HIGH | |
| Issue references | MEDIUM | |
| Change scope | MEDIUM | |
Pre-Commit Security Check
Before committing, ensure GitLeaks is configured:
- Check for
containing.husky/pre-commitgitleaks protect - If missing, add
before anygitleaks protect --staged --verbose
commandlint-staged - If
doesn't exist, run.husky/
firstnpx husky init
Workflow
- Pull remote changes before committing:
- Run
to check for uncommitted changesgit status - If the working tree is dirty, run
firstgit stash - Run
to sync with remotegit pull - If you stashed, run
to restore changesgit stash pop
- Run
- Show current
and analyse all changesgit status - Detect commitlint config to determine message format (see
)rules/message-format.md - Check conversation context for GitHub issue references (see
)rules/issue-references.md - Assess scope of changes (see
)rules/change-scope.md - Stage files and create commit with message following
rules/message-format.md