What problem does it solve?
Coordinating local changes with a remote main branch is error-prone: developers risk losing uncommitted work, creating merge conflicts, pushing to the wrong branch, or opening malformed PRs. This Skill provides a guarded, step-by-step Git workflow that preserves local edits, syncs personal branches with origin/main, and produces clean English commits and PRs.
Core Features & Use Cases
- Safe Pull/Sync Workflow: Stashes dirty local edits, fetches and merges origin/main into the current personal branch, then re-applies stashed work with conflict detection and reporting.
- Commit and Push Guardrails: Runs preflight checks on branch state, stages only intended files, validates with git diff --check, and pushes to the current personal remote branch with English commit messages.
- PR Creation and Merge Flow: Opens pull requests from the personal branch to main via GitHub CLI or API, checks CI and review status before merging, and never pushes directly to main.
- Use Case: A developer says "sync my branch with main and open a PR"—the Skill stashes local work, merges origin/main, restores the stash, reports any conflicts, commits and pushes, then opens a PR with an English title and body.
Quick Start
Ask the assistant to sync my current branch with main and open a pull request for my local changes.