What problem does it solve?
Inconsistent Git commit messages, inclusion of debug code, or unapproved changes can degrade codebase quality, hinder collaboration, and make project history difficult to navigate. This skill enforces best practices for every commit, saving you review time and ensuring a clean history.
Core Features & Use Cases
-
Pre-Commit Review: Automatically checks git status and git diff --cached to ensure only intended changes are staged, flagging issues like debug code, commented-out sections, or hardcoded secrets.
-
Standardized Message Generation: Drafts commit messages following a mandatory format (imperative mood, concise title, detailed body, specific "By PB & Claude" attribution), ensuring clarity and consistency.
-
User Approval Workflow: Presents the drafted message and staged changes for explicit user approval before executing the commit, giving you final control and preventing unintended commits.
-
Use Case: After making changes, when you say "commit", the skill will show you all staged changes, draft a commit message like "Add JWT authentication to API endpoints
-
Implemented token refresh
-
Updated expiry
By PB & Claude", and ask for your approval before finalizing the commit.
Quick Start
Commit the current changes.
The skill will review staged files, draft a commit message, and ask for approval.