Install
openclaw skills install git-commit-templateStandardized Git commit message templates using changelog-style categories. Use when creating Git commits with structured format - Added (new features), Chan...
openclaw skills install git-commit-templateCreate structured, changelog-style Git commit messages using five standard categories. This ensures consistent, searchable, and maintainable commit history across projects.
All commits follow this format:
[Type] Short descriptive title (under 72 chars)
Optional body with detailed explanation, implementation notes,
breaking changes, or migration instructions.
For new features, functionality, or capabilities.
git commit -m "[Added] user authentication with JWT" -m "Implemented JWT-based auth with login/logout endpoints and token refresh"
For changes in existing functionality, refactoring, or improvements.
git commit -m "[Changed] improved database query performance" -m "Added composite indexes, reduced query time from 250ms to 15ms"
For features that will be removed in future releases.
git commit -m "[Deprecated] legacy API v1 endpoints" -m "Will be removed in v3.0. Migration guide: docs/migration.md"
For removed features, code, or dependencies.
git commit -m "[Removed] support for Python 3.7" -m "Minimum version now 3.8. Updated CI/CD and docs."
For bug fixes and error corrections.
git commit -m "[Fixed] memory leak in WebSocket handler" -m "Fixed unclosed connections causing unbounded memory growth. Closes #1234"
Use the bundled Python script for guided commit creation:
python scripts/commit.py
The script will:
For quick commits:
# Title only
python scripts/commit.py Added "user profile page"
# Title with body
python scripts/commit.py Fixed "login timeout" "Increased session timeout from 5 to 15 minutes"
Standard git workflow with template:
# Stage changes
git add src/auth.py tests/test_auth.py
# Commit with template
git commit -m "[Added] two-factor authentication" \
-m "Implemented TOTP-based 2FA with QR code generation and backup codes"
Added: New endpoints, features, files, tests, documentation sections Changed: Refactoring, performance improvements, API modifications, dependency updates Deprecated: Marking features for future removal, providing migration paths Removed: Deleting features, dropping support, removing dependencies Fixed: Bug fixes, error corrections, security patches
Always call out breaking changes:
[Changed] restructured API response format
BREAKING CHANGE: Response structure modified.
Old: { "user": {...} }
New: { "data": {...}, "meta": {...} }
Migration: Access response.data instead of response.user
Group related changes in one commit with bullet points:
[Added] comprehensive logging system
- Structured logging with context
- Log rotation and archival
- Monitoring dashboard integration
- Performance metrics collection
Be cautious with details:
[Fixed] authentication bypass vulnerability
Fixed token validation issue. Details withheld per responsible
disclosure. See security advisory SA-2024-001.
The helper script automatically:
Compatible with standard git hooks (pre-commit, commit-msg, etc.):
# Use --no-verify to skip hooks if needed
python scripts/commit.py Fixed "urgent hotfix" --no-verify
The structured format makes history searchable:
# Find all new features
git log --oneline --grep="^\[Added\]"
# Find all bug fixes
git log --oneline --grep="^\[Fixed\]"
# Generate changelog
git log --oneline --grep="^\[Added\]\|^\[Changed\]\|^\[Fixed\]"
For comprehensive examples, best practices, and anti-patterns, see:
The scripts/commit.py helper provides: