accept-pr

Installation
SKILL.md

Accept PR

Input: PR number or URL (required). Default merge mode: rebase.

  1. Guardrails
  • Must end on main (or repo default branch if no main).
  • git status -sb clean before/after. No uncommitted changes.
  • If PR is draft, has conflicts, or base branch != main: stop + ask.
  • If PR is from a fork and you can’t push: stop + ask.
  1. Capture context
  • START_BRANCH="$(git branch --show-current)"
  • gh pr view <PR> --json number,title,author,baseRefName,headRefName,isDraft,mergeable,maintainerCanModify
  • Skim: gh pr view <PR> --comments and gh pr diff <PR>
  1. Checkout + suggested fixes
  • gh pr checkout <PR>
  • Apply fixes (and tests if needed). Keep edits minimal; follow repo conventions.
  • Ensure change/feature/regression is well-tested. If no tests exist, do the manual checks the repo expects and note it.
Related skills

More from majiayu000/claude-skill-registry

Installs
1
GitHub Stars
303
First Seen
Feb 4, 2026