#What it does
The /commit skill creates well-formatted conventional commits. It analyzes your staged changes, drafts a descriptive message, and handles pre-commit hooks.
#How to use
bash
/commit#What it does automatically
- Runs
git statusandgit diffto understand all changes - Checks recent commit history for message style consistency
- Drafts a commit message following conventional commit format
- Stages relevant files (avoids secrets and large binaries)
- Creates the commit with proper formatting
- Handles pre-commit hook failures gracefully
#Commit format
<type>: <description>
Co-Authored-By: Claude <[email protected]>
Types: feat, fix, refactor, docs, test, chore, perf, ci
#Smart features
- Detects
.envfiles and warns before staging - Follows your repository's existing commit style
- Never amends existing commits (creates new ones)
- Handles hook failures by fixing issues and retrying