About commit
A skill for creating focused Git commits with conventional commit messages. It guides developers through reviewing changes, staging only relevant files, and checking the resulting commit.
Key features
- 01Review status and diff
- 02Stage files individually
- 03Use conventional commit format
- 04Keep messages single-line and under 72 characters
- 05Verify commit completion
Use cases
- 01Commit a focused code change
- 02Avoid staging unrelated files
- 03Match a repository's recent commit style
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ windmill-labs/ windmill --skill commitAfter installing, type/commitin Claude Code to confirm it loaded.
Details
From the project READMEGit Commit Skill
Create a focused, single-line commit following conventional commit conventions.
Instructions
- Analyze changes: Run
git statusandgit diffto understand what was modified - Stage only modified files: Add files individually by name. NEVER use
git add -Aorgit add . - Write commit message: Follow the conventional commit format as a single line
Conventional Commit Format
<type>: <description>
Types
feat: New feature or capabilityfix: Bug fixrefactor: Code change that neither fixes a bug nor adds a featuredocs: Documentation only changesstyle: Formatting, missing semicolons, etc (no code change)test: Adding or correcting testschore: Maintenance tasks, dependency updates, etcperf: Performance improvement
Rules
- Message MUST be a single line (no multi-line messages)
- Description should be lowercase, imperative mood ("add" not "added")
- No period at the end
- Keep under 72 characters total
Examples
feat: add token usage tracking for AI providers
fix: resolve null pointer in job executor
refactor: extract common validation logic
docs: update API endpoint documentation
chore: upgrade sqlx to 0.7
Execution Steps
- Run
git statusto see all changes - Run
git diffto understand the changes in detail - Run
git log --oneline -5to see recent commit style - Stage ONLY the modified/relevant files:
git add <file1> <file2> ... - Create the commit with conventional format:
git commit -m "<type>: <description>" - Run
git statusto verify the commit succeeded
Comments
Markdown supported