[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M78F4S805CY3YMTDM9XJ10W2":3,"skill-same:01M78F4S805CY3YMTDM9XJ10W2":44},{"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},"01M78F4S805CY3YMTDM9XJ10W2","parallel-debug",null,"Runs the pr-converge loop for jl-cmd\u002Fclaude-dev-env using AHK auto-continue pacing. Activate when the user says \"parallel-debug\" or asks to run the pr-converge convergence loop in Cursor.","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\u002F.cursor\u002Fskills-archived\u002Fparallel-debug\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: parallel-debug\ndescription: Runs the pr-converge loop for jl-cmd\u002Fclaude-dev-env using AHK auto-continue pacing. Activate when the user says \"parallel-debug\" or asks to run the pr-converge convergence loop in Cursor.\n---\n\nRun the bugbot + bugteam convergence loop across all open PRs in `jl-cmd\u002Fclaude-dev-env`, paced by an AHK auto-typer, since `ScheduleWakeup` is unavailable in Cursor sessions. End every response with `Awaiting next \"continue\" tick.`\n\n## Objective\n\nConverge every open PR in `jl-cmd\u002Fclaude-dev-env` to back-to-back clean: bugbot CLEAN + bugteam CLEAN at the same HEAD. Mark each converged PR ready for review with `gh pr ready`. Stop when all open PRs have converged or hit a hard blocker.\n\n## One-Time Setup\n\nRun these two commands at the start of the session before any tick work:\n\n**1. Resolve the Cursor window PID:**\n```bash\npwsh -NoProfile -ExecutionPolicy Bypass -File \"$HOME\\.claude\\skills\\pr-converge\\scripts\\caller-window-pid.ps1\"\n```\nCapture the printed integer as `caller_pid`. Verify it is the right window:\n```bash\npwsh -NoProfile -Command \"Get-Process -Id \u003Ccaller_pid> | Select-Object Id,ProcessName,MainWindowTitle\"\n```\n\n**2. Launch the AHK auto-typer:**\n```bash\n\"$HOME\\.claude\\skills\\pr-converge\\scripts\\cursor-agents-continue.cmd\" \u003Ccaller_pid> --start-on\n```\nAutoHotkey v2 must be installed at `C:\\Program Files\\AutoHotkey\\v2\\AutoHotkey64.exe`. The indicator window (`pr-converge \u002F agents pacer`) confirms the pacer is running. Every 5 minutes it types `continue` into this window to trigger the next tick.\n\n## Step 0: Discover Work Queue\n\nAt the start of each session (or after a long pause), assemble the current PR state dynamically. Run all four commands:\n\n**Open PRs:**\n```bash\ngh api 'repos\u002Fjl-cmd\u002Fclaude-dev-env\u002Fpulls?state=open&per_page=100' --paginate --slurp \\\n  | jq '[.[][] | {number, title, headRefName: .head.ref, head_sha: .head.sha, mergeable, isDraft: .draft}] | sort_by(.number)'\n```\nUse **`head.ref`** and **`draft`** here — the REST list response does not expose GraphQL-style `headRefName` \u002F `isDraft` keys. **`gh pr view --json`** (below) is what emits `headRefName` \u002F `isDraft`.\n\n**Bugbot review status per PR** (run for each `\u003CN>`):\n```bash\npython \"$HOME\\.claude\\skills\\pr-converge\\scripts\\fetch_bugbot_reviews.py\" \\\n  --owner jl-cmd --repo claude-dev-env --number \u003CN>\n```\nReturns `classification: \"clean\"` or `classification: \"dirty\"` plus `commit_id`.\n\n**Bugbot inline findings for dirty PRs** (run for each dirty `\u003CN>` at its `\u003CHEAD_SHA>`):\n```bash\npython \"$HOME\\.claude\\skills\\pr-converge\\scripts\\fetch_bugbot_inline_comments.py\" \\\n  --owner jl-cmd --repo claude-dev-env --number \u003CN> --commit \u003CHEAD_SHA>\n```\n\n**Prior bugteam review per PR** (run for each `\u003CN>`):\n```bash\ngh api 'repos\u002Fjl-cmd\u002Fclaude-dev-env\u002Fpulls\u002F\u003CN>\u002Freviews?per_page=100' --paginate --slurp \\\n  | jq '[.[][] | select((.body \u002F\u002F \"\") | startswith(\"## \u002Fbugteam\"))] | sort_by(.submitted_at) | last | {commit_id, body}'\n```\nA review body ending with `-> clean` at the current HEAD means bugteam passed.\n\nBuild a decision table from the results:\n\n| PR | Head SHA | Bugbot | Bugteam | Next action |\n|----|----------|--------|---------|-------------|\n| ... | ... | clean\u002Fdirty | clean\u002Fdirty\u002Fnone | ... |\n\n## Multitask Mode — `continue` fan-out\n\nWhen **Multitask Mode** is active in Cursor and the user types **`continue`** (advance the convergence loop), the **coordinator** MUST **not** run a single-PR tick for one PR by default.\n\n1. List open PR numbers, for example:\n   ```bash\n   gh pr list -R jl-cmd\u002Fclaude-dev-env --state open --json number -q \".[].number\"\n   ```\n   (Any equivalent that returns the same set of PR numbers is fine.)\n2. For **each** open PR number, spawn **one** background subagent:\n   ```\n   Task(\n     subagent_type=\"generalPurpose\",\n     run_in_background=true,\n     prompt=\"…scoped to PR #\u003CN> only…\"\n   )\n   ```\n3. Each subagent runs **exactly one** parallel-debug tick for **that** PR: Bugbot state vs current HEAD, inline handling, and **at most one** loop advance per **Per-Tick Work** below (no full bugteam protocol duplicated here — follow **Per-Tick Work** and link out to bugteam only where that section already does).\n\nOutside Multitask Mode, `continue` still means one coordinator tick on the active PR context as today.\n\n## Per-Tick Work\n\nEach tick (triggered by `continue` from AHK or from the user **outside Multitask Mode**; in Multitask Mode, coordinator `continue` fans out per **Multitask Mode — `continue` fan-out**) runs these steps:\n\n**Step 1 — Resolve current HEAD and PR context:**\n```bash\ngh pr view \u003CN> -R jl-cmd\u002Fclaude-dev-env --json \"number,url,headRefOid,baseRefName,headRefName,isDraft\"\n```\nOn **PowerShell**, quote the **`--json`** field list so commas are not split into separate arguments.\n\nIncrement `tick_count`. Read prior state line from the previous response.\n\n**Step 2 — Branch on `phase`:**\n\n*BUGBOT phase:*\n- Fetch Bugbot classification (same helper as Step 0 — do **not** re-derive clean\u002Fdirty from raw review bodies):\n  ```bash\n  python \"$HOME\\.claude\\skills\\pr-converge\\scripts\\fetch_bugbot_reviews.py\" \\\n    --owner jl-cmd --repo claude-dev-env --number \u003CN>\n  ```\n  Use the JSON array entries’ `commit_id` and `classification` (`clean` \u002F `dirty`) exactly as Step 0 does.\n- Fetch inline findings for current HEAD:\n  ```bash\n  python \"$HOME\\.claude\\skills\\pr-converge\\scripts\\fetch_bugbot_inline_comments.py\" \\\n    --owner jl-cmd --repo claude-dev-env --number \u003CN> --commit \u003Ccurrent_head>\n  ```\n- Decide:\n  - No entry with `commit_id == current_head` → set `inline_lag_streak = 0`, re-trigger bugbot (Step 3), schedule next tick\n  - Entry at `current_head` with `classification: \"clean\"` **and** zero inline findings → set `inline_lag_streak = 0`, set `bugbot_clean_at = current_head`, transition to BUGTEAM phase, continue in same tick\n  - Non-zero inline findings on `current_head` → set `inline_lag_streak = 0`, apply Fix protocol, re-trigger bugbot, schedule next tick\n  - Entry at `current_head` with `classification: \"dirty\"` **and** zero inline findings → increment `inline_lag_streak`; if `>= 3` hard blocker; else schedule next tick at AHK cadence\n\n*BUGTEAM phase:*\n- Read `$HOME\\.claude\\skills\\pr-converge\\SKILL.md` and `$HOME\\.claude\\skills\\bugteam\\SKILL.md` for full audit protocol\n- Run bugteam audit by following the bugteam skill's Step 3 cycle against the current PR\n- Re-resolve HEAD after bugteam (it may have pushed commits)\n- If bugteam pushed → set `bugbot_clean_at = null`, re-trigger bugbot, transition to BUGBOT, schedule next tick\n- If bugteam converged AND `bugbot_clean_at == current_head` → back-to-back clean; mark ready (Step 5)\n- If bugteam converged but `bugbot_clean_at != current_head` → transition to BUGBOT, schedule next tick\n- If bugteam has findings without committing → apply Fix protocol, re-trigger bugbot, transition to BUGBOT, schedule next tick\n\n**Step 3 — Re-trigger bugbot:**\n\nPrefer the bundled helper (temp body file and `gh pr comment --body-file` in one process, per `pr-converge` Step 3):\n\n```bash\npython \"$HOME\\.claude\\skills\\pr-converge\\scripts\\trigger_bugbot.py\" \\\n  --owner jl-cmd --repo claude-dev-env --number \u003CN>\n```\n\nWhen the script is unavailable, run **one** `pwsh` invocation so the temp path never crosses process boundaries:\n\n```powershell\npwsh -NoProfile -Command @'\n$bodyPath = [System.IO.Path]::ChangeExtension((New-TemporaryFile).FullName, '.md')\n[IO.File]::WriteAllText($bodyPath, \"bugbot run`n\", [Text.UTF8Encoding]::new($false))\ngh pr comment \u003CN> --repo jl-cmd\u002Fclaude-dev-env --body-file $bodyPath\nRemove-Item -LiteralPath $bodyPath -Force -ErrorAction SilentlyContinue\n'@\n```\n\n**Step 4 — State line (emit every tick):**\n```\nState: phase=\u003CBUGBOT|BUGTEAM> bugbot_clean_at=\u003CSHA|null> inline_lag_streak=\u003CN> tick_count=\u003CN>\n```\nDo NOT call `ScheduleWakeup` — AHK is the pacer.\n\nEnd every response with: `Awaiting next \"continue\" tick.`\n\n## Fix Protocol\n\nWhen findings exist (either phase):\n\n1. Read each referenced `file:line`.\n2. Write a failing test first when the finding has behavior to test; skip for doc\u002Fnaming nits.\n3. Implement the fix. For all production or test code edits, spawn a `Task` subagent (same split as **pr-converge** Fix protocol — `packages\u002Fclaude-dev-env\u002F.agents\u002Fskills\u002Fpr-converge\u002FSKILL.md` §Fix protocol: subagent edits; **this session** runs commit\u002Fpush in steps 4–5):\n   ```\n   Task(\n     subagent_type=\"generalPurpose\",\n     prompt=\"You are acting as clean-coder. Read $HOME\u002F.claude\u002Fagents\u002Fclean-coder.md on Unix or %USERPROFILE%\\\\.claude\\\\agents\\\\clean-coder.md on Windows before editing; that file is binding (naming, TDD when behavior changes, scope limited to the listed findings). Implement: \u003Cspecific fix description with file:line>. Do not run git commit or git push — return when edits are complete so the coordinator runs steps 4–5.\"\n   )\n   ```\n   Ensure `.cursor\u002Fagents\u002Fclean-coder.md` exists; copy from `~\u002F.claude\u002Fagents\u002F` when missing.\n4. Stage and commit:\n   ```bash\n   git add \u003Cfiles>\n   git commit -m \"fix(review): \u003Cbrief summary>\"\n   ```\n5. Push:\n   ```bash\n   git push origin \u003Cbranch>\n   ```\n6. Set `current_head` to new SHA. Set `bugbot_clean_at = null`.\n7. Reply to each addressed inline comment thread:\n   ```bash\n   gh api -X POST repos\u002Fjl-cmd\u002Fclaude-dev-env\u002Fpulls\u002F\u003CN>\u002Fcomments\u002F\u003Ccomment_id>\u002Freplies \\\n     --field body=@\u003Creply_body_file.md>\n   ```\n8. Re-trigger bugbot (Step 3) immediately after pushing.\n\nHonor pre-commit and pre-push hooks. When a hook rejects, read its output, fix the underlying issue, and retry.\n\n## Step 5: Convergence\n\nWhen back-to-back clean (bugteam converged AND `bugbot_clean_at == current_head` with no push during this tick):\n\n```bash\ngh pr ready \u003CN> --repo jl-cmd\u002Fclaude-dev-env\n```\n\nReport: `PR #\u003CN> converged: bugbot CLEAN at \u003CSHA>, bugteam CLEAN at \u003CSHA>; marked ready for review.`\n\nAfter all open PRs have converged, stop the AHK auto-typer (canonical **scoped** kill — matches `packages\u002Fclaude-dev-env\u002F.agents\u002Fskills\u002Fpr-converge\u002Fworkflows\u002Fahk-auto-continue-loop.md` **Convergence cleanup**; command-line match avoids killing unrelated AutoHotkey tools):\n\n```bash\npwsh -NoProfile -Command \"Get-CimInstance Win32_Process -Filter \\\"Name='AutoHotkey64.exe'\\\" | Where-Object CommandLine -like '*cursor-agents-continue.ahk*' | ForEach-Object { Stop-Process -Id $_.ProcessId -Force }\"\n```\n\nUse the **same** one-liner when **Safety Cap** or **Hard Blockers** require stopping the pacer.\n\nDo not emit `Awaiting next \"continue\" tick.` after a convergence stop — the loop is done.\n\n## Safety Cap\n\nWhen `tick_count >= 30`, stop the loop and stop the auto-typer (**same scoped `Get-CimInstance` \u002F `Stop-Process` one-liner as Step 5**). Report the cap was hit and which PRs remain open. Something structural requires manual investigation.\n\n## Hard Blockers\n\nStop immediately (stop AHK with the **Step 5** scoped one-liner, do not schedule next tick) when:\n- API auth failure persists across two ticks\n- `inline_lag_streak >= 3`\n- bugteam reports `stuck` state\n- A hook rejection persists through three commits with the same underlying error\n\nReport the specific blocker and diagnosis.\n\n## Success Criteria\n\n- All open PRs in `jl-cmd\u002Fclaude-dev-env` have been marked ready for review via `gh pr ready`\n- Each PR reached back-to-back clean: bugbot CLEAN at current HEAD + bugteam CLEAN at current HEAD\n- AHK auto-typer stopped via the scoped stopper script\n- Final report lists each PR number and its convergence SHA\n","Run the bugbot + bugteam convergence loop across all open PRs in `jl-cmd\u002Fclaude-dev-env`, paced by an AHK auto-typer, since `ScheduleWakeup` is unavailable in Cursor sessions. End every response with `Awaiting next \"continue\" tick.`\n\n## Objective\n\nConverge every open PR in `jl-cmd\u002Fclaude-dev-env` to back-to-back clean: bugbot CLEAN + bugteam CLEAN at the same HEAD. Mark each converged PR ready for review with `gh pr ready`. Stop when all open PRs have converged or hit a hard blocker.\n\n## One-Time Setup\n\nRun these two commands at the start of the session before any tick work:\n\n**1. Resolve the Cursor window PID:**\n```bash\npwsh -NoProfile -ExecutionPolicy Bypass -File \"$HOME\\.claude\\skills\\pr-converge\\scripts\\caller-window-pid.ps1\"\n```\nCapture the printed integer as `caller_pid`. Verify it is the right window:\n```bash\npwsh -NoProfile -Command \"Get-Process -Id \u003Ccaller_pid> | Select-Object Id,ProcessName,MainWindowTitle\"\n```\n\n**2. Launch the AHK auto-typer:**\n```bash\n\"$HOME\\.claude\\skills\\pr-converge\\scripts\\cursor-agents-continue.cmd\" \u003Ccaller_pid> --start-on\n```\nAutoHotkey v2 must be installed at `C:\\Program Files\\AutoHotkey\\v2\\AutoHotkey64.exe`. The indicator window (`pr-converge \u002F agents pacer`) confirms the pacer is running. Every 5 minutes it types `continue` into this window to trigger the next tick.\n\n## Step 0: Discover Work Queue\n\nAt the start of each session (or after a long pause), assemble the current PR state dynamically. Run all four commands:\n\n**Open PRs:**\n```bash\ngh api 'repos\u002Fjl-cmd\u002Fclaude-dev-env\u002Fpulls?state=open&per_page=100' --paginate --slurp \\\n  | jq '[.[][] | {number, title, headRefName: .head.ref, head_sha: .head.sha, mergeable, isDraft: .draft}] | sort_by(.number)'\n```\nUse **`head.ref`** and **`draft`** here — the REST list response does not expose GraphQL-style `headRefName` \u002F `isDraft` keys. **`gh pr view --json`** (below) is what emits `headRefName` \u002F `isDraft`.\n\n**Bugbot review status per PR** (run for each `\u003CN>`):\n```bash\npython \"$HOME\\.claude\\skills\\pr-converge\\scripts\\fetch_bugbot_reviews.py\" \\\n  --owner jl-cmd --repo claude-dev-env --number \u003CN>\n```\nReturns `classification: \"clean\"` or `classification: \"dirty\"` plus `commit_id`.\n\n**Bugbot inline findings for dirty PRs** (run for each dirty `\u003CN>` at its `\u003CHEAD_SHA>`):\n```bash\npython \"$HOME\\.claude\\skills\\pr-converge\\scripts\\fetch_bugbot_inline_comments.py\" \\\n  --owner jl-cmd --repo claude-dev-env --number \u003CN> --commit \u003CHEAD_SHA>\n```\n\n**Prior bugteam review per PR** (run for each `\u003CN>`):\n```bash\ngh api 'repos\u002Fjl-cmd\u002Fclaude-dev-env\u002Fpulls\u002F\u003CN>\u002Freviews?per_page=100' --paginate --slurp \\\n  | jq '[.[][] | select((.body \u002F\u002F \"\") | startswith(\"## \u002Fbugteam\"))] | sort_by(.submitted_at) | last | {commit_id, body}'\n```\nA review body ending with `-> clean` at the current HEAD means bugteam passed.\n\nBuild a decision table from the results:\n\n| PR | Head SHA | Bugbot | Bugteam | Next action |\n|----|----------|--------|---------|-------------|\n| ... | ... | clean\u002Fdirty | clean\u002Fdirty\u002Fnone | ... |\n\n## Multitask Mode — `continue` fan-out\n\nWhen **Multitask Mode** is active in Cursor and the user types **`continue`** (advance the convergence loop), the **coordinator** MUST **not** run a single-PR tick for one PR by default.\n\n1. List open PR numbers, for example:\n   ```bash\n   gh pr list -R jl-cmd\u002Fclaude-dev-env --state open --json number -q \".[].number\"\n   ```\n   (Any equivalent that returns the same set of PR numbers is fine.)\n2. For **each** open PR number, spawn **one** background subagent:\n   ```\n   Task(\n     subagent_type=\"generalPurpose\",\n     run_in_background=true,\n     prompt=\"…scoped to PR #\u003CN> only…\"\n   )\n   ```\n3. Each subagent runs **exactly one** parallel-debug tick for **that** PR: Bugbot state vs current HEAD, inline handling, and **at most one** loop advance per **Per-Tick Work** below (no full bugteam protocol duplicated here — follow **Per-Tick Work** and link out to bugteam only where that section already does).\n\nOutside Multitask Mode, `continue` still means one coordinator tick on the active PR context as today.\n\n## Per-Tick Work\n\nEach tick (triggered by `continue` from AHK or from the user **outside Multitask Mode**; in Multitask Mode, coordinator `continue` fans out per **Multitask Mode — `continue` fan-out**) runs these steps:\n\n**Step 1 — Resolve current HEAD and PR context:**\n```bash\ngh pr view \u003CN> -R jl-cmd\u002Fclaude-dev-env --json \"number,url,headRefOid,baseRefName,headRefName,isDraft\"\n```\nOn **PowerShell**, quote the **`--json`** field list so commas are not split into separate arguments.\n\nIncrement `tick_count`. Read prior state line from the previous response.\n\n**Step 2 — Branch on `phase`:**\n\n*BUGBOT phase:*\n- Fetch Bugbot classification (same helper as Step 0 — do **not** re-derive clean\u002Fdirty from raw review bodies):\n  ```bash\n  python \"$HOME\\.claude\\skills\\pr-converge\\scripts\\fetch_bugbot_reviews.py\" \\\n    --owner jl-cmd --repo claude-dev-env --number \u003CN>\n  ```\n  Use the JSON array entries’ `commit_id` and `classification` (`clean` \u002F `dirty`) exactly as Step 0 does.\n- Fetch inline findings for current HEAD:\n  ```bash\n  python \"$HOME\\.claude\\skills\\pr-converge\\scripts\\fetch_bugbot_inline_comments.py\" \\\n    --owner jl-cmd --repo claude-dev-env --number \u003CN> --commit \u003Ccurrent_head>\n  ```\n- Decide:\n  - No entry with `commit_id == current_head` → set `inline_lag_streak = 0`, re-trigger bugbot (Step 3), schedule next tick\n  - Entry at `current_head` with `classification: \"clean\"` **and** zero inline findings → set `inline_lag_streak = 0`, set `bugbot_clean_at = current_head`, transition to BUGTEAM phase, continue in same tick\n  - Non-zero inline findings on `current_head` → set `inline_lag_streak = 0`, apply Fix protocol, re-trigger bugbot, schedule next tick\n  - Entry at `current_head` with `classification: \"dirty\"` **and** zero inline findings → increment `inline_lag_streak`; if `>= 3` hard blocker; else schedule next tick at AHK cadence\n\n*BUGTEAM phase:*\n- Read `$HOME\\.claude\\skills\\pr-converge\\SKILL.md` and `$HOME\\.claude\\skills\\bugteam\\SKILL.md` for full audit protocol\n- Run bugteam audit by following the bugteam skill's Step 3 cycle against the current PR\n- Re-resolve HEAD after bugteam (it may have pushed commits)\n- If bugteam pushed → set `bugbot_clean_at = null`, re-trigger bugbot, transition to BUGBOT, schedule next tick\n- If bugteam converged AND `bugbot_clean_at == current_head` → back-to-back clean; mark ready (Step 5)\n- If bugteam converged but `bugbot_clean_at != current_head` → transition to BUGBOT, schedule next tick\n- If bugteam has findings without committing → apply Fix protocol, re-trigger bugbot, transition to BUGBOT, schedule next tick\n\n**Step 3 — Re-trigger bugbot:**\n\nPrefer the bundled helper (temp body file and `gh pr comment --body-file` in one process, per `pr-converge` Step 3):\n\n```bash\npython \"$HOME\\.claude\\skills\\pr-converge\\scripts\\trigger_bugbot.py\" \\\n  --owner jl-cmd --repo claude-dev-env --number \u003CN>\n```\n\nWhen the script is unavailable, run **one** `pwsh` invocation so the temp path never crosses process boundaries:\n\n```powershell\npwsh -NoProfile -Command @'\n$bodyPath = [System.IO.Path]::ChangeExtension((New-TemporaryFile).FullName, '.md')\n[IO.File]::WriteAllText($bodyPath, \"bugbot run`n\", [Text.UTF8Encoding]::new($false))\ngh pr comment \u003CN> --repo jl-cmd\u002Fclaude-dev-env --body-file $bodyPath\nRemove-Item -LiteralPath $bodyPath -Force -ErrorAction SilentlyContinue\n'@\n```\n\n**Step 4 — State line (emit every tick):**\n```\nState: phase=\u003CBUGBOT|BUGTEAM> bugbot_clean_at=\u003CSHA|null> inline_lag_streak=\u003CN> tick_count=\u003CN>\n```\nDo NOT call `ScheduleWakeup` — AHK is the pacer.\n\nEnd every response with: `Awaiting next \"continue\" tick.`\n\n## Fix Protocol\n\nWhen findings exist (either phase):\n\n1. Read each referenced `file:line`.\n2. Write a failing test first when the finding has behavior to test; skip for doc\u002Fnaming nits.\n3. Implement the fix. For all production or test code edits, spawn a `Task` subagent (same split as **pr-converge** Fix protocol — `packages\u002Fclaude-dev-env\u002F.agents\u002Fskills\u002Fpr-converge\u002FSKILL.md` §Fix protocol: subagent edits; **this session** runs commit\u002Fpush in steps 4–5):\n   ```\n   Task(\n     subagent_type=\"generalPurpose\",\n     prompt=\"You are acting as clean-coder. Read $HOME\u002F.claude\u002Fagents\u002Fclean-coder.md on Unix or %USERPROFILE%\\\\.claude\\\\agents\\\\clean-coder.md on Windows before editing; that file is binding (naming, TDD when behavior changes, scope limited to the listed findings). Implement: \u003Cspecific fix description with file:line>. Do not run git commit or git push — return when edits are complete so the coordinator runs steps 4–5.\"\n   )\n   ```\n   Ensure `.cursor\u002Fagents\u002Fclean-coder.md` exists; copy from `~\u002F.claude\u002Fagents\u002F` when missing.\n4. Stage and commit:\n   ```bash\n   git add \u003Cfiles>\n   git commit -m \"fix(review): \u003Cbrief summary>\"\n   ```\n5. Push:\n   ```bash\n   git push origin \u003Cbranch>\n   ```\n6. Set `current_head` to new SHA. Set `bugbot_clean_at = null`.\n7. Reply to each addressed inline comment thread:\n   ```bash\n   gh api -X POST repos\u002Fjl-cmd\u002Fclaude-dev-env\u002Fpulls\u002F\u003CN>\u002Fcomments\u002F\u003Ccomment_id>\u002Freplies \\\n     --field body=@\u003Creply_body_file.md>\n   ```\n8. Re-trigger bugbot (Step 3) immediately after pushing.\n\nHonor pre-commit and pre-push hooks. When a hook rejects, read its output, fix the underlying issue, and retry.\n\n## Step 5: Convergence\n\nWhen back-to-back clean (bugteam converged AND `bugbot_clean_at == current_head` with no push during this tick):\n\n```bash\ngh pr ready \u003CN> --repo jl-cmd\u002Fclaude-dev-env\n```\n\nReport: `PR #\u003CN> converged: bugbot CLEAN at \u003CSHA>, bugteam CLEAN at \u003CSHA>; marked ready for review.`\n\nAfter all open PRs have converged, stop the AHK auto-typer (canonical **scoped** kill — matches `packages\u002Fclaude-dev-env\u002F.agents\u002Fskills\u002Fpr-converge\u002Fworkflows\u002Fahk-auto-continue-loop.md` **Convergence cleanup**; command-line match avoids killing unrelated AutoHotkey tools):\n\n```bash\npwsh -NoProfile -Command \"Get-CimInstance Win32_Process -Filter \\\"Name='AutoHotkey64.exe'\\\" | Where-Object CommandLine -like '*cursor-agents-continue.ahk*' | ForEach-Object { Stop-Process -Id $_.ProcessId -Force }\"\n```\n\nUse the **same** one-liner when **Safety Cap** or **Hard Blockers** require stopping the pacer.\n\nDo not emit `Awaiting next \"continue\" tick.` after a convergence stop — the loop is done.\n\n## Safety Cap\n\nWhen `tick_count >= 30`, stop the loop and stop the auto-typer (**same scoped `Get-CimInstance` \u002F `Stop-Process` one-liner as Step 5**). Report the cap was hit and which PRs remain open. Something structural requires manual investigation.\n\n## Hard Blockers\n\nStop immediately (stop AHK with the **Step 5** scoped one-liner, do not schedule next tick) when:\n- API auth failure persists across two ticks\n- `inline_lag_streak >= 3`\n- bugteam reports `stuck` state\n- A hook rejection persists through three commits with the same underlying error\n\nReport the specific blocker and diagnosis.\n\n## Success Criteria\n\n- All open PRs in `jl-cmd\u002Fclaude-dev-env` have been marked ready for review via `gh pr ready`\n- Each PR reached back-to-back clean: bugbot CLEAN at current HEAD + bugteam CLEAN at current HEAD\n- AHK auto-typer stopped via the scoped stopper script\n- Final report lists each PR number and its convergence SHA\n",{"name":5,"description":7},"main","974284b42eeb4609e94d4ebc1f6e36df400d54ca",".cursor\u002Fskills-archived\u002Fparallel-debug",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 parallel-debug",{"tool":36,"command":37},"bunx","bunx skills add jl-cmd-projects\u002Fclaude-dev-env --skill parallel-debug",{"tool":39,"command":40},"pnpm","pnpm dlx skills add jl-cmd-projects\u002Fclaude-dev-env --skill parallel-debug","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjl-cmd-projects\u002Fclaude-dev-env\u002Fblob\u002Fmain\u002F.cursor\u002Fskills-archived\u002Fparallel-debug\u002FSKILL.md",true,[],[45,52,59,66,73,80],{"skillNo":46,"name":47,"nameZh":6,"description":48,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":49,"categories":50,"keywords":51,"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":53,"name":54,"nameZh":6,"description":55,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":58,"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":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"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":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"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":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"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":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"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",[],[]]