If plan mode is active, call ExitPlanMode now before proceeding.
**Arguments:** $ARGUMENTS
**Trivial change:** <=3 files, <20 LOC, non-core (docs/config/comments).
**Workspace mode:** If not in git repo but subdirs have `.git`, iterate each.
**Worktree branch check:** If feature branch has generic name, offer rename.
1. **Monorepo scope:** If cwd != git root with outside changes, ask scope
2. **Debug code:** Scan for `console.log`, `print()`, `debugPrint`, `DEBUG = true`, `// TEMP` - stop if found
3. **Readiness:** Flag TODO/FIXME, credentials - ask to proceed
4. **Amend:** Last commit yours + not pushed + related → offer amend
`tag(scope): lowercase imperative, no period` - Example: `fix(auth): handle expired token`
Tags: `feat`, `fix`, `refactor`, `chore`, `docs`
**Protected branches:** `develop`, `staging`, `main`
**Commit mode:** Group related changes. Push. Verify with `git status`.
**PR mode:** Branch if on protected. Push. `gh pr create`. `gh pr merge --auto --merge`.
**Trivial on protected (commit mode):** Direct push if trivial, else offer PR.
**Trivial on feature (PR mode):** Offer direct merge to base branch.
Show `git log --oneline -n` (n = commits created).
PR mode: Also show PR URL. Show cleanup reminders if issues bypassed.
Leave a review
No reviews yet. Be the first to review this skill!
# Download SKILL.md from killerskills.ai/api/skills/commit-i793oo/raw