[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M78F6YF29CEWJQ9BN6XVTNXA":3,"skill-same:01M78F6YF29CEWJQ9BN6XVTNXA":270},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":26,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":29,"install":30,"resources":43},"01M78F6YF29CEWJQ9BN6XVTNXA","pr-converge",null,"Loops Cursor Bugbot, a code review, a bug audit, and Copilot on the current PR, applying TDD fixes until all are clean on one HEAD. Use when the user says '\u002Fpr-converge', 'drive PR to convergence', 'loop bugbot and bugteam', 'babysit bugbot and bugteam', 'until both are clean', or 'converge this PR'.","jl-cmd-projects\u002Fclaude-dev-env","jl-cmd-projects","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F338158757?v=4","01M78F4M55P4QY5YPN27XBQA9N","01M78F4M65AGEYC88NV6PW4715",7,"MIT","https:\u002F\u002Fgithub.com\u002Fjl-cmd-projects\u002Fclaude-dev-env\u002Fblob\u002Fmain\u002Fpackages\u002Fclaude-dev-env\u002F.agents\u002Fskills-archived\u002Fpr-converge\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: pr-converge\ndescription: >-\n  Loops Cursor Bugbot, a code review, a bug audit, and Copilot on the current\n  PR, applying TDD fixes until all are clean on one HEAD. Use when the user says\n  '\u002Fpr-converge', 'drive PR to convergence', 'loop bugbot and bugteam', 'babysit\n  bugbot and bugteam', 'until both are clean', or 'converge this PR'.\n---\n\n# PR Converge\n\nA code-review ↔ bugteam ↔ Bugbot ↔ Copilot loop on a draft PR: the internal\ncode-review and bugteam passes drive the code to clean first, then Cursor\nBugbot and Copilot run as terminal confirmation gates, until all are clean on\nthe same `HEAD` and mergeable. On `pacer=schedule_wakeup`, one tick runs per\ninvocation and the next tick is scheduled. On `pacer=portable`, ticks run\ncontinuously in-session (see\n[`..\u002F..\u002Fskills\u002F_shared\u002Fpr-loop\u002Fportable-driver.md`](..\u002F..\u002Fskills\u002F_shared\u002Fpr-loop\u002Fportable-driver.md)).\n\n## Transport check (before any GitHub step)\n\nRun `command -v gh`; when it succeeds, run `gh auth status`; once the PR\nscope is resolved, run `gh api repos\u002F\u003Cowner>\u002F\u003Crepo> --jq .permissions.push`\nand take `true` as the pass. When any check fails, run the\n`pr-loop-cloud-transport` skill first and route every `gh` operation in this\nskill through its substitution matrix.\n\n## Pre-flight\n\n### Task list (step 1)\n\nAfter down\u002Fopt-out flags are known, build the work list with\n`build_converge_task_list.py` only (same script as autoconverge). Register every\ntask; **final task** is always `all_runnable_reviews_clean_same_head`. Complete\nthat final task only when every runnable review is CLEAN on the same HEAD.\nOn `pacer=portable`, `open-run` returns the same list.\n\n### Pacer selection\n\nScan the tool list for `ScheduleWakeup`. Record whether it is present, then\nselect the pacer:\n\n```\npython \"$HOME\u002F.claude\u002Fskills\u002F_shared\u002Fpr-loop\u002Fscripts\u002Fselect_converge_pacer.py\" \\\n  --skill pr-converge \\\n  --has-workflow \u003C0|1> \\\n  --has-schedule-wakeup \u003C0|1>\n```\n\n- `pacer=schedule_wakeup` — native tick pacing via `ScheduleWakeup` (see\n  [`workflows\u002Fschedule-wakeup-loop.md`](workflows\u002Fschedule-wakeup-loop.md)).\n- `pacer=portable` — continuous in-session driver on\n  [`..\u002F..\u002Fskills\u002F_shared\u002Fpr-loop\u002Fportable-driver.md`](..\u002F..\u002Fskills\u002F_shared\u002Fpr-loop\u002Fportable-driver.md).\n  **Do not abort** because `ScheduleWakeup` is missing.\n\n### Worktree isolation\n\nWhen the tool list includes `EnterWorktree`, call it with no arguments before\nany API call, file read, or edit. Agent-view sessions start in the shared\ncheckout; Bash (`gh`, `git`) does not auto-isolate. Do not proceed until the\nworking directory contains `.claude\u002Fworktrees\u002F`. If `EnterWorktree` fails,\nreport the failure and stop.\n\nWhen `EnterWorktree` is absent, isolate with git worktree machinery per\n[`..\u002F..\u002Fskills\u002F_shared\u002Fpr-loop\u002Fportable-driver.md`](..\u002F..\u002Fskills\u002F_shared\u002Fpr-loop\u002Fportable-driver.md)\n§ Isolation and worktree, then run strict\n`preflight_worktree.py` for the PR's owner\u002Frepo. Fail closed only when the\ncheckout is not the PR's repo on the PR head ref.\n\n`EnterWorktree` (or the portable worktree path) isolates the session repo.\nWhen the PR lives in a different repo, Step 1.5 routes the working directory\ninto a **PR worktree** of that repo on its head branch (routine, never a\npause). See [`reference\u002Fper-tick.md` § Step 1.5](reference\u002Fper-tick.md).\n\n## Resume from a prior run\n\nBefore Step 0, check\n`~\u002F.claude\u002Fruntime\u002Fpr-loop\u002Fbugteam-pr-\u003CPR number>\u002Fhandoff.json`. When\n`$CLAUDE_JOB_DIR\u002Fpr-converge-state.json` is absent but that handoff exists, seed\n`phase`, `tick_count`, and the clean-at SHAs from the run's `state-copy.json`, so\na fresh session continues where the last one stopped rather than restarting at\nCODE_REVIEW.\n\n## Copilot quota pre-check (start of run)\n\nOn the first tick, apply the `reviewer-gates` skill's Copilot quota gate\n(`..\u002Freviewer-gates\u002FSKILL.md` § Gate 2) — once per run, never per tick. The\nflag lives in `pr-converge-state.json` as `copilot_down`, and every tick reads\nit. While `copilot_down` is true, the tick skips all Copilot work — no fetch,\nno request, no poll, no agent — and exports\n`CLAUDE_REVIEWS_DISABLED=\"copilot\"` in that tick's shell before\n`check_convergence.py`, so the check bypasses the Copilot review gate and the\npending-requested-reviews gate and the run still marks ready on the remaining\nsignals.\n\n## Copilot findings — tier, verify, then route\n\nTier, verify, and route each Copilot finding via\n[`copilot-finding-triage`](..\u002Fcopilot-finding-triage\u002FSKILL.md) (self-healing\nauto-fix; code-concern verify then confirmed \u002F refuted \u002F inconclusive).\n\n**pr-converge phase routing after triage:**\n\n- Self-healing and **confirmed** findings join the fix tick on `current_head`;\n  after push, reset clean-at SHAs, set `phase = CODE_REVIEW`, return to Step 5.\n- **Refuted** findings resolve clean on the thread; no phase change.\n- One or more **inconclusive** findings: do not mark ready. Page via the\n  triage skill's ntfy step, then hold by pacer:\n  - **`pacer=schedule_wakeup`** — triage user gate (`ScheduleWakeup` \u002F\n    `send_later` 45-minute hold across ticks; persist the deadline so each tick\n    reads it on entry).\n  - **`pacer=portable`** — in-session deadline poll or handoff per\n    [`..\u002F..\u002Fskills\u002F_shared\u002Fpr-loop\u002Fportable-driver.md`](..\u002F..\u002Fskills\u002F_shared\u002Fpr-loop\u002Fportable-driver.md);\n    never `ScheduleWakeup` or `send_later`.\n  Act on the user's direction inside the window; on timeout, teardown and report\n  the findings un-reviewed.\n- Enter `COPILOT_WAIT` only from gate (d) after requesting a Copilot review\n  (Step 7 → 7a). Stay on `COPILOT_WAIT` until a review surfaces at\n  `current_head`, `copilot_wait_count >= 3` hard-blocks, or `copilot_down`\n  skips the Copilot path entirely.\n\n## Budget-aware tick boundaries\n\nBefore starting any tick, estimate whether the remaining session\u002Fusage\nbudget covers one full clean tick (worst case: a BUGBOT fetch + a\nfull-diff CODE_REVIEW + a fix commit + replies). If it does not, do not\nstart the tick. Stop at the current tick boundary: write updated state to\n`$CLAUDE_JOB_DIR\u002Fpr-converge-state.json`, write the durable handoff (see\n[State persistence](#state-persistence)), then report the exact resume\ncommand (`\u002Fpr-converge \u003CPR URL>`) and the persisted `phase`\u002F`tick_count`.\nA tick cut off mid-flight poisons the resume state — clean SHAs recorded\nagainst work that never landed — so an unstarted tick is always cheaper\nthan a half-finished one.\n\n## Findings discipline\n\nEvery finding, reply, and report states verified facts only — no hedging\nlanguage (`likely`, `probably`, `should`, `appears to`). Verify each\nclaim against the code on `current_head` before stating it; the\nanti-hallucination Stop hook rejects hedged output, forcing a rework\npass. A claim that cannot be verified is reported as unverified, not\nsoftened.\n\n## State persistence\n\nSingle-PR mode persists loop state to `$CLAUDE_JOB_DIR\u002Fpr-converge-state.json`.\nOn tick entry, read this file if it exists to restore phase, tick_count, and\nclean-at SHAs. On tick exit, write updated state before the next pacer step\n(`ScheduleWakeup` when `pacer=schedule_wakeup`; continuous continue or\nin-session poll when `pacer=portable`) so the next tick resumes with accurate\nstate.\n\nAfter the state write and before the next pacer step, write the durable handoff\nso a fresh session in a new job can resume this run:\n\n```\npython \"$HOME\u002F.claude\u002Fskills\u002F_shared\u002Fpr-loop\u002Fscripts\u002Fwrite_handoff.py\" \\\n  --pr-number \u003CN> --head-ref \u003Cbranch> --phase \u003Cphase> \\\n  --resume-command \"\u002Fpr-converge \u003CPR URL>\" \\\n  --state-file \"$CLAUDE_JOB_DIR\u002Fpr-converge-state.json\" \\\n  --completed-steps \"\u003Cclean phases this run>\"\n```\n\nIt writes `handoff.json`, `HANDOFF.md`, and `state-copy.json` under\n`~\u002F.claude\u002Fruntime\u002Fpr-loop\u002F\u003Crun-name>\u002F`. The job-dir state stays the source of\ntruth for a resumed tick; the handoff copy is the pointer a fresh session reads\nwhen `$CLAUDE_JOB_DIR` is gone.\n\nFields: `phase`, `tick_count`, `bugbot_clean_at`, `code_review_clean_at`,\n`bugteam_clean_at`, `copilot_clean_at`, `merge_state_status`, `current_head`,\n`bugbot_acknowledged_at`, `bugbot_down`, `copilot_down`, `agents_session_id`,\n`persistent_agents`.\n\n## Persistent per-step agents\n\nThree step-scoped agents persist across ticks so their context carries\nforward: `fix_executor`, `thread_sweep`, and `copilot_watch`, recorded in\nthe `persistent_agents` map\n([`reference\u002Fstate-schema.md`](reference\u002Fstate-schema.md)).\n\n- **Resume:** read `persistent_agents.\u003Ckey>`. When an entry exists,\n  `SendMessage` to the stored `agent_id` with a tick payload that restates\n  the PR scope, `current_head`, the PR worktree path, this tick's findings\n  or threads, and the report-back contract. Bump `last_used_tick`, then\n  await completion.\n- **First spawn:** `Agent(subagent_type: \"clean-coder\", name:\n  \"prc-fix-\u003CPR#>\", model: \"sonnet\")` — worker-model routing per\n  [`skills\u002Forchestrator\u002FSKILL.md`](..\u002Forchestrator\u002FSKILL.md#workflow-agent-routing);\n  resolver-supplied sonnet-equivalent on third-party hosts. The `name`\n  makes the agent a persistent teammate\n  that idles awaiting messages. Record `{agent_id, created_tick,\n  last_used_tick}` under the step key. Keep the spawn prompt focused on the\n  current fix. Step 6 sends audit judgment through the\n  [review guide](..\u002Freviews\u002FSKILL.md#review-workflow).\n- **Stale or dead id:** on a `SendMessage` failure, or no acknowledgment\n  within one bounded wait, drop the map entry, spawn a fresh named agent,\n  record it, and continue the tick. Never abort a tick on a stale id;\n  never retry the same dead id.\n- **Fresh every round (never persisted):** the Step 5 host-aware\n  `invoke_code_review.py` \u002F `\u002Fcode-review ultra --fix` pass and the Step 6\n  bugteam audit. Apply the [review guide](..\u002Freviews\u002FSKILL.md#review-workflow)\n  to each review pass.\n- **Shutdown:** at loop end (convergence or a stop condition), send each\n  persistent agent a shutdown request and clear `persistent_agents` before\n  the `pr-loop-lifecycle` Close.\n\n## Gotchas\n\nHighest-signal content. Append a bullet each time a tick fails in a new\nway — these are the hard-won lessons that keep the loop honest. Once this\ngrows to 5 or more items, suggest spinning up a subagent to investigate, fix,\npost a fresh PR in a fresh branch based on origin main to the user.\n\n- **`ScheduleWakeup` not in subagent tool registries** — background\n  `general-purpose` tick cannot schedule re-entry; only the parent session\n  with `ScheduleWakeup` (or the portable continuous driver on the parent)\n  may pace the next tick.\n- **Portable host has no durable wake outside the session** — when\n  `pacer=portable`, budget and context bound how many ticks complete; write\n  handoff at a tick boundary and resume with `\u002Fpr-converge \u003CPR URL>`.\n- **`state.json` without §Concurrency lock loses merges** when teammates\n  finish in same wall-clock window.\n- **`tick_count` must not double-increment** — conversation state line\n  only when **no** `state.json`; with `state.json`, only the\n  orchestrator bump increments.\n- **Bugbot trigger and detection** — CI check-run based. Full flow at\n  [`per-tick.md` Step 3](reference\u002Fper-tick.md); see also\n  `~\u002F.claude\u002Fskills\u002Fpr-converge\u002Fscripts\u002Fcheck_bugbot_ci.py --help`.\n- **Bot login fields differ by endpoint** — `get_reviews` returns\n  `.user.login` (object), but `get_review_comments` returns `.author`\n  (string, not an object). Always check the correct fields and use\n  case-insensitive substring matching on login values, never strict\n  equality.\n- **`isOutdated` has dual scope** — GitHub marks a thread `isOutdated=true`\n  when the line it anchors to has changed since the comment was posted. The\n  machine gate (`check_convergence.py` \u002F [convergence-gates.md](reference\u002Fconvergence-gates.md)\n  gate (e)) excludes `isOutdated == true` bot threads from the fail count —\n  only non-outdated unresolved bot threads fail the gate. The agent-side\n  unresolved-thread sweep in the shared fix protocol\n  ([`..\u002F..\u002F_shared\u002Fpr-loop\u002Ffix-protocol.md`](..\u002F..\u002F_shared\u002Fpr-loop\u002Ffix-protocol.md)\n  step 12; skill deltas in [`reference\u002Ffix-protocol.md`](reference\u002Ffix-protocol.md))\n  still verifies outdated unresolved threads against HEAD before resolve when\n  the protocol requires it (the original concern can still apply when the fix\n  moved rather than landed).\n- **Tilde paths fail on Windows Git Bash** — `~\u002F.claude\u002Fskills\u002F...`\n  resolves to the wrong home directory in Bash-tool contexts. Use\n  `$HOME\u002F.claude\u002Fskills\u002F...` in shell invocations or `Path.home() \u002F\n  \".claude\u002Fskills\u002F...\"` in Python scripts. Script invocations through\n  Bash that reference `~` produce \"file not found\" errors\n  indistinguishable from actual script failures.\n- **PowerShell cmdlets fail in Bash tool** — `.ps1` scripts and\n  `pwsh` calls run through the PowerShell tool, not Bash. Bash on\n  Windows is Git Bash which cannot execute PowerShell cmdlets. Route all\n  PowerShell work through the PowerShell tool or `pwsh -NoProfile -File`.\n- **Cross-repo PR: route cwd into the PR worktree before Step 5 review** —\n  `invoke_code_review.py` and `\u002Fcode-review ultra --fix` audit the repo of the\n  cwd (the helper's `--cwd`). When the session is rooted in a different repo\n  than the PR, `EnterWorktree` cannot re-root (it is scoped to the session's\n  repo); resolve the PR worktree and `cd` into it per\n  [Step 1.5](reference\u002Fper-tick.md). Skipping this reviews and edits the\n  wrong repo. The route is routine and automatic — never a material fork\n  to pause on.\n\n## Progress checklist\n\nState variables (`phase`, `bugbot_clean_at`, `code_review_clean_at`,\n`bugteam_clean_at`, `copilot_clean_at`, `merge_state_status`, counters) are\ndefined in [`reference\u002Fstate-schema.md`](reference\u002Fstate-schema.md). Ground rules\nin [`reference\u002Fground-rules.md`](reference\u002Fground-rules.md).\n\nEach step references its spoke file for full procedural detail — MCP calls,\nscript invocations, decision criteria. Every \"return to Step N\" means the next\ntick starts fresh from that step.\n\n**Hard gate: do not advance from any step while ANY unresolved review\nthread exists on the PR.** Sweep semantics and per-thread handling live in\nthe shared fix protocol\n([`..\u002F..\u002F_shared\u002Fpr-loop\u002Ffix-protocol.md`](..\u002F..\u002F_shared\u002Fpr-loop\u002Ffix-protocol.md)\nstep 12; skill deltas in [`reference\u002Ffix-protocol.md`](reference\u002Ffix-protocol.md)).\n\n**Full-PR-diff rule: every CODE-REVIEW round (Step 5) and every BUGTEAM\nround (Step 6) covers the FULL `origin\u002Fmain...HEAD` diff — every file\nthe PR touches.** A round that scopes to a subset — only the last commit,\nonly files touched since the prior clean SHA, only bugbot-flagged paths,\nor any other delta cut — does not satisfy the gate, and a \"clean\" verdict\nagainst a partial diff is not a valid clean. Re-run the round against the\nfull diff before recording `code_review_clean_at` or treating the bugteam\nround as converged. This rule holds every tick, every loop, every PR.\n\n- [ ] **Step 0: Open the run**\n      Apply the `pr-loop-lifecycle` skill's Open section\n      (`..\u002Fpr-loop-lifecycle\u002FSKILL.md`): permission grant + worktree preflight.\n\n- [ ] **Step 1: Resolve PR scope + PR worktree**\n      Apply Step 1.5 scope resolution in\n      [`reference\u002Fper-tick.md`](reference\u002Fper-tick.md). Resolve the **PR\n      worktree** — the local checkout every local step this tick targets:\n      the `EnterWorktree` checkout when the PR shares the session's repo,\n      else a checkout of the PR's repo that the working directory routes\n      into via `cd`. Cross-repo routing is automatic, not a fork.\n      See: [`reference\u002Fper-tick.md` § Step 1](reference\u002Fper-tick.md)\n      and [§ Step 1.5](reference\u002Fper-tick.md)\n\n- [ ] **Step 2: Initialize loop state**\n      `phase = CODE_REVIEW`; all counters at zero; `run_name` resolved.\n\n- [ ] **Step 3: Mergeability check**\n      See: [`reference\u002Fconvergence-gates.md` § (c)](reference\u002Fconvergence-gates.md)\n\n      ```\n      pull_request_read(method=\"get\") → .mergeable_state, .mergeable\n      ```\n\n      - [ ] mergeable → advance to Step 4\n      - [ ] not mergeable → rebase → force-push → return to Step 1\n\n- [ ] **Step 4: BUGBOT — terminal Bugbot confirmation gate**\n      Step 6 routes here after BUGTEAM converges. Bugbot confirms code the\n      internal passes already drove to clean.\n      See: [`reference\u002Fper-tick.md` § BUGBOT terminal gate + Step 3](reference\u002Fper-tick.md);\n      availability and trigger via `reviewer-gates`\n      (`..\u002Freviewer-gates\u002FSKILL.md` § Gate 1 \u002F Gate 3).\n\n      - [ ] **disabled \u002F down** → `bugbot_down = true` → Step 7\n      - [ ] **dirty on `current_head`** → apply shared fix protocol\n            ([`..\u002F..\u002F_shared\u002Fpr-loop\u002Ffix-protocol.md`](..\u002F..\u002F_shared\u002Fpr-loop\u002Ffix-protocol.md);\n            skill deltas in [`reference\u002Ffix-protocol.md`](reference\u002Ffix-protocol.md))\n            → push → reset push-invalidated markers → `phase = CODE_REVIEW` → Step 5\n      - [ ] **clean on `current_head`** → zero unresolved threads (else fix + resolve first)\n            → `bugbot_clean_at = current_head` → Step 7\n      - [ ] **no review \u002F commit_id mismatch** → `reviewer-gates` Bugbot flow (Gate 3):\n            silent pass → Step 7; queued\u002Ftriggered → ScheduleWakeup 360s or portable in-session poll → Step 4;\n            down → `bugbot_down = true` → Step 7\n\n- [ ] **Step 5: CODE-REVIEW — static sweep, review, fix, advance**\n      Entry phase every tick; re-entered after any fix push.\n      See: [`reference\u002Fper-tick.md` § CODE_REVIEW entry](reference\u002Fper-tick.md).\n      Pre-condition: cwd is the Step 1.5 PR worktree on `current_head`.\n      Scope: FULL `origin\u002Fmain...HEAD` diff every tick (no path args, no delta cut).\n      Review always runs at effort high on model opus through\n      `invoke_code_review.py`. Mode decision inputs: host profile + session\n      model. Call:\n      `python \"$HOME\u002F.claude\u002Fscripts\u002Finvoke_code_review.py\" --cwd \u003CPR-worktree>\n      --session-model \u003Calias>`. Chain mode uses that cwd and empty stdin; the\n      chain process never commits and never pushes. JSON stdout carries\n      `mode` (`in_session` | `chain`), `served_command`, `returncode`, and\n      `dirty_tree`. Config\u002Fhost errors still emit that JSON with non-zero\n      `returncode` (no traceback-only failure).\n\n      - [ ] **Static sweep fails** → apply shared fix protocol → push → reset markers\n            → stay CODE_REVIEW → Step 5\n      - [ ] **`mode == in_session`** (Claude host, session model opus) → run\n            `\u002Fcode-review ultra --fix` in-session (no path args)\n      - [ ] **`mode == chain`** (any other host or non-opus session) → helper\n            already ran the headless review; read `returncode`,\n            `served_command`, and `dirty_tree` from JSON\n      - [ ] **failed review** (`returncode != 0`, or chain with null\n            `served_command`) → do not set `code_review_clean_at` → stay\n            CODE_REVIEW → Step 5\n      - [ ] **fixes applied** (`dirty_tree` true \u002F working tree dirty) →\n            commit + push via shared fix protocol → reset markers → stay\n            CODE_REVIEW → Step 5\n      - [ ] **clean** (successful serve: `returncode == 0`, chain\n            `served_command` non-null when chain, and `dirty_tree` false) →\n            zero unresolved threads (else fix + resolve) →\n            `code_review_clean_at = current_head` → `phase = BUGTEAM` → Step 6\n\n- [ ] **Step 6: BUGTEAM — run, decide, fix, reply, resolve**\n      See: [`reference\u002Fper-tick.md` § Step 2 BUGTEAM](reference\u002Fper-tick.md);\n      [`..\u002Fbugteam\u002FSKILL.md`](..\u002Fbugteam\u002FSKILL.md).\n      Pre-condition: `code_review_clean_at == current_head`.\n      Mandatory: `Skill({skill: \"bugteam\", args: \"\u003CPR URL>\"})` this tick.\n      Use the [review guide](..\u002Freviews\u002FSKILL.md#review-workflow) for its\n      judgment. `qbug` is not a substitute. Scope: FULL `origin\u002Fmain...HEAD`\n      diff. Re-resolve HEAD after bugteam.\n\n      - [ ] **bugteam pushed** → verify threads replied + resolved → reset markers\n            → `phase = CODE_REVIEW` → ScheduleWakeup 360s or portable in-session poll → Step 5\n      - [ ] **converged, no push** → zero unresolved threads →\n            `bugteam_clean_at = current_head` → `phase = BUGBOT` → Step 4\n      - [ ] **findings without committed fixes** → apply shared fix protocol → push →\n            reset markers → `phase = CODE_REVIEW` → Step 5\n\n- [ ] **Step 7: Convergence gates**\n      Full procedure: [`reference\u002Fconvergence-gates.md`](reference\u002Fconvergence-gates.md).\n\n      Pre-condition: Step 6 converged AND (`bugbot_clean_at == current_head` OR\n      `bugbot_down`). The terminal Bugbot gate (Step 4) sets that state just\n      before these gates run. Count unresolved threads before each gate.\n      Every gate records evidence; gate (f) cites evidence from (a)–(e).\n\n      - [ ] **(a) Copilot findings** — fetch Copilot on `current_head`; dirty → fix + return to Step 5; clean → record `copilot_clean_at`; absent → continue; when `copilot_down`, skip\n      - [ ] **(b) Claude reviewer** — fetch Claude on `current_head`; dirty → fix + return to Step 5; clean or absent → continue\n      - [ ] **(c) Mergeability** — `mergeable_state == \"clean\"` and `mergeable == true`; dirty → rebase + return to Step 1; blocked\u002Fbehind\u002Funknown\u002Funstable → hard blocker\n      - [ ] **(d) Post-convergence Copilot request** — request Copilot when not pending and not `copilot_down`; enter `COPILOT_WAIT` (Step 7a); when `copilot_down`, skip to (e)\n      - [ ] **(e) Thread-resolution** — zero unresolved threads across the PR; else sweep + fix\u002Fresolve\n      - [ ] **(f) Mark ready** — run `check_convergence.py`; exit 0 → `update_pull_request(draft=false)` → Step 8; exit 1 → fix path; exit 2 → retry\u002Fstop\n\n- [ ] **Step 7a: COPILOT_WAIT — fetch Copilot, decide**\n      See: [`reference\u002Fper-tick.md` § Step 2 COPILOT_WAIT](reference\u002Fper-tick.md).\n      Skipped entirely when `copilot_down` (gate (d) never enters this phase).\n\n      - [ ] **clean** → `copilot_clean_at = current_head` → Step 7 (re-validate (b), (c), (e), (f))\n      - [ ] **dirty** → apply shared fix protocol\n            ([`..\u002F..\u002F_shared\u002Fpr-loop\u002Ffix-protocol.md`](..\u002F..\u002F_shared\u002Fpr-loop\u002Ffix-protocol.md);\n            skill deltas in [`reference\u002Ffix-protocol.md`](reference\u002Ffix-protocol.md))\n            → push → reset markers → `phase = CODE_REVIEW` → Step 5\n      - [ ] **no review yet** → increment `copilot_wait_count` → ≥ 3 hard-blocks;\n            else ScheduleWakeup 360s or portable in-session poll → Step 7a next tick\n\n- [ ] **Step 8: Clean working tree**\n      `pr-loop-lifecycle` Close (`..\u002Fpr-loop-lifecycle\u002FSKILL.md`).\n      See: [`pr-loop-lifecycle\u002Freference\u002Fteardown-publish-permissions.md` § Clean working tree](..\u002Fpr-loop-lifecycle\u002Freference\u002Fteardown-publish-permissions.md)\n\n- [ ] **Step 9: Rewrite PR description**\n      `pr-loop-lifecycle` Close.\n      See: [`pr-loop-lifecycle\u002Freference\u002Fteardown-publish-permissions.md` § Publish the final PR description](..\u002Fpr-loop-lifecycle\u002Freference\u002Fteardown-publish-permissions.md)\n\n- [ ] **Step 10: Revoke project permissions (always)**\n      `pr-loop-lifecycle` Close (`..\u002Fpr-loop-lifecycle\u002FSKILL.md` § Close).\n\n- [ ] **Step 11: Print final report**\n      Print this block verbatim — no paraphrase, no extra commentary:\n      ```\n      \u002Fpr-converge exit: converged\n      Loops: \u003CN>\n      Final commit: \u003CSHA>\n      ```\n\n## Edge cases\n\n| Situation | Read |\n|---|---|\n| Multi-PR session (`state.json` exists) | [`reference\u002Fmulti-pr-orchestration.md`](reference\u002Fmulti-pr-orchestration.md) |\n| Hard blocker or user stops loop | [`reference\u002Fstop-conditions.md`](reference\u002Fstop-conditions.md) |\n| Tick is ambiguous against the steps above | [`reference\u002Fexamples.md`](reference\u002Fexamples.md) |\n\n## Depends on \u002F invokes\n\n| Skill \u002F path | Role |\n|---|---|\n| `pr-loop-lifecycle` | Open (permission grant + worktree preflight) and Close (cleanup, PR description, revoke) |\n| `reviewer-gates` | Copilot quota gate, Bugbot availability, Bugbot trigger flow |\n| `copilot-finding-triage` | Tier, verify, and route each Copilot finding |\n| `bugteam` | Full-diff bug audit in Step 6 (Skill invocation mandatory) |\n| `pr-loop-cloud-transport` | When `gh` is unavailable or unauthenticated |\n| [`..\u002F..\u002Fskills\u002F_shared\u002Fpr-loop\u002Fportable-driver.md`](..\u002F..\u002Fskills\u002F_shared\u002Fpr-loop\u002Fportable-driver.md) | Continuous in-session pacer when `ScheduleWakeup` is absent |\n| [`..\u002F..\u002F_shared\u002Fpr-loop\u002Ffix-protocol.md`](..\u002F..\u002F_shared\u002Fpr-loop\u002Ffix-protocol.md) | Shared 13-step fix sequence (TDD, commit, push, reply, resolve) |\n| [`reference\u002Ffix-protocol.md`](reference\u002Ffix-protocol.md) | pr-converge deltas on the shared fix protocol |\n\n## Package file index\n\n| Path | Purpose |\n|---|---|\n| `SKILL.md` | Hub: pre-flight, state, progress checklist, gotchas |\n| `CLAUDE.md` | Package map for agents working in this skill |\n| `pr_converge_skill_constants\u002F` | Importable constants for skill scripts |\n| `reference\u002Fper-tick.md` | Full per-tick procedure (phases, cwd routing, pacing) |\n| `reference\u002Fconvergence-gates.md` | Six gates before mark-ready |\n| `reference\u002Ffix-protocol.md` | pr-converge fix-protocol deltas |\n| `reference\u002Fground-rules.md` | Non-negotiable loop constraints |\n| `reference\u002Fstate-schema.md` | `pr-converge-state.json` fields |\n| `reference\u002Fstop-conditions.md` | Hard stops without convergence |\n| `reference\u002Fmulti-pr-orchestration.md` | Multi-PR session orchestration |\n| `reference\u002Fexamples.md` | Worked tick sequences |\n| `reference\u002Fobstacles\u002F` | Per-obstacle fix runbooks |\n| `scripts\u002F` | Convergence helpers, Copilot fetch, fix-reply poster, tests |\n| `workflows\u002Fschedule-wakeup-loop.md` | ScheduleWakeup pacing (`pacer=schedule_wakeup`) |\n| [`..\u002F..\u002Fskills\u002F_shared\u002Fpr-loop\u002Fportable-driver.md`](..\u002F..\u002Fskills\u002F_shared\u002Fpr-loop\u002Fportable-driver.md) | Portable continuous pacer (`pacer=portable`) |\n","# PR Converge\n\nA code-review ↔ bugteam ↔ Bugbot ↔ Copilot loop on a draft PR: the internal\ncode-review and bugteam passes drive the code to clean first, then Cursor\nBugbot and Copilot run as terminal confirmation gates, until all are clean on\nthe same `HEAD` and mergeable. On `pacer=schedule_wakeup`, one tick runs per\ninvocation and the next tick is scheduled. On `pacer=portable`, ticks run\ncontinuously in-session (see\n[`..\u002F..\u002Fskills\u002F_shared\u002Fpr-loop\u002Fportable-driver.md`](..\u002F..\u002Fskills\u002F_shared\u002Fpr-loop\u002Fportable-driver.md)).\n\n## Transport check (before any GitHub step)\n\nRun `command -v gh`; when it succeeds, run `gh auth status`; once the PR\nscope is resolved, run `gh api repos\u002F\u003Cowner>\u002F\u003Crepo> --jq .permissions.push`\nand take `true` as the pass. When any check fails, run the\n`pr-loop-cloud-transport` skill first and route every `gh` operation in this\nskill through its substitution matrix.\n\n## Pre-flight\n\n### Task list (step 1)\n\nAfter down\u002Fopt-out flags are known, build the work list with\n`build_converge_task_list.py` only (same script as autoconverge). Register every\ntask; **final task** is always `all_runnable_reviews_clean_same_head`. Complete\nthat final task only when every runnable review is CLEAN on the same HEAD.\nOn `pacer=portable`, `open-run` returns the same list.\n\n### Pacer selection\n\nScan the tool list for `ScheduleWakeup`. Record whether it is present, then\nselect the pacer:\n\n```\npython \"$HOME\u002F.claude\u002Fskills\u002F_shared\u002Fpr-loop\u002Fscripts\u002Fselect_converge_pacer.py\" \\\n  --skill pr-converge \\\n  --has-workflow \u003C0|1> \\\n  --has-schedule-wakeup \u003C0|1>\n```\n\n- `pacer=schedule_wakeup` — native tick pacing via `ScheduleWakeup` (see\n  [`workflows\u002Fschedule-wakeup-loop.md`](workflows\u002Fschedule-wakeup-loop.md)).\n- `pacer=portable` — continuous in-session driver on\n  [`..\u002F..\u002Fskills\u002F_shared\u002Fpr-loop\u002Fportable-driver.md`](..\u002F..\u002Fskills\u002F_shared\u002Fpr-loop\u002Fportable-driver.md).\n  **Do not abort** because `ScheduleWakeup` is missing.\n\n### Worktree isolation\n\nWhen the tool list includes `EnterWorktree`, call it with no arguments before\nany API call, file read, or edit. Agent-view sessions start in the shared\ncheckout; Bash (`gh`, `git`) does not auto-isolate. Do not proceed until the\nworking directory contains `.claude\u002Fworktrees\u002F`. If `EnterWorktree` fails,\nreport the failure and stop.\n\nWhen `EnterWorktree` is absent, isolate with git worktree machinery per\n[`..\u002F..\u002Fskills\u002F_shared\u002Fpr-loop\u002Fportable-driver.md`](..\u002F..\u002Fskills\u002F_shared\u002Fpr-loop\u002Fportable-driver.md)\n§ Isolation and worktree, then run strict\n`preflight_worktree.py` for the PR's owner\u002Frepo. Fail closed only when the\ncheckout is not the PR's repo on the PR head ref.\n\n`EnterWorktree` (or the portable worktree path) isolates the session repo.\nWhen the PR lives in a different repo, Step 1.5 routes the working directory\ninto a **PR worktree** of that repo on its head branch (routine, never a\npause). See [`reference\u002Fper-tick.md` § Step 1.5](reference\u002Fper-tick.md).\n\n## Resume from a prior run\n\nBefore Step 0, check\n`~\u002F.claude\u002Fruntime\u002Fpr-loop\u002Fbugteam-pr-\u003CPR number>\u002Fhandoff.json`. When\n`$CLAUDE_JOB_DIR\u002Fpr-converge-state.json` is absent but that handoff exists, seed\n`phase`, `tick_count`, and the clean-at SHAs from the run's `state-copy.json`, so\na fresh session continues where the last one stopped rather than restarting at\nCODE_REVIEW.\n\n## Copilot quota pre-check (start of run)\n\nOn the first tick, apply the `reviewer-gates` skill's Copilot quota gate\n(`..\u002Freviewer-gates\u002FSKILL.md` § Gate 2) — once per run, never per tick. The\nflag lives in `pr-converge-state.json` as `copilot_down`, and every tick reads\nit. While `copilot_down` is true, the tick skips all Copilot work — no fetch,\nno request, no poll, no agent — and exports\n`CLAUDE_REVIEWS_DISABLED=\"copilot\"` in that tick's shell before\n`check_convergence.py`, so the check bypasses the Copilot review gate and the\npending-requested-reviews gate and the run still marks ready on the remaining\nsignals.\n\n## Copilot findings — tier, verify, then route\n\nTier, verify, and route each Copilot finding via\n[`copilot-finding-triage`](..\u002Fcopilot-finding-triage\u002FSKILL.md) (self-healing\nauto-fix; code-concern verify then confirmed \u002F refuted \u002F inconclusive).\n\n**pr-converge phase routing after triage:**\n\n- Self-healing and **confirmed** findings join the fix tick on `current_head`;\n  after push, reset clean-at SHAs, set `phase = CODE_REVIEW`, return to Step 5.\n- **Refuted** findings resolve clean on the thread; no phase change.\n- One or more **inconclusive** findings: do not mark ready. Page via the\n  triage skill's ntfy step, then hold by pacer:\n  - **`pacer=schedule_wakeup`** — triage user gate (`ScheduleWakeup` \u002F\n    `send_later` 45-minute hold across ticks; persist the deadline so each tick\n    reads it on entry).\n  - **`pacer=portable`** — in-session deadline poll or handoff per\n    [`..\u002F..\u002Fskills\u002F_shared\u002Fpr-loop\u002Fportable-driver.md`](..\u002F..\u002Fskills\u002F_shared\u002Fpr-loop\u002Fportable-driver.md);\n    never `ScheduleWakeup` or `send_later`.\n  Act on the user's direction inside the window; on timeout, teardown and report\n  the findings un-reviewed.\n- Enter `COPILOT_WAIT` only from gate (d) after requesting a Copilot review\n  (Step 7 → 7a). Stay on `COPILOT_WAIT` until a review surfaces at\n  `current_head`, `copilot_wait_count >= 3` hard-blocks, or `copilot_down`\n  skips the Copilot path entirely.\n\n## Budget-aware tick boundaries\n\nBefore starting any tick, estimate whether the remaining session\u002Fusage\nbudget covers one full clean tick (worst case: a BUGBOT fetch + a\nfull-diff CODE_REVIEW + a fix commit + replies). If it does not, do not\nstart the tick. Stop at the current tick boundary: write updated state to\n`$CLAUDE_JOB_DIR\u002Fpr-converge-state.json`, write the durable handoff (see\n[State persistence](#state-persistence)), then report the exact resume\ncommand (`\u002Fpr-converge \u003CPR URL>`) and the persisted `phase`\u002F`tick_count`.\nA tick cut off mid-flight poisons the resume state — clean SHAs recorded\nagainst work that never landed — so an unstarted tick is always cheaper\nthan a half-finished one.\n\n## Findings discipline\n\nEvery finding, reply, and report states verified facts only — no hedging\nlanguage (`likely`, `probably`, `should`, `appears to`). Verify each\nclaim against the code on `current_head` before stating it; the\nanti-hallucination Stop hook rejects hedged output, forcing a rework\npass. A claim that cannot be verified is reported as unverified, not\nsoftened.\n\n## State persistence\n\nSingle-PR mode persists loop state to `$CLAUDE_JOB_DIR\u002Fpr-converge-state.json`.\nOn tick entry, read this file if it exists to restore phase, tick_count, and\nclean-at SHAs. On tick exit, write updated state before the next pacer step\n(`ScheduleWakeup` when `pacer=schedule_wakeup`; continuous continue or\nin-session poll when `pacer=portable`) so the next tick resumes with accurate\nstate.\n\nAfter the state write and before the next pacer step, write the durable handoff\nso a fresh session in a new job can resume this run:\n\n```\npython \"$HOME\u002F.claude\u002Fskills\u002F_shared\u002Fpr-loop\u002Fscripts\u002Fwrite_handoff.py\" \\\n  --pr-number \u003CN> --head-ref \u003Cbranch> --phase \u003Cphase> \\\n  --resume-command \"\u002Fpr-converge \u003CPR URL>\" \\\n  --state-file \"$CLAUDE_JOB_DIR\u002Fpr-converge-state.json\" \\\n  --completed-steps \"\u003Cclean phases this run>\"\n```\n\nIt writes `handoff.json`, `HANDOFF.md`, and `state-copy.json` under\n`~\u002F.claude\u002Fruntime\u002Fpr-loop\u002F\u003Crun-name>\u002F`. The job-dir state stays the source of\ntruth for a resumed tick; the handoff copy is the pointer a fresh session reads\nwhen `$CLAUDE_JOB_DIR` is gone.\n\nFields: `phase`, `tick_count`, `bugbot_clean_at`, `code_review_clean_at`,\n`bugteam_clean_at`, `copilot_clean_at`, `merge_state_status`, `current_head`,\n`bugbot_acknowledged_at`, `bugbot_down`, `copilot_down`, `agents_session_id`,\n`persistent_agents`.\n\n## Persistent per-step agents\n\nThree step-scoped agents persist across ticks so their context carries\nforward: `fix_executor`, `thread_sweep`, and `copilot_watch`, recorded in\nthe `persistent_agents` map\n([`reference\u002Fstate-schema.md`](reference\u002Fstate-schema.md)).\n\n- **Resume:** read `persistent_agents.\u003Ckey>`. When an entry exists,\n  `SendMessage` to the stored `agent_id` with a tick payload that restates\n  the PR scope, `current_head`, the PR worktree path, this tick's findings\n  or threads, and the report-back contract. Bump `last_used_tick`, then\n  await completion.\n- **First spawn:** `Agent(subagent_type: \"clean-coder\", name:\n  \"prc-fix-\u003CPR#>\", model: \"sonnet\")` — worker-model routing per\n  [`skills\u002Forchestrator\u002FSKILL.md`](..\u002Forchestrator\u002FSKILL.md#workflow-agent-routing);\n  resolver-supplied sonnet-equivalent on third-party hosts. The `name`\n  makes the agent a persistent teammate\n  that idles awaiting messages. Record `{agent_id, created_tick,\n  last_used_tick}` under the step key. Keep the spawn prompt focused on the\n  current fix. Step 6 sends audit judgment through the\n  [review guide](..\u002Freviews\u002FSKILL.md#review-workflow).\n- **Stale or dead id:** on a `SendMessage` failure, or no acknowledgment\n  within one bounded wait, drop the map entry, spawn a fresh named agent,\n  record it, and continue the tick. Never abort a tick on a stale id;\n  never retry the same dead id.\n- **Fresh every round (never persisted):** the Step 5 host-aware\n  `invoke_code_review.py` \u002F `\u002Fcode-review ultra --fix` pass and the Step 6\n  bugteam audit. Apply the [review guide](..\u002Freviews\u002FSKILL.md#review-workflow)\n  to each review pass.\n- **Shutdown:** at loop end (convergence or a stop condition), send each\n  persistent agent a shutdown request and clear `persistent_agents` before\n  the `pr-loop-lifecycle` Close.\n\n## Gotchas\n\nHighest-signal content. Append a bullet each time a tick fails in a new\nway — these are the hard-won lessons that keep the loop honest. Once this\ngrows to 5 or more items, suggest spinning up a subagent to investigate, fix,\npost a fresh PR in a fresh branch based on origin main to the user.\n\n- **`ScheduleWakeup` not in subagent tool registries** — background\n  `general-purpose` tick cannot schedule re-entry; only the parent session\n  with `ScheduleWakeup` (or the portable continuous driver on the parent)\n  may pace the next tick.\n- **Portable host has no durable wake outside the session** — when\n  `pacer=portable`, budget and context bound how many ticks complete; write\n  handoff at a tick boundary and resume with `\u002Fpr-converge \u003CPR URL>`.\n- **`state.json` without §Concurrency lock loses merges** when teammates\n  finish in same wall-clock window.\n- **`tick_count` must not double-increment** — conversation state line\n  only when **no** `state.json`; with `state.json`, only the\n  orchestrator bump increments.\n- **Bugbot trigger and detection** — CI check-run based. Full flow at\n  [`per-tick.md` Step 3](reference\u002Fper-tick.md); see also\n  `~\u002F.claude\u002Fskills\u002Fpr-converge\u002Fscripts\u002Fcheck_bugbot_ci.py --help`.\n- **Bot login fields differ by endpoint** — `get_reviews` returns\n  `.user.login` (object), but `get_review_comments` returns `.author`\n  (string, not an object). Always check the correct fields and use\n  case-insensitive substring matching on login values, never strict\n  equality.\n- **`isOutdated` has dual scope** — GitHub marks a thread `isOutdated=true`\n  when the line it anchors to has changed since the comment was posted. The\n  machine gate (`check_convergence.py` \u002F [convergence-gates.md](reference\u002Fconvergence-gates.md)\n  gate (e)) excludes `isOutdated == true` bot threads from the fail count —\n  only non-outdated unresolved bot threads fail the gate. The agent-side\n  unresolved-thread sweep in the shared fix protocol\n  ([`..\u002F..\u002F_shared\u002Fpr-loop\u002Ffix-protocol.md`](..\u002F..\u002F_shared\u002Fpr-loop\u002Ffix-protocol.md)\n  step 12; skill deltas in [`reference\u002Ffix-protocol.md`](reference\u002Ffix-protocol.md))\n  still verifies outdated unresolved threads against HEAD before resolve when\n  the protocol requires it (the original concern can still apply when the fix\n  moved rather than landed).\n- **Tilde paths fail on Windows Git Bash** — `~\u002F.claude\u002Fskills\u002F...`\n  resolves to the wrong home directory in Bash-tool contexts. Use\n  `$HOME\u002F.claude\u002Fskills\u002F...` in shell invocations or `Path.home() \u002F\n  \".claude\u002Fskills\u002F...\"` in Python scripts. Script invocations through\n  Bash that reference `~` produce \"file not found\" errors\n  indistinguishable from actual script failures.\n- **PowerShell cmdlets fail in Bash tool** — `.ps1` scripts and\n  `pwsh` calls run through the PowerShell tool, not Bash. Bash on\n  Windows is Git Bash which cannot execute PowerShell cmdlets. Route all\n  PowerShell work through the PowerShell tool or `pwsh -NoProfile -File`.\n- **Cross-repo PR: route cwd into the PR worktree before Step 5 review** —\n  `invoke_code_review.py` and `\u002Fcode-review ultra --fix` audit the repo of the\n  cwd (the helper's `--cwd`). When the session is rooted in a different repo\n  than the PR, `EnterWorktree` cannot re-root (it is scoped to the session's\n  repo); resolve the PR worktree and `cd` into it per\n  [Step 1.5](reference\u002Fper-tick.md). Skipping this reviews and edits the\n  wrong repo. The route is routine and automatic — never a material fork\n  to pause on.\n\n## Progress checklist\n\nState variables (`phase`, `bugbot_clean_at`, `code_review_clean_at`,\n`bugteam_clean_at`, `copilot_clean_at`, `merge_state_status`, counters) are\ndefined in [`reference\u002Fstate-schema.md`](reference\u002Fstate-schema.md). Ground rules\nin [`reference\u002Fground-rules.md`](reference\u002Fground-rules.md).\n\nEach step references its spoke file for full procedural detail — MCP calls,\nscript invocations, decision criteria. Every \"return to Step N\" means the next\ntick starts fresh from that step.\n\n**Hard gate: do not advance from any step while ANY unresolved review\nthread exists on the PR.** Sweep semantics and per-thread handling live in\nthe shared fix protocol\n([`..\u002F..\u002F_shared\u002Fpr-loop\u002Ffix-protocol.md`](..\u002F..\u002F_shared\u002Fpr-loop\u002Ffix-protocol.md)\nstep 12; skill deltas in [`reference\u002Ffix-protocol.md`](reference\u002Ffix-protocol.md)).\n\n**Full-PR-diff rule: every CODE-REVIEW round (Step 5) and every BUGTEAM\nround (Step 6) covers the FULL `origin\u002Fmain...HEAD` diff — every file\nthe PR touches.** A round that scopes to a subset — only the last commit,\nonly files touched since the prior clean SHA, only bugbot-flagged paths,\nor any other delta cut — does not satisfy the gate, and a \"clean\" verdict\nagainst a partial diff is not a valid clean. Re-run the round against the\nfull diff before recording `code_review_clean_at` or treating the bugteam\nround as converged. This rule holds every tick, every loop, every PR.\n\n- [ ] **Step 0: Open the run**\n      Apply the `pr-loop-lifecycle` skill's Open section\n      (`..\u002Fpr-loop-lifecycle\u002FSKILL.md`): permission grant + worktree preflight.\n\n- [ ] **Step 1: Resolve PR scope + PR worktree**\n      Apply Step 1.5 scope resolution in\n      [`reference\u002Fper-tick.md`](reference\u002Fper-tick.md). Resolve the **PR\n      worktree** — the local checkout every local step this tick targets:\n      the `EnterWorktree` checkout when the PR shares the session's repo,\n      else a checkout of the PR's repo that the working directory routes\n      into via `cd`. Cross-repo routing is automatic, not a fork.\n      See: [`reference\u002Fper-tick.md` § Step 1](reference\u002Fper-tick.md)\n      and [§ Step 1.5](reference\u002Fper-tick.md)\n\n- [ ] **Step 2: Initialize loop state**\n      `phase = CODE_REVIEW`; all counters at zero; `run_name` resolved.\n\n- [ ] **Step 3: Mergeability check**\n      See: [`reference\u002Fconvergence-gates.md` § (c)](reference\u002Fconvergence-gates.md)\n\n      ```\n      pull_request_read(method=\"get\") → .mergeable_state, .mergeable\n      ```\n\n      - [ ] mergeable → advance to Step 4\n      - [ ] not mergeable → rebase → force-push → return to Step 1\n\n- [ ] **Step 4: BUGBOT — terminal Bugbot confirmation gate**\n      Step 6 routes here after BUGTEAM converges. Bugbot confirms code the\n      internal passes already drove to clean.\n      See: [`reference\u002Fper-tick.md` § BUGBOT terminal gate + Step 3](reference\u002Fper-tick.md);\n      availability and trigger via `reviewer-gates`\n      (`..\u002Freviewer-gates\u002FSKILL.md` § Gate 1 \u002F Gate 3).\n\n      - [ ] **disabled \u002F down** → `bugbot_down = true` → Step 7\n      - [ ] **dirty on `current_head`** → apply shared fix protocol\n            ([`..\u002F..\u002F_shared\u002Fpr-loop\u002Ffix-protocol.md`](..\u002F..\u002F_shared\u002Fpr-loop\u002Ffix-protocol.md);\n            skill deltas in [`reference\u002Ffix-protocol.md`](reference\u002Ffix-protocol.md))\n            → push → reset push-invalidated markers → `phase = CODE_REVIEW` → Step 5\n      - [ ] **clean on `current_head`** → zero unresolved threads (else fix + resolve first)\n            → `bugbot_clean_at = current_head` → Step 7\n      - [ ] **no review \u002F commit_id mismatch** → `reviewer-gates` Bugbot flow (Gate 3):\n            silent pass → Step 7; queued\u002Ftriggered → ScheduleWakeup 360s or portable in-session poll → Step 4;\n            down → `bugbot_down = true` → Step 7\n\n- [ ] **Step 5: CODE-REVIEW — static sweep, review, fix, advance**\n      Entry phase every tick; re-entered after any fix push.\n      See: [`reference\u002Fper-tick.md` § CODE_REVIEW entry](reference\u002Fper-tick.md).\n      Pre-condition: cwd is the Step 1.5 PR worktree on `current_head`.\n      Scope: FULL `origin\u002Fmain...HEAD` diff every tick (no path args, no delta cut).\n      Review always runs at effort high on model opus through\n      `invoke_code_review.py`. Mode decision inputs: host profile + session\n      model. Call:\n      `python \"$HOME\u002F.claude\u002Fscripts\u002Finvoke_code_review.py\" --cwd \u003CPR-worktree>\n      --session-model \u003Calias>`. Chain mode uses that cwd and empty stdin; the\n      chain process never commits and never pushes. JSON stdout carries\n      `mode` (`in_session` | `chain`), `served_command`, `returncode`, and\n      `dirty_tree`. Config\u002Fhost errors still emit that JSON with non-zero\n      `returncode` (no traceback-only failure).\n\n      - [ ] **Static sweep fails** → apply shared fix protocol → push → reset markers\n            → stay CODE_REVIEW → Step 5\n      - [ ] **`mode == in_session`** (Claude host, session model opus) → run\n            `\u002Fcode-review ultra --fix` in-session (no path args)\n      - [ ] **`mode == chain`** (any other host or non-opus session) → helper\n            already ran the headless review; read `returncode`,\n            `served_command`, and `dirty_tree` from JSON\n      - [ ] **failed review** (`returncode != 0`, or chain with null\n            `served_command`) → do not set `code_review_clean_at` → stay\n            CODE_REVIEW → Step 5\n      - [ ] **fixes applied** (`dirty_tree` true \u002F working tree dirty) →\n            commit + push via shared fix protocol → reset markers → stay\n            CODE_REVIEW → Step 5\n      - [ ] **clean** (successful serve: `returncode == 0`, chain\n            `served_command` non-null when chain, and `dirty_tree` false) →\n            zero unresolved threads (else fix + resolve) →\n            `code_review_clean_at = current_head` → `phase = BUGTEAM` → Step 6\n\n- [ ] **Step 6: BUGTEAM — run, decide, fix, reply, resolve**\n      See: [`reference\u002Fper-tick.md` § Step 2 BUGTEAM](reference\u002Fper-tick.md);\n      [`..\u002Fbugteam\u002FSKILL.md`](..\u002Fbugteam\u002FSKILL.md).\n      Pre-condition: `code_review_clean_at == current_head`.\n      Mandatory: `Skill({skill: \"bugteam\", args: \"\u003CPR URL>\"})` this tick.\n      Use the [review guide](..\u002Freviews\u002FSKILL.md#review-workflow) for its\n      judgment. `qbug` is not a substitute. Scope: FULL `origin\u002Fmain...HEAD`\n      diff. Re-resolve HEAD after bugteam.\n\n      - [ ] **bugteam pushed** → verify threads replied + resolved → reset markers\n            → `phase = CODE_REVIEW` → ScheduleWakeup 360s or portable in-session poll → Step 5\n      - [ ] **converged, no push** → zero unresolved threads →\n            `bugteam_clean_at = current_head` → `phase = BUGBOT` → Step 4\n      - [ ] **findings without committed fixes** → apply shared fix protocol → push →\n            reset markers → `phase = CODE_REVIEW` → Step 5\n\n- [ ] **Step 7: Convergence gates**\n      Full procedure: [`reference\u002Fconvergence-gates.md`](reference\u002Fconvergence-gates.md).\n\n      Pre-condition: Step 6 converged AND (`bugbot_clean_at == current_head` OR\n      `bugbot_down`). The terminal Bugbot gate (Step 4) sets that state just\n      before these gates run. Count unresolved threads before each gate.\n      Every gate records evidence; gate (f) cites evidence from (a)–(e).\n\n      - [ ] **(a) Copilot findings** — fetch Copilot on `current_head`; dirty → fix + return to Step 5; clean → record `copilot_clean_at`; absent → continue; when `copilot_down`, skip\n      - [ ] **(b) Claude reviewer** — fetch Claude on `current_head`; dirty → fix + return to Step 5; clean or absent → continue\n      - [ ] **(c) Mergeability** — `mergeable_state == \"clean\"` and `mergeable == true`; dirty → rebase + return to Step 1; blocked\u002Fbehind\u002Funknown\u002Funstable → hard blocker\n      - [ ] **(d) Post-convergence Copilot request** — request Copilot when not pending and not `copilot_down`; enter `COPILOT_WAIT` (Step 7a); when `copilot_down`, skip to (e)\n      - [ ] **(e) Thread-resolution** — zero unresolved threads across the PR; else sweep + fix\u002Fresolve\n      - [ ] **(f) Mark ready** — run `check_convergence.py`; exit 0 → `update_pull_request(draft=false)` → Step 8; exit 1 → fix path; exit 2 → retry\u002Fstop\n\n- [ ] **Step 7a: COPILOT_WAIT — fetch Copilot, decide**\n      See: [`reference\u002Fper-tick.md` § Step 2 COPILOT_WAIT](reference\u002Fper-tick.md).\n      Skipped entirely when `copilot_down` (gate (d) never enters this phase).\n\n      - [ ] **clean** → `copilot_clean_at = current_head` → Step 7 (re-validate (b), (c), (e), (f))\n      - [ ] **dirty** → apply shared fix protocol\n            ([`..\u002F..\u002F_shared\u002Fpr-loop\u002Ffix-protocol.md`](..\u002F..\u002F_shared\u002Fpr-loop\u002Ffix-protocol.md);\n            skill deltas in [`reference\u002Ffix-protocol.md`](reference\u002Ffix-protocol.md))\n            → push → reset markers → `phase = CODE_REVIEW` → Step 5\n      - [ ] **no review yet** → increment `copilot_wait_count` → ≥ 3 hard-blocks;\n            else ScheduleWakeup 360s or portable in-session poll → Step 7a next tick\n\n- [ ] **Step 8: Clean working tree**\n      `pr-loop-lifecycle` Close (`..\u002Fpr-loop-lifecycle\u002FSKILL.md`).\n      See: [`pr-loop-lifecycle\u002Freference\u002Fteardown-publish-permissions.md` § Clean working tree](..\u002Fpr-loop-lifecycle\u002Freference\u002Fteardown-publish-permissions.md)\n\n- [ ] **Step 9: Rewrite PR description**\n      `pr-loop-lifecycle` Close.\n      See: [`pr-loop-lifecycle\u002Freference\u002Fteardown-publish-permissions.md` § Publish the final PR description](..\u002Fpr-loop-lifecycle\u002Freference\u002Fteardown-publish-permissions.md)\n\n- [ ] **Step 10: Revoke project permissions (always)**\n      `pr-loop-lifecycle` Close (`..\u002Fpr-loop-lifecycle\u002FSKILL.md` § Close).\n\n- [ ] **Step 11: Print final report**\n      Print this block verbatim — no paraphrase, no extra commentary:\n      ```\n      \u002Fpr-converge exit: converged\n      Loops: \u003CN>\n      Final commit: \u003CSHA>\n      ```\n\n## Edge cases\n\n| Situation | Read |\n|---|---|\n| Multi-PR session (`state.json` exists) | [`reference\u002Fmulti-pr-orchestration.md`](reference\u002Fmulti-pr-orchestration.md) |\n| Hard blocker or user stops loop | [`reference\u002Fstop-conditions.md`](reference\u002Fstop-conditions.md) |\n| Tick is ambiguous against the steps above | [`reference\u002Fexamples.md`](reference\u002Fexamples.md) |\n\n## Depends on \u002F invokes\n\n| Skill \u002F path | Role |\n|---|---|\n| `pr-loop-lifecycle` | Open (permission grant + worktree preflight) and Close (cleanup, PR description, revoke) |\n| `reviewer-gates` | Copilot quota gate, Bugbot availability, Bugbot trigger flow |\n| `copilot-finding-triage` | Tier, verify, and route each Copilot finding |\n| `bugteam` | Full-diff bug audit in Step 6 (Skill invocation mandatory) |\n| `pr-loop-cloud-transport` | When `gh` is unavailable or unauthenticated |\n| [`..\u002F..\u002Fskills\u002F_shared\u002Fpr-loop\u002Fportable-driver.md`](..\u002F..\u002Fskills\u002F_shared\u002Fpr-loop\u002Fportable-driver.md) | Continuous in-session pacer when `ScheduleWakeup` is absent |\n| [`..\u002F..\u002F_shared\u002Fpr-loop\u002Ffix-protocol.md`](..\u002F..\u002F_shared\u002Fpr-loop\u002Ffix-protocol.md) | Shared 13-step fix sequence (TDD, commit, push, reply, resolve) |\n| [`reference\u002Ffix-protocol.md`](reference\u002Ffix-protocol.md) | pr-converge deltas on the shared fix protocol |\n\n## Package file index\n\n| Path | Purpose |\n|---|---|\n| `SKILL.md` | Hub: pre-flight, state, progress checklist, gotchas |\n| `CLAUDE.md` | Package map for agents working in this skill |\n| `pr_converge_skill_constants\u002F` | Importable constants for skill scripts |\n| `reference\u002Fper-tick.md` | Full per-tick procedure (phases, cwd routing, pacing) |\n| `reference\u002Fconvergence-gates.md` | Six gates before mark-ready |\n| `reference\u002Ffix-protocol.md` | pr-converge fix-protocol deltas |\n| `reference\u002Fground-rules.md` | Non-negotiable loop constraints |\n| `reference\u002Fstate-schema.md` | `pr-converge-state.json` fields |\n| `reference\u002Fstop-conditions.md` | Hard stops without convergence |\n| `reference\u002Fmulti-pr-orchestration.md` | Multi-PR session orchestration |\n| `reference\u002Fexamples.md` | Worked tick sequences |\n| `reference\u002Fobstacles\u002F` | Per-obstacle fix runbooks |\n| `scripts\u002F` | Convergence helpers, Copilot fetch, fix-reply poster, tests |\n| `workflows\u002Fschedule-wakeup-loop.md` | ScheduleWakeup pacing (`pacer=schedule_wakeup`) |\n| [`..\u002F..\u002Fskills\u002F_shared\u002Fpr-loop\u002Fportable-driver.md`](..\u002F..\u002Fskills\u002F_shared\u002Fpr-loop\u002Fportable-driver.md) | Portable continuous pacer (`pacer=portable`) |\n",{"name":5,"description":7},"main","974284b42eeb4609e94d4ebc1f6e36df400d54ca","packages\u002Fclaude-dev-env\u002F.agents\u002Fskills-archived\u002Fpr-converge",1,"https:\u002F\u002Fgithub.com\u002Fjl-cmd-projects\u002Fclaude-dev-env","https:\u002F\u002Fgithub.com\u002Fjl-cmd-projects","2026-11-15 05:02:47",{"source":8,"skillName":5,"commands":31,"prompt":41,"zipAvailable":42},[32,35,38],{"tool":33,"command":34},"npx","npx skills add jl-cmd-projects\u002Fclaude-dev-env --skill pr-converge",{"tool":36,"command":37},"bunx","bunx skills add jl-cmd-projects\u002Fclaude-dev-env --skill pr-converge",{"tool":39,"command":40},"pnpm","pnpm dlx skills add jl-cmd-projects\u002Fclaude-dev-env --skill pr-converge","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjl-cmd-projects\u002Fclaude-dev-env\u002Fblob\u002Fmain\u002Fpackages\u002Fclaude-dev-env\u002F.agents\u002Fskills-archived\u002Fpr-converge\u002FSKILL.md",true,[44,50,54,60,64,68,72,76,80,84,88,92,96,100,104,107,111,115,119,123,127,131,135,139,143,147,151,155,159,163,167,171,175,179,183,187,191,194,198,202,206,210,214,218,222,226,230,234,238,242,246,250,254,258,262,266],{"path":45,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":48,"sourceHtmlUrl":49},"pr_converge_skill_constants\u002F__init__.py","SCRIPT","脚本",0,"https:\u002F\u002Fgithub.com\u002Fjl-cmd-projects\u002Fclaude-dev-env\u002Fblob\u002Fmain\u002Fpackages\u002Fclaude-dev-env\u002F.agents\u002Fskills-archived\u002Fpr-converge\u002Fpr_converge_skill_constants\u002F__init__.py",{"path":51,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":52,"sourceHtmlUrl":53},"pr_converge_skill_constants\u002Fconstants.py",2714,"https:\u002F\u002Fgithub.com\u002Fjl-cmd-projects\u002Fclaude-dev-env\u002Fblob\u002Fmain\u002Fpackages\u002Fclaude-dev-env\u002F.agents\u002Fskills-archived\u002Fpr-converge\u002Fpr_converge_skill_constants\u002Fconstants.py",{"path":55,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":58,"sourceHtmlUrl":59},"reference\u002Fconvergence-gates.md","REFERENCE","参考文档",15218,"https:\u002F\u002Fgithub.com\u002Fjl-cmd-projects\u002Fclaude-dev-env\u002Fblob\u002Fmain\u002Fpackages\u002Fclaude-dev-env\u002F.agents\u002Fskills-archived\u002Fpr-converge\u002Freference\u002Fconvergence-gates.md",{"path":61,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":62,"sourceHtmlUrl":63},"reference\u002Fexamples.md",7852,"https:\u002F\u002Fgithub.com\u002Fjl-cmd-projects\u002Fclaude-dev-env\u002Fblob\u002Fmain\u002Fpackages\u002Fclaude-dev-env\u002F.agents\u002Fskills-archived\u002Fpr-converge\u002Freference\u002Fexamples.md",{"path":65,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":66,"sourceHtmlUrl":67},"reference\u002Ffix-protocol.md",1930,"https:\u002F\u002Fgithub.com\u002Fjl-cmd-projects\u002Fclaude-dev-env\u002Fblob\u002Fmain\u002Fpackages\u002Fclaude-dev-env\u002F.agents\u002Fskills-archived\u002Fpr-converge\u002Freference\u002Ffix-protocol.md",{"path":69,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":70,"sourceHtmlUrl":71},"reference\u002Fground-rules.md",2022,"https:\u002F\u002Fgithub.com\u002Fjl-cmd-projects\u002Fclaude-dev-env\u002Fblob\u002Fmain\u002Fpackages\u002Fclaude-dev-env\u002F.agents\u002Fskills-archived\u002Fpr-converge\u002Freference\u002Fground-rules.md",{"path":73,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":74,"sourceHtmlUrl":75},"reference\u002Fmulti-pr-orchestration.md",12281,"https:\u002F\u002Fgithub.com\u002Fjl-cmd-projects\u002Fclaude-dev-env\u002Fblob\u002Fmain\u002Fpackages\u002Fclaude-dev-env\u002F.agents\u002Fskills-archived\u002Fpr-converge\u002Freference\u002Fmulti-pr-orchestration.md",{"path":77,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":78,"sourceHtmlUrl":79},"reference\u002Fobstacles\u002Ffix-post-replies.md",433,"https:\u002F\u002Fgithub.com\u002Fjl-cmd-projects\u002Fclaude-dev-env\u002Fblob\u002Fmain\u002Fpackages\u002Fclaude-dev-env\u002F.agents\u002Fskills-archived\u002Fpr-converge\u002Freference\u002Fobstacles\u002Ffix-post-replies.md",{"path":81,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":82,"sourceHtmlUrl":83},"reference\u002Fobstacles\u002Ffix-publish-summary.md",438,"https:\u002F\u002Fgithub.com\u002Fjl-cmd-projects\u002Fclaude-dev-env\u002Fblob\u002Fmain\u002Fpackages\u002Fclaude-dev-env\u002F.agents\u002Fskills-archived\u002Fpr-converge\u002Freference\u002Fobstacles\u002Ffix-publish-summary.md",{"path":85,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":86,"sourceHtmlUrl":87},"reference\u002Fobstacles\u002Ffix-push.md",380,"https:\u002F\u002Fgithub.com\u002Fjl-cmd-projects\u002Fclaude-dev-env\u002Fblob\u002Fmain\u002Fpackages\u002Fclaude-dev-env\u002F.agents\u002Fskills-archived\u002Fpr-converge\u002Freference\u002Fobstacles\u002Ffix-push.md",{"path":89,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":90,"sourceHtmlUrl":91},"reference\u002Fobstacles\u002Ffix-read-filelines.md",397,"https:\u002F\u002Fgithub.com\u002Fjl-cmd-projects\u002Fclaude-dev-env\u002Fblob\u002Fmain\u002Fpackages\u002Fclaude-dev-env\u002F.agents\u002Fskills-archived\u002Fpr-converge\u002Freference\u002Fobstacles\u002Ffix-read-filelines.md",{"path":93,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":94,"sourceHtmlUrl":95},"reference\u002Fobstacles\u002Ffix-reset-state.md",393,"https:\u002F\u002Fgithub.com\u002Fjl-cmd-projects\u002Fclaude-dev-env\u002Fblob\u002Fmain\u002Fpackages\u002Fclaude-dev-env\u002F.agents\u002Fskills-archived\u002Fpr-converge\u002Freference\u002Fobstacles\u002Ffix-reset-state.md",{"path":97,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":98,"sourceHtmlUrl":99},"reference\u002Fobstacles\u002Ffix-resolve-threads.md",421,"https:\u002F\u002Fgithub.com\u002Fjl-cmd-projects\u002Fclaude-dev-env\u002Fblob\u002Fmain\u002Fpackages\u002Fclaude-dev-env\u002F.agents\u002Fskills-archived\u002Fpr-converge\u002Freference\u002Fobstacles\u002Ffix-resolve-threads.md",{"path":101,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":102,"sourceHtmlUrl":103},"reference\u002Fobstacles\u002Ffix-spawn-clean-coder.md",406,"https:\u002F\u002Fgithub.com\u002Fjl-cmd-projects\u002Fclaude-dev-env\u002Fblob\u002Fmain\u002Fpackages\u002Fclaude-dev-env\u002F.agents\u002Fskills-archived\u002Fpr-converge\u002Freference\u002Fobstacles\u002Ffix-spawn-clean-coder.md",{"path":105,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":90,"sourceHtmlUrl":106},"reference\u002Fobstacles\u002Ffix-stage-commit.md","https:\u002F\u002Fgithub.com\u002Fjl-cmd-projects\u002Fclaude-dev-env\u002Fblob\u002Fmain\u002Fpackages\u002Fclaude-dev-env\u002F.agents\u002Fskills-archived\u002Fpr-converge\u002Freference\u002Fobstacles\u002Ffix-stage-commit.md",{"path":108,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":109,"sourceHtmlUrl":110},"reference\u002Fobstacles\u002Ffix-trigger-bugbot.md",401,"https:\u002F\u002Fgithub.com\u002Fjl-cmd-projects\u002Fclaude-dev-env\u002Fblob\u002Fmain\u002Fpackages\u002Fclaude-dev-env\u002F.agents\u002Fskills-archived\u002Fpr-converge\u002Freference\u002Fobstacles\u002Ffix-trigger-bugbot.md",{"path":112,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":113,"sourceHtmlUrl":114},"reference\u002Fobstacles\u002Ffix-write-test.md",424,"https:\u002F\u002Fgithub.com\u002Fjl-cmd-projects\u002Fclaude-dev-env\u002Fblob\u002Fmain\u002Fpackages\u002Fclaude-dev-env\u002F.agents\u002Fskills-archived\u002Fpr-converge\u002Freference\u002Fobstacles\u002Ffix-write-test.md",{"path":116,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":117,"sourceHtmlUrl":118},"reference\u002Fper-tick.md",29243,"https:\u002F\u002Fgithub.com\u002Fjl-cmd-projects\u002Fclaude-dev-env\u002Fblob\u002Fmain\u002Fpackages\u002Fclaude-dev-env\u002F.agents\u002Fskills-archived\u002Fpr-converge\u002Freference\u002Fper-tick.md",{"path":120,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":121,"sourceHtmlUrl":122},"reference\u002Fprogress-checklist.md",9829,"https:\u002F\u002Fgithub.com\u002Fjl-cmd-projects\u002Fclaude-dev-env\u002Fblob\u002Fmain\u002Fpackages\u002Fclaude-dev-env\u002F.agents\u002Fskills-archived\u002Fpr-converge\u002Freference\u002Fprogress-checklist.md",{"path":124,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":125,"sourceHtmlUrl":126},"reference\u002Fstate-schema.md",7544,"https:\u002F\u002Fgithub.com\u002Fjl-cmd-projects\u002Fclaude-dev-env\u002Fblob\u002Fmain\u002Fpackages\u002Fclaude-dev-env\u002F.agents\u002Fskills-archived\u002Fpr-converge\u002Freference\u002Fstate-schema.md",{"path":128,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":129,"sourceHtmlUrl":130},"reference\u002Fstop-conditions.md",1752,"https:\u002F\u002Fgithub.com\u002Fjl-cmd-projects\u002Fclaude-dev-env\u002Fblob\u002Fmain\u002Fpackages\u002Fclaude-dev-env\u002F.agents\u002Fskills-archived\u002Fpr-converge\u002Freference\u002Fstop-conditions.md",{"path":132,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":133,"sourceHtmlUrl":134},"scripts\u002F_pr_converge_path_setup.py",1694,"https:\u002F\u002Fgithub.com\u002Fjl-cmd-projects\u002Fclaude-dev-env\u002Fblob\u002Fmain\u002Fpackages\u002Fclaude-dev-env\u002F.agents\u002Fskills-archived\u002Fpr-converge\u002Fscripts\u002F_pr_converge_path_setup.py",{"path":136,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":137,"sourceHtmlUrl":138},"scripts\u002Fcaller-window-pid.ps1",2711,"https:\u002F\u002Fgithub.com\u002Fjl-cmd-projects\u002Fclaude-dev-env\u002Fblob\u002Fmain\u002Fpackages\u002Fclaude-dev-env\u002F.agents\u002Fskills-archived\u002Fpr-converge\u002Fscripts\u002Fcaller-window-pid.ps1",{"path":140,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":141,"sourceHtmlUrl":142},"scripts\u002Fcheck_bugbot_ci.py",9636,"https:\u002F\u002Fgithub.com\u002Fjl-cmd-projects\u002Fclaude-dev-env\u002Fblob\u002Fmain\u002Fpackages\u002Fclaude-dev-env\u002F.agents\u002Fskills-archived\u002Fpr-converge\u002Fscripts\u002Fcheck_bugbot_ci.py",{"path":144,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":145,"sourceHtmlUrl":146},"scripts\u002Fcheck_convergence_availability.py",10596,"https:\u002F\u002Fgithub.com\u002Fjl-cmd-projects\u002Fclaude-dev-env\u002Fblob\u002Fmain\u002Fpackages\u002Fclaude-dev-env\u002F.agents\u002Fskills-archived\u002Fpr-converge\u002Fscripts\u002Fcheck_convergence_availability.py",{"path":148,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":149,"sourceHtmlUrl":150},"scripts\u002Fcheck_convergence_gates.py",10750,"https:\u002F\u002Fgithub.com\u002Fjl-cmd-projects\u002Fclaude-dev-env\u002Fblob\u002Fmain\u002Fpackages\u002Fclaude-dev-env\u002F.agents\u002Fskills-archived\u002Fpr-converge\u002Fscripts\u002Fcheck_convergence_gates.py",{"path":152,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":153,"sourceHtmlUrl":154},"scripts\u002Fcheck_convergence_thread_gates.py",8113,"https:\u002F\u002Fgithub.com\u002Fjl-cmd-projects\u002Fclaude-dev-env\u002Fblob\u002Fmain\u002Fpackages\u002Fclaude-dev-env\u002F.agents\u002Fskills-archived\u002Fpr-converge\u002Fscripts\u002Fcheck_convergence_thread_gates.py",{"path":156,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":157,"sourceHtmlUrl":158},"scripts\u002Fcheck_convergence.py",34857,"https:\u002F\u002Fgithub.com\u002Fjl-cmd-projects\u002Fclaude-dev-env\u002Fblob\u002Fmain\u002Fpackages\u002Fclaude-dev-env\u002F.agents\u002Fskills-archived\u002Fpr-converge\u002Fscripts\u002Fcheck_convergence.py",{"path":160,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":161,"sourceHtmlUrl":162},"scripts\u002Fcheck_pending_reviews.py",4933,"https:\u002F\u002Fgithub.com\u002Fjl-cmd-projects\u002Fclaude-dev-env\u002Fblob\u002Fmain\u002Fpackages\u002Fclaude-dev-env\u002F.agents\u002Fskills-archived\u002Fpr-converge\u002Fscripts\u002Fcheck_pending_reviews.py",{"path":164,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":165,"sourceHtmlUrl":166},"scripts\u002Fconftest.py",1709,"https:\u002F\u002Fgithub.com\u002Fjl-cmd-projects\u002Fclaude-dev-env\u002Fblob\u002Fmain\u002Fpackages\u002Fclaude-dev-env\u002F.agents\u002Fskills-archived\u002Fpr-converge\u002Fscripts\u002Fconftest.py",{"path":168,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":169,"sourceHtmlUrl":170},"scripts\u002Fcursor-agents-continue-caller.cmd",327,"https:\u002F\u002Fgithub.com\u002Fjl-cmd-projects\u002Fclaude-dev-env\u002Fblob\u002Fmain\u002Fpackages\u002Fclaude-dev-env\u002F.agents\u002Fskills-archived\u002Fpr-converge\u002Fscripts\u002Fcursor-agents-continue-caller.cmd",{"path":172,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":173,"sourceHtmlUrl":174},"scripts\u002Fcursor-agents-continue-stop-others.ps1",573,"https:\u002F\u002Fgithub.com\u002Fjl-cmd-projects\u002Fclaude-dev-env\u002Fblob\u002Fmain\u002Fpackages\u002Fclaude-dev-env\u002F.agents\u002Fskills-archived\u002Fpr-converge\u002Fscripts\u002Fcursor-agents-continue-stop-others.ps1",{"path":176,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":177,"sourceHtmlUrl":178},"scripts\u002Fcursor-agents-continue.ahk",6507,"https:\u002F\u002Fgithub.com\u002Fjl-cmd-projects\u002Fclaude-dev-env\u002Fblob\u002Fmain\u002Fpackages\u002Fclaude-dev-env\u002F.agents\u002Fskills-archived\u002Fpr-converge\u002Fscripts\u002Fcursor-agents-continue.ahk",{"path":180,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":181,"sourceHtmlUrl":182},"scripts\u002Fcursor-agents-continue.cmd",106,"https:\u002F\u002Fgithub.com\u002Fjl-cmd-projects\u002Fclaude-dev-env\u002Fblob\u002Fmain\u002Fpackages\u002Fclaude-dev-env\u002F.agents\u002Fskills-archived\u002Fpr-converge\u002Fscripts\u002Fcursor-agents-continue.cmd",{"path":184,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":185,"sourceHtmlUrl":186},"scripts\u002Ffetch_copilot_reviews.py",4111,"https:\u002F\u002Fgithub.com\u002Fjl-cmd-projects\u002Fclaude-dev-env\u002Fblob\u002Fmain\u002Fpackages\u002Fclaude-dev-env\u002F.agents\u002Fskills-archived\u002Fpr-converge\u002Fscripts\u002Ffetch_copilot_reviews.py",{"path":188,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":189,"sourceHtmlUrl":190},"scripts\u002Fpost_fix_reply.py",4556,"https:\u002F\u002Fgithub.com\u002Fjl-cmd-projects\u002Fclaude-dev-env\u002Fblob\u002Fmain\u002Fpackages\u002Fclaude-dev-env\u002F.agents\u002Fskills-archived\u002Fpr-converge\u002Fscripts\u002Fpost_fix_reply.py",{"path":192,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":48,"sourceHtmlUrl":193},"scripts\u002Fpr_converge_scripts_constants\u002F__init__.py","https:\u002F\u002Fgithub.com\u002Fjl-cmd-projects\u002Fclaude-dev-env\u002Fblob\u002Fmain\u002Fpackages\u002Fclaude-dev-env\u002F.agents\u002Fskills-archived\u002Fpr-converge\u002Fscripts\u002Fpr_converge_scripts_constants\u002F__init__.py",{"path":195,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":196,"sourceHtmlUrl":197},"scripts\u002Fpr_converge_scripts_constants\u002Fconvergence_gate_constants.py",2475,"https:\u002F\u002Fgithub.com\u002Fjl-cmd-projects\u002Fclaude-dev-env\u002Fblob\u002Fmain\u002Fpackages\u002Fclaude-dev-env\u002F.agents\u002Fskills-archived\u002Fpr-converge\u002Fscripts\u002Fpr_converge_scripts_constants\u002Fconvergence_gate_constants.py",{"path":199,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":200,"sourceHtmlUrl":201},"scripts\u002Fpr_converge_scripts_constants\u002Fpr_converge_constants.py",3497,"https:\u002F\u002Fgithub.com\u002Fjl-cmd-projects\u002Fclaude-dev-env\u002Fblob\u002Fmain\u002Fpackages\u002Fclaude-dev-env\u002F.agents\u002Fskills-archived\u002Fpr-converge\u002Fscripts\u002Fpr_converge_scripts_constants\u002Fpr_converge_constants.py",{"path":203,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":204,"sourceHtmlUrl":205},"scripts\u002Fpr_converge_scripts_constants\u002Freflow_skill_md_constants.py",600,"https:\u002F\u002Fgithub.com\u002Fjl-cmd-projects\u002Fclaude-dev-env\u002Fblob\u002Fmain\u002Fpackages\u002Fclaude-dev-env\u002F.agents\u002Fskills-archived\u002Fpr-converge\u002Fscripts\u002Fpr_converge_scripts_constants\u002Freflow_skill_md_constants.py",{"path":207,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":208,"sourceHtmlUrl":209},"scripts\u002FREADME.md",3675,"https:\u002F\u002Fgithub.com\u002Fjl-cmd-projects\u002Fclaude-dev-env\u002Fblob\u002Fmain\u002Fpackages\u002Fclaude-dev-env\u002F.agents\u002Fskills-archived\u002Fpr-converge\u002Fscripts\u002FREADME.md",{"path":211,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":212,"sourceHtmlUrl":213},"scripts\u002Freflow_skill_md.py",12324,"https:\u002F\u002Fgithub.com\u002Fjl-cmd-projects\u002Fclaude-dev-env\u002Fblob\u002Fmain\u002Fpackages\u002Fclaude-dev-env\u002F.agents\u002Fskills-archived\u002Fpr-converge\u002Fscripts\u002Freflow_skill_md.py",{"path":215,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":216,"sourceHtmlUrl":217},"scripts\u002Ftest__pr_converge_path_setup.py",949,"https:\u002F\u002Fgithub.com\u002Fjl-cmd-projects\u002Fclaude-dev-env\u002Fblob\u002Fmain\u002Fpackages\u002Fclaude-dev-env\u002F.agents\u002Fskills-archived\u002Fpr-converge\u002Fscripts\u002Ftest__pr_converge_path_setup.py",{"path":219,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":220,"sourceHtmlUrl":221},"scripts\u002Ftest_check_bugbot_ci.py",10490,"https:\u002F\u002Fgithub.com\u002Fjl-cmd-projects\u002Fclaude-dev-env\u002Fblob\u002Fmain\u002Fpackages\u002Fclaude-dev-env\u002F.agents\u002Fskills-archived\u002Fpr-converge\u002Fscripts\u002Ftest_check_bugbot_ci.py",{"path":223,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":224,"sourceHtmlUrl":225},"scripts\u002Ftest_check_convergence_availability.py",13771,"https:\u002F\u002Fgithub.com\u002Fjl-cmd-projects\u002Fclaude-dev-env\u002Fblob\u002Fmain\u002Fpackages\u002Fclaude-dev-env\u002F.agents\u002Fskills-archived\u002Fpr-converge\u002Fscripts\u002Ftest_check_convergence_availability.py",{"path":227,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":228,"sourceHtmlUrl":229},"scripts\u002Ftest_check_convergence_codex.py",15333,"https:\u002F\u002Fgithub.com\u002Fjl-cmd-projects\u002Fclaude-dev-env\u002Fblob\u002Fmain\u002Fpackages\u002Fclaude-dev-env\u002F.agents\u002Fskills-archived\u002Fpr-converge\u002Fscripts\u002Ftest_check_convergence_codex.py",{"path":231,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":232,"sourceHtmlUrl":233},"scripts\u002Ftest_check_convergence_contract.py",14352,"https:\u002F\u002Fgithub.com\u002Fjl-cmd-projects\u002Fclaude-dev-env\u002Fblob\u002Fmain\u002Fpackages\u002Fclaude-dev-env\u002F.agents\u002Fskills-archived\u002Fpr-converge\u002Fscripts\u002Ftest_check_convergence_contract.py",{"path":235,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":236,"sourceHtmlUrl":237},"scripts\u002Ftest_check_convergence_fixture.py",5518,"https:\u002F\u002Fgithub.com\u002Fjl-cmd-projects\u002Fclaude-dev-env\u002Fblob\u002Fmain\u002Fpackages\u002Fclaude-dev-env\u002F.agents\u002Fskills-archived\u002Fpr-converge\u002Fscripts\u002Ftest_check_convergence_fixture.py",{"path":239,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":240,"sourceHtmlUrl":241},"scripts\u002Ftest_check_convergence_gates.py",2673,"https:\u002F\u002Fgithub.com\u002Fjl-cmd-projects\u002Fclaude-dev-env\u002Fblob\u002Fmain\u002Fpackages\u002Fclaude-dev-env\u002F.agents\u002Fskills-archived\u002Fpr-converge\u002Fscripts\u002Ftest_check_convergence_gates.py",{"path":243,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":244,"sourceHtmlUrl":245},"scripts\u002Ftest_check_convergence_thread_gates.py",3433,"https:\u002F\u002Fgithub.com\u002Fjl-cmd-projects\u002Fclaude-dev-env\u002Fblob\u002Fmain\u002Fpackages\u002Fclaude-dev-env\u002F.agents\u002Fskills-archived\u002Fpr-converge\u002Fscripts\u002Ftest_check_convergence_thread_gates.py",{"path":247,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":248,"sourceHtmlUrl":249},"scripts\u002Ftest_check_convergence.py",15324,"https:\u002F\u002Fgithub.com\u002Fjl-cmd-projects\u002Fclaude-dev-env\u002Fblob\u002Fmain\u002Fpackages\u002Fclaude-dev-env\u002F.agents\u002Fskills-archived\u002Fpr-converge\u002Fscripts\u002Ftest_check_convergence.py",{"path":251,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":252,"sourceHtmlUrl":253},"scripts\u002Ftest_cursor_agents_continue.py",2304,"https:\u002F\u002Fgithub.com\u002Fjl-cmd-projects\u002Fclaude-dev-env\u002Fblob\u002Fmain\u002Fpackages\u002Fclaude-dev-env\u002F.agents\u002Fskills-archived\u002Fpr-converge\u002Fscripts\u002Ftest_cursor_agents_continue.py",{"path":255,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":256,"sourceHtmlUrl":257},"scripts\u002Ftest_reflow_skill_md.py",5427,"https:\u002F\u002Fgithub.com\u002Fjl-cmd-projects\u002Fclaude-dev-env\u002Fblob\u002Fmain\u002Fpackages\u002Fclaude-dev-env\u002F.agents\u002Fskills-archived\u002Fpr-converge\u002Fscripts\u002Ftest_reflow_skill_md.py",{"path":259,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":260,"sourceHtmlUrl":261},"test_portable_pacer_gate.py",2896,"https:\u002F\u002Fgithub.com\u002Fjl-cmd-projects\u002Fclaude-dev-env\u002Fblob\u002Fmain\u002Fpackages\u002Fclaude-dev-env\u002F.agents\u002Fskills-archived\u002Fpr-converge\u002Ftest_portable_pacer_gate.py",{"path":263,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":264,"sourceHtmlUrl":265},"test_step5_host_branch.py",4621,"https:\u002F\u002Fgithub.com\u002Fjl-cmd-projects\u002Fclaude-dev-env\u002Fblob\u002Fmain\u002Fpackages\u002Fclaude-dev-env\u002F.agents\u002Fskills-archived\u002Fpr-converge\u002Ftest_step5_host_branch.py",{"path":267,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":268,"sourceHtmlUrl":269},"workflows\u002Fschedule-wakeup-loop.md",1392,"https:\u002F\u002Fgithub.com\u002Fjl-cmd-projects\u002Fclaude-dev-env\u002Fblob\u002Fmain\u002Fpackages\u002Fclaude-dev-env\u002F.agents\u002Fskills-archived\u002Fpr-converge\u002Fworkflows\u002Fschedule-wakeup-loop.md",[271,278,285,292,299,306],{"skillNo":272,"name":273,"nameZh":6,"description":274,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":275,"categories":276,"keywords":277,"publishedAt":18},"01M78FER7S09AE87MMJFT1E87E","update","Fast-forwards a local repository's main branch to a remote's main after confirming the repo path and source remote through AskUserQuestion. Use when the user says '\u002Fupdate', 'update main', 'fast-forward main', 'sync main from origin', 'pull latest main into \u003Cpath>', or 'bring main up to date'.","https:\u002F\u002Fgithub.com\u002Fjl-cmd-projects\u002Fclaude-dev-env\u002Fblob\u002Fmain\u002Fskill-archive\u002Fupdate\u002FSKILL.md",[],[],{"skillNo":279,"name":280,"nameZh":6,"description":281,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":282,"categories":283,"keywords":284,"publishedAt":18},"01M78FENWZS01MB4PMGX6801X6","source-command-sr-loop","Converging cleanup loop: repeat \u002Fsimplify until clean, then repeat \u002Fcode-review --fix until clean","https:\u002F\u002Fgithub.com\u002Fjl-cmd-projects\u002Fclaude-dev-env\u002Fblob\u002Fmain\u002Fskill-archive\u002Fsource-command-sr-loop\u002FSKILL.md",[],[],{"skillNo":286,"name":287,"nameZh":6,"description":288,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":289,"categories":290,"keywords":291,"publishedAt":18},"01M78FEGZ7JDWEG3RM78M9Y8F8","skill-builder","Skill lifecycle: classify, scaffold, write via the skill-writer-agent, self-audit, compose sub-skills, polish description triggers, enforce deterministic scripts. Triggers: build a skill, new skill workflow, improve this skill, optimize skill description, skill development lifecycle, skill modularity, skill composition, description trigger catalog, deterministic skill scripts.","https:\u002F\u002Fgithub.com\u002Fjl-cmd-projects\u002Fclaude-dev-env\u002Fblob\u002Fmain\u002Fskill-archive\u002Fskill-builder\u002FSKILL.md",[],[],{"skillNo":293,"name":294,"nameZh":6,"description":295,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":296,"categories":297,"keywords":298,"publishedAt":18},"01M78FEDEYHJYKTER9S566DMEZ","session-tidy","Audit, clean, and consolidate session logs in the Obsidian vault. Fixes format drift, resolves orphaned next-steps, updates stale statuses, and generates project rollup summaries. Use when session logs feel cluttered or before starting a new project milestone. Triggers on '\u002Fsession-tidy', 'tidy sessions', 'clean up session logs', 'session audit'.","https:\u002F\u002Fgithub.com\u002Fjl-cmd-projects\u002Fclaude-dev-env\u002Fblob\u002Fmain\u002Fskill-archive\u002Fsession-tidy\u002FSKILL.md",[],[],{"skillNo":300,"name":301,"nameZh":6,"description":302,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":303,"categories":304,"keywords":305,"publishedAt":18},"01M78FE8QR789SKBF3A78N2T13","session-log","Logs a session report as an HTML page, tracks vault context, extracts decisions, and outputs a \u002Frename command. Use for \u002Fsession-log, 'journal this session', 'log this work', 'session report', 'summarize\u002Flog\u002Frecord this session', 'save session', 'capture session', or 'document what we did'.","https:\u002F\u002Fgithub.com\u002Fjl-cmd-projects\u002Fclaude-dev-env\u002Fblob\u002Fmain\u002Fskill-archive\u002Fsession-log\u002FSKILL.md",[],[],{"skillNo":307,"name":308,"nameZh":6,"description":309,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":310,"categories":311,"keywords":312,"publishedAt":18},"01M78FE4JDJHKTJPWRWNQEX2HT","run-claude-dev-env","Build, install, run, and test the claude-dev-env installer. Use when asked to run claude-dev-env, install the Claude Code config into ~\u002F.claude, drive the installer, smoke-test it against a sandbox, or run its test suite.","https:\u002F\u002Fgithub.com\u002Fjl-cmd-projects\u002Fclaude-dev-env\u002Fblob\u002Fmain\u002Fskill-archive\u002Frun-claude-dev-env\u002FSKILL.md",[],[]]