commit
Installation
SKILL.md
Smart Staged Commit
Use this workflow when the user wants staged changes committed.
Arguments
--singleor-s: commit all staged changes as one commit.- No argument: analyze staged changes and split them into logical commits when useful.
Workflow
- Inspect staged files with
git diff --cached --name-status. - If nothing is staged, show
git statusand stop without creating an empty commit. - Review the full staged diff with
git diff --cached. - Check recent commit style with
git log --oneline -20. - Classify changes by intent:
feat,fix,refactor,docs,test,style, orchore. - Group changes by feature, module, dependency, and reviewability.
- Before committing, show the user a concise commit plan and ask for confirmation unless the surrounding agent instructions explicitly allow committing without another confirmation.
- Commit each group in dependency order.
Related skills