Commit with validation and conventional commits
Validates changes, runs lint and build, then creates conventional commits.
/plugin marketplace add horuz-ai/claude-plugins/plugin install core@horuzgit/git branch --show-currentgit status --shortIf on dev, staging, or main: Stop → "You're on a protected branch. Use /branch first."
If no changes: Stop → "Nothing to commit."
Detect package manager (check for bun.lockb, pnpm-lock.yaml, yarn.lock, or use npm).
Run these two commands in parallel (as separate tool calls):
{pkg} run lint{pkg} run buildIf any errors: Stop and show them. Don't commit until fixed.
Read the diff to understand changes:
git diff HEAD
Create conventional commit message:
{type}({scope}): {description}feat, fix, chore, docs, refactor, testfeat(auth): add login flow, fix(api): handle null responsegit add -A
git commit -m "{message}"
Confirm and remind to use /pr when ready.