| description | Commit all changes, push to remote, and create a GitHub PR against the default branch. |
|---|
Automate the full flow from local changes to an open pull request.
- Run
git statusandgit diffto understand all changes (staged + unstaged + untracked). - Run
git log --oneline -5to match the repository's commit message style. - Stage relevant files — prefer explicit filenames over
git add -A. Never stage.env, credentials, or large binaries. - Draft a concise commit message (1-2 sentences) that focuses on why not what. End with the co-author trailer.
- Commit the changes.
- Run
pre-commit run -ato check all files. If it fails, fix the issues, re-stage, and create a NEW commit (do not amend). - Detect the default branch:
git remote show origin | sed -n 's/.*HEAD branch: //p'. If on the default branch, create a new feature branch first (git checkout -b <descriptive-name>). - Push to remote with
git push -u origin <branch>. - Create a PR against the default branch using
gh pr createwith:- A short title (under 70 chars)
- A body with
## Summary(bullet points) and## Test plan(checklist) - Footer:
Generated with [Claude Code](https://claude.com/claude-code)
- Return the PR URL.
- Never force push.
- Never push directly to the default branch.
- If pre-commit hooks fail, fix the issues and create a NEW commit (do not amend).
- Ask the user before proceeding if anything looks ambiguous.