github-pr
Installation
SKILL.md
Pull Request Creation & Management
This skill automates the process of creating high-quality Pull Requests using the GitHub CLI (gh) or providing instructions if it's unavailable.
1. Preparation
- Check GitHub CLI: Verify if
ghis installed and authenticated (gh auth status). - Commits Check: Ensure all changes are committed in the current feature branch.
- Base Branch: Identify the target base branch (usually
main).
2. PR Quality & Metadata
- Quality Gate: All PRs MUST pass analysis (0 warnings), formatting, and tests before merge.
- Branch Protection: Ensure branch protection rules are respected (no direct pushes to
main). - Metadata: ALWAYS specify relevant labels and at least one assignee.
- Checklist: Ensure the development plan and requirements are reviewed before completing the task.