What problem does it solve?
This Skill streamlines the process of committing and pushing code changes, ensuring that changes are well-documented, atomic, and safely integrated into the repository.
Core Features & Use Cases
- Strategic Committing: Creates new commits by default, with options for squashing or interactive rebasing when explicitly requested.
- Commit Message Best Practices: Guides users to write clear, informative commit messages that explain the "why" behind changes, not just the "what".
- Branch Safety: Prevents direct commits to main branches (main, master, dev) and prompts for branch creation.
- Pre-commit Hook Handling: Manages failures in pre-commit hooks by ensuring new commits are created after fixes, never amending.
- Use Case: After implementing a new feature and fixing a bug, use this skill to create two separate, well-described commits, ensuring each change is independently trackable and reversible.
Quick Start
Use the commit-push skill to commit your staged changes with a new commit message.