What problem does it solve?
The git-helper skill removes friction from common git workflows by allowing users to perform staging, generate concise conventional commit messages from staged diffs, commit, push, pull, and create GitHub pull requests using natural-language commands while enforcing safety checks.
Core Features & Use Cases
- Auto-generated commits: Inspect staged diffs and produce a conventional commit message with inferred type and scope, ask for confirmation on large or mixed changes, and commit on approval.
- Staging assistance: Stage specific files, globs, or everything, and interactively resolve ambiguous staging requests by showing git status.
- Push and pull management: Push with upstream setup when missing, show remote and branch details, warn on protected branches, and suggest stashing before pulling if there are uncommitted local changes.
- GitHub PR creation: Summarize commits, infer a PR title and body, and create PRs via the gh CLI with a sensible default base branch and authentication checks.
- Guardrails: Prevent accidental direct commits to main/master, avoid force-pushes without explicit confirmation, and require gh authentication for PR operations.
Quick Start
Use the git-helper to stage all unstaged changes, generate a conventional commit message from the staged diff, commit, and push to the current branch.