Agent skill
github-pr-lifecycle
Manage GitHub pull requests via GitHub MCP: open PRs, update descriptions, request reviews, check CI status, resolve conflicts, and merge using the repo's preferred strategy.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/github-pr-lifecycle-amnadtaowsoam-cerebratechai-claude
SKILL.md
GitHub PR Lifecycle
Required inputs
- Identify
owner,repo,basebranch, andheadbranch. - Confirm merge strategy (merge, squash, rebase) and required checks.
Preflight
- Confirm GitHub MCP auth can read/write PRs and request reviews.
- Determine required checks and approval rules from repo settings.
- If the PR already exists, reuse it and avoid creating duplicates.
- Review
references/mcp-policy-checklist.mdfor approval and access rules.
Workflow
- Create or fetch the PR and confirm the title and description match intent.
- Ensure the PR references issues or tickets if required by repo policy.
- Request reviewers based on CODEOWNERS or team ownership.
- Check CI status, required checks, and review approvals.
- Resolve conflicts or request updates if checks fail.
- Merge when requirements are satisfied, and post a final summary.
MCP call patterns
- Use PR list/search to locate related work.
- Use checks API to verify required status checks.
- Use review requests to route to correct owners.
- For endpoint hints and inputs, read
references/mcp-calls.md.
Output
- Provide a lifecycle summary: PR -> status -> blockers -> next action.
Guardrails
- Do not merge without required approvals and checks.
- Avoid changing base or head branches without explicit instruction.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?