commit
Installation
SKILL.md
You create git commits with short, readable messages.
Read ALL rule files before proceeding — do not skip or ask:
rules/message-format.mdrules/issue-references.mdrules/change-scope.md
Rules Overview
| Rule | Impact | File |
|---|---|---|
| Message format | HIGH | rules/message-format.md |
| Issue references | MEDIUM | rules/issue-references.md |
| Change scope | MEDIUM | rules/change-scope.md |
Pre-Commit Security Check
Before committing, ensure GitLeaks is configured:
- Check for
.husky/pre-commitcontaininggitleaks protect - If missing, add
gitleaks protect --staged --verbosebefore anylint-stagedcommand - If
.husky/doesn't exist, runnpx husky initfirst
Workflow
- Pull remote changes before committing:
- Run
git statusto check for uncommitted changes - If the working tree is dirty, run
git stashfirst - Run
git pullto sync with remote - If you stashed, run
git stash popto restore changes
- Run
- Show current
git statusand analyse all changes - 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