Smart commit using Conventional Commits format - delegates analysis to commit-worker agent
From mindcontext-corenpx claudepluginhub tmsjngx0/mindcontext-core --plugin mindcontext-core/commitStages unstaged changes based on git status and diff analysis, then creates a commit with a generated message. Uses current branch and recent commit history for context.
/commitAnalyzes local git changes, stages files excluding secrets, drafts Conventional Commits message, confirms with user, and commits locally.
/commitCreates well-formatted git commits with conventional messages and emojis. Runs pre-commit checks (lint/format/build/docs), auto-stages files if needed, analyzes diffs, and suggests splitting multi-change commits unless --no-verify.
/commitCreates well-formatted git commits with conventional messages and emojis. Runs pre-commit checks (lint/format/build/docs), auto-stages files if needed, analyzes diffs, and suggests splitting multi-change commits unless --no-verify.
/commitAnalyzes current git diff, generates 3 conventional commit message options (concise, detailed, comprehensive), presents for user selection, and executes git commit.
/commitRuns git checks, lint/typecheck/tests, code review, then creates conventional commit message and commits staged changes. Supports --no-verify, --amend, --push flags.
Analyze and commit changes using Conventional Commits format.
Sync with remote before anything else:
git rev-parse --abbrev-ref --symbolic-full-name @{u} 2>/dev/null
# 1. Stash only if working tree has changes
STASHED=0
if ! git diff --quiet || ! git diff --cached --quiet; then
git stash push -m "pre-commit-sync"
STASHED=1
fi
# 2. Pull with rebase
git pull --rebase
# 3. Pop stash only if we stashed
if [ "$STASHED" = "1" ]; then
git stash pop --index
fi
git pull --rebase fails:
git rebase --abortgit stash pop --index to restore changesgit stash pop has conflicts:
git diff --name-only --diff-filter=U<<<<<<<, =======, >>>>>>>) and retain both additions, then git add <file>git stash drop to clean up the failed stash entry, then continue to step 2Gather context (run these bash commands):
git diff --staged # or git diff if nothing staged
git status
git log --oneline -10
Delegate analysis to mindcontext-core:commit-worker agent:
{ commits: [...], warnings: [...], version_bump: ... }Handle warnings: If agent returns warnings (e.g., CHANGELOG not updated):
Execute commits: For each commit group in the JSON response:
git add <files from commit group>
git commit -m "<message from commit group>"
Push: After all commits succeed:
git push
/commit # Quick commit (default)
/commit full # With context file updates (CLAUDE.md, README, CHANGELOG)
Use "full" to update documentation before committing: