quick-commit
Create a git commit with a short message (up to 50 characters). Use when the user asks to commit changes with a short/concise message.
When & Why to Use This Skill
The Quick Commit skill streamlines the version control workflow by automatically generating and executing concise Git commits. It intelligently analyzes staged changes and repository history to draft professional, 50-character messages that adhere to project-specific patterns, ensuring a clean, readable, and standardized commit log for better codebase maintainability.
Use Cases
- Rapidly committing small bug fixes or incremental feature updates without manually drafting repetitive commit messages.
- Maintaining a consistent commit style and tense (e.g., present tense) across a collaborative project to improve repository legibility.
- Standardizing AI-assisted development workflows by automatically appending required metadata, footers, and co-author attribution to every commit.
- Ensuring commit messages stay within the recommended 50-character limit for optimal display in Git management tools and CLI logs.
| name | quick-commit |
|---|---|
| description | Create a git commit with a short message (up to 50 characters). Use when the user asks to commit changes with a short/concise message. |
| allowed-tools | Bash |
Quick Commit Skill
This skill helps create git commits with short, concise messages (up to 50 characters).
Instructions
When the user asks to commit changes with a short message:
- Review Changes: Run
git statusandgit diffin parallel to see what changes exist - Review Commit History: Run
git log -5 --onelineto see recent commit message style - Draft Message: Create a concise commit message that:
- Is 50 characters or less
- Uses present tense ("Add" not "Added")
- Describes what the change does
- Follows the project's commit message patterns
- Commit: Add files and commit using the heredoc format:
git add <files> && git commit -m "$(cat <<'EOF' Your commit message here. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> EOF )" - Verify: Run
git statusto confirm the commit succeeded
Examples
Common patterns for this codebase:
- "Nalog za prevoz - [feature]"
- "Add [feature] to [component]"
- "Fix [issue] in [module]"
- "Update [entity] with [property]"
Important Notes
- Always include the Claude Code footer in commits
- Keep the main message under 50 characters
- Follow existing commit message patterns in the project