commit
Format, test, then commit with a conventional commit message
SKILL.md.claude/skills/commit/SKILL.md
GitHub/commit
Context
!git diff --stat
!git diff --cached --stat
!git status --short
Instructions
Format - auto-format staged
.phelfiles (no-op on non-Phel changes):git diff --cached --name-only --diff-filter=ACMR | grep '\.phel$' | xargs -r vendor/bin/phel formatNote: a PostToolUse hook already runs
vendor/bin/phel formaton every Edit/Write - this step covers files staged from other tools.Test:
composer testFix failures before continuing.
Stage specific files by name (never
git add -A).Draft commit message:
- Use
$ARGUMENTSif given, else generate from the diff. - Conventional commit prefixes:
feat:,fix:,ref:,chore:,docs:,test:,ci:. - Scope only when clearly scoped (
feat(statement),fix(connection)). - Never mention AI tooling.
- Use
Commit:
git commit -m "<message>".Changelog check - if
feat:/fix:, warn when## [Unreleased]inCHANGELOG.mdwasn't updated.Report hash + files.