بنقرة واحدة
pr-lifecycle
Manages the full PR lifecycle: creation, review comment handling, CI remediation, and user-approved merge
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Manages the full PR lifecycle: creation, review comment handling, CI remediation, and user-approved merge
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Usage: Build feature {spec-name} phase {phase-number}. Implements a single phase from the spec's task plan, iterating build-test cycles until the phase passes its constitution gate, then records memory, logs decisions, and commits.
Use this skill when the user asks to map, document, or onboard into an existing codebase. Produces structured documentation covering stack, structure, architecture, conventions, integrations, testing, and concerns. Only documents what is verifiable from files or terminal output — never infers or assumes.
Use before any creative work — creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements, and design through collaborative dialogue before implementation.
Browser automation skill. Drives agent-browser through structured navigate→snapshot→interact→re-snapshot flows with authentication support, form automation, visual verification, and explicit human checkpoints for external flows.
Automatically creates user-facing changelogs from git commits by analyzing commit history, categorizing changes, and transforming technical commits into clear, customer-friendly release notes.
Systematic root-cause debugging with verification. Use for errors, stack traces, broken tests, flaky tests, regressions, or anything not working as expected.
| name | pr-lifecycle |
| description | Manages the full PR lifecycle: creation, review comment handling, CI remediation, and user-approved merge |
| argument-hint | branch=feature/{feature-number}-{slug} |
| input | {"properties":{"branch":{"type":"string","description":"Feature branch to create PR for"},"title":{"type":"string","description":"PR title (optional, defaults to branch name)"}},"required":["branch"]} |
Manage the branch-to-merged workflow for a feature or chore branch. This skill creates or updates the pull request, responds to review feedback, keeps CI healthy, and stops at the user merge gate unless the user explicitly approves the merge.
Use this skill when implementation work is ready to move through pull request execution. It centralizes the PR control loop so higher-level agents can treat review, CI follow-up, and merge approval as one bounded workflow.
When the agent-intercom capability pack is installed, call ping at
session start. If reachable, broadcast at every step. If unreachable,
warn the operator that visibility is degraded and continue locally.
| Event | Level | Message prefix |
|---|---|---|
| Session start | info | [PR-LIFECYCLE] Starting: branch={input.branch} |
| Branch pushed | info | [PR-LIFECYCLE] Branch pushed: {branch} |
| PR created | info | [PR-LIFECYCLE] PR created: {pr_url} |
| PR updated | info | [PR-LIFECYCLE] PR updated: {pr_url} |
| Feedback received | info | [PR-LIFECYCLE] Review feedback: {comment_count} comments |
| Fix applied | info | [PR-LIFECYCLE] Fix applied for: {comment_summary} |
| CI failure | warning | [PR-LIFECYCLE] CI failed — delegating to fix-ci |
| CI green | info | [PR-LIFECYCLE] CI passing |
| Ready for merge | success | [PR-LIFECYCLE] PR ready — awaiting user approval |
| Merged | success | [PR-LIFECYCLE] Merged: {pr_url} |
| Blocked | warning | [PR-LIFECYCLE] Blocked: {reason} |
${input:branch}: (Required) Branch name to ship.${input:title}: (Optional) PR title override. When omitted, derive
the title from the branch name or prepared PR description.gh pr create or gh pr edit) to create or
refresh the pull request.When the repository is hosted on GitHub, request Copilot Review immediately after PR creation or after pushing new commits:
.github/instructions/github-pr-automation.instructions.md §1.1..github/instructions/github-pr-automation.instructions.md Part 1:
categorize comments (§1.3), apply fixes (§1.4), reply to threads
(§1.5), and resolve bot-authored threads via GraphQL (§1.6).fix-ci skill with the active PR or branch
context..github/instructions/github-pr-automation.instructions.md Part 2
for status monitoring, failure extraction, and fix-push-poll loops.fix-ci own the remediation loop for failing checks and
unresolved review comments.When fixes were pushed (from either review or CI remediation):
.github/instructions/github-pr-automation.instructions.md
§1.7.Before presenting the PR as merge-ready, run the defense-in-depth
Copilot review readiness verification defined in
.github/instructions/github-pr-automation.instructions.md §1.9:
headRefOid.
If stale, wait for a fresh review.reviewDecision, and any
CHANGES_REQUESTED reviews in the merge-readiness summary — these
may independently block merge at the GitHub level.main or any other branch. The calling agent (Ship)
depends on the branch context being preserved for post-merge work.After receiving operator approval and before executing the merge:
reviewThreads filtered to isResolved == false and
author.login == "copilot-pull-request-reviewer"). If any new unresolved
threads exist, halt and report — do not proceed to merge.P-014 LAST-MILE CHECK PASSED: branch unchanged, no new unresolved threads.This last-mile check closes the race window between approval receipt and merge execution. It is a lightweight incremental query (not a full §1.9 re-run) when the branch has not changed.
After a user-approved merge:
main and start working on it.
Post-merge closure work belongs on a dedicated post-merge/ branch
created by the Ship agent. This skill's responsibility ends at
reporting the merge result.The skill is complete only when one of these outcomes is explicit:
| Counter | Limit | Action |
|---|---|---|
| Fix-CI delegation cycles | 5 | Halt, leave PR for manual intervention |
| Review-fix cycles | 3 | Accept remaining as backlog follow-ups |
This skill operates at Tier 2 (Standard) — PR creation and follow-up is routine coordination.