Git Commit Helper
Analyze staged changes and create a well-formatted conventional commit message. Supports dry-run mode to preview the commit without executing it.
Parameters
| Parameter | Required | Description |
|-----------|----------|-------------|
| message | No | Commit message (auto-generated if omitted) |
| scope | No | Scope to add, e.g. "auth" -> feat(auth): ... |
| body | No | Extended commit body text |
| dryRun | No | Set to true to preview without committing |
Conventional Commit Types
feat:— New featurefix:— Bug fixdocs:— Documentation onlystyle:— Code style (formatting, semicolons)refactor:— Code change that neither fixes nor addstest:— Adding or updating testschore:— Build, tooling, or maintenance
Examples
Preview a commit (dry run)
bash config/skills/agent/git-commit-helper/execute.sh '{"message":"feat: add user login","dryRun":true}'
Commit with scope
bash config/skills/agent/git-commit-helper/execute.sh '{"message":"fix: resolve null pointer","scope":"api"}'
Auto-generate message from staged changes
bash config/skills/agent/git-commit-helper/execute.sh '{"dryRun":true}'
Output
JSON with commit result:
{"success": true, "message": "feat(auth): add login", "commitHash": "abc1234"}
Dry run output:
{"dryRun": true, "message": "feat: add login", "stagedChanges": "...stat output..."}