Git Commit Helper (No Scope)
Generate conventional commit messages without a scope.
When to use this skill
- The user asks for a commit message
- Staged changes exist
- The user is about to run
git commit - The user mentions conventional or semantic commits
Workflow
- Review staged files and the staged diff.
- Identify the primary change type and any breaking changes.
- Draft a commit message using the format below.
- Provide a short rationale and ask if the user wants adjustments.
Commit format (no scope)
<type>: <subject>
<body>
<footer>
Types
feat: New featurefix: Bug fixdocs: Documentation changesstyle: Formatting only (no logic change)refactor: Code restructuring without behavior changeperf: Performance improvementstest: Test additions or fixesbuild: Build system or tooling changesci: CI/CD pipeline changeschore: Maintenance tasks
Subject checklist
- Imperative mood ("add", "fix", "update")
- 50-72 characters max
- No trailing period
- Describes what and why, not how
- Lowercase after the type
Breaking changes
If the change is breaking, include a footer:
BREAKING CHANGE: <what changed and how to migrate>
Examples
Feature
feat: add jwt authentication for api requests
- implement token validation middleware
- add login and refresh endpoints
Closes #42
Fix
fix: prevent memory leak in user list
Clean up subscriptions when the component unmounts.
Refactor
refactor: extract repository layer for database access
No functional changes. Improves testability and separation.
Breaking change
feat: update user api response structure
BREAKING CHANGE: response is now { data, metadata }.
Output expectations
- Provide the recommended commit message in full.
- Explain the chosen type and any breaking change rationale.