Use when adding new error messages to React, or seeing "unknown error code" warnings.
npx skills add christianearle01/claude-config-template --skill "commit-readiness-checker"
Install specific skill from multi-skill repository
# Description
Validates all release criteria are met before git commit. Auto-activates when users ask if they're ready to commit, what's missing, or request commit validation. Checks version bumped, changelog updated, docs synced, git status, and drafts commit message.
# SKILL.md
name: commit-readiness-checker
description: Validates all release criteria are met before git commit. Auto-activates when users ask if they're ready to commit, what's missing, or request commit validation. Checks version bumped, changelog updated, docs synced, git status, and drafts commit message.
allowed-tools: Read, Bash, Grep
Commit Readiness Checker Skill
Purpose & Activation
What it does: Validates all release prerequisites are met before committing, eliminating pre-commit anxiety and preventing incomplete releases.
When it activates automatically:
- "Am I ready to commit?"
- "Can I commit now?"
- "What's missing before commit?"
- "Check if ready for commit"
- "Validate release readiness"
- "Is everything done for the release?"
How it helps:
- Eliminates pre-commit anxiety ("Did I forget something?")
- Validates all release checklist items
- Prevents incomplete commits
- Drafts commit messages automatically
- Suggests next steps
JIT Help Available:
For quick reference on pre-commit workflow and troubleshooting, see: Cheat Sheet
- 5 most common validation queries (90% usage)
- Pre-commit workflow (6 steps, 5 minutes)
- Common blocker patterns with fix commands
- Commit message template
- Quick decision tree
- Semantic versioning guide
Release Checklist Criteria
Critical (Must Pass)
1. Version Bumped
- version.json updated with new version
- Semantic versioning correct (MAJOR.MINOR.PATCH)
2. CHANGELOG Updated
- New version entry added
- Features documented
- Changes explained
- Token impact noted (if applicable)
3. Files Synced
- sync-version.sh executed successfully
- All version references updated (CLAUDE.md, README, SETUP_CONTEXT)
4. Git Status Clean
- No untracked files in critical paths
- No unstaged changes (or all changes intentional)
Recommended (Should Pass)
5. Documentation Updated
- Skills documented (if new skills added)
- README updated (if features changed)
- QUICK_REFERENCE updated (if new features)
6. Examples/Templates Updated
- Templates match new version (if changed)
- Examples reflect new features (if applicable)
Key Operations
Operation 1: Full Readiness Check
User Query:
"Am I ready to commit?"
Confidence: π’ High (0.94)
- Comprehensive validation checklist (critical + recommended checks)
- Deterministic pass/fail for each criterion
- Generates ready-to-use commit message
Skill Response (All Pass):
β
Release Readiness: READY TO COMMIT
Critical Checks:
β
Version bumped (3.3.0 β 3.4.0)
β
CHANGELOG updated (v3.4.0 entry present)
β
Files synced (7 locations verified)
β
Git status clean (all changes staged)
Recommended Checks:
β
Skills documented (7 new skills)
β
README updated
β
QUICK_REFERENCE updated
All checks passed! β¨
Next step: Review commit message below, then commit.
Suggested commit message:
---
π Release v3.4.0: Workflow Optimization & Learning Stages
Features:
- Add 7 workflow & setup optimization skills
- Create Learning Stages documentation
- Establish progression path (Beginner β Advanced)
- Reduce commands from 5 to 3
Skills added:
- version-management (maintainer workflow)
- commit-readiness-checker (release validation)
- documentation-sync-checker (consistency)
- workflow-analyzer (git-based meta-skill)
- skill-template-generator (accelerate creation)
- global-setup-assistant (user onboarding)
- project-onboarding-assistant (project setup)
Learning Stages:
- Explicit progression documentation
- Commands graduation guide
- remove-commands.sh script
Token impact: 80,000 tokens/month saved (~$2.40/month, projected)
Documentation updates:
- LEARNING_STAGES.md created
- Commands reduced (5 β 3)
- All skills documented
Version synced: v3.4.0
π€ Generated with Claude Code (https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
---
Execute:
git commit -F /tmp/commit-message.txt
git tag v3.4.0
Why This Matters:
- Forgotten CHANGELOG = user confusion about what's new
- Unsynced files = broken links and version mismatches
- Complete validation prevents "oops forgot X" post-commit fixes
- Quick win: All green! Copy commit message and execute now
Next Step: After commit, run git tag v3.4.0 to mark release
Skill Response (Some Failures):
β οΈ Release Readiness: NOT READY
Critical Checks:
β
Version bumped (3.3.0 β 3.4.0)
β CHANGELOG updated
Missing: v3.4.0 entry in CHANGELOG.md
Action: Add after line 8 (## [Unreleased])
β
Files synced (7 locations verified)
β Git status clean
Issue: Untracked files detected
Files: .claude/skills/new-skill/ (not staged)
Recommended Checks:
β
Skills documented
β οΈ README updated (partially)
Note: README feature list may need update
BLOCKED: Fix 2 critical issues before committing.
Next steps:
1. Update CHANGELOG.md with v3.4.0 entry
2. Stage untracked files: git add .claude/skills/new-skill/
3. Re-check: Ask "Am I ready to commit?"
Operation 2: Quick Status Check
User Query:
"What's missing before commit?"
Confidence: π’ High (0.91)
- Focused on blockers only (not full validation)
- Quick scan of critical items
- Actionable fix instructions
Skill Response:
Commit Blockers: 1 critical issue
β CHANGELOG.md not updated
Current: Last entry is v3.3.0
Expected: v3.4.0 entry with features list
Fix:
1. Edit CHANGELOG.md
2. Add entry after ## [Unreleased]:
## [3.4.0] - 2025-12-13
### Added - Workflow Optimization & Learning Stages
[Document features here]
Once fixed, ask: "Am I ready to commit?"
Why This Matters:
- Quick blocker identification saves time (no full validation when blocked)
- Specific line numbers + actions = fast fixes (no hunting)
- Prevents wasted commit attempts ("oops, forgot to stage")
- Quick win: Fix CHANGELOG.md now with provided template
Next Step: After fixing, re-run "Am I ready to commit?" for full validation
Operation 3: Draft Commit Message
User Query:
"Draft commit message for v3.4.0"
Confidence: π’ High (0.89)
- CHANGELOG provides feature list
- version.json provides release name
- Template ensures consistent formatting
Skill Response:
Commit Message for v3.4.0:
Based on CHANGELOG and version.json...
---
π Release v3.4.0: Workflow Optimization & Learning Stages
Features:
- 7 new skills (workflow + setup optimization)
- Learning Stages documentation
- Commands reduction (5 β 3)
[Full message with all features, skills, token impact]
π€ Generated with Claude Code
Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
---
Copy this message or save to file:
echo "[message]" > /tmp/commit-msg.txt
git commit -F /tmp/commit-msg.txt
Why This Matters:
- Consistent commit messages improve git history readability
- Comprehensive messages help users understand releases
- Template includes Co-Authored-By for transparency
- Quick win: Copy message, save time writing from scratch
Next Step: Save to file or use directly: git commit -m "..."
Operation 4: Git Status Interpretation
User Query:
"Check git status before commit"
Confidence: π’ High (0.92)
- Git status parsing is deterministic
- Clear categorization (staged/unstaged/untracked)
- Identifies accidental modifications
Skill Response:
Git Status Analysis:
Modified files (staged):
β
version.json (3.3.0 β 3.4.0)
β
CHANGELOG.md (v3.4.0 entry added)
β
CLAUDE.md (version synced)
β
README.md (version synced)
β
SETUP_CONTEXT.md (version synced)
New files (staged):
β
.claude/skills/version-management/SKILL.md
β
.claude/skills/commit-readiness-checker/SKILL.md
β
docs/00-start-here/12_learning-stages.md
[... 10 more files]
Untracked files:
(none - all clean!)
Status: β
Safe to commit
All changes are intentional and staged.
No accidental modifications detected.
Why This Matters:
- Untracked files = forgotten features (incomplete release)
- Unstaged files = partial commit (broken state)
- Status interpretation prevents accidental inclusions/exclusions
- Quick win: All staged = ready to commit safely
Next Step: Proceed with commit, or ask "Am I ready to commit?" for full validation
Operation 5: Pre-Commit Validation (Detailed)
User Query:
"Validate everything before commit"
Confidence: π’ High (0.96)
- Most comprehensive validation (6 categories)
- All checks deterministic (no ambiguity)
- 100% confidence when all pass
Skill Response:
π Detailed Pre-Commit Validation
1. VERSION CHECK β
version.json: 3.4.0
CLAUDE.md: v3.4.0
README.md (3 locations): v3.4.0
SETUP_CONTEXT.md (2 locations): v3.4.0
All synced!
2. CHANGELOG CHECK β
Entry exists: ## [3.4.0] - 2025-12-13
Features documented: Yes (7 skills + Learning Stages)
Token impact noted: Yes (~80,000 tokens/month)
Projections marked: Yes (β οΈ projections noted)
3. DOCUMENTATION CHECK β
New skills documented: 7/7
LEARNING_STAGES.md: Created β
02_skills-paradigm.md: Updated β
QUICK_REFERENCE.md: Updated β
4. FILES CHECK β
New skills: 7 directories created
Learning Stages: 1 MD file + 1 script
Commands reduced: Yes (5 β 3)
5. GIT STATUS β
Staged: 18 files
Untracked: 0 files
Unstaged: 0 files
6. SEMANTIC VERSIONING β
Previous: 3.3.0
Current: 3.4.0
Type: MINOR (new features)
Correct: Yes β
All validations passed! π
Confidence level: 100% ready to commit
Suggested action:
git commit -m "π Release v3.4.0: Workflow Optimization & Learning Stages"
git tag v3.4.0
Why This Matters:
- 6-category validation catches edge cases single checks miss
- 100% confidence level = psychological safety to commit
- Detailed breakdown helps debug if something fails
- Quick win: All passed! Commit with full confidence now
Next Step: Execute commit + tag, then ask "Did the commit succeed?"
Integration with Release Workflow
Typical Commit Flow
Before Commit:
1. Make all changes (version bump, CHANGELOG, new features)
2. Run sync-version.sh
3. Ask skill: "Am I ready to commit?"
4. Fix any blockers identified
5. Ask skill: "Draft commit message"
6. Review message
7. Commit
Usage Pattern:
User: Completes feature work
User: Updates version.json
User: Runs sync-version.sh
User: "Am I ready to commit?"
Skill: Validates all criteria
Skill: Drafts commit message
User: Reviews and commits
Common Patterns
Pattern 1: Iterative Validation
User: (After fixing CHANGELOG)
"Am I ready to commit now?"
Skill:
Re-checking readiness...
Critical Checks:
β
Version bumped (was already done)
β
CHANGELOG updated (just fixed! β)
β
Files synced (was already done)
β
Git status clean (CHANGELOG now staged)
All blockers resolved! β¨
Status: READY TO COMMIT
[Provides commit message]
Pattern 2: First-Time Release Check
User: "What do I need before first commit?"
Skill:
First Release Checklist:
Not Started:
β Update version.json
β Run sync-version.sh
β Update CHANGELOG.md
β Stage all files (git add .)
Follow this order:
1. Update version.json (version, release_date, release_name)
2. Run: ./scripts/sync-version.sh
3. Update CHANGELOG.md with new entry
4. Stage: git add .
5. Ask me: "Am I ready to commit?"
Start with step 1!
Pattern 3: Post-Sync Validation
User: "I ran sync-version.sh, what now?"
Skill:
Post-Sync Status:
β
Completed:
- version.json updated
- Files synced (verified 7 locations)
β Remaining:
- CHANGELOG.md (needs v3.4.0 entry)
- Git staging (need to: git add .)
Progress: 50% complete
Next immediate step:
Update CHANGELOG.md with v3.4.0 entry
Then: git add .
Then: Ask "Am I ready to commit?"
Token Efficiency Analysis
β οΈ These are PROJECTIONS based on testing, not multi-user validation.
Without Skill (Current - 900 tokens per query)
Process:
1. User: "Am I ready to commit?" (50 tokens)
2. Claude: "Let me check several things..." (100 tokens)
3. Read version.json (100 tokens)
4. Read CHANGELOG.md (200 tokens)
5. Check git status (100 tokens)
6. Check multiple files for sync (200 tokens)
7. Format response and draft message (150 tokens)
Total: ~900 tokens
With Skill (Proposed - 300 tokens per query)
Process:
1. User: "Am I ready to commit?" (50 tokens)
2. Skill activates (50 tokens)
3. Run checklist validation (150 tokens)
4. Formatted response (50 tokens)
Total: ~300 tokens
Savings: 600 tokens per query (67% reduction)
Frequency Impact
Per Release (2 per week):
- Pre-commit check: 1 query
- Fix and re-check: 1 query
- Draft commit message: 1 query
- Total: 3 queries Γ 600 tokens = 1,800 tokens saved per release
Monthly (8 releases):
- 8 releases Γ 1,800 tokens = 14,400 tokens saved
- Cost savings: ~$0.43/month (at Claude pricing)
Quarterly:
- 24 releases Γ 1,800 tokens = 43,200 tokens saved
- Cost savings: ~$1.30/quarter
ROI: Pays for implementation cost (~500 tokens) after 1 release.
Troubleshooting
Issue: False Positive (Says ready but commit fails)
Symptom: Skill says "ready" but git commit fails
Cause: Git hooks, pre-commit scripts, or file permissions
Solution:
Skill checks standard criteria but cannot predict:
- Git hooks (pre-commit, commit-msg)
- File permission issues
- Git configuration problems
If commit fails after skill approval:
1. Check git hook output
2. Fix specific issue
3. Re-run commit
Issue: CHANGELOG Detection Fails
Symptom: Skill says CHANGELOG missing entry, but it exists
Cause: Format mismatch or unexpected structure
Solution:
CHANGELOG must have exact format:
## [3.4.0] - 2025-12-13
Check:
- Square brackets around version
- Dash separator
- YYYY-MM-DD date format
- Spacing matches pattern
Correct any format issues.
Issue: Git Status Shows Unexpected Files
Symptom: Skill reports untracked/modified files user didn't create
Cause: Auto-generated files, IDE configs, OS files
Solution:
Common culprits:
- .DS_Store (macOS)
- .vscode/ (VS Code)
- node_modules/ (npm)
- __pycache__/ (Python)
Check .gitignore includes these patterns.
If needed, update .gitignore before committing.
See Also
- version-management skill - Check version consistency
- documentation-sync-checker skill - Validate docs
- workflow-analyzer skill - Analyze commit patterns
- Git Approval Workflow - 01_global-setup/02_good-to-have/04_git-approval-workflow.md
- CLAUDE.md - Git commit workflow documentation
Skill Version: 3.4.0
Last Updated: 2025-12-13
Target Audience: Template maintainers, release managers
Maintained By: claude-config-template project
# Supported AI Coding Agents
This skill is compatible with the SKILL.md standard and works with all major AI coding agents:
Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.