Smart commit workflow - adapts to change size
Smart commit workflow that analyzes your changes and generates conventional commit messages. Automatically groups files, suggests atomic commits, and adapts review depth based on change size.
/plugin marketplace add dhruvbaldawa/ccconfigs/plugin install essentials@ccconfigs[optional: description or specific files]claude-haiku-4-5Quick overview of changes:
!git status --short && echo "" && echo "=== STATS ===" && git diff HEAD --numstat
I will analyze changes intelligently based on scope:
1. Small changesets (<10 files, <500 lines):
git diff HEAD -- <files>2. Medium changesets (10-50 files, 500-1500 lines):
src/, lib/, etc)3. Large changesets (>50 files or >1500 lines):
Files skipped from detailed review:
*lock*, *lock.json, *.lock (dependency updates)dist/, build/, .next/, out/ (build artifacts)*.min.js, *.map, images, .wasmThese are mentioned in stats but not reviewed line-by-line.
<type>(<scope>): <description>
[Optional body: explain what and why]
Types: feat | fix | docs | refactor | test | chore | style | perf | ci
Rules:
feat(auth): add JWT token refresh mechanism
Refresh tokens now expire after 7 days instead of never expiring.
Reduces security risk for long-lived tokens. Implements automatic
refresh logic when token is within 1 hour of expiration.
fix(api): handle missing Content-Type header gracefully
Previously crashed with 500 if Content-Type missing. Now defaults
to application/json and validates structure separately.
Commit message context: "${{{ARGS}}}"
${changeSize === 'large' ? `
:If single logical change:
If multiple logical groupings:
Staging approach:
Before committing:
Craft clear commit message with context provided above. Use the format guidelines.
git commit -m "$(cat <<'EOF'
<type>(<scope>): <subject>
[body explaining what and why]
EOF
)"
Then push or continue with additional commits.
The user mentioned: "${{{ARGS}}}"
Is there a specific aspect of the changes you'd like help with (staging strategy, message clarity, commit grouping)?