What problem does it solve?
github-pr prevents common automation mistakes when working on GitHub Pull Requests by enforcing correct context handling, safe branching/sync behavior, and reliable PR communication patterns.
Core Features & Use Cases
- PR context routing: Extracts and uses the provided Pull Request Context (including explicit base branch targeting) to ensure updates apply to the correct PR branch and reference points.
- Safe PR-thread replies: Routes responses back through the originating PR comment or review channel using the
gh CLI/API instead of writing comment text into the workspace.
- Upstream sync with guardrails: Requires a structured pre-completion upstream sync flow (including merge-based pulling with
--no-rebase) to reduce rejected pushes and keep history intact.
- Revert/correct support: When asked to revert or fix previous work, retrieves the original prompt and prior agent execution signals (logs and PR diffs) before revising changes.
Quick Start
Use the github-pr skill when your agent is triggered by a Pull Request comment and needs to review, update, or synchronize the PR branch with its base while posting any feedback back to the correct PR thread.