
Commits
- 169 installs
- 22 repo stars
- Updated August 1, 2026
- itechmeat/llm-code
Draft conventional, review-ready git commits with clear scopes and messages so changes ship in atomic, bisect-friendly history instead of messy bulk commits.
About
Guides agents to author conventional, atomic git commits with clear scopes and descriptive messages so code review, bisect, and release notes stay clean across SaaS, API, and CLI repositories.
- Conventional commit message formatting
- Atomic scoped changesets
- Review-friendly git history
- Clear subject and body structure
- Bisect-friendly changelog prep
Commits by the numbers
- 169 all-time installs (skills.sh)
- Ranked #187 of 733 Git & Pull Requests skills by installs in the Skillselion catalog
- Data as of Aug 2, 2026 (Skillselion catalog sync)
npx skills add https://github.com/itechmeat/llm-code --skill commitsAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 169 |
|---|---|
| repo stars | ★ 22 |
| Last updated | August 1, 2026 |
| Repository | itechmeat/llm-code ↗ |
What it does
Draft conventional, review-ready git commits with clear scopes and messages so changes ship in atomic, bisect-friendly history instead of messy bulk commits.
Files
Conventional Commits
Specification for structured commit messages that enable automated changelog generation and semantic versioning.
Quick Reference
Format
<type>[optional scope]: <description>
[optional body]
[optional footer(s)]Common Types
| Type | Purpose | SemVer |
|---|---|---|
feat | New feature | MINOR |
fix | Bug fix | PATCH |
docs | Documentation only | - |
style | Formatting, no code change | - |
refactor | Code change, no feature/fix | - |
perf | Performance improvement | - |
test | Adding/fixing tests | - |
build | Build system, dependencies | - |
ci | CI configuration | - |
chore | Maintenance tasks | - |
revert | Revert previous commit | - |
Breaking Changes
feat!: send email when product shipped
feat(api)!: change response format
chore!: drop support for Node 6
BREAKING CHANGE: use JavaScript features not available in Node 6.Examples
Simple Commits
feat: add user authentication
fix: resolve memory leak in cache
docs: update API documentation
style: format code with prettier
refactor: extract validation logic
perf: optimize database queries
test: add unit tests for auth module
build: upgrade webpack to v5
ci: add GitHub Actions workflow
chore: update dependenciesWith Scope
feat(auth): add OAuth2 support
fix(parser): handle empty arrays
docs(readme): add installation guide
refactor(api): simplify error handlingWith Body
fix: prevent request racing
Introduce a request id and reference to latest request.
Dismiss incoming responses other than from latest request.
Remove timeouts which were used to mitigate the racing issue
but are obsolete now.With Footer
fix: correct minor typos in code
Reviewed-by: John Doe
Refs: #123Breaking Change in Footer
feat: allow config object to extend other configs
BREAKING CHANGE: `extends` key in config file is now used
for extending other config files.Breaking Change with ! and Footer
chore!: drop support for Node 6
BREAKING CHANGE: use JavaScript features not available in Node 6.Revert Commit
revert: let us never again speak of the noodle incident
Refs: 676104e, a215868Specification Rules
MUST
1. Commits MUST be prefixed with a type (feat, fix, etc.) 2. Type MUST be followed by colon and space 3. Description MUST immediately follow the colon and space 4. feat MUST be used for new features 5. fix MUST be used for bug fixes 6. Breaking changes MUST be indicated by ! before : OR BREAKING CHANGE: footer 7. BREAKING CHANGE MUST be uppercase 8. Footer token MUST use - instead of spaces (e.g., Reviewed-by)
MAY
1. Scope MAY be provided after type: feat(parser): 2. Body MAY be provided after description (blank line between) 3. Footer MAY be provided after body (blank line between) 4. Types other than feat and fix MAY be used 5. ! MAY be used with BREAKING CHANGE: footer
Case Sensitivity
- Types: case-insensitive (lowercase recommended for consistency)
BREAKING CHANGE: MUST be uppercaseBREAKING-CHANGE: synonym forBREAKING CHANGE
SemVer Mapping
| Commit Type | SemVer Bump | Version Change |
|---|---|---|
fix: | PATCH | 1.0.0 → 1.0.1 |
feat: | MINOR | 1.0.0 → 1.1.0 |
BREAKING CHANGE or ! | MAJOR | 1.0.0 → 2.0.0 |
Breaking changes override type — fix!: results in MAJOR bump.
Changelog Integration
Conventional Commits map directly to changelog entries:
| Commit Type | Changelog Section |
|---|---|
feat | Added |
fix | Fixed |
perf | Changed |
refactor | Changed |
docs | (usually omitted or Changed) |
BREAKING CHANGE | Highlight in Changed/Removed |
revert | Removed or Fixed |
| Security fixes | Security |
Automated Changelog Generation
Tools like conventional-changelog, semantic-release, or release-please can:
- Parse commit messages
- Generate CHANGELOG.md entries
- Determine next version number
- Create releases automatically
See changelog skill for CHANGELOG.md format.
Common Patterns
Feature Development
git commit -m "feat(users): add profile page"
git commit -m "feat(users): add avatar upload"
git commit -m "test(users): add profile page tests"
git commit -m "docs(users): document profile API"Bug Fix with Reference
git commit -m "fix(auth): resolve session timeout (#142)"Breaking Change Flow
# Deprecate first
git commit -m "feat(api): add v2 endpoint
DEPRECATED: /api/v1/users will be removed in next major version"
# Later, remove
git commit -m "feat(api)!: remove v1 endpoints
BREAKING CHANGE: /api/v1/* endpoints have been removed.
Use /api/v2/* instead."FAQ
What if commit fits multiple types?
Split into multiple commits when possible. This makes history more organized.
What if I used wrong type?
Before merge: git rebase -i to edit history. After release: not critical — commit will be missed by automated tools.
Do all contributors need to use this?
No. Use squash merging and maintainers can write proper message for the merge.
How to handle reverts?
revert: <original commit subject>
Refs: <commit SHA>Git Configuration
Commit Template
Set up git to use template:
git config commit.template .gitmessageSee assets/commit-msg.template for template file.
Pre-commit Validation
Use assets/validate-commit-msg.sh with git hooks or CI.
Tools
| Tool | Purpose |
|---|---|
| commitlint | Lint commit messages |
| commitizen | Interactive commit helper |
| conventional-changelog | Generate changelogs |
| semantic-release | Automated releases |
| release-please | GitHub release automation |
Critical Prohibitions
- Do not use vague messages ("fix stuff", "update", "wip")
- Do not mix unrelated changes in single commit
- Do not omit breaking change indicators
- Do not use non-standard types without team agreement
- Do not forget blank line between description and body
Agent Workflow for Commit Messages
MANDATORY: Before proposing branch name, commit message, or PR description, the agent MUST:
1. Check all changed files using git status or git diff --name-only 2. Review actual changes using git diff (staged and unstaged) 3. Analyze ALL modifications — not just the files mentioned in conversation 4. Base proposals on complete changeset — include all affected files, not partial list
Workflow Steps
# Step 1: Get list of all changed files
git status --short
# Step 2: Review actual changes (for unstaged)
git diff
# Step 3: Review staged changes
git diff --staged
# Step 4: Use the complete changeset to propose:
# - Branch name
# - Commit message
# - PR descriptionOutput Format
When user asks for commit message, provide:
1. Branch name options (3 variants using conventional prefixes) 2. Commit message variants (short/medium/detailed) 3. PR description (summarized, not duplicating full changelog)
All proposals MUST be based on the actual git diff output, not assumptions.
Links
- Official specification: https://www.conventionalcommits.org/en/v1.0.0/
- Semantic Versioning: https://semver.org/spec/v2.0.0.html
- Related: changelog skill — CHANGELOG.md format
Templates
- commit-msg.template — Git commit message template
- validate-commit-msg.sh — Validation script
# <type>(<scope>): <subject>
# |<---- Using a maximum of 50 characters ---->|
# Explain why this change is being made
# |<---- Try to limit each line to 72 characters ---->|
# Provide links or keys to any relevant tickets, articles, or resources
# Example: Refs: #123, #456
# --- COMMIT END ---
# Type can be:
# feat - new feature (MINOR in SemVer)
# fix - bug fix (PATCH in SemVer)
# docs - documentation only changes
# style - formatting, missing semicolons, etc; no code change
# refactor - code change that neither fixes a bug nor adds a feature
# perf - code change that improves performance
# test - adding missing tests or correcting existing tests
# build - changes to build system or external dependencies
# ci - changes to CI configuration files and scripts
# chore - other changes that don't modify src or test files
# revert - reverts a previous commit
# --------------------
# Breaking changes:
# Add ! after type/scope: feat!: or feat(api)!:
# Or add footer: BREAKING CHANGE: description
# --------------------
# Scope is optional and represents the module affected (auth, api, ui, etc.)
# --------------------
# Remember:
# - Capitalize the subject line
# - Use imperative mood: "Add feature" not "Added feature"
# - Do not end the subject line with a period
# - Separate subject from body with a blank line
# - Use the body to explain what and why, not how
# --------------------
# For more information: https://www.conventionalcommits.org/
#!/usr/bin/env bash
# validate-commit-msg.sh - Validate commit message against Conventional Commits
#
# Usage:
# ./validate-commit-msg.sh "feat(auth): add login"
# ./validate-commit-msg.sh < .git/COMMIT_EDITMSG
# echo "fix: bug" | ./validate-commit-msg.sh
#
# Exit codes:
# 0 - Valid commit message
# 1 - Invalid commit message
set -euo pipefail
# Read commit message from argument or stdin
if [[ $# -gt 0 ]]; then
COMMIT_MSG="$1"
else
COMMIT_MSG=$(cat)
fi
# Get first line (subject)
SUBJECT=$(echo "$COMMIT_MSG" | head -n1)
# Conventional Commits pattern
# type(scope)!: description
# type!: description
# type(scope): description
# type: description
PATTERN='^(feat|fix|docs|style|refactor|perf|test|build|ci|chore|revert)(\([a-zA-Z0-9_-]+\))?(!)?: .+$'
# Check if subject matches pattern
if [[ ! "$SUBJECT" =~ $PATTERN ]]; then
echo "ERROR: Invalid commit message format" >&2
echo "" >&2
echo "Subject: $SUBJECT" >&2
echo "" >&2
echo "Expected format: <type>(<scope>): <description>" >&2
echo "" >&2
echo "Valid types:" >&2
echo " feat, fix, docs, style, refactor, perf, test, build, ci, chore, revert" >&2
echo "" >&2
echo "Examples:" >&2
echo " feat: add user authentication" >&2
echo " fix(parser): handle empty arrays" >&2
echo " feat!: breaking change" >&2
echo " feat(api)!: breaking API change" >&2
echo "" >&2
echo "See: https://www.conventionalcommits.org/" >&2
exit 1
fi
# Check subject length (50 chars recommended, 72 max)
SUBJECT_LENGTH=${#SUBJECT}
if [[ $SUBJECT_LENGTH -gt 72 ]]; then
echo "WARNING: Subject line is $SUBJECT_LENGTH characters (max 72 recommended)" >&2
fi
# Check for period at end of subject
if [[ "$SUBJECT" =~ \\.$ ]]; then
echo "WARNING: Subject line should not end with a period" >&2
fi
# Check for BREAKING CHANGE in body/footer
if echo "$COMMIT_MSG" | grep -q "^BREAKING CHANGE:"; then
echo "INFO: Breaking change detected in footer" >&2
fi
echo "OK: Valid commit message" >&2
exit 0