بنقرة واحدة
approve-pr
Approve a GitHub PR and add it to the merge queue.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Approve a GitHub PR and add it to the merge queue.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Implement UI from Figma designs via MCP with a closed-loop pixel-parity check. Extract exact values (never eyeball), translate to SwiftUI, then render→diff→fix against the Figma export until it matches. Use when implementing or auditing UI against Figma.
HTTP networking layer reference — TargetType, HTTPClient, services, error handling.
Fetch CodeRabbit review comments from batch PRs and auto-fix the issues. Pushes fixes and re-requests review.
Run multiple tasks overnight as parallel PRs. Produces a PRD per task, selects skills/rules, spawns isolated agents, and reports PR links.
Run multiple tasks overnight as parallel PRs. Produces a PRD per task, selects skills/rules, spawns isolated agents, and reports PR links.
Run SwiftLint and xcodebuild to verify the project compiles cleanly.
| name | approve-pr |
| description | Approve a GitHub PR and add it to the merge queue. |
| disable-model-invocation | true |
/approve-pr # approve current branch's PR
/approve-pr 123 # approve PR #123
/approve-pr feat/my-feat # approve PR for branch feat/my-feat
If a PR number is provided, use it directly.
If a branch name is provided:
gh pr list --head "{branch}" --state open --json number,title,url,headRefName --limit 1
If no argument is provided, detect from the current branch:
BRANCH=$(git branch --show-current)
gh pr list --head "$BRANCH" --state open --json number,title,url,headRefName --limit 1
If no open PR is found, inform the user and stop.
gh pr review {number} --approve --body "LGTM"
If this fails (e.g. you are the PR author and cannot self-approve), inform the user and stop — do not proceed to merge queue.
First, fetch the PR's GraphQL node ID:
gh api repos/{owner}/{repo}/pulls/{number} --jq '.node_id'
Then add to the merge queue via GraphQL:
gh api graphql -f query='
mutation($prId: ID!) {
addPullRequestToMergeQueue(input: { pullRequestId: $prId }) {
mergeQueue {
id
nextEntryEstimatedTimeToMerge
}
}
}
' -f prId="{node_id}"
If the merge queue mutation fails (e.g. merge queue not enabled on the repo, or branch protection not satisfied), fall back to enabling auto-merge instead:
gh api graphql -f query='
mutation($prId: ID!) {
enablePullRequestAutoMerge(input: { pullRequestId: $prId, mergeMethod: SQUASH }) {
pullRequest { autoMergeRequest { mergeMethod } }
}
}
' -f prId="{node_id}"
Report which path was taken and whether it succeeded.
## Approved + Queued — PR #{N}: {title}
- Approved: ✅
- Merge queue: ✅ added (or ⚠️ fell back to auto-merge, or ❌ failed — reason)
- URL: {pr_url}
gh pr merge — use the GraphQL API for merge queue / auto-mergegh pr reviews)