.claude/skills/commit/SKILL.md
Stage and commit changes using conventional commits format
npx skillsauth add TypedDevs/bashunit commitInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Stage and commit current changes using the conventional commits format.
IMPORTANT: This skill MUST be used for ALL commits — even when the user says "commit" without
/commit. Never commit without following these steps.
git branch --show-currentgit status --shortgit diff --cached --stat 2>/dev/nullgit diff --stat 2>/dev/nullgit log --oneline -5 2>/dev/null$ARGUMENTS - Optional hint for the commit message (e.g., fix the snapshot comparison)Review the state above — understand what changed and why.
Stage files — add only the relevant changed files by name. Never use git add -A or git add .. Never stage files that contain secrets (.env, credentials, etc.).
Determine the commit type from the nature of the changes:
feat — new feature or capabilityfix — bug fixdocs — documentation onlystyle — formatting, whitespace (no logic change)refactor — code restructuring (no behavior change)test — adding or updating testschore — maintenance, tooling, configperf — performance improvementDetermine the scope from the area of the codebase affected:
assert — assertions (src/assert*.sh)runner — test runnercli — CLI entry point, flags, optionsdoubles — mocks, spiesdocs — documentation siteci — CI/CD, GitHub ActionsWrite the commit message:
<type>(<scope>): <description>Create the commit:
git commit -m "$(cat <<'EOF'
<type>(<scope>): <description>
<optional body>
EOF
)"
Verify the commit was created:
git log --oneline -1
feat(assert): add assert_json_contains function
fix(runner): resolve parallel execution race condition
test(doubles): add spy verification edge cases
refactor(cli): extract option parsing into helper
docs: update installation instructions
chore(ci): upgrade shellcheck to v0.10
perf(runner): reduce subshell usage in test discovery
--no-verify — if hooks fail, fix the issuedevelopment
Run complete TDD red-green-refactor cycle for a test
tools
Run pre-release validation and execute the release process
testing
Run comprehensive pre-release validation checklist
testing
Push branch and create a GitHub PR with concise, issue-linked description