github-pr
Installation
SKILL.md
GitHub PR Workflow
This skill automates the transition from local changes to a GitHub Pull Request by ensuring you're on a dedicated feature branch.
Workflow
- Summarize Changes: Analyze the current
git diffand provide a concise summary of the changes. - Conventional Commit: Format the summary into a single, high-quality conventional commit message (e.g.,
feat: add medication tracking,fix: resolve N+1 query in dashboard). - Create Branch:
- If on
main, create a new branch based on the commit subject (e.g.,feat/add-med-tracking):git checkout -b <branch-name> - If already on a feature branch, verify it's the right one.
- If on
- Commit:
- Stage all relevant changes:
git add . - Commit with the generated message:
git commit -m "<message>"
- Stage all relevant changes:
- Push: Push the current branch to the remote:
git push origin HEAD - Create PR: Use the
ghCLI to create a pull request:gh pr create --title "<commit-subject>" --body "<commit-body>"