[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7F2GFTE1WR39M32AG600NHC":3,"skill-same:01M7F2GFTE1WR39M32AG600NHC":52},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":30,"updatedAt":31,"install":32,"resources":45},"01M7F2GFTE1WR39M32AG600NHC","openclaw-repair-sweep",null,"Orchestrate worker fleets over OpenClaw issues and PRs: prove root causes, prefer clean refactors over quick patches, land verified repairs, and close items proven fixed or no longer useful.","lza6\u002FArmor-piercing-system-prompts","lza6","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F128880206?v=4","01M7EB3K7WPX5T28EJ2NVHE6EG","Chinese-tingfeng","01M7EB3K97E1KQ16QWKJMFNGX8",11,"MIT","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F05-技能与代理开发\u002Fopenclaw-repair-sweep\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: openclaw-repair-sweep\ndescription: \"Orchestrate worker fleets over OpenClaw issues and PRs: prove root causes, prefer clean refactors over quick patches, land verified repairs, and close items proven fixed or no longer useful.\"\n---\n\n# OpenClaw Repair Sweep\n\nOne skill for every autonomous issue\u002FPR repair run, from a pasted five-item\nlist to a full-queue campaign. The invoking conversation is always the\norchestrator; workers in isolated worktrees — subagents or Codex CLI — do all\nhands-on work. Scope, scale, and deliverable are inputs with defaults, not\nseparate skills.\n\n## Inputs and defaults\n\n- `scope`: `refs` (explicit pasted issue\u002FPR list), `discovery` (bounded search\n  for the best qualified batch), or `queue` (entire open-issue queue, newest to\n  oldest). A bare invocation defaults to `discovery`; pasted refs imply `refs`;\n  \"the whole queue\" or \"keep going until empty\" implies `queue`.\n- `batch_size`: discovery target; default `5`, cap `20`. Do not pad a batch\n  when the bounded search yields fewer qualified items. Ignored for `queue`.\n- `workers`: fleet size. Defaults: `refs` one owner per item\u002Fcluster capped at\n  `8`; `discovery` `8`; `queue` `64`. An explicit request (\"use 10 workers\",\n  \"64 workers\") overrides the default; disclose the actual count when capacity\n  forces fewer.\n- `focus`: optional subsystem\u002Fsurface\u002Flabel filter that narrows discovery or\n  the queue (\"focus on gateway\", \"Telegram only\").\n- Authority: invoking this skill authorizes workers to investigate, fix,\n  refactor, commit, push, create\u002Fupdate PRs, land eligible changes, comment,\n  and close proven items within scope — including issue-scoped worktrees —\n  without further routine confirmation. `review`, `triage`, or `list` wording\n  keeps the run read-only; a `fix only` request permits local changes and proof\n  but no publication. Sweep authority is never permission to publish releases,\n  bump protocol or SQLite schema versions, weaken security, break shipped\n  compatibility, change another owner's protected product surface, or execute\n  untrusted code with local credentials.\n\nWorkers read the complete root `AGENTS.md`, relevant scoped guides, and\n`VISION.md` before acting. Companions where each owns the workflow:\n`$gitcrawl` discovery\u002Fclusters, `$openclaw-pr-maintainer` live GitHub mutation\nrules, `$github-author-context` for contributor trust, `$openclaw-testing`\nproof choice, `$autoreview` pre-publish review, `$crabbox` heavy\u002Fremote proof.\n\n## Orchestration contract\n\n- The parent is control plane only: decompose work, assign explicit\n  issue\u002FPR\u002Ffile\u002Fcheckout ownership, spawn bounded workers and independent\n  verifiers, serialize shared mutations, track exact heads\u002Fevidence\u002F\n  authorization, and report worker-verified outcomes. It never inspects\n  issues, reads source, edits, tests, mutates GitHub, or lands. When a worker\n  stalls or fails, reassign the bounded work — the parent never takes it over.\n- Workers are hands-on execution owners: discovery, source\u002Fdependency\n  inspection, repros, edits\u002Frefactors, tests\u002Fproof\u002FCI, GitHub reads\u002Fwrites,\n  comments, closures, commits, pushes, and authorized landing. A worker making\n  a Codex-backed verdict personally inspects sibling `..\u002Fcodex` first and\n  cites files\u002Flines; another agent's report never substitutes.\n- Spawn workers as full-history forks so each inherits the orchestrator's\n  model and xhigh reasoning effort; never downgrade either, and never print or\n  record model identifiers — redact subprocess banners before reporting.\n- One bounded worker owns each item or root-cause cluster; duplicates sharing\n  a root cause share that owner. Deduplicate by canonical root cause, not\n  issue number. Separate independent workers challenge closures and\n  nontrivial landing proof; an investigator cannot self-approve.\n- When one defect class repeats across items (blank-credential handling,\n  encoding slicing, unbounded caches, timeout bounds), assign the class to a\n  single owner who picks one canonical helper and sweeps all sibling call\n  sites — never parallel workers landing near-identical local patches.\n- Every independent fix gets its own issue-scoped lightweight worktree and\n  `codex\u002Fissue-\u003Cid>` branch created from a frozen SHA; reuse the repo-native\n  isolated PR worktree when repairing an existing PR. Share Git objects — do\n  not clone or install dependencies per worktree merely for isolation. Never\n  edit, switch, or mutate the shared checkout while sibling workers are\n  active; never stage, stash, discard, or overwrite unrelated dirty changes.\n- Serialize only shared Git\u002Fref mutations — fetches, branch\u002Fworktree ops, PR\n  preparation, merges, main-targeted pushes — in brief coordinator-owned\n  exclusive slots. Do not hold a slot across coding, proof, or remote waits.\n  A Testbox lease has one owner and one active command.\n- Bound concurrently _active_ code\u002Ftest workers by real host capacity: start\n  with waves of 4–8 and expand or shrink on CPU\u002Fload, memory, disk headroom,\n  and remote-pool health. Reserve capacity for the operator; never kill\n  unrelated processes. Keep the full fleet assigned — idle coordinators\n  investigate. Offload heavy proof remotely before pressure threatens the\n  host; pause only campaign-owned work, preserve claims, resume from the\n  recorded checkpoint.\n- Classify source trust before execution. Untrusted contributor code, tests,\n  or wrappers never run locally or on a credential-hydrated host; use the\n  sanitized remote-proof path. Run capable heavy trusted proof on the current\n  dedicated Linux worker; otherwise use the selected remote box.\n- Before replacing a failed or interrupted worker, preserve its claimed items,\n  patches, checkout ownership, and evidence; hand them to exactly one\n  replacement without duplicating or discarding unfinished work.\n- Record actual active, completed, failed, fixed, landed, verified-closed,\n  commented, and skipped counts; persist the checkpoint for resumed runs.\n\n## GitHub capacity\n\n- Prefer local `$gitcrawl` archives for queue discovery, search, duplicate\n  clusters, comments, and prior merged work. Check freshness; do not broadly\n  resync merely to start a sweep.\n- Prefer `octopool gh ...` for necessary live reads\u002Fmutations; plain `gh` only\n  when Octopool or the canonical wrapper requires it. Minimal fields, batched\n  reads, results reused across workers, no unbounded pagination, never\n  `gh run watch` or unchanged-CI polling.\n- Require a fresh live check only before consequential mutations, final merge\n  decisions, or on stale\u002Fcontradictory cached state. Deduplicate worker\n  requests instead of letting the fleet fetch the same item independently.\n\n## Candidate bar\n\nAccept a repair only when all are true:\n\n- real bug or paper cut — not feature\u002Fproduct\u002Fsupport\u002Frelease\u002Fworkflow work\n- root cause proven in current code; dependency behavior verified against\n  upstream docs\u002Fsource\u002Ftypes when relevant\n- repair shape is high confidence with understood, bounded behavior and\n  ownership risk — change size alone is not the risk criterion\n- no new dependency, no new config option, no backward-incompatible behavior\n- no plugin SDK\u002Fpublic API boundary change and no security\u002Fproduct\u002Fowner\n  decision required. For items needing such a decision, make the cheap safe\n  repairs anyway, push to preserve the work, and report\n  NEEDS-MAINTAINER-DECISION — with a read-only sibling-surface survey and a\n  recommendation — instead of merging or silently skipping\n- focused proof is feasible\n\nReject speculative reports without provable cause, UI\u002FUX judgment calls, and\nfixes needing unavailable credentials for mandatory live verification. Skip\nwith a terse reason; never pad with low-confidence fixes.\n\n## Fix shape: refactor first\n\n- Prefer the coherent owner-boundary refactor over a narrow guard, workaround,\n  fallback, duplicate policy, or compatibility shim. Clean code beats a quick\n  fix: when the minimal patch and the clean repair diverge, take the clean\n  repair while its risk stays understood and bounded. Do not substitute a\n  workaround when a coherent cleanup is the correct fix.\n- While reading, delete connected dead branches, duplicate paths, stale\n  abstractions, and obsolete tests in the same coherent change.\n- Measure `git diff --numstat`; aim for net-neutral or net-negative production\n  LOC with tests counted separately. Justify growth only by fewer concepts,\n  better ownership, essential behavior, or stronger safety.\n- Never hardcode the reported example. Add regression coverage near the\n  failing surface when it fits. Small missing affordances with an established\n  adjacent contract are fine; substantial new features are not.\n- Never edit `CHANGELOG.md`; put user impact, issue\u002FPR refs, and human credit\n  in the PR body or commit message.\n- After finishing its assigned items, each worker lands the best rent-paying\n  refactor or simplification found in the areas it touched as its own focused\n  PR, or states NO-FOLLOW-UP with one sentence. These passes regularly find\n  real bugs; hold them to the same candidate bar, proof, and review gates.\n\n## Outcome order per item\u002Fcluster\n\nAlways investigate existing work first: live body\u002Fcomments\u002Flabels\u002Flinks,\n`$gitcrawl` for duplicates and prior PRs, live search, current `main` and\nhistory. Read competing implementations deeply enough to judge them. Then:\n\n1. **Fixed on main:** prove the original failure is resolved; close with the\n   exact merged PR\u002Fcommit, current source\u002Ftest, or release proof.\n2. **Existing PR is the best fix:** improve as needed, verify the exact final\n   head, land through the repo-native maintainer workflow.\n3. **Existing PR is useful but incomplete:** finish it, or create a cleaner\n   replacement that preserves attribution and links the original.\n4. **No suitable PR:** implement the best high-confidence root-cause repair or\n   justified simplifying refactor; create, verify, and land a focused PR.\n5. **Bug cannot be fixed, but simplification is real:** land a proven\n   behavior-neutral refactor without pretending the issue was fixed.\n6. **Cannot fix or close:** comment only when investigation produced concrete\n   material evidence absent from the issue and ClawSweeper's review.\n\nExisting-PR rules: review the code path beyond the diff before trusting it.\nExclude wide-access maintainer-authored PRs from generic discovery until 14\ndays after creation; only a named PR or explicit maintainer-work request\noverrides. Rewrite an inadequate editable PR at the root-cause owner and keep\nauthor credit; create a replacement only when the source branch is uneditable\nor unsafe to update, and close the source only after the replacement exists.\nRed CI is normal work: inspect, fix or reject, recheck green.\n\nNever squash a contributor-owned PR after maintainers replace its ancestry.\nCreate a maintainer-owned replacement PR, link the original, and credit\ncontributors with their public GitHub noreply address. Merge and rebase are not\npolicy escapes.\n\n## Broken main\n\nA red `main` — exact-head CI failures reproducing on unrelated PRs — is sweep\nwork, not an interruption, and needs no ask. Assign one worker to own the\nrepair: find the breaking commit, check for existing repair PRs first and\nland the best one instead of duplicating a fix in flight, and prefer deleting\ndead code over baselining. Every other worker rebases onto the repaired\n`main` as needed and continues.\n\n## Closure gate\n\nAn issue stays open unless every step passes. Similar wording, adjacent tests,\nmerge dates, and confident summaries are not closure proof.\n\n1. Write down the reporter's exact primary symptom, expected outcome, every\n   affected surface, and reported version\u002Fbuild SHA. A merged mitigation or\n   diagnostic does not replace the primary outcome.\n2. Personally trace shipped and current behavior end to end; reproduce the\n   reported failure on the affected build and prove the same user action\n   succeeds on current `main` with a runnable boundary-level check. A nearby\n   unit test or unexecuted source inspection is insufficient.\n3. Prove ancestry, never infer from dates: `git merge-base --is-ancestor` for\n   the fix SHA against current `main` and each affected build\u002Ftag, plus\n   `git tag --contains`. A merge before a release date does not prove\n   inclusion.\n4. Classify honestly: root-cause repair, mitigation, diagnostic, workaround,\n   or product decision. Never close while the primary action still fails, any\n   reported surface remains broken, or an owner hold exists.\n5. A different independent worker challenges the closure packet and personally\n   verifies outcome, surfaces, ancestry, and before\u002Fafter proof; a separate\n   closure coordinator grants the mutation. Disagreement means leave open.\n6. Recheck live state immediately before the mutation. The closure comment\n   states, in one sentence, the fixed behavior, fix SHA\u002FPR, first containing\n   version when known, and before\u002Fafter evidence.\n7. If a closure is challenged or reopened, pause all closure mutations, audit\n   and correct the record, and resume only on explicit root authorization.\n\nNo more than 3 workers hold live closure\u002Fmutation duty at once. More than 50\nclose\u002Freopen actions require separate exact-count approval. Product-decision\nand won't-implement closures stay with maintainer judgment.\n\n## Verify and review\n\n- Choose proof with `$openclaw-testing`; live-test the real user\u002Fprovider\u002F\n  channel\u002FCLI path when feasible; route heavy, packaging, Docker, E2E, or\n  broad checks through `$crabbox`. Report an unavailable live prerequisite\n  accurately instead of calling a mock proof live.\n- Run `$autoreview` on the complete final change until no accepted actionable\n  findings remain; rerun after any production, test, or head change. Verify\n  findings against source rather than accepting them blind.\n- Separately self-invoke an independent Codex reviewer (`codex exec --json\n--sandbox read-only --ephemeral` from a trusted checkout) against the exact\n  frozen head; the `$autoreview` engine does not substitute for this pass.\n  Read only the final result; never emit raw model banners.\n- Read the latest ClawSweeper comment and address each applicable `Rank-up\nmoves:` item with evidence or an explicit skip reason.\n- Verify live GitHub CI green on the exact pushed head before counting a PR\n  landable or landed; never count pending, red, or conflicting PRs.\n\n## Publish, land, clean up\n\n- Open new PRs as drafts, wait for non-null mergeability, mark ready, and\n  verify CI attached to the pushed head. Use the actual PR template: user\n  impact, canonical root cause, rejected alternatives, production LOC delta,\n  exact head SHA, proof, review results, CI state, and credit. Omit agent\n  transcripts during autonomous runs rather than interrupting for consent.\n- Land main-targeted PRs only through the repo-native `scripts\u002Fpr` flow\n  (review-init, artifacts, `OPENCLAW_TESTBOX=1 scripts\u002Fpr prepare-run`,\n  `merge-run`); verify the canonical merge SHA afterward.\n- Verify every claimed landing by ancestry, not GitHub state:\n  `git merge-base --is-ancestor \u003Cmerge-sha> origin\u002Fmain`. `gh pr view --json\nstate` can report a stale `closed` for freshly merged PRs, and a GitHub 504\n  mid-merge may still have merged — verify before retrying or re-landing.\n- Refresh or rebase a PR branch only for an actual conflict, failing\n  exact-head check or guard, explicit request, or proven material stale-base\n  risk — never merely because `main` advanced.\n- After a verified landing, remove only that campaign-owned worktree and\n  branch during a serialized mutation slot; never prune unrelated worktrees,\n  refs, or user files.\n\n## Reporting\n\nParent-thread updates are concise progress plus clickable URLs:\n\n```text\n8 agents active · 12 investigated · 3 landed · 2 already-fixed issues closed\nLanded: https:\u002F\u002Fgithub.com\u002Fopenclaw\u002Fopenclaw\u002Fpull\u002F123\n```\n\nMaintain a ledger per item: outcome class, assigned worker, independent\nverifier, exact head, production\u002Ftest LOC delta, proof\u002FCI state, credit, and\ncleanup. Count only verified merged PRs, confirmed closures, and comments\nactually posted. Final answer: accepted PR URLs (or the smaller qualified\ncount with the exhausted-search reason) with 2–4 sentence explainers and\nproof\u002FCI state, closed refs with proof, concrete blockers or skip reasons, and\ncurrent branch\u002Fstatus.\n","# OpenClaw Repair Sweep\n\nOne skill for every autonomous issue\u002FPR repair run, from a pasted five-item\nlist to a full-queue campaign. The invoking conversation is always the\norchestrator; workers in isolated worktrees — subagents or Codex CLI — do all\nhands-on work. Scope, scale, and deliverable are inputs with defaults, not\nseparate skills.\n\n## Inputs and defaults\n\n- `scope`: `refs` (explicit pasted issue\u002FPR list), `discovery` (bounded search\n  for the best qualified batch), or `queue` (entire open-issue queue, newest to\n  oldest). A bare invocation defaults to `discovery`; pasted refs imply `refs`;\n  \"the whole queue\" or \"keep going until empty\" implies `queue`.\n- `batch_size`: discovery target; default `5`, cap `20`. Do not pad a batch\n  when the bounded search yields fewer qualified items. Ignored for `queue`.\n- `workers`: fleet size. Defaults: `refs` one owner per item\u002Fcluster capped at\n  `8`; `discovery` `8`; `queue` `64`. An explicit request (\"use 10 workers\",\n  \"64 workers\") overrides the default; disclose the actual count when capacity\n  forces fewer.\n- `focus`: optional subsystem\u002Fsurface\u002Flabel filter that narrows discovery or\n  the queue (\"focus on gateway\", \"Telegram only\").\n- Authority: invoking this skill authorizes workers to investigate, fix,\n  refactor, commit, push, create\u002Fupdate PRs, land eligible changes, comment,\n  and close proven items within scope — including issue-scoped worktrees —\n  without further routine confirmation. `review`, `triage`, or `list` wording\n  keeps the run read-only; a `fix only` request permits local changes and proof\n  but no publication. Sweep authority is never permission to publish releases,\n  bump protocol or SQLite schema versions, weaken security, break shipped\n  compatibility, change another owner's protected product surface, or execute\n  untrusted code with local credentials.\n\nWorkers read the complete root `AGENTS.md`, relevant scoped guides, and\n`VISION.md` before acting. Companions where each owns the workflow:\n`$gitcrawl` discovery\u002Fclusters, `$openclaw-pr-maintainer` live GitHub mutation\nrules, `$github-author-context` for contributor trust, `$openclaw-testing`\nproof choice, `$autoreview` pre-publish review, `$crabbox` heavy\u002Fremote proof.\n\n## Orchestration contract\n\n- The parent is control plane only: decompose work, assign explicit\n  issue\u002FPR\u002Ffile\u002Fcheckout ownership, spawn bounded workers and independent\n  verifiers, serialize shared mutations, track exact heads\u002Fevidence\u002F\n  authorization, and report worker-verified outcomes. It never inspects\n  issues, reads source, edits, tests, mutates GitHub, or lands. When a worker\n  stalls or fails, reassign the bounded work — the parent never takes it over.\n- Workers are hands-on execution owners: discovery, source\u002Fdependency\n  inspection, repros, edits\u002Frefactors, tests\u002Fproof\u002FCI, GitHub reads\u002Fwrites,\n  comments, closures, commits, pushes, and authorized landing. A worker making\n  a Codex-backed verdict personally inspects sibling `..\u002Fcodex` first and\n  cites files\u002Flines; another agent's report never substitutes.\n- Spawn workers as full-history forks so each inherits the orchestrator's\n  model and xhigh reasoning effort; never downgrade either, and never print or\n  record model identifiers — redact subprocess banners before reporting.\n- One bounded worker owns each item or root-cause cluster; duplicates sharing\n  a root cause share that owner. Deduplicate by canonical root cause, not\n  issue number. Separate independent workers challenge closures and\n  nontrivial landing proof; an investigator cannot self-approve.\n- When one defect class repeats across items (blank-credential handling,\n  encoding slicing, unbounded caches, timeout bounds), assign the class to a\n  single owner who picks one canonical helper and sweeps all sibling call\n  sites — never parallel workers landing near-identical local patches.\n- Every independent fix gets its own issue-scoped lightweight worktree and\n  `codex\u002Fissue-\u003Cid>` branch created from a frozen SHA; reuse the repo-native\n  isolated PR worktree when repairing an existing PR. Share Git objects — do\n  not clone or install dependencies per worktree merely for isolation. Never\n  edit, switch, or mutate the shared checkout while sibling workers are\n  active; never stage, stash, discard, or overwrite unrelated dirty changes.\n- Serialize only shared Git\u002Fref mutations — fetches, branch\u002Fworktree ops, PR\n  preparation, merges, main-targeted pushes — in brief coordinator-owned\n  exclusive slots. Do not hold a slot across coding, proof, or remote waits.\n  A Testbox lease has one owner and one active command.\n- Bound concurrently _active_ code\u002Ftest workers by real host capacity: start\n  with waves of 4–8 and expand or shrink on CPU\u002Fload, memory, disk headroom,\n  and remote-pool health. Reserve capacity for the operator; never kill\n  unrelated processes. Keep the full fleet assigned — idle coordinators\n  investigate. Offload heavy proof remotely before pressure threatens the\n  host; pause only campaign-owned work, preserve claims, resume from the\n  recorded checkpoint.\n- Classify source trust before execution. Untrusted contributor code, tests,\n  or wrappers never run locally or on a credential-hydrated host; use the\n  sanitized remote-proof path. Run capable heavy trusted proof on the current\n  dedicated Linux worker; otherwise use the selected remote box.\n- Before replacing a failed or interrupted worker, preserve its claimed items,\n  patches, checkout ownership, and evidence; hand them to exactly one\n  replacement without duplicating or discarding unfinished work.\n- Record actual active, completed, failed, fixed, landed, verified-closed,\n  commented, and skipped counts; persist the checkpoint for resumed runs.\n\n## GitHub capacity\n\n- Prefer local `$gitcrawl` archives for queue discovery, search, duplicate\n  clusters, comments, and prior merged work. Check freshness; do not broadly\n  resync merely to start a sweep.\n- Prefer `octopool gh ...` for necessary live reads\u002Fmutations; plain `gh` only\n  when Octopool or the canonical wrapper requires it. Minimal fields, batched\n  reads, results reused across workers, no unbounded pagination, never\n  `gh run watch` or unchanged-CI polling.\n- Require a fresh live check only before consequential mutations, final merge\n  decisions, or on stale\u002Fcontradictory cached state. Deduplicate worker\n  requests instead of letting the fleet fetch the same item independently.\n\n## Candidate bar\n\nAccept a repair only when all are true:\n\n- real bug or paper cut — not feature\u002Fproduct\u002Fsupport\u002Frelease\u002Fworkflow work\n- root cause proven in current code; dependency behavior verified against\n  upstream docs\u002Fsource\u002Ftypes when relevant\n- repair shape is high confidence with understood, bounded behavior and\n  ownership risk — change size alone is not the risk criterion\n- no new dependency, no new config option, no backward-incompatible behavior\n- no plugin SDK\u002Fpublic API boundary change and no security\u002Fproduct\u002Fowner\n  decision required. For items needing such a decision, make the cheap safe\n  repairs anyway, push to preserve the work, and report\n  NEEDS-MAINTAINER-DECISION — with a read-only sibling-surface survey and a\n  recommendation — instead of merging or silently skipping\n- focused proof is feasible\n\nReject speculative reports without provable cause, UI\u002FUX judgment calls, and\nfixes needing unavailable credentials for mandatory live verification. Skip\nwith a terse reason; never pad with low-confidence fixes.\n\n## Fix shape: refactor first\n\n- Prefer the coherent owner-boundary refactor over a narrow guard, workaround,\n  fallback, duplicate policy, or compatibility shim. Clean code beats a quick\n  fix: when the minimal patch and the clean repair diverge, take the clean\n  repair while its risk stays understood and bounded. Do not substitute a\n  workaround when a coherent cleanup is the correct fix.\n- While reading, delete connected dead branches, duplicate paths, stale\n  abstractions, and obsolete tests in the same coherent change.\n- Measure `git diff --numstat`; aim for net-neutral or net-negative production\n  LOC with tests counted separately. Justify growth only by fewer concepts,\n  better ownership, essential behavior, or stronger safety.\n- Never hardcode the reported example. Add regression coverage near the\n  failing surface when it fits. Small missing affordances with an established\n  adjacent contract are fine; substantial new features are not.\n- Never edit `CHANGELOG.md`; put user impact, issue\u002FPR refs, and human credit\n  in the PR body or commit message.\n- After finishing its assigned items, each worker lands the best rent-paying\n  refactor or simplification found in the areas it touched as its own focused\n  PR, or states NO-FOLLOW-UP with one sentence. These passes regularly find\n  real bugs; hold them to the same candidate bar, proof, and review gates.\n\n## Outcome order per item\u002Fcluster\n\nAlways investigate existing work first: live body\u002Fcomments\u002Flabels\u002Flinks,\n`$gitcrawl` for duplicates and prior PRs, live search, current `main` and\nhistory. Read competing implementations deeply enough to judge them. Then:\n\n1. **Fixed on main:** prove the original failure is resolved; close with the\n   exact merged PR\u002Fcommit, current source\u002Ftest, or release proof.\n2. **Existing PR is the best fix:** improve as needed, verify the exact final\n   head, land through the repo-native maintainer workflow.\n3. **Existing PR is useful but incomplete:** finish it, or create a cleaner\n   replacement that preserves attribution and links the original.\n4. **No suitable PR:** implement the best high-confidence root-cause repair or\n   justified simplifying refactor; create, verify, and land a focused PR.\n5. **Bug cannot be fixed, but simplification is real:** land a proven\n   behavior-neutral refactor without pretending the issue was fixed.\n6. **Cannot fix or close:** comment only when investigation produced concrete\n   material evidence absent from the issue and ClawSweeper's review.\n\nExisting-PR rules: review the code path beyond the diff before trusting it.\nExclude wide-access maintainer-authored PRs from generic discovery until 14\ndays after creation; only a named PR or explicit maintainer-work request\noverrides. Rewrite an inadequate editable PR at the root-cause owner and keep\nauthor credit; create a replacement only when the source branch is uneditable\nor unsafe to update, and close the source only after the replacement exists.\nRed CI is normal work: inspect, fix or reject, recheck green.\n\nNever squash a contributor-owned PR after maintainers replace its ancestry.\nCreate a maintainer-owned replacement PR, link the original, and credit\ncontributors with their public GitHub noreply address. Merge and rebase are not\npolicy escapes.\n\n## Broken main\n\nA red `main` — exact-head CI failures reproducing on unrelated PRs — is sweep\nwork, not an interruption, and needs no ask. Assign one worker to own the\nrepair: find the breaking commit, check for existing repair PRs first and\nland the best one instead of duplicating a fix in flight, and prefer deleting\ndead code over baselining. Every other worker rebases onto the repaired\n`main` as needed and continues.\n\n## Closure gate\n\nAn issue stays open unless every step passes. Similar wording, adjacent tests,\nmerge dates, and confident summaries are not closure proof.\n\n1. Write down the reporter's exact primary symptom, expected outcome, every\n   affected surface, and reported version\u002Fbuild SHA. A merged mitigation or\n   diagnostic does not replace the primary outcome.\n2. Personally trace shipped and current behavior end to end; reproduce the\n   reported failure on the affected build and prove the same user action\n   succeeds on current `main` with a runnable boundary-level check. A nearby\n   unit test or unexecuted source inspection is insufficient.\n3. Prove ancestry, never infer from dates: `git merge-base --is-ancestor` for\n   the fix SHA against current `main` and each affected build\u002Ftag, plus\n   `git tag --contains`. A merge before a release date does not prove\n   inclusion.\n4. Classify honestly: root-cause repair, mitigation, diagnostic, workaround,\n   or product decision. Never close while the primary action still fails, any\n   reported surface remains broken, or an owner hold exists.\n5. A different independent worker challenges the closure packet and personally\n   verifies outcome, surfaces, ancestry, and before\u002Fafter proof; a separate\n   closure coordinator grants the mutation. Disagreement means leave open.\n6. Recheck live state immediately before the mutation. The closure comment\n   states, in one sentence, the fixed behavior, fix SHA\u002FPR, first containing\n   version when known, and before\u002Fafter evidence.\n7. If a closure is challenged or reopened, pause all closure mutations, audit\n   and correct the record, and resume only on explicit root authorization.\n\nNo more than 3 workers hold live closure\u002Fmutation duty at once. More than 50\nclose\u002Freopen actions require separate exact-count approval. Product-decision\nand won't-implement closures stay with maintainer judgment.\n\n## Verify and review\n\n- Choose proof with `$openclaw-testing`; live-test the real user\u002Fprovider\u002F\n  channel\u002FCLI path when feasible; route heavy, packaging, Docker, E2E, or\n  broad checks through `$crabbox`. Report an unavailable live prerequisite\n  accurately instead of calling a mock proof live.\n- Run `$autoreview` on the complete final change until no accepted actionable\n  findings remain; rerun after any production, test, or head change. Verify\n  findings against source rather than accepting them blind.\n- Separately self-invoke an independent Codex reviewer (`codex exec --json\n--sandbox read-only --ephemeral` from a trusted checkout) against the exact\n  frozen head; the `$autoreview` engine does not substitute for this pass.\n  Read only the final result; never emit raw model banners.\n- Read the latest ClawSweeper comment and address each applicable `Rank-up\nmoves:` item with evidence or an explicit skip reason.\n- Verify live GitHub CI green on the exact pushed head before counting a PR\n  landable or landed; never count pending, red, or conflicting PRs.\n\n## Publish, land, clean up\n\n- Open new PRs as drafts, wait for non-null mergeability, mark ready, and\n  verify CI attached to the pushed head. Use the actual PR template: user\n  impact, canonical root cause, rejected alternatives, production LOC delta,\n  exact head SHA, proof, review results, CI state, and credit. Omit agent\n  transcripts during autonomous runs rather than interrupting for consent.\n- Land main-targeted PRs only through the repo-native `scripts\u002Fpr` flow\n  (review-init, artifacts, `OPENCLAW_TESTBOX=1 scripts\u002Fpr prepare-run`,\n  `merge-run`); verify the canonical merge SHA afterward.\n- Verify every claimed landing by ancestry, not GitHub state:\n  `git merge-base --is-ancestor \u003Cmerge-sha> origin\u002Fmain`. `gh pr view --json\nstate` can report a stale `closed` for freshly merged PRs, and a GitHub 504\n  mid-merge may still have merged — verify before retrying or re-landing.\n- Refresh or rebase a PR branch only for an actual conflict, failing\n  exact-head check or guard, explicit request, or proven material stale-base\n  risk — never merely because `main` advanced.\n- After a verified landing, remove only that campaign-owned worktree and\n  branch during a serialized mutation slot; never prune unrelated worktrees,\n  refs, or user files.\n\n## Reporting\n\nParent-thread updates are concise progress plus clickable URLs:\n\n```text\n8 agents active · 12 investigated · 3 landed · 2 already-fixed issues closed\nLanded: https:\u002F\u002Fgithub.com\u002Fopenclaw\u002Fopenclaw\u002Fpull\u002F123\n```\n\nMaintain a ledger per item: outcome class, assigned worker, independent\nverifier, exact head, production\u002Ftest LOC delta, proof\u002FCI state, credit, and\ncleanup. Count only verified merged PRs, confirmed closures, and comments\nactually posted. Final answer: accepted PR URLs (or the smaller qualified\ncount with the exhausted-search reason) with 2–4 sentence explainers and\nproof\u002FCI state, closed refs with proof, concrete blockers or skip reasons, and\ncurrent branch\u002Fstatus.\n",{"name":5,"description":7},"main","d69096e239f2a89aabc2cd078c47664a9d3b1e11","05-技能与代理开发\u002Fopenclaw-repair-sweep",3,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts","https:\u002F\u002Fgithub.com\u002Flza6","个人vx：Tf00798\r\n个人✈：@TFGY999","2026-10-08 14:29:22",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add lza6\u002FArmor-piercing-system-prompts --skill openclaw-repair-sweep",{"tool":38,"command":39},"bunx","bunx skills add lza6\u002FArmor-piercing-system-prompts --skill openclaw-repair-sweep",{"tool":41,"command":42},"pnpm","pnpm dlx skills add lza6\u002FArmor-piercing-system-prompts --skill openclaw-repair-sweep","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F05-技能与代理开发\u002Fopenclaw-repair-sweep\u002FSKILL.md",true,[46],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"agents\u002Fopenai.yaml","REFERENCE","参考文档",362,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F05-技能与代理开发\u002Fopenclaw-repair-sweep\u002Fagents\u002Fopenai.yaml",[53,60,65,72,79,86],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":19},"01M7FFG485KY83TD6HSC4YPCMC","obsidian-clipper-template-creator","Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator\u002FSKILL.md",[],[],{"skillNo":61,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":19},"01M7FFG0T6AZ0STEJPSB3CX84K","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator-antigravity-awesome-skills-main\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":19},"01M7FFFY0QEM14SKWPDYGMXM2P","python-api","Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP\u002FmAP semantics, and source-style import diagnostics.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Fpython-api\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":19},"01M7FFFVZQZ2GJ0C0TGP7JHD20","file-evaluation","Folder-based PASCAL VOC AP\u002FmAP evaluation from ground-truth and detection text files.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Ffile-evaluation\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M7FFFSFNYSE77SJ6PE1CK2DA","object-detection-metrics","Guides legacy Object-Detection-Metrics PASCAL VOC AP\u002FmAP evaluation from detection text folders and direct Python API classes.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":19},"01M7FFFP0GCK1RVXBCPQ8APBMT","nx-workspace-patterns","Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fnx-workspace-patterns\u002FSKILL.md",[],[]]