git-commit-review
Original:🇺🇸 English
Translated
Review staged changes, create clear commit messages, and push to current branch
2installs
Added on
NPX Install
npx skill4agent add tktrev/coding-agents-skills git-commit-reviewTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →What I do
- Check for sensitive files: Warn about ,
.env, or other secrets before stagingcredentials.json - Review changes: Run and
git statusto review all unstaged changesgit diff - Stage changes: Execute to stage all changes (or offer
git add -Afor partial)git add -p - Review staged changes: Run to review what will be committed
git diff --cached - Run pre-commit checks: Run lint/typecheck if available in package.json
- Generate commit message: Create a clear, conventional commit message following standard conventions
- Show preview & confirm: Display the full commit and ask user to confirm/edit
- Commit changes: Execute with the generated message
git commit - Check remote status: Verify branch is up-to-date before pushing
- Push to remote: Push the commit to the current branch (warn on main/master)
When to use me
Use this when you want to:
- Commit all staged changes with a well-crafted commit message
- Ensure changes are properly reviewed before committing
- Quickly push commits to the remote repository
How to use
- Load this skill:
skill({ name: "git-commit-review" }) - I'll check for sensitive files and show you the changes
- I'll offer staging options (all or partial)
- I'll run lint/typecheck if available
- I'll generate and show you the commit message for confirmation
- You can edit the message if needed
- I'll commit and push (or skip push if you prefer)
Options
- Skip push: Tell me "don't push" to skip the push step
- Amend: Tell me "amend" to amend the last commit
- Dry run: Tell me "preview" to see what would happen without committing
- Partial staging: Tell me "partial" to interactively stage hunks
Commit message format
I'll generate commit messages following conventional commits:
feat: add new feature Xfix: resolve issue with Yrefactor: simplify logic in Zdocs: update documentationchore: update dependencies
For multiple changes, I'll create a summary line and bullet points for details.
If the branch name contains an issue/ticket reference (e.g., ), I'll include it in the commit message.
feature/ABC-123Safety features
- Sensitive file warnings: Alert if ,
.env,credentials.json, etc. are being staged*.key - Hook verification: Never skip pre-commit hooks (is prohibited)
--no-verify - Branch protection: Warn when pushing directly to or
mainmaster - Force push protection: Use instead of
--force-with-leaseif force push is needed--force - Up-to-date check: Warn if branch is behind remote before pushing