[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77RBF897GD44DVE4GJTXY82":3,"skill-same:01M77RBF897GD44DVE4GJTXY82":46},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":30,"updatedAt":31,"install":32,"resources":45},"01M77RBF897GD44DVE4GJTXY82","pr-ship",null,"End-to-end PR lifecycle: create PR, wait for CI, review, fix issues, merge — all in one invocation.\nUse when: (1) User says \"\u002Fpr-ship\", (2) User wants to ship current changes as a complete PR lifecycle,\n(3) User wants to resume shepherding an existing PR.","finewood2008\u002Fcentaurai-decision","finewood2008","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F212194470?v=4","01M75HGRZJ31P9W3T90VHFS1X8","Finewood","01M77RA40TQ7E0FEMCYQF58BZ4",1,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Ffinewood2008\u002Fcentaurai-decision\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fpr-ship\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: pr-ship\ndescription: |\n  End-to-end PR lifecycle: create PR, wait for CI, review, fix issues, merge — all in one invocation.\n  Use when: (1) User says \"\u002Fpr-ship\", (2) User wants to ship current changes as a complete PR lifecycle,\n  (3) User wants to resume shepherding an existing PR.\n---\n\n# PR Ship\n\nEnd-to-end PR lifecycle shepherd: create PR → wait for CI → review → fix → merge. Single invocation, single PR.\n\n**Announce at start:** \"Using pr-ship skill to shepherd this PR from creation to merge.\"\n\n## Usage\n\n```\n\u002Fpr-ship [pr_number] [--no-auto-merge]\n```\n\n| Parameter         | Default | Description                                                  |\n| ----------------- | ------- | ------------------------------------------------------------ |\n| `pr_number`       | none    | Resume from an existing PR (skip creation)                   |\n| `--no-auto-merge` | off     | Require user confirmation before merge instead of auto-merge |\n\n## Session State\n\nTrack these values in conversation context throughout the session:\n\n- `PR_NUMBER` — current PR number\n- `PHASE` — current phase (create \u002F ci-wait \u002F review \u002F fix \u002F merge)\n- `RETRY_COUNT` — CI failure + review fix retry counter (max 3, shared), initialized to 0\n- `AUTO_MERGE` — true unless `--no-auto-merge` is passed\n- `EMPTY_CI_COUNT` — consecutive empty CI check counter (max 3), initialized to 0\n\n---\n\n## Phase 0 — Create PR\n\n**Skip if `pr_number` is provided.** When skipping, set `PR_NUMBER` from the argument and jump to Phase 1.\n\n**Parse arguments:**\n\n```bash\n# Detect --no-auto-merge flag\nAUTO_MERGE=true\nif echo \"$ARGUMENTS\" | grep -q -- '--no-auto-merge'; then\n  AUTO_MERGE=false\nfi\n\n# Detect pr_number (first numeric argument)\nPR_NUMBER=$(echo \"$ARGUMENTS\" | grep -oE '[0-9]+' | head -1)\n```\n\n**If `PR_NUMBER` is set:** set `RETRY_COUNT = 0`, `EMPTY_CI_COUNT = 0`, skip to Phase 1.\n\n**If `PR_NUMBER` is not set:** invoke oss-pr to create the PR:\n\n```\n\u002Foss-pr\n```\n\nAfter oss-pr completes, extract `PR_NUMBER` from the PR URL in its output. Set `RETRY_COUNT = 0`, `EMPTY_CI_COUNT = 0`.\n\n---\n\n## Phase 1 — CI Wait\n\nCheck CI status:\n\n```bash\ngh pr view $PR_NUMBER --json statusCheckRollup \\\n  --jq '.statusCheckRollup[] | {name: .name, status: .status, conclusion: .conclusion}'\n```\n\n**Required jobs** (same list as pr-review):\n\n- `Code Quality`\n- `Unit Tests (ubuntu-latest)`\n- `Unit Tests (macos-14)`\n- `Unit Tests (windows-2022)`\n- `Coverage Test`\n- `i18n-check`\n\n**Informational exclusions:** `codecov\u002Fpatch` and `codecov\u002Fproject` — always excluded from failure checks.\n\n### Decision Matrix\n\n| CI Status                                                | Action                                            |\n| -------------------------------------------------------- | ------------------------------------------------- |\n| All required jobs SUCCESS, no non-informational failures | → Phase 2                                         |\n| Any required job QUEUED or IN_PROGRESS                   | ScheduleWakeup 270s, re-check                     |\n| `statusCheckRollup` empty (CI never triggered)           | Approve workflow (see below), ScheduleWakeup 270s |\n| Any non-informational job FAILURE or CANCELLED           | → CI Failure Handler                              |\n\n### Workflow Approval (CI not triggered)\n\n```bash\nHEAD_SHA=$(gh pr view $PR_NUMBER --json headRefOid --jq '.headRefOid')\nREPO=$(gh repo view --json nameWithOwner --jq '.nameWithOwner')\nRUN_IDS=$(gh api \"repos\u002F$REPO\u002Factions\u002Fruns?head_sha=$HEAD_SHA&status=action_required\" \\\n  --jq '.workflow_runs[].id')\nfor RUN_ID in $RUN_IDS; do\n  gh run approve \"$RUN_ID\" --repo \"$REPO\"\ndone\n```\n\nThen `EMPTY_CI_COUNT++` and ScheduleWakeup 270s to re-check. If `EMPTY_CI_COUNT >= 3` (~13.5 minutes), abort:\n\n> CI 持续未触发（已等待约 13.5 分钟）。请检查仓库 CI 配置后重新调用 `\u002Fpr-ship $PR_NUMBER`。\n\n### CI Failure Handler\n\n**Step 1 — Check retry budget:**\n\nIf `RETRY_COUNT >= 3`:\n\n> 已达到最大重试次数 (3\u002F3)。请手动检查 PR #$PR_NUMBER 后重新调用 `\u002Fpr-ship $PR_NUMBER`。\n\nExit.\n\n**Step 2 — Identify failures:**\n\n```bash\n# Get failed job names\nFAILED_JOBS=$(gh pr view $PR_NUMBER --json statusCheckRollup \\\n  --jq '[.statusCheckRollup[] | select(.conclusion == \"FAILURE\" or .conclusion == \"CANCELLED\") | select(.name | test(\"^codecov\u002F\") | not) | .name] | join(\", \")')\n```\n\nReport to user:\n\n> CI 失败：$FAILED_JOBS。正在尝试修复 ($RETRY_COUNT\u002F3)...\n\n**Step 3 — Fetch failure details:**\n\n```bash\nREPO=$(gh repo view --json nameWithOwner --jq '.nameWithOwner')\n\n# Find the failed run IDs\nHEAD_SHA=$(gh pr view $PR_NUMBER --json headRefOid --jq '.headRefOid')\nFAILED_RUN_IDS=$(gh api \"repos\u002F$REPO\u002Factions\u002Fruns?head_sha=$HEAD_SHA&status=failure\" \\\n  --jq '.workflow_runs[].id')\n\n# Get logs for each failed run\nfor RUN_ID in $FAILED_RUN_IDS; do\n  gh run view \"$RUN_ID\" --repo \"$REPO\" --log-failed 2>\u002Fdev\u002Fnull | tail -100\ndone\n```\n\n**Step 4 — Fix in worktree:**\n\n```bash\nREPO_ROOT=$(git rev-parse --show-toplevel)\nWORKTREE_DIR=\"\u002Ftmp\u002Faionui-ship-${PR_NUMBER}\"\nHEAD_BRANCH=$(gh pr view $PR_NUMBER --json headRefName --jq '.headRefName')\n\n# Clean up stale worktree\ngit worktree remove \"$WORKTREE_DIR\" --force 2>\u002Fdev\u002Fnull || true\n\n# Create worktree\ngit fetch origin \"$HEAD_BRANCH\"\ngit worktree add \"$WORKTREE_DIR\" \"origin\u002F$HEAD_BRANCH\" --detach\n\n# Symlink node_modules\nln -s \"$REPO_ROOT\u002Fnode_modules\" \"$WORKTREE_DIR\u002Fnode_modules\"\n```\n\nFix only CI-reported errors (lint errors, type errors, test failures) in the worktree. No refactoring, no scope expansion.\n\nAfter fixing, run local quality gate:\n\n```bash\ncd \"$WORKTREE_DIR\"\nbun run lint:fix\nbun run format\nbunx tsc --noEmit\nbun run test\n```\n\n**Step 5 — Commit and push:**\n\n```bash\ncd \"$WORKTREE_DIR\"\ngit add -u\ngit commit -m \"fix(\u003Cscope>): resolve CI failures\"\ngit push origin HEAD:$HEAD_BRANCH\n```\n\n**No AI signature in commits.**\n\n**Step 6 — Cleanup worktree:**\n\n```bash\ncd \"$REPO_ROOT\"\ngit worktree remove \"$WORKTREE_DIR\" --force 2>\u002Fdev\u002Fnull || true\n```\n\n**Step 7 — Increment and loop:**\n\n`RETRY_COUNT++`. ScheduleWakeup 270s → re-enter Phase 1.\n\n---\n\n## Phase 2 — Review\n\nInvoke pr-review in interactive mode, passing the PR number explicitly:\n\n```\n\u002Fpr-review $PR_NUMBER\n```\n\n(No `--automation` flag — this is an interactive session.)\n\n### Decision based on review conclusion\n\n| Review Conclusion                | Action                                            |\n| -------------------------------- | ------------------------------------------------- |\n| ✅ APPROVED (including LOW-only) | → Phase 4                                         |\n| ⚠️ CONDITIONAL                   | → Phase 3                                         |\n| ❌ REJECTED                      | → Phase 3 (pr-fix triage decides if auto-fixable) |\n\n---\n\n## Phase 3 — Fix\n\n**Check retry budget first:**\n\nIf `RETRY_COUNT >= 3`:\n\n> 已达到最大重试次数 (3\u002F3)。请手动检查 PR #$PR_NUMBER 后重新调用 `\u002Fpr-ship $PR_NUMBER`。\n\nExit.\n\nInvoke pr-fix in interactive mode, passing the PR number explicitly:\n\n```\n\u002Fpr-fix $PR_NUMBER\n```\n\n(No `--automation` flag.)\n\n### After pr-fix completes\n\n**Fix pushed successfully:** `RETRY_COUNT++`. ScheduleWakeup 270s → back to Phase 1 (wait for CI on new commit).\n\n**Fix aborted** (all issues dismissed, or user rejected CRITICAL dismissal):\n\n> pr-fix 未产生修复。是否继续看护此 PR？(yes\u002Fno)\n\n- **yes** → back to Phase 1 (CI may already be passing)\n- **no** → exit, output PR URL for manual handling\n\n---\n\n## Phase 4 — Merge\n\n### AUTO_MERGE = true (default)\n\n```bash\ngh pr merge $PR_NUMBER --squash --auto\n```\n\nOutput:\n\n> ✅ PR #$PR_NUMBER 已设置 auto-merge，CI 通过后将自动合并。\n\n### AUTO_MERGE = false (--no-auto-merge)\n\nDisplay summary:\n\n```\n=== PR #$PR_NUMBER 就绪 ===\n\n标题: \u003Ctitle>\n变更: +\u003Cadditions> \u002F -\u003Cdeletions> (\u003Cfile_count> files)\nReview: \u003Cconclusion>\nCI: 全部通过\n\n输入 merge 确认合并，或 abort 放弃。\n```\n\nFetch summary data:\n\n```bash\ngh pr view $PR_NUMBER --json title,additions,deletions,changedFiles \\\n  --jq '{title: .title, additions: .additions, deletions: .deletions, files: .changedFiles}'\n```\n\n- User says **merge** → `gh pr merge $PR_NUMBER --squash` → output `✅ PR #$PR_NUMBER 已合并。`\n- User says **abort** → exit, output PR URL\n\n---\n\n## ScheduleWakeup Integration\n\nThis skill uses `\u002Floop` dynamic mode for CI waiting. Each ScheduleWakeup call:\n\n```\nScheduleWakeup(\n  delaySeconds: 270,\n  reason: \"waiting for CI on PR #$PR_NUMBER (check N)\",\n  prompt: \"\u002Fpr-ship $PR_NUMBER\"\n)\n```\n\n**Interval:** 270s uniformly (under 5-min prompt cache TTL).\n\n**When to call ScheduleWakeup:**\n\n- CI is still running (QUEUED\u002FIN_PROGRESS)\n- Just approved a workflow run\n- Just pushed a CI fix\n- Just pushed a pr-fix commit\n\n**When NOT to call ScheduleWakeup:**\n\n- CI has completed (pass or fail with actionable errors)\n- During review (Phase 2) or fix (Phase 3) execution\n- After merge (Phase 4)\n\n---\n\n## Mandatory Rules\n\n- **No AI signature** — no `Co-Authored-By`, no `Generated with` in any commit or comment\n- **Retry limit = 3** — hard cap, shared between CI fixes and review fixes\n- **Fix scope discipline** — CI fixes target only CI-reported errors; review fixes go through pr-fix\n- **No label pollution** — pr-ship does not set any `bot:*` labels\n- **ScheduleWakeup only for CI wait** — never during review or fix execution\n- **REPO detection at runtime** — `gh repo view --json nameWithOwner --jq '.nameWithOwner'`\n- **Worktree path** — always `\u002Ftmp\u002Faionui-ship-\u003CPR_NUMBER>` (distinct from pr-automation's `\u002Ftmp\u002Faionui-pr-*` and pr-verify's `\u002Ftmp\u002Faionui-verify-*`)\n- **Worktree cleanup** — always remove worktree after CI fix, even on failure\n\n## Quick Reference\n\n```\n0. Parse args: pr_number? --no-auto-merge?\n1. Phase 0: \u002Foss-pr (skip if pr_number given)\n2. Phase 1: CI wait loop\n   - check statusCheckRollup\n   - passing -> Phase 2\n   - running -> ScheduleWakeup 270s\n   - not triggered -> approve workflow + ScheduleWakeup 270s\n   - failed -> retry_count \u003C 3? fix + push + ScheduleWakeup 270s : abort\n3. Phase 2: \u002Fpr-review (interactive)\n   - APPROVED -> Phase 4\n   - CONDITIONAL\u002FREJECTED -> Phase 3\n4. Phase 3: \u002Fpr-fix (interactive)\n   - pushed -> retry_count++, back to Phase 1\n   - aborted -> ask user\n5. Phase 4: merge\n   - default: gh pr merge --squash --auto\n   - --no-auto-merge: confirm then gh pr merge --squash\n```\n","# PR Ship\n\nEnd-to-end PR lifecycle shepherd: create PR → wait for CI → review → fix → merge. Single invocation, single PR.\n\n**Announce at start:** \"Using pr-ship skill to shepherd this PR from creation to merge.\"\n\n## Usage\n\n```\n\u002Fpr-ship [pr_number] [--no-auto-merge]\n```\n\n| Parameter         | Default | Description                                                  |\n| ----------------- | ------- | ------------------------------------------------------------ |\n| `pr_number`       | none    | Resume from an existing PR (skip creation)                   |\n| `--no-auto-merge` | off     | Require user confirmation before merge instead of auto-merge |\n\n## Session State\n\nTrack these values in conversation context throughout the session:\n\n- `PR_NUMBER` — current PR number\n- `PHASE` — current phase (create \u002F ci-wait \u002F review \u002F fix \u002F merge)\n- `RETRY_COUNT` — CI failure + review fix retry counter (max 3, shared), initialized to 0\n- `AUTO_MERGE` — true unless `--no-auto-merge` is passed\n- `EMPTY_CI_COUNT` — consecutive empty CI check counter (max 3), initialized to 0\n\n---\n\n## Phase 0 — Create PR\n\n**Skip if `pr_number` is provided.** When skipping, set `PR_NUMBER` from the argument and jump to Phase 1.\n\n**Parse arguments:**\n\n```bash\n# Detect --no-auto-merge flag\nAUTO_MERGE=true\nif echo \"$ARGUMENTS\" | grep -q -- '--no-auto-merge'; then\n  AUTO_MERGE=false\nfi\n\n# Detect pr_number (first numeric argument)\nPR_NUMBER=$(echo \"$ARGUMENTS\" | grep -oE '[0-9]+' | head -1)\n```\n\n**If `PR_NUMBER` is set:** set `RETRY_COUNT = 0`, `EMPTY_CI_COUNT = 0`, skip to Phase 1.\n\n**If `PR_NUMBER` is not set:** invoke oss-pr to create the PR:\n\n```\n\u002Foss-pr\n```\n\nAfter oss-pr completes, extract `PR_NUMBER` from the PR URL in its output. Set `RETRY_COUNT = 0`, `EMPTY_CI_COUNT = 0`.\n\n---\n\n## Phase 1 — CI Wait\n\nCheck CI status:\n\n```bash\ngh pr view $PR_NUMBER --json statusCheckRollup \\\n  --jq '.statusCheckRollup[] | {name: .name, status: .status, conclusion: .conclusion}'\n```\n\n**Required jobs** (same list as pr-review):\n\n- `Code Quality`\n- `Unit Tests (ubuntu-latest)`\n- `Unit Tests (macos-14)`\n- `Unit Tests (windows-2022)`\n- `Coverage Test`\n- `i18n-check`\n\n**Informational exclusions:** `codecov\u002Fpatch` and `codecov\u002Fproject` — always excluded from failure checks.\n\n### Decision Matrix\n\n| CI Status                                                | Action                                            |\n| -------------------------------------------------------- | ------------------------------------------------- |\n| All required jobs SUCCESS, no non-informational failures | → Phase 2                                         |\n| Any required job QUEUED or IN_PROGRESS                   | ScheduleWakeup 270s, re-check                     |\n| `statusCheckRollup` empty (CI never triggered)           | Approve workflow (see below), ScheduleWakeup 270s |\n| Any non-informational job FAILURE or CANCELLED           | → CI Failure Handler                              |\n\n### Workflow Approval (CI not triggered)\n\n```bash\nHEAD_SHA=$(gh pr view $PR_NUMBER --json headRefOid --jq '.headRefOid')\nREPO=$(gh repo view --json nameWithOwner --jq '.nameWithOwner')\nRUN_IDS=$(gh api \"repos\u002F$REPO\u002Factions\u002Fruns?head_sha=$HEAD_SHA&status=action_required\" \\\n  --jq '.workflow_runs[].id')\nfor RUN_ID in $RUN_IDS; do\n  gh run approve \"$RUN_ID\" --repo \"$REPO\"\ndone\n```\n\nThen `EMPTY_CI_COUNT++` and ScheduleWakeup 270s to re-check. If `EMPTY_CI_COUNT >= 3` (~13.5 minutes), abort:\n\n> CI 持续未触发（已等待约 13.5 分钟）。请检查仓库 CI 配置后重新调用 `\u002Fpr-ship $PR_NUMBER`。\n\n### CI Failure Handler\n\n**Step 1 — Check retry budget:**\n\nIf `RETRY_COUNT >= 3`:\n\n> 已达到最大重试次数 (3\u002F3)。请手动检查 PR #$PR_NUMBER 后重新调用 `\u002Fpr-ship $PR_NUMBER`。\n\nExit.\n\n**Step 2 — Identify failures:**\n\n```bash\n# Get failed job names\nFAILED_JOBS=$(gh pr view $PR_NUMBER --json statusCheckRollup \\\n  --jq '[.statusCheckRollup[] | select(.conclusion == \"FAILURE\" or .conclusion == \"CANCELLED\") | select(.name | test(\"^codecov\u002F\") | not) | .name] | join(\", \")')\n```\n\nReport to user:\n\n> CI 失败：$FAILED_JOBS。正在尝试修复 ($RETRY_COUNT\u002F3)...\n\n**Step 3 — Fetch failure details:**\n\n```bash\nREPO=$(gh repo view --json nameWithOwner --jq '.nameWithOwner')\n\n# Find the failed run IDs\nHEAD_SHA=$(gh pr view $PR_NUMBER --json headRefOid --jq '.headRefOid')\nFAILED_RUN_IDS=$(gh api \"repos\u002F$REPO\u002Factions\u002Fruns?head_sha=$HEAD_SHA&status=failure\" \\\n  --jq '.workflow_runs[].id')\n\n# Get logs for each failed run\nfor RUN_ID in $FAILED_RUN_IDS; do\n  gh run view \"$RUN_ID\" --repo \"$REPO\" --log-failed 2>\u002Fdev\u002Fnull | tail -100\ndone\n```\n\n**Step 4 — Fix in worktree:**\n\n```bash\nREPO_ROOT=$(git rev-parse --show-toplevel)\nWORKTREE_DIR=\"\u002Ftmp\u002Faionui-ship-${PR_NUMBER}\"\nHEAD_BRANCH=$(gh pr view $PR_NUMBER --json headRefName --jq '.headRefName')\n\n# Clean up stale worktree\ngit worktree remove \"$WORKTREE_DIR\" --force 2>\u002Fdev\u002Fnull || true\n\n# Create worktree\ngit fetch origin \"$HEAD_BRANCH\"\ngit worktree add \"$WORKTREE_DIR\" \"origin\u002F$HEAD_BRANCH\" --detach\n\n# Symlink node_modules\nln -s \"$REPO_ROOT\u002Fnode_modules\" \"$WORKTREE_DIR\u002Fnode_modules\"\n```\n\nFix only CI-reported errors (lint errors, type errors, test failures) in the worktree. No refactoring, no scope expansion.\n\nAfter fixing, run local quality gate:\n\n```bash\ncd \"$WORKTREE_DIR\"\nbun run lint:fix\nbun run format\nbunx tsc --noEmit\nbun run test\n```\n\n**Step 5 — Commit and push:**\n\n```bash\ncd \"$WORKTREE_DIR\"\ngit add -u\ngit commit -m \"fix(\u003Cscope>): resolve CI failures\"\ngit push origin HEAD:$HEAD_BRANCH\n```\n\n**No AI signature in commits.**\n\n**Step 6 — Cleanup worktree:**\n\n```bash\ncd \"$REPO_ROOT\"\ngit worktree remove \"$WORKTREE_DIR\" --force 2>\u002Fdev\u002Fnull || true\n```\n\n**Step 7 — Increment and loop:**\n\n`RETRY_COUNT++`. ScheduleWakeup 270s → re-enter Phase 1.\n\n---\n\n## Phase 2 — Review\n\nInvoke pr-review in interactive mode, passing the PR number explicitly:\n\n```\n\u002Fpr-review $PR_NUMBER\n```\n\n(No `--automation` flag — this is an interactive session.)\n\n### Decision based on review conclusion\n\n| Review Conclusion                | Action                                            |\n| -------------------------------- | ------------------------------------------------- |\n| ✅ APPROVED (including LOW-only) | → Phase 4                                         |\n| ⚠️ CONDITIONAL                   | → Phase 3                                         |\n| ❌ REJECTED                      | → Phase 3 (pr-fix triage decides if auto-fixable) |\n\n---\n\n## Phase 3 — Fix\n\n**Check retry budget first:**\n\nIf `RETRY_COUNT >= 3`:\n\n> 已达到最大重试次数 (3\u002F3)。请手动检查 PR #$PR_NUMBER 后重新调用 `\u002Fpr-ship $PR_NUMBER`。\n\nExit.\n\nInvoke pr-fix in interactive mode, passing the PR number explicitly:\n\n```\n\u002Fpr-fix $PR_NUMBER\n```\n\n(No `--automation` flag.)\n\n### After pr-fix completes\n\n**Fix pushed successfully:** `RETRY_COUNT++`. ScheduleWakeup 270s → back to Phase 1 (wait for CI on new commit).\n\n**Fix aborted** (all issues dismissed, or user rejected CRITICAL dismissal):\n\n> pr-fix 未产生修复。是否继续看护此 PR？(yes\u002Fno)\n\n- **yes** → back to Phase 1 (CI may already be passing)\n- **no** → exit, output PR URL for manual handling\n\n---\n\n## Phase 4 — Merge\n\n### AUTO_MERGE = true (default)\n\n```bash\ngh pr merge $PR_NUMBER --squash --auto\n```\n\nOutput:\n\n> ✅ PR #$PR_NUMBER 已设置 auto-merge，CI 通过后将自动合并。\n\n### AUTO_MERGE = false (--no-auto-merge)\n\nDisplay summary:\n\n```\n=== PR #$PR_NUMBER 就绪 ===\n\n标题: \u003Ctitle>\n变更: +\u003Cadditions> \u002F -\u003Cdeletions> (\u003Cfile_count> files)\nReview: \u003Cconclusion>\nCI: 全部通过\n\n输入 merge 确认合并，或 abort 放弃。\n```\n\nFetch summary data:\n\n```bash\ngh pr view $PR_NUMBER --json title,additions,deletions,changedFiles \\\n  --jq '{title: .title, additions: .additions, deletions: .deletions, files: .changedFiles}'\n```\n\n- User says **merge** → `gh pr merge $PR_NUMBER --squash` → output `✅ PR #$PR_NUMBER 已合并。`\n- User says **abort** → exit, output PR URL\n\n---\n\n## ScheduleWakeup Integration\n\nThis skill uses `\u002Floop` dynamic mode for CI waiting. Each ScheduleWakeup call:\n\n```\nScheduleWakeup(\n  delaySeconds: 270,\n  reason: \"waiting for CI on PR #$PR_NUMBER (check N)\",\n  prompt: \"\u002Fpr-ship $PR_NUMBER\"\n)\n```\n\n**Interval:** 270s uniformly (under 5-min prompt cache TTL).\n\n**When to call ScheduleWakeup:**\n\n- CI is still running (QUEUED\u002FIN_PROGRESS)\n- Just approved a workflow run\n- Just pushed a CI fix\n- Just pushed a pr-fix commit\n\n**When NOT to call ScheduleWakeup:**\n\n- CI has completed (pass or fail with actionable errors)\n- During review (Phase 2) or fix (Phase 3) execution\n- After merge (Phase 4)\n\n---\n\n## Mandatory Rules\n\n- **No AI signature** — no `Co-Authored-By`, no `Generated with` in any commit or comment\n- **Retry limit = 3** — hard cap, shared between CI fixes and review fixes\n- **Fix scope discipline** — CI fixes target only CI-reported errors; review fixes go through pr-fix\n- **No label pollution** — pr-ship does not set any `bot:*` labels\n- **ScheduleWakeup only for CI wait** — never during review or fix execution\n- **REPO detection at runtime** — `gh repo view --json nameWithOwner --jq '.nameWithOwner'`\n- **Worktree path** — always `\u002Ftmp\u002Faionui-ship-\u003CPR_NUMBER>` (distinct from pr-automation's `\u002Ftmp\u002Faionui-pr-*` and pr-verify's `\u002Ftmp\u002Faionui-verify-*`)\n- **Worktree cleanup** — always remove worktree after CI fix, even on failure\n\n## Quick Reference\n\n```\n0. Parse args: pr_number? --no-auto-merge?\n1. Phase 0: \u002Foss-pr (skip if pr_number given)\n2. Phase 1: CI wait loop\n   - check statusCheckRollup\n   - passing -> Phase 2\n   - running -> ScheduleWakeup 270s\n   - not triggered -> approve workflow + ScheduleWakeup 270s\n   - failed -> retry_count \u003C 3? fix + push + ScheduleWakeup 270s : abort\n3. Phase 2: \u002Fpr-review (interactive)\n   - APPROVED -> Phase 4\n   - CONDITIONAL\u002FREJECTED -> Phase 3\n4. Phase 3: \u002Fpr-fix (interactive)\n   - pushed -> retry_count++, back to Phase 1\n   - aborted -> ask user\n5. Phase 4: merge\n   - default: gh pr merge --squash --auto\n   - --no-auto-merge: confirm then gh pr merge --squash\n```\n",{"name":5,"description":7},"main","3c19e850e7cd377dc8b32ba3fea9becd16595524",".claude\u002Fskills\u002Fpr-ship",0,"https:\u002F\u002Fgithub.com\u002Ffinewood2008\u002Fcentaurai-decision","https:\u002F\u002Fgithub.com\u002Ffinewood2008","Founder & CEO of Centaur AI · Humans lead, AI executes — the Centaur Loop is the smallest work unit for building AI employees.","2026-07-19 22:38:44",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add finewood2008\u002Fcentaurai-decision --skill pr-ship",{"tool":38,"command":39},"bunx","bunx skills add finewood2008\u002Fcentaurai-decision --skill pr-ship",{"tool":41,"command":42},"pnpm","pnpm dlx skills add finewood2008\u002Fcentaurai-decision --skill pr-ship","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Ffinewood2008\u002Fcentaurai-decision\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fpr-ship\u002FSKILL.md",true,[],[47,53,59,66,73,80],{"skillNo":48,"name":49,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":50,"categories":51,"keywords":52,"publishedAt":19},"01M77RBY5HGGVSV6XACWRA1NQK","aionui-troubleshooting","https:\u002F\u002Fgithub.com\u002Ffinewood2008\u002Fcentaurai-decision\u002Fblob\u002Fmain\u002Fresources\u002Fbutler\u002Fskills\u002Faionui-troubleshooting\u002FSKILL.md",[],[],{"skillNo":54,"name":55,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":58,"publishedAt":19},"01M77RBV90N96AHP1KXQGRSS2M","aionui-config","https:\u002F\u002Fgithub.com\u002Ffinewood2008\u002Fcentaurai-decision\u002Fblob\u002Fmain\u002Fresources\u002Fbutler\u002Fskills\u002Faionui-config\u002FSKILL.md",[],[],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":19},"01M77RBR054EB4FMMNN2EEHH13","testing","Testing workflow and quality standards for writing and running tests.\nUse when: (1) Writing new tests, (2) Adding a new feature that needs tests,\n(3) Modifying logic that has existing tests, (4) Before claiming a task is complete.","https:\u002F\u002Fgithub.com\u002Ffinewood2008\u002Fcentaurai-decision\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Ftesting\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":19},"01M77RBKVHZZXCCY96ERY1QC1R","pr-verify","PR Verification & Merge: verify bot:ready-to-merge PRs with impact analysis, test supplementation, and one-click merge.\nUse when: (1) User says \"\u002Fpr-verify\", (2) User wants to verify and merge ready PRs.","https:\u002F\u002Fgithub.com\u002Ffinewood2008\u002Fcentaurai-decision\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fpr-verify\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M77RBA6V98VM087EZJYWZRD1","pr-review","PR Code Review (Local): perform a thorough local code review with full project context.\nUse when: (1) User asks to review a PR, (2) User says \"\u002Fpr-review\", (3) User wants to review code changes before merging.","https:\u002F\u002Fgithub.com\u002Ffinewood2008\u002Fcentaurai-decision\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fpr-review\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M77RB5KHE6GYW77KPGKCQR8J","pr-fix","PR Review Fix: automatically fix all issues identified in a pr-review report.\nUse when: (1) User says \"fix all review issues\", (2) User says \"\u002Fpr-fix\",\n(3) After pr-review skill has produced a report, (4) User wants to address PR review feedback.","https:\u002F\u002Fgithub.com\u002Ffinewood2008\u002Fcentaurai-decision\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fpr-fix\u002FSKILL.md",[],[]]