[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7F2G41A1GFRCXBWP9SXN1J2":3,"skill-same:01M7F2G41A1GFRCXBWP9SXN1J2":46},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":30,"updatedAt":31,"install":32,"resources":45},"01M7F2G41A1GFRCXBWP9SXN1J2","openclaw-pr-maintainer",null,"Use immediately for any pasted OpenClaw GitHub issue or PR URL\u002Fnumber, and for OpenClaw issue\u002FPR orchestration, review, triage, root-cause repair, PR rewrite, duplicate search, opener identity\u002Fwho wrote it, author account age\u002Factivity, comments, labels, close, land, or maintainer evidence checks.","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-pr-maintainer\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: openclaw-pr-maintainer\ndescription: Use immediately for any pasted OpenClaw GitHub issue or PR URL\u002Fnumber, and for OpenClaw issue\u002FPR orchestration, review, triage, root-cause repair, PR rewrite, duplicate search, opener identity\u002Fwho wrote it, author account age\u002Factivity, comments, labels, close, land, or maintainer evidence checks.\n---\n\n# OpenClaw PR Maintainer\n\nUse this skill for maintainer-facing GitHub workflows and the code changes needed to finish an authorized issue\u002FPR repair; do not invoke it for unrelated ordinary code changes.\n\n## The lead owns the outcome; collaboration workers extend it\n\nThe original, user-facing root conversation is the authoritative lead. It may personally inspect, implement, test, operate Git\u002FGitHub, and land, or delegate bounded independent lanes when parallelism, isolation, specialist judgment, or independent challenge creates concrete value. Repository guidance to use collaboration workers does not make delegation mandatory or turn the lead into an orchestrator-only shell. Do not create separate Codex app\u002Fproject threads. A subagent assigned an execution role performs its scoped operations itself, retains personal inspection\u002Fverdict duties, and must not recursively delegate away ownership unless the root explicitly authorizes and tracks that nested lane.\n\n- **Lead:** own the critical path and complete maintainer outcome; decompose and prioritize the request; personally perform serial, tightly coupled, or readily lead-owned work; assign disjoint independent lanes when useful; enforce authorization, owner, security, source-trust, proof, and publication gates; coordinate resources and shared-checkout safety; inspect actual repository\u002Fruntime effects; redirect, stop, replace, or correct weak work; dispatch independent verification; resolve routine decisions from existing authority and evidence; and communicate outcomes.\n- **Workers:** perform bounded hands-on investigation, implementation, proof, review, or delivery assignments when delegation creates concrete value. Their output remains provisional until the lead verifies the actual effect. Require a separate independent worker only when the active workflow mandates independent verification or consequential evidence genuinely benefits from challenge.\n- Bound worker count by available slots, including the parent's occupied slot, and safe host\u002Fproof capacity. Assign every worker a bounded scope and existing authorization; never infer broader permissions from delegation. Serialize shared fetch\u002Fref\u002Fbranch\u002Fcheckout mutations, pushes, merges, and competing GitHub writes; never switch a shared checkout while siblings work or edit it while its Vitest run is in flight. Preserve unfinished worker state during reassignment. Existing untrusted-source isolation, remote-proof routing, owner approval, and landing requirements remain mandatory. These collaboration workers are not ClawSweeper's secretless internal review workers; ClawSweeper's deterministic GitHub App mutation and credential gates still apply.\n- Each acting or verdict-bearing worker personally inspects relevant dependency contracts. For Codex-backed behavior, that worker must personally inspect and cite the exact sibling `..\u002Fcodex` source before its own verdict, code change, public comment, approval, merge recommendation, or proof-sufficiency claim. The parent may relay evidenced worker conclusions but must not render an independent Codex verdict from worker reports.\n- Supervise workers through actual effects: shared-checkout diffs, processes, tests, runtime behavior, explicit checkpoints, terminal results, and liveness. Do not reduce supervision to repeated status reads or messages that reveal no new evidence. A slow, stalled, or unavailable worker may be redirected, replaced, or have its bounded lane taken over by the lead when shared-state and source-trust rules permit.\n\n## Execute explicit full-authority work unattended\n\nWhen the user explicitly requests unattended or autonomous execution with full authority, that instruction is standing approval for evidence-backed operations within the requested task scope. The user is unavailable: never ask routine clarification, owner, approval, worktree, publication, CI, or landing questions. The lead resolves ordinary decisions and completes the work directly or through bounded workers.\n\n- The lead or bounded workers may investigate, repair\u002Frefactor, test, rewrite editable contributor PRs while preserving credit, create credited replacements when necessary, commit\u002Fpush task-owned changes, update PRs, post proof, close items proven fixed on current `main`, diagnose\u002Frepair\u002Frerun exact-head CI, create repo-managed PR worktrees or necessary task-owned isolated worktrees, run native review\u002Fprepare\u002Fmerge, and verify terminal remote state.\n- Preserve unrelated dirty work. Use an isolated task-owned\u002Fnative-managed worktree or nondestructive scoped publication; never stage, commit, stash, discard, overwrite, or synchronize unrelated files.\n- Continue through recoverable failures, stale guards, locks, and transient infrastructure problems with bounded safe retry and repository-approved lock recovery. Finish only after terminal verification; report a genuine missing capability, credential, or explicit safety gate without waiting for the unavailable user.\n- When optional live-provider\u002Fchannel proof is unavailable **and the user explicitly relaxes that proof**, a bounded deterministic owner defect may instead use failing\u002Fpassing owner-boundary regression tests, direct producer\u002Fcaller\u002Fsibling and dependency\u002Fsource inspection, independent review, and green required CI on the exact head. Record the missing live\u002Frank-up proof; never describe substitutes as live. Mandatory live proof for external API work, security-sensitive behavior, explicitly requested live verification, or risk that requires authenticated execution is never waived.\n- Preserve source-trust isolation, contributor credit, exact-head required CI, native landing gates, and every acting worker's direct sibling `..\u002Fcodex` inspection. Standing authority never authorizes unrelated\u002Fdestructive changes, unapproved paid or external side effects, irreversible data\u002Fsecurity operations, SQLite schema-version or protocol bumps, dependency overrides, releases, or other actions behind an explicit safety\u002Fowner approval gate. Closing\u002Freopening more than 50 items still requires separate explicit approval naming the exact count and scope.\n\n## Finish proven bugs with root-cause repairs\n\nApply the root `AGENTS.md` Repair Doctrine to every maintainer-requested issue or PR. The goal is to fix real bugs without introducing new bugs, not merely produce a review, preserve an incoming patch, or close an item without proof.\n\nChoose the outcome from live GitHub state, current `main`, affected source and tests, caller\u002Fowner\u002Fsibling paths, and relevant dependency contracts:\n\n1. **Already fixed:** Prove with high confidence that current `main` already provides the same or better behavior. Identify the canonical fix commit\u002FPR, any relevant release, and focused source, test, or reproduction evidence. When close\u002Fsweep\u002Flanding action is authorized, comment with that proof and close the issue or superseded PR. If equivalence, current-main behavior, or authority is uncertain, leave it open and state what is missing.\n2. **Confirmed issue:** Reproduce or otherwise prove the defect, trace the violated invariant to its producer or lifecycle owner, and implement the architectural root-cause fix when repair is authorized. Cover the original failure and affected sibling paths with focused regression tests and realistic behavior proof. Do not settle for a downstream guard, workaround, speculative fallback, or passing test that leaves the owner broken.\n3. **Confirmed bug-fix PR:** Independently prove both the defect and whether the proposed change repairs the root cause without regressions. If the PR is already the clean owner-boundary fix, verify and land it when authorized. If it is incomplete, in the wrong layer, needlessly complex, or only masks symptoms, rewrite\u002Frefactor the editable PR into the correct fix; verify the rewritten head and then land it. If the source branch cannot safely be edited, create an authorized replacement PR, preserve the original author's credit, and close the source only after the replacement exists. Never merge a speculative or merely plausible patch.\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\nPrefer cleanup, deletion, coherent refactoring, and one canonical flow over additional branches, wrappers, fallbacks, or compatibility shims. Target net-neutral or net-negative **production** LOC; tests are counted separately and useful regression tests may grow freely. Inspect `git diff --numstat` before landing, report production and test deltas separately, and justify any unavoidable production growth with a concrete capability, ownership boundary, security invariant, or public\u002Fdependency contract.\n\nHonor the requested action boundary: a fix request authorizes scoped investigation, local edits, and verification; an explicit ship\u002Fland\u002Fmerge request or autonomous repair sweep also authorizes the scoped publication, closing, and landing needed to finish it. An explicit request to autonomously process, resolve, or fix-and-land a named maintainer issue\u002FPR queue is an authorized autonomous repair sweep, including necessary evidence-backed comments, closures, root-cause fixes, pushes, and landing for those items. Ordinary review-only, triage-only, listing, or landable-shortlist requests are read-only: they authorize neither local source edits nor GitHub writes, including labels, assignments, public comments, closures, pushes, or landing, unless separately authorized. For authorized end-to-end landing work, a review summary or unlanded local patch is not completion: finish with a proven already-fixed close, a verified root-cause repair landed, or a specific evidence, ownership, product, safety, or authorization blocker.\n\n## Start issue and PR triage with gitcrawl\n\n- Use `$gitcrawl` first anytime you inspect OpenClaw issues or PRs.\n- Check local `gitcrawl` data first for related threads, duplicate attempts, and already-landed fixes.\n- Use `gitcrawl` for candidate discovery and clustering; use `gh`, `gh api`, and the current checkout to verify live state before commenting, labeling, closing, or landing.\n- If `gitcrawl` is missing, stale, lacks the target thread, or has no embeddings for neighbor\u002Fsearch commands, fall back to the GitHub search workflow below.\n- Do not run expensive\u002Fupdate commands such as `gitcrawl sync --include-comments`, future enrichment commands, or broad reclustering unless the user asked to update the local store or stale data is blocking the decision.\n\nCommon read-only path:\n\n```bash\ngitcrawl threads openclaw\u002Fopenclaw --numbers \u003Cissue-or-pr-number> --include-closed --json\ngitcrawl neighbors openclaw\u002Fopenclaw --number \u003Cissue-or-pr-number> --limit 12 --json\ngitcrawl search openclaw\u002Fopenclaw --query \"\u003Cscope or title keywords>\" --mode hybrid --json\ngitcrawl cluster-detail openclaw\u002Fopenclaw --id \u003Ccluster-id> --member-limit 20 --body-chars 280 --json\n```\n\n## Inspect specific targets; claim only when authorized\n\nWhen a maintainer asks Codex to review, triage, fix, or land a specific OpenClaw issue\u002FPR, have the lead or assigned collaboration worker inspect live assignment before deep work. Assignment itself is a public GitHub write.\n\n- Resolve the assignment login from the GitHub account authenticated for the mutation: use `gh api user --jq .login` for direct commands or `gh_plain api user --jq .login` inside `scripts\u002Fpr`. Never infer a GitHub login from the chat user's name or identity. If the requester differs from the authenticated account or that relationship cannot be established safely, leave the target unassigned or require an explicit bare login.\n- Read current assignees with live `gh issue view` \u002F `gh pr view`; `gitcrawl` is not enough for assignment state.\n- If unassigned, assign the requester only when an explicit land, fix-and-land, autonomous-resolution, or assignment request authorizes that mutation. For fix-only, review-only, triage-only, listing, or shortlist requests, report `unassigned` without assigning unless assignment is separately requested. Never auto-assign broad discovery candidates or shortlists.\n- If assigned to someone else, say so clearly before analysis and include assignment age:\n  - fresh: assigned within 6h; treat as actively owned unless user explicitly asks to continue or reassign\n  - stale: assigned 6h+ ago; treat as ownership hint, not a hard block; continue only with that caveat\n- If assigned to requester plus others, mention co-assignees and continue.\n- If assignment event time is unavailable, say `assigned, time unknown`; treat as assigned, not stale.\n- Never remove or replace assignees unless explicitly asked.\n\nAssignment time proof:\n\n```bash\ngh api \"repos\u002Fopenclaw\u002Fopenclaw\u002Fissues\u002F\u003Cnumber>\u002Ftimeline\" --paginate \\\n  -H \"Accept: application\u002Fvnd.github+json\" \\\n  --jq '[.[] | select(.event==\"assigned\") | {assignee:.assignee.login, assigner:.assigner.login, actor:.actor.login, created_at}]'\n```\n\nUse the newest `assigned` event for each current assignee. Issue timeline events expose `created_at`; GitHub GraphQL `AssignedEvent.createdAt` is also valid when REST pagination is awkward.\n\nClaim command for issues or PRs:\n\n```bash\ngh api -X POST \"repos\u002Fopenclaw\u002Fopenclaw\u002Fissues\u002F\u003Cnumber>\u002Fassignees\" -f 'assignees[]=\u003Clogin>' >\u002Fdev\u002Fnull\n```\n\n## Surface opener identity\n\n- For every reviewed, triaged, closed, or landed issue\u002FPR, show the opener's human name when available, GitHub login, and account age.\n- Get the login from `gh issue view` \u002F `gh pr view` (`author.login`), then fetch profile metadata once with `gh api users\u002F\u003Clogin> --jq '{login,name,created_at,type}'`.\n- Report opener identity as one compact line:\n  `By: Jane Doe (@jane, acct 2021-04-03) | OpenClaw: 4 PRs, 2 issues, 11 commits\u002F12mo | GitHub contributions: 86 commits, 9 PRs, 3 issues, 12 reviews\u002F12mo`\n- Show activity in two separate lanes: repo search totals for authored PRs\u002Fissues and commits, and GitHub contribution-graph totals. State each interval; neither lane is an exhaustive activity history. For linked issue-fixing PRs, include both the PR author and issue opener when they differ.\n- Prefer the bundled helper for activity lookups:\n\n```bash\n.agents\u002Fskills\u002Fopenclaw-pr-maintainer\u002Fscripts\u002Fgithub-activity.sh \u003Clogin> [other-login...]\n.agents\u002Fskills\u002Fopenclaw-pr-maintainer\u002Fscripts\u002Fgithub-activity.sh --global \u003Clogin>\n```\n\n- Run `--global` by default for review\u002Ftriage identity summaries. The helper prints canonical profile identity before requesting activity, then makes three single-page REST searches (`per_page=1`) for repo totals and one optional GraphQL contribution aggregate: at most five `gh` calls per resolved login, independent of activity volume. It uses `total_count`, never fetched row counts or pagination.\n- Keep bare PATH `gh` with native `--cache 1h` for profile, search, and GraphQL reads. Octopool delegates author\u002Fdate-filtered searches and GraphQL, so bare `gh` alone does not guarantee fleet-cache coverage. Native caching keeps repeated lookups bounded without a custom store; do not source `plain-gh.sh`, force fresh reads, or query private cache databases.\n- Windows use completed UTC days with calendar-month subtraction clamped at month ends. Repo search uses PR\u002Fissue creation time and default-branch commit committer date. `--months` controls the repo interval; global contributions cap at 12 months because GitHub accepts at most one year. The helper prints both intervals and explicitly labels a global cap for longer requests.\n- Search totals reflect GitHub's index and may be cached or lag recent changes. Printed intervals are query bounds, not proof of live freshness. Incomplete search results, malformed\u002Fmissing data, request failures, and unresolved identity are not zero. The helper labels those outcomes, continues later logins, and exits nonzero if identity or requested activity is unavailable or incomplete.\n- Contribution totals follow GitHub's contribution rules and token visibility; they may include private repositories. Do not call them public-only or infer inactivity from a zero graph. Do not automatically scan events or repositories as a fallback; report the limitation and inspect specific evidence separately only when needed.\n- If `name` is empty, use the login only. If profile lookup is rate-limited or unavailable, say `account age unknown` rather than omitting the opener.\n- Use identity and activity as triage signal, not proof by itself: new, low-activity, or bot-like accounts can raise review caution, but code, repro, and CI evidence still decide.\n\n## Suppress recent wide-access maintainer PRs in triage\n\nIn generic issue\u002FPR triage, hot queues, landable shortlists, or \"what is still open\", exclude PRs authored by maintainers with broad repository access until 14 days after `created_at`. Prefer external contributors' PRs. An ordinary request for landing candidates does not override the age gate. Continue suppressing maintainer-authored issues by default.\n\nTreat live repository permission as the source of truth. Before surfacing a finalist whose access is not already known, check `gh api repos\u002Fopenclaw\u002Fopenclaw\u002Fcollaborators\u002F\u003Clogin>\u002Fpermission`; suppress write, maintain, or admin access even when the login is absent from the fast-path list below. Read or triage access alone does not trigger suppression unless the login is explicitly listed.\n\nSuppress by default when the opener\u002Fauthor is one of:\n\n- `@vincentkoc`\n- `@Takhoffman`\n- `@gumadeiras`\n- `@obviyus`\n- `@shakkernerd`\n- `@mbelinky`\n- `@joshavant`\n- `@pgondhi987`\n- `@mmaps`\n- `@ngutman`\n- `@vignesh07`\n- `@huntharo`\n\nAlso suppress lower-priority maintainer-owned noise from the broader keep\u002Ftop-maintainer group unless it is directly relevant:\n\n- `@thewilloftheshadow`\n- `@onutc` \u002F `@osolmaz`\n- `@jacobtomlinson`\n- `@tyler6204`\n- `@velvet-shark`\n- `@jalehman`\n- `@frankekn`\n- `@ImLukeF`\n- `@mcaxtr`\n\nExceptions:\n\n- Once a maintainer-authored PR is at least 14 days old, triage it normally.\n- A specific PR\u002Fissue number or an explicit request for maintainer-owned work overrides suppression.\n- When a recent maintainer PR is the canonical fix for an external hot issue, mention it only as the fix path; do not count it as a triage or landing candidate.\n- Do not close, label, or deprioritize solely because an item is maintainer-authored; this section only controls what appears in triage shortlists.\n\n## Apply close and triage labels correctly\n\n- If an issue or PR matches an auto-close reason, apply its label only when labeling or closure is explicitly authorized; let `.github\u002Fworkflows\u002Fauto-response.yml` handle the comment\u002Fclose\u002Flock flow. Without that authority, report the matching reason without mutating GitHub.\n- Do not manually close plus manually comment for these reasons.\n- If an issue\u002FPR is provably fixed on current `main` and closing is authorized, comment with focused proof plus the canonical commit\u002FPR and any relevant release, then close it.\n- `r:*` labels can be used on both issues and PRs.\n- Current reasons:\n  - `r: skill`\n  - `r: support`\n  - `r: no-ci-pr`\n  - `r: too-many-prs`\n  - `r: testflight`\n  - `r: third-party-extension`\n  - `r: moltbook`\n  - `r: spam`\n  - `invalid`\n  - `dirty` for PRs only\n\n## Select explicitly small high-confidence triage candidates\n\nWhen explicitly asked for `X` small, easy, or narrowly scoped issues or PRs to triage, `X` means qualified candidates, not sampled threads. These shortlist filters do not apply to a confirmed issue\u002FPR selected for end-to-end repair; do not reject its correct root-cause fix merely because a coherent owner-boundary refactor is required.\n\nPlain review, triage, listing, and shortlist requests are read-only: the lead or workers inspect and report candidates without editing files or mutating GitHub. Only an explicit scoped fix request authorizes this patch-local\u002Fproof flow; shipping and public writes still require separate approval:\n\n1. Review the issue body, comments, related threads, current code, and adjacent tests.\n2. Fix only shortlisted issues whose root cause and owning architectural neighborhood are high-confidence.\n3. Add focused regression proof when practical.\n4. Stop with the dirty diff, touched files, and test\u002Fgate output for maintainer review.\n5. After maintainer approval to ship, make one commit per accepted fix, with release-note context in the PR body or commit message when user-facing.\n6. After authorization, synchronize and push for the actual destination: direct `main` must rebase onto latest `origin\u002Fmain` without merge commits; rebase a PR only for an actual conflict, failing native guard\u002Fexact-head check, explicit user request, or material stale-base risk, never merely because `main` advanced. Comment and close only issues proven fixed on `main` or explicitly triaged closed.\n\nDo not batch unrelated issue fixes into one commit. Do not publish, assign, comment, close, or label during the review\u002Fprove phase.\n\nMissing `CHANGELOG.md` is not a PR review finding or merge blocker. If landing\u002Ffixing a user-visible change, make sure the PR body or commit message captures the release-note context; never ask or block solely on it.\n\nOnly list candidates that pass all gates:\n\n- small owner\u002Fsurface, with a likely narrow fix and focused regression test\n- symptom is reproducible or provable with logs, failing test, live command, dependency contract, or current-main behavior\n- root cause is traceable to code with file\u002Fline and the proposed fix touches that path\n- no strong smell that a broader refactor, ownership rethink, migration, or product decision is the better fix\n- dependency-backed behavior checked against upstream docs\u002Fsource\u002Ftypes; live or web proof used when local proof is insufficient\n\nLoop:\n\n1. Use `gitcrawl` \u002F `gh` to gather candidate clusters.\n2. Read issue\u002FPR body, comments, current code, adjacent tests, and dependency contracts.\n3. Try focused repro or proof.\n4. Reject unclear, stale, speculative, broad-refactor, or owner-ambiguous items.\n5. Continue until `X` qualified candidates or the bounded search is exhausted.\n\nOutput only qualifying candidates, with: ref, surface, proof, cause, fix sketch, why small, expected test\u002Fgate. If none qualify, say so; do not pad.\n\n## Structure PR review output\n\n- Start every PR review with 1-3 plain sentences explaining what the change does and why it matters. Put this before `Findings`.\n- Then list findings first. If none, say `No blocking findings` or `No findings`.\n- Show size near the top as `Production LOC: +\u003Cadditions>\u002F-\u003Cdeletions> (net \u003Cdelta>) | Tests: +\u003Cadditions>\u002F-\u003Cdeletions>`, classifying per-file `git diff --numstat` or live PR file stats. Optional aggregate PR totals never replace the production\u002Ftest split; justify positive production growth.\n- Always answer: bug\u002Fbehavior being fixed, PR\u002Fissue URL and affected surface, provenance for regressions when traceable, and best-fix verdict.\n- For bug\u002Fregression fixes, include a compact `Provenance:` line after root cause. Use `git log -S\u002F-G`, `git blame` on implicated lines, and linked PRs\u002Fissues to locate candidates, not prove introduction. Before saying `introduced by`, inspect raw parents with `git --no-replace-objects cat-file -p \u003Csha>` and verify that `git --no-replace-objects diff --no-ext-diff --no-textconv \u003Craw-parent> \u003Csha> -- \u003Cpath>` changed the implicated behavior, using tests\u002Frepro when feasible. A genuine root needs raw-header proof that it has no parents.\n- Blame `^sha`, porcelain `boundary`, and shallow\u002Fgrafted history alone are not introduction proof. `--root` can hide boundary markers; `git show` and `rev-list --parents` can disguise a shallow boundary as a root. An available raw parent permits explicit comparison even at a shallow boundary; missing parents or an unverifiable patch require `unknown` with the gap. Apply this bar to summaries and owner hints as well as structured provenance.\n- Keep code author, introducing PR author, merger, committer, automerge trigger, and current PR author separate; none of those roles alone proves who introduced a bug. Cite the verified commit\u002FPR\u002Fdate. If no PR is traceable, use the verified commit and known author identity; leave unverified identities unknown, and do not make missing PR metadata a separate finding.\n- For automation merges, identify the human trigger only from explicit timeline\u002Fcomment\u002Fevent evidence, such as `@clawsweeper automerge`, `\u002Flandpr`, or an arming label. Check live evidence first, then gitcrawl\u002Fcache when needed. Report `automerge triggered by @login` only when verified; otherwise say trigger unknown. Triggering or merging is not proof of authorship or introduction.\n- Use `made visible by` only for a verified trigger and `carried forward by` only for verified preexisting behavior, with confidence (`clear`, `likely`, `unknown`). Unknown provenance does not invalidate an independently proven bug. For features, docs, and refactors, use `Provenance: N\u002FA` or omit it when no broken behavior is being fixed.\n- Keep summaries compact, but include enough proof that the verdict is auditable without rereading the PR.\n\nLOC proof:\n\n```bash\ngh pr view \u003Cnumber> --json additions,deletions,changedFiles \\\n  --jq '\"LOC: +\\(.additions)\u002F-\\(.deletions) (\\(.changedFiles) files)\"'\ngit diff --numstat \u003Cbase-sha>...\u003Chead-sha>\n```\n\n## Read beyond the diff\n\n- Review the surrounding code path, not just changed lines. Open the caller, callee, data contracts, adjacent tests, and owner module.\n- Before any verdict, read enough code to fill this map: changed surface, runtime entry point, owner boundary, one caller, one callee, sibling implementations sharing the invariant, adjacent tests, current `main` behavior, and shipped\u002Fdependency\u002FCodex contracts when relevant.\n- For large-codebase PRs, sample enough related files to understand the runtime boundary before deciding. Default to more code reading when the change touches agents, gateway, plugins, auth, sessions, process, config, or provider\u002Fruntime seams.\n- Compare the PR against current `origin\u002Fmain` behavior. Check whether recent main already changed the same surface.\n- Dependency-backed behavior: MUST read upstream docs\u002Fsource\u002Ftypes before judging API use, defaults, output shapes, errors, timeouts, memory behavior, or compatibility. Do not assume dependency contracts from memory or PR text.\n- Judge solution quality, not only correctness. Ask whether the PR is the clean owner-boundary fix or a wart\u002Fworkaround that should be replaced by a small refactor, moved seam, contract change, or deletion of duplicate logic.\n- Mention the main files read when the verdict depends on code-path evidence.\n- If the user challenges the verdict or asks whether the idea is really good, resume code reading first. Do not defend, soften, or reverse the verdict until the missing caller\u002Fcallee\u002Fsibling\u002Fdependency path is checked.\n\n## Best-fix review loop\n\nEvery PR review must explicitly answer: \"Is this the best fix, or only a plausible fix?\"\n\nBefore verdict:\n\n1. Reconstruct the bug, feature need, or behavior claim from issue\u002FPR\u002Fproof.\n2. Trace current behavior from entry point to failure or decision point.\n3. Read touched files, callers, callees, owner modules, adjacent tests, and relevant docs.\n4. Read sibling surfaces that should share the invariant or could be broken by a one-sided fix.\n5. Compare against current `origin\u002Fmain` and shipped behavior when regression\u002Fcompat matters.\n6. Inspect upstream dependency\u002FCodex source or docs for dependency-backed behavior.\n7. Identify at least one alternative fix location or shape, then reject it with evidence.\n8. If any required path above is uninspected, keep reading or mark `Remaining uncertainty`; do not call the PR best, blocked, proof-sufficient, or merge-ready.\n\nReview output must include:\n\n- `Best-fix verdict:` best \u002F acceptable mitigation \u002F wrong layer \u002F too narrow \u002F too broad.\n- `Alternatives considered:` 1-3 concrete alternatives and why rejected.\n- `Code read:` compact list of main files\u002Fcontracts checked.\n- `Remaining uncertainty:` what was not proven.\n\nIf the best-fix answer is only \"maybe\", keep reading or state the missing evidence. Do not call proof sufficient until the best-fix judgment is explicit.\n\n## Enforce the bug-fix evidence bar\n\n- Never merge a bug-fix PR based only on issue text, PR text, or AI rationale.\n- Choose the strongest proof proportionate to the owner boundary and risk. When\n  feasible, prefer Crabbox (`$crabbox`) or a real packaged\u002FDocker\u002Flive lane\n  exercising the reported user flow before closing or landing; do not confuse\n  packaged, mocked, Docker, or unit proof with live authenticated proof.\n- For a bounded deterministic owner defect, optional unavailable provider\u002Fchannel\n  live proof may be replaced **only when the user explicitly relaxes it** by a\n  failing\u002Fpassing focused owner-boundary regression, direct producer\u002Fcaller\u002Fsibling\n  and dependency\u002Fsource contract inspection, independent review, and exact-head\n  green required CI. Record the missing live\u002Frank-up evidence openly. External\n  API work, security-sensitive changes, explicitly requested live proof, and risk\n  requiring real authenticated execution retain their mandatory live-proof gate.\n- Before landing, require:\n  1. symptom evidence such as a repro, logs, or a failing test\n  2. a verified root cause in code with file\u002Fline\n  3. patch-verified regression provenance when traceable, with author, merger, committer, and trigger roles separate; otherwise explicit `unknown` and the evidence gap\n  4. a fix that touches the implicated code path\n  5. a regression test when feasible, or explicit manual verification plus a reason no test was added\n- If the claim is unsubstantiated or likely wrong, obtain the missing evidence or make authorized owner-boundary repairs; never merge without proof.\n- If the linked issue appears outdated or incorrect, correct triage first. Do not merge a speculative fix.\n- If optional Crabbox\u002FE2E\u002Flive proof is unavailable and the user explicitly\n  relaxes it, state the exact gap and use the strongest focused owner-boundary\n  and exact-head CI evidence. Never claim substitutes are live or waive mandatory\n  external-API, security, or explicitly requested live proof.\n\n## Close low-signal manual PRs carefully\n\n- Do not close for red CI alone. Require a clear low-signal category plus stale or failed validation.\n- Good manual-close categories:\n  - blank or mostly untouched PR template with no concrete OpenClaw problem\u002Ffix\n  - random docs-only churn such as root README translations, generic wording tweaks, or community-plugin discoverability docs that should go through ClawHub\n  - test-only coverage without a linked bug, owner request, or behavior change\n  - refactor-only cleanup, variable renames, formatting, or generated\u002Fbaseline churn without maintainer request\n  - third-party channel\u002Fprovider\u002Ftool\u002Fskill\u002Fplugin work that belongs on ClawHub instead of core\n  - risky ops\u002Finfra drive-bys such as new external CI services, release workflows, host upgrade scripts, Docker base migrations, or apt retry\u002Ffix-missing tweaks without owner request and green validation\n  - dirty branches where a narrow stated change includes unrelated docs\u002Fgenerated\u002Fruntime\u002Fextension files\n  - repeated bot-review spam or copied bot output without author-owned fixes\n- Keep or escalate plausible focused bug fixes, green PRs, active maintainer discussions, assigned work, recent author follow-up, and unique reproduction details.\n- For third-party capabilities, prefer the `r: third-party-extension` auto-response label when it applies; it points contributors to publish on ClawHub.\n\n## Handle GitHub text safely\n\n- For issue comments and PR comments, use literal multiline strings or `-F - \u003C\u003C'EOF'` for real newlines. Never embed `\\n`.\n- Do not use `gh issue\u002Fpr comment -b \"...\"` when the body contains backticks or shell characters. Prefer a single-quoted heredoc.\n- Do not wrap issue or PR refs like `#24643` in backticks when you want auto-linking.\n- PR landing comments should include clickable full commit links for landed and source SHAs when present.\n\n## Search broadly before deciding\n\n- Prefer `gitcrawl` first. Then use targeted GitHub keyword search to verify gaps, live status, comments, and candidates not present in the local store.\n- Use `--repo openclaw\u002Fopenclaw` with `--match title,body` first when using `gh search`.\n- Add `--match comments` when triaging follow-up discussion or closed-as-duplicate chains.\n- Do not stop at the first 500 results when the task requires a full search.\n\nExamples:\n\n```bash\ngh search prs --repo openclaw\u002Fopenclaw --match title,body --limit 50 -- \"auto-update\"\ngh search issues --repo openclaw\u002Fopenclaw --match title,body --limit 50 -- \"auto-update\"\ngh search issues --repo openclaw\u002Fopenclaw --match title,body --limit 50 \\\n  --json number,title,state,url,updatedAt -- \"auto update\" \\\n  --jq '.[] | \"\\(.number) | \\(.state) | \\(.title) | \\(.url)\"'\n```\n\n## Choose a writable landing checkout\n\nBefore `review-init`, compare the editor's writable workspace with the Git\ncommon-directory parent. `scripts\u002Fpr` intentionally creates its worktree at\n`\u003Ccanonical-repo>\u002F.worktrees\u002Fpr-\u003CPR>`; running it from a linked checkout does not\nput review artifacts under that caller. Shell access or a directory grant alone\nmay not make those artifacts editable in an isolated session.\n\nWhen the canonical PR worktree lies outside the permitted workspace, start from\na fresh ordinary checkout **inside** that workspace. Use the verified repository\nURL and normal Git, not another linked worktree pointing at the same outside\ncommon directory. Keep full history and blobs: shallow history breaks provenance\nchecks, and blob filters can turn journaled historical restores into serial\nnetwork fetches.\n\n```bash\ngit clone --single-branch \u003Cverified-repository-url> \u003Cpermitted-workspace>\u002Flanding-checkout\n```\n\nVerify its origin and Git root, then use that checkout's trusted `main` wrapper\nfor the unchanged review\u002Fprepare\u002Fmerge sequence. Its native PR worktrees now stay\ninside the permitted tree. Initialize review templates and verify editor access\nbefore investing in proof. Preserve the original checkout and unique work; never\nuse symlinks, shell-mediated writes to denied paths, or weaker isolation flags.\n\nThis is fresh workspace selection, not recovery: if another checkout has an\nactive operation, uncertain merge capture\u002Foutcome, or pending auto\u002Fqueue request\nfor this PR, reconcile that original state first. Never clone away retained evidence or retry\nan uncertain dispatch from a new repository's independent lock\u002Fref namespace.\n\nKeep the generated first line of `review.md` byte-for-byte, and keep `review.json`\n`pr.number`\u002F`pr.headSha` aligned with the initialized metadata. Put descriptive\nprose below that line. Run native artifact validation before calling the review\nready; regenerated templates, not hand-edited stamps, own head changes.\n\n## Follow PR review and landing hygiene\n\n- `scripts\u002Fpr` requires `git`, `gh`, `jq`, `rg` (ripgrep), `pnpm`, and `node`\n  on the maintainer host. Let its preflight fail loudly when one is missing.\n  Tests that source `scripts\u002Fpr-lib\u002F*` directly must provide the same command\n  surface instead of weakening the production wrapper for a minimal test image.\n- Classify source trust before executing code-changing or landing proof; acquire\n  a safe remote backend lazily through `$crabbox` only when the current host\n  gate requires one; never pre-warm it at task start. Trusted maintainer code\n  runs suitable proof on a dedicated Linux worker and otherwise defaults to Blacksmith Testbox;\n  contributor\u002Ffork code stays untrusted unless a maintainer explicitly approves\n  credentialed execution after review; it uses secretless fork CI or\n  sanitized direct AWS Crabbox with `CRABBOX_ENV_ALLOW=CI`,\n  `--no-hydrate`, and a fresh temporary remote `HOME`, never the\n  credential-hydrated Testbox workflow or a previously hydrated lease. Launch\n  an installed trusted Crabbox binary from clean trusted `main`, fetch the PR\n  with `--fresh-pr`, unset and reject any resolved AWS instance profile, verify\n  trusted IMDS reports no IAM credentials, bind the lease to the reviewed head\n  SHA, and never execute its local wrapper or config. Upload trusted\n  `scripts\u002Fcrabbox-untrusted-bootstrap.sh` from clean `main` alongside\n  `--fresh-pr`; it installs the pinned Node\u002Fpnpm runtime before executing PR\n  code. Force public networking, disable and\n  unset inherited Tailscale\u002Fexit-node settings, and fail closed unless\n  `crabbox inspect` reports no Tailscale state before any script. Rewarm after\n  any head change, sync every run, reuse the lease, then stop it before handoff.\n  Do not acquire a backend for read-only triage or docs-only work.\n- Never mention release-note bookkeeping in review-only output. It is landing\n  or release-generation mechanics, not a correctness finding.\n- If bot review conversations exist on your PR, address them and resolve them yourself once fixed.\n- Leave a review conversation unresolved only when reviewer or maintainer judgment is still needed.\n- Separate repository authorization from GitHub merge enforcement. `CODEOWNERS` routes review requests; a pending request or zero submitted reviews does not prove that approval is mandatory. Restricted\u002Fsecurity paths require listed-owner authorship, review, or direction. For governance changes to ownership\u002Freview policy itself, explicit direction from an organization owner also satisfies repository policy only when live `GET \u002Forgs\u002F{org}\u002Fmemberships\u002F{username}` evidence shows `state: active` and `role: admin`. Repository `ADMIN`, `viewerCanAdminister`, and bypass permission do not establish organization ownership. Neither route waives a live GitHub-enforced review rule.\n- Before reporting a mandatory approval blocker, inspect live branch protection and every matching ruleset, the PR review decision\u002Frequests, and the authenticated actor's permission and bypass state. If using the organization-owner governance route, record the live organization-membership result separately. Name the exact enforced rule and whether it is satisfied. Bypass state is evidence about the likely server outcome, never authorization. If no review rule is enforced, do not stop before native prepare\u002Fmerge solely because a requested team has not reviewed.\n- Explicit user direction resolves this repository-policy question only from the applicable listed owner or through the verified organization-owner governance route; it cannot override server enforcement. If GitHub requires an independent approval and it remains unsatisfied, stop with the exact blocker even when the actor has bypass permission. Otherwise continue through the native landing flow and let its verified merge command exercise the live rule.\n- Before landing any PR with non-trivial code changes, run fresh `$autoreview` until no accepted\u002Factionable findings remain; prior CI, ClawSweeper, or manual review is not a substitute. Skip only for truly trivial\u002Fdocs-only changes or when the user explicitly opts out.\n- When an agent is landing or merging a PR targeting `main`, use only the repo-native `scripts\u002Fpr` wrapper: run `scripts\u002Fpr review-init \u003CPR>`, follow its emitted checkout\u002Fguard guidance, initialize and complete review artifacts with `scripts\u002Fpr review-artifacts-init \u003CPR>`, validate them with `scripts\u002Fpr review-validate-artifacts \u003CPR>`, then run `OPENCLAW_TESTBOX=1 scripts\u002Fpr prepare-run \u003CPR>` and `scripts\u002Fpr merge-run \u003CPR>`. The Testbox flag is mandatory for agents: it verifies hosted CI\u002FTestbox on the current head or reuses a patch-identical pre-rebase run green within 24 hours instead of running full `pnpm` gates locally. `prepare-run` fails fast; invoke only after exact-head CI is complete and green, and do not idle on `auto-response` or `check-docs`. For owner-approved reviewed fork code without hosted Testbox, use `OPENCLAW_PR_GATES_REMOTE=testbox` instead. Do not rebase only because `main` advanced; behind-main drift is advisory unless strict drift is explicitly enabled, while GitHub still blocks conflicts.\n- `scripts\u002Fpr` gotchas: subcommands require a PR number (no subcommand `--help` placeholder). Artifacts preserve template enum values with evidence detail in summaries; validate before prepare, from PR-head mode (moving main invalidates the main-baseline guard). Review flow: checkout main baseline, then PR, before artifact validation. After every PR push, rerun `scripts\u002Fpr review-init`; checkout alone leaves a stale guard SHA. Locally unset `GITHUB_TOKEN`, `GH_TOKEN`, `HOMEBREW_GITHUB_API_TOKEN`; ambient tokens can select an exhausted or wrong identity. Review JSON: land-ready recommendation `READY FOR \u002Fprepare-pr`, `issueValidation.status=valid`; never `APPROVE`. After `scripts\u002Fpr merge-run` removes its worktree, `cd` to a persistent repo before follow-up commands.\n- After GitHub throttling, check core quota before `scripts\u002Fpr prepare-run` or `merge-run`. A failed operation can retain its lock; verify no child remains, then recover only with its emitted token.\n- Stacked branches over a squash-merged parent: rebase with `git rebase --onto origin\u002Fmain \u003Clanded-branch>`; a plain `git rebase origin\u002Fmain` replays the parent's already-squashed commits and manufactures conflicts.\n- Non-main PRs: do not run `scripts\u002Fpr prepare-run` or `merge-run`; they diff against `main`. Use review artifacts, exact base-head CI, revalidate `headRefOid`, then `gh pr merge --match-head-commit \u003Cverified-sha>`.\n- PR-create merge-ref race recognition: the dropped\u002Fkilled pull_request CI run appears as `startup_failure`\u002F`BuildFailed` (`(Unknown event)`) and is not rerunnable — close\u002Freopen or wait for the hourly `pr-ci-sweeper`; rerun attempts are wasted.\n- Preferred PR\u002Fissue media upload: when the command help exposes `--attach`, use the repeatable flag on `gh issue create`, `gh issue edit`, `gh issue comment`, and the matching `gh pr` commands. Example: `gh pr comment \u003Cpr> --repo openclaw\u002Fopenclaw --body-file \u003Ccomment.md> --attach \u003Cproof.mp4>`.\n- `gh --attach` video rules: accepted extensions are `.mp4`, `.mov`, and `.webm`; the local maximum is 100 MB, while GitHub's account limit may be lower. Do not add `#alt` to a video path. `gh` inserts a bare URL so GitHub renders a player, and the uploaded asset cannot be deleted.\n- Compatibility fallback: if the installed `gh` lacks `--attach`, upload directly with `curl -s \"https:\u002F\u002Fuploads.github.com\u002Fuser-attachments\u002Fassets?name=\u003Cfile>&content_type=\u003Cmime>&repository_id=$(gh api repos\u002F\u003Cowner>\u002F\u003Crepo> --jq .id)\" -X POST -H \"Authorization: Bearer $(gh auth token)\" -H \"Accept: application\u002Fjson\" --data-binary @\u003Cfile>`, then embed the returned `.url`: images as `![alt](url)`, video as a bare line so GitHub renders a player. For that endpoint, 422 = unsupported type and 404 = bad repo id\u002Fno push. Use `content_type` `video\u002Fmp4`, `video\u002Fquicktime`, or `video\u002Fwebm`; `![]()` does not render the player. Transcode Playwright webm via `ffmpeg -i in.webm -c:v libx264 -pix_fmt yuv420p out.mp4` for broad playback. Both paths use the same drag-drop CDN, inherit repository visibility, and need no browser\u002Fcomputer use. Non-media artifacts or endpoint failure: Crabbox artifact publishing plus the manifest URL.\n- Use standard Git commands and stage only the files intended for each commit.\n- Keep commit messages concise and action-oriented.\n- Group related changes; avoid bundling unrelated refactors.\n- Use `.github\u002Fpull_request_template.md` for PR submissions and `.github\u002FISSUE_TEMPLATE\u002F` for issues.\n- Do not commit PR-only artifacts such as screenshots under `.github\u002Fpr-assets`; attach them to the PR\u002Fcomment or use an external artifact store instead.\n\n## Extra safety\n\n- Closing or reopening more than 20 PRs needs an explicitly authorized bounded count and scope. Standing full authority covers an already specified count\u002Fscope; more than 50 still requires separate explicit exact-count\u002Fscope approval under root policy.\n- `sync` means synchronize only task-owned, explicitly authorized changes. Preserve unrelated dirty files untouched; use an isolated task-owned\u002Fnative-managed worktree or nondestructive scoped publication when needed. Never commit all dirty changes, stage\u002Fstash\u002Fdiscard unrelated edits, or pull\u002Frebase a dirty shared checkout; resolve only task-owned conflicts safely.\n","# OpenClaw PR Maintainer\n\nUse this skill for maintainer-facing GitHub workflows and the code changes needed to finish an authorized issue\u002FPR repair; do not invoke it for unrelated ordinary code changes.\n\n## The lead owns the outcome; collaboration workers extend it\n\nThe original, user-facing root conversation is the authoritative lead. It may personally inspect, implement, test, operate Git\u002FGitHub, and land, or delegate bounded independent lanes when parallelism, isolation, specialist judgment, or independent challenge creates concrete value. Repository guidance to use collaboration workers does not make delegation mandatory or turn the lead into an orchestrator-only shell. Do not create separate Codex app\u002Fproject threads. A subagent assigned an execution role performs its scoped operations itself, retains personal inspection\u002Fverdict duties, and must not recursively delegate away ownership unless the root explicitly authorizes and tracks that nested lane.\n\n- **Lead:** own the critical path and complete maintainer outcome; decompose and prioritize the request; personally perform serial, tightly coupled, or readily lead-owned work; assign disjoint independent lanes when useful; enforce authorization, owner, security, source-trust, proof, and publication gates; coordinate resources and shared-checkout safety; inspect actual repository\u002Fruntime effects; redirect, stop, replace, or correct weak work; dispatch independent verification; resolve routine decisions from existing authority and evidence; and communicate outcomes.\n- **Workers:** perform bounded hands-on investigation, implementation, proof, review, or delivery assignments when delegation creates concrete value. Their output remains provisional until the lead verifies the actual effect. Require a separate independent worker only when the active workflow mandates independent verification or consequential evidence genuinely benefits from challenge.\n- Bound worker count by available slots, including the parent's occupied slot, and safe host\u002Fproof capacity. Assign every worker a bounded scope and existing authorization; never infer broader permissions from delegation. Serialize shared fetch\u002Fref\u002Fbranch\u002Fcheckout mutations, pushes, merges, and competing GitHub writes; never switch a shared checkout while siblings work or edit it while its Vitest run is in flight. Preserve unfinished worker state during reassignment. Existing untrusted-source isolation, remote-proof routing, owner approval, and landing requirements remain mandatory. These collaboration workers are not ClawSweeper's secretless internal review workers; ClawSweeper's deterministic GitHub App mutation and credential gates still apply.\n- Each acting or verdict-bearing worker personally inspects relevant dependency contracts. For Codex-backed behavior, that worker must personally inspect and cite the exact sibling `..\u002Fcodex` source before its own verdict, code change, public comment, approval, merge recommendation, or proof-sufficiency claim. The parent may relay evidenced worker conclusions but must not render an independent Codex verdict from worker reports.\n- Supervise workers through actual effects: shared-checkout diffs, processes, tests, runtime behavior, explicit checkpoints, terminal results, and liveness. Do not reduce supervision to repeated status reads or messages that reveal no new evidence. A slow, stalled, or unavailable worker may be redirected, replaced, or have its bounded lane taken over by the lead when shared-state and source-trust rules permit.\n\n## Execute explicit full-authority work unattended\n\nWhen the user explicitly requests unattended or autonomous execution with full authority, that instruction is standing approval for evidence-backed operations within the requested task scope. The user is unavailable: never ask routine clarification, owner, approval, worktree, publication, CI, or landing questions. The lead resolves ordinary decisions and completes the work directly or through bounded workers.\n\n- The lead or bounded workers may investigate, repair\u002Frefactor, test, rewrite editable contributor PRs while preserving credit, create credited replacements when necessary, commit\u002Fpush task-owned changes, update PRs, post proof, close items proven fixed on current `main`, diagnose\u002Frepair\u002Frerun exact-head CI, create repo-managed PR worktrees or necessary task-owned isolated worktrees, run native review\u002Fprepare\u002Fmerge, and verify terminal remote state.\n- Preserve unrelated dirty work. Use an isolated task-owned\u002Fnative-managed worktree or nondestructive scoped publication; never stage, commit, stash, discard, overwrite, or synchronize unrelated files.\n- Continue through recoverable failures, stale guards, locks, and transient infrastructure problems with bounded safe retry and repository-approved lock recovery. Finish only after terminal verification; report a genuine missing capability, credential, or explicit safety gate without waiting for the unavailable user.\n- When optional live-provider\u002Fchannel proof is unavailable **and the user explicitly relaxes that proof**, a bounded deterministic owner defect may instead use failing\u002Fpassing owner-boundary regression tests, direct producer\u002Fcaller\u002Fsibling and dependency\u002Fsource inspection, independent review, and green required CI on the exact head. Record the missing live\u002Frank-up proof; never describe substitutes as live. Mandatory live proof for external API work, security-sensitive behavior, explicitly requested live verification, or risk that requires authenticated execution is never waived.\n- Preserve source-trust isolation, contributor credit, exact-head required CI, native landing gates, and every acting worker's direct sibling `..\u002Fcodex` inspection. Standing authority never authorizes unrelated\u002Fdestructive changes, unapproved paid or external side effects, irreversible data\u002Fsecurity operations, SQLite schema-version or protocol bumps, dependency overrides, releases, or other actions behind an explicit safety\u002Fowner approval gate. Closing\u002Freopening more than 50 items still requires separate explicit approval naming the exact count and scope.\n\n## Finish proven bugs with root-cause repairs\n\nApply the root `AGENTS.md` Repair Doctrine to every maintainer-requested issue or PR. The goal is to fix real bugs without introducing new bugs, not merely produce a review, preserve an incoming patch, or close an item without proof.\n\nChoose the outcome from live GitHub state, current `main`, affected source and tests, caller\u002Fowner\u002Fsibling paths, and relevant dependency contracts:\n\n1. **Already fixed:** Prove with high confidence that current `main` already provides the same or better behavior. Identify the canonical fix commit\u002FPR, any relevant release, and focused source, test, or reproduction evidence. When close\u002Fsweep\u002Flanding action is authorized, comment with that proof and close the issue or superseded PR. If equivalence, current-main behavior, or authority is uncertain, leave it open and state what is missing.\n2. **Confirmed issue:** Reproduce or otherwise prove the defect, trace the violated invariant to its producer or lifecycle owner, and implement the architectural root-cause fix when repair is authorized. Cover the original failure and affected sibling paths with focused regression tests and realistic behavior proof. Do not settle for a downstream guard, workaround, speculative fallback, or passing test that leaves the owner broken.\n3. **Confirmed bug-fix PR:** Independently prove both the defect and whether the proposed change repairs the root cause without regressions. If the PR is already the clean owner-boundary fix, verify and land it when authorized. If it is incomplete, in the wrong layer, needlessly complex, or only masks symptoms, rewrite\u002Frefactor the editable PR into the correct fix; verify the rewritten head and then land it. If the source branch cannot safely be edited, create an authorized replacement PR, preserve the original author's credit, and close the source only after the replacement exists. Never merge a speculative or merely plausible patch.\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\nPrefer cleanup, deletion, coherent refactoring, and one canonical flow over additional branches, wrappers, fallbacks, or compatibility shims. Target net-neutral or net-negative **production** LOC; tests are counted separately and useful regression tests may grow freely. Inspect `git diff --numstat` before landing, report production and test deltas separately, and justify any unavoidable production growth with a concrete capability, ownership boundary, security invariant, or public\u002Fdependency contract.\n\nHonor the requested action boundary: a fix request authorizes scoped investigation, local edits, and verification; an explicit ship\u002Fland\u002Fmerge request or autonomous repair sweep also authorizes the scoped publication, closing, and landing needed to finish it. An explicit request to autonomously process, resolve, or fix-and-land a named maintainer issue\u002FPR queue is an authorized autonomous repair sweep, including necessary evidence-backed comments, closures, root-cause fixes, pushes, and landing for those items. Ordinary review-only, triage-only, listing, or landable-shortlist requests are read-only: they authorize neither local source edits nor GitHub writes, including labels, assignments, public comments, closures, pushes, or landing, unless separately authorized. For authorized end-to-end landing work, a review summary or unlanded local patch is not completion: finish with a proven already-fixed close, a verified root-cause repair landed, or a specific evidence, ownership, product, safety, or authorization blocker.\n\n## Start issue and PR triage with gitcrawl\n\n- Use `$gitcrawl` first anytime you inspect OpenClaw issues or PRs.\n- Check local `gitcrawl` data first for related threads, duplicate attempts, and already-landed fixes.\n- Use `gitcrawl` for candidate discovery and clustering; use `gh`, `gh api`, and the current checkout to verify live state before commenting, labeling, closing, or landing.\n- If `gitcrawl` is missing, stale, lacks the target thread, or has no embeddings for neighbor\u002Fsearch commands, fall back to the GitHub search workflow below.\n- Do not run expensive\u002Fupdate commands such as `gitcrawl sync --include-comments`, future enrichment commands, or broad reclustering unless the user asked to update the local store or stale data is blocking the decision.\n\nCommon read-only path:\n\n```bash\ngitcrawl threads openclaw\u002Fopenclaw --numbers \u003Cissue-or-pr-number> --include-closed --json\ngitcrawl neighbors openclaw\u002Fopenclaw --number \u003Cissue-or-pr-number> --limit 12 --json\ngitcrawl search openclaw\u002Fopenclaw --query \"\u003Cscope or title keywords>\" --mode hybrid --json\ngitcrawl cluster-detail openclaw\u002Fopenclaw --id \u003Ccluster-id> --member-limit 20 --body-chars 280 --json\n```\n\n## Inspect specific targets; claim only when authorized\n\nWhen a maintainer asks Codex to review, triage, fix, or land a specific OpenClaw issue\u002FPR, have the lead or assigned collaboration worker inspect live assignment before deep work. Assignment itself is a public GitHub write.\n\n- Resolve the assignment login from the GitHub account authenticated for the mutation: use `gh api user --jq .login` for direct commands or `gh_plain api user --jq .login` inside `scripts\u002Fpr`. Never infer a GitHub login from the chat user's name or identity. If the requester differs from the authenticated account or that relationship cannot be established safely, leave the target unassigned or require an explicit bare login.\n- Read current assignees with live `gh issue view` \u002F `gh pr view`; `gitcrawl` is not enough for assignment state.\n- If unassigned, assign the requester only when an explicit land, fix-and-land, autonomous-resolution, or assignment request authorizes that mutation. For fix-only, review-only, triage-only, listing, or shortlist requests, report `unassigned` without assigning unless assignment is separately requested. Never auto-assign broad discovery candidates or shortlists.\n- If assigned to someone else, say so clearly before analysis and include assignment age:\n  - fresh: assigned within 6h; treat as actively owned unless user explicitly asks to continue or reassign\n  - stale: assigned 6h+ ago; treat as ownership hint, not a hard block; continue only with that caveat\n- If assigned to requester plus others, mention co-assignees and continue.\n- If assignment event time is unavailable, say `assigned, time unknown`; treat as assigned, not stale.\n- Never remove or replace assignees unless explicitly asked.\n\nAssignment time proof:\n\n```bash\ngh api \"repos\u002Fopenclaw\u002Fopenclaw\u002Fissues\u002F\u003Cnumber>\u002Ftimeline\" --paginate \\\n  -H \"Accept: application\u002Fvnd.github+json\" \\\n  --jq '[.[] | select(.event==\"assigned\") | {assignee:.assignee.login, assigner:.assigner.login, actor:.actor.login, created_at}]'\n```\n\nUse the newest `assigned` event for each current assignee. Issue timeline events expose `created_at`; GitHub GraphQL `AssignedEvent.createdAt` is also valid when REST pagination is awkward.\n\nClaim command for issues or PRs:\n\n```bash\ngh api -X POST \"repos\u002Fopenclaw\u002Fopenclaw\u002Fissues\u002F\u003Cnumber>\u002Fassignees\" -f 'assignees[]=\u003Clogin>' >\u002Fdev\u002Fnull\n```\n\n## Surface opener identity\n\n- For every reviewed, triaged, closed, or landed issue\u002FPR, show the opener's human name when available, GitHub login, and account age.\n- Get the login from `gh issue view` \u002F `gh pr view` (`author.login`), then fetch profile metadata once with `gh api users\u002F\u003Clogin> --jq '{login,name,created_at,type}'`.\n- Report opener identity as one compact line:\n  `By: Jane Doe (@jane, acct 2021-04-03) | OpenClaw: 4 PRs, 2 issues, 11 commits\u002F12mo | GitHub contributions: 86 commits, 9 PRs, 3 issues, 12 reviews\u002F12mo`\n- Show activity in two separate lanes: repo search totals for authored PRs\u002Fissues and commits, and GitHub contribution-graph totals. State each interval; neither lane is an exhaustive activity history. For linked issue-fixing PRs, include both the PR author and issue opener when they differ.\n- Prefer the bundled helper for activity lookups:\n\n```bash\n.agents\u002Fskills\u002Fopenclaw-pr-maintainer\u002Fscripts\u002Fgithub-activity.sh \u003Clogin> [other-login...]\n.agents\u002Fskills\u002Fopenclaw-pr-maintainer\u002Fscripts\u002Fgithub-activity.sh --global \u003Clogin>\n```\n\n- Run `--global` by default for review\u002Ftriage identity summaries. The helper prints canonical profile identity before requesting activity, then makes three single-page REST searches (`per_page=1`) for repo totals and one optional GraphQL contribution aggregate: at most five `gh` calls per resolved login, independent of activity volume. It uses `total_count`, never fetched row counts or pagination.\n- Keep bare PATH `gh` with native `--cache 1h` for profile, search, and GraphQL reads. Octopool delegates author\u002Fdate-filtered searches and GraphQL, so bare `gh` alone does not guarantee fleet-cache coverage. Native caching keeps repeated lookups bounded without a custom store; do not source `plain-gh.sh`, force fresh reads, or query private cache databases.\n- Windows use completed UTC days with calendar-month subtraction clamped at month ends. Repo search uses PR\u002Fissue creation time and default-branch commit committer date. `--months` controls the repo interval; global contributions cap at 12 months because GitHub accepts at most one year. The helper prints both intervals and explicitly labels a global cap for longer requests.\n- Search totals reflect GitHub's index and may be cached or lag recent changes. Printed intervals are query bounds, not proof of live freshness. Incomplete search results, malformed\u002Fmissing data, request failures, and unresolved identity are not zero. The helper labels those outcomes, continues later logins, and exits nonzero if identity or requested activity is unavailable or incomplete.\n- Contribution totals follow GitHub's contribution rules and token visibility; they may include private repositories. Do not call them public-only or infer inactivity from a zero graph. Do not automatically scan events or repositories as a fallback; report the limitation and inspect specific evidence separately only when needed.\n- If `name` is empty, use the login only. If profile lookup is rate-limited or unavailable, say `account age unknown` rather than omitting the opener.\n- Use identity and activity as triage signal, not proof by itself: new, low-activity, or bot-like accounts can raise review caution, but code, repro, and CI evidence still decide.\n\n## Suppress recent wide-access maintainer PRs in triage\n\nIn generic issue\u002FPR triage, hot queues, landable shortlists, or \"what is still open\", exclude PRs authored by maintainers with broad repository access until 14 days after `created_at`. Prefer external contributors' PRs. An ordinary request for landing candidates does not override the age gate. Continue suppressing maintainer-authored issues by default.\n\nTreat live repository permission as the source of truth. Before surfacing a finalist whose access is not already known, check `gh api repos\u002Fopenclaw\u002Fopenclaw\u002Fcollaborators\u002F\u003Clogin>\u002Fpermission`; suppress write, maintain, or admin access even when the login is absent from the fast-path list below. Read or triage access alone does not trigger suppression unless the login is explicitly listed.\n\nSuppress by default when the opener\u002Fauthor is one of:\n\n- `@vincentkoc`\n- `@Takhoffman`\n- `@gumadeiras`\n- `@obviyus`\n- `@shakkernerd`\n- `@mbelinky`\n- `@joshavant`\n- `@pgondhi987`\n- `@mmaps`\n- `@ngutman`\n- `@vignesh07`\n- `@huntharo`\n\nAlso suppress lower-priority maintainer-owned noise from the broader keep\u002Ftop-maintainer group unless it is directly relevant:\n\n- `@thewilloftheshadow`\n- `@onutc` \u002F `@osolmaz`\n- `@jacobtomlinson`\n- `@tyler6204`\n- `@velvet-shark`\n- `@jalehman`\n- `@frankekn`\n- `@ImLukeF`\n- `@mcaxtr`\n\nExceptions:\n\n- Once a maintainer-authored PR is at least 14 days old, triage it normally.\n- A specific PR\u002Fissue number or an explicit request for maintainer-owned work overrides suppression.\n- When a recent maintainer PR is the canonical fix for an external hot issue, mention it only as the fix path; do not count it as a triage or landing candidate.\n- Do not close, label, or deprioritize solely because an item is maintainer-authored; this section only controls what appears in triage shortlists.\n\n## Apply close and triage labels correctly\n\n- If an issue or PR matches an auto-close reason, apply its label only when labeling or closure is explicitly authorized; let `.github\u002Fworkflows\u002Fauto-response.yml` handle the comment\u002Fclose\u002Flock flow. Without that authority, report the matching reason without mutating GitHub.\n- Do not manually close plus manually comment for these reasons.\n- If an issue\u002FPR is provably fixed on current `main` and closing is authorized, comment with focused proof plus the canonical commit\u002FPR and any relevant release, then close it.\n- `r:*` labels can be used on both issues and PRs.\n- Current reasons:\n  - `r: skill`\n  - `r: support`\n  - `r: no-ci-pr`\n  - `r: too-many-prs`\n  - `r: testflight`\n  - `r: third-party-extension`\n  - `r: moltbook`\n  - `r: spam`\n  - `invalid`\n  - `dirty` for PRs only\n\n## Select explicitly small high-confidence triage candidates\n\nWhen explicitly asked for `X` small, easy, or narrowly scoped issues or PRs to triage, `X` means qualified candidates, not sampled threads. These shortlist filters do not apply to a confirmed issue\u002FPR selected for end-to-end repair; do not reject its correct root-cause fix merely because a coherent owner-boundary refactor is required.\n\nPlain review, triage, listing, and shortlist requests are read-only: the lead or workers inspect and report candidates without editing files or mutating GitHub. Only an explicit scoped fix request authorizes this patch-local\u002Fproof flow; shipping and public writes still require separate approval:\n\n1. Review the issue body, comments, related threads, current code, and adjacent tests.\n2. Fix only shortlisted issues whose root cause and owning architectural neighborhood are high-confidence.\n3. Add focused regression proof when practical.\n4. Stop with the dirty diff, touched files, and test\u002Fgate output for maintainer review.\n5. After maintainer approval to ship, make one commit per accepted fix, with release-note context in the PR body or commit message when user-facing.\n6. After authorization, synchronize and push for the actual destination: direct `main` must rebase onto latest `origin\u002Fmain` without merge commits; rebase a PR only for an actual conflict, failing native guard\u002Fexact-head check, explicit user request, or material stale-base risk, never merely because `main` advanced. Comment and close only issues proven fixed on `main` or explicitly triaged closed.\n\nDo not batch unrelated issue fixes into one commit. Do not publish, assign, comment, close, or label during the review\u002Fprove phase.\n\nMissing `CHANGELOG.md` is not a PR review finding or merge blocker. If landing\u002Ffixing a user-visible change, make sure the PR body or commit message captures the release-note context; never ask or block solely on it.\n\nOnly list candidates that pass all gates:\n\n- small owner\u002Fsurface, with a likely narrow fix and focused regression test\n- symptom is reproducible or provable with logs, failing test, live command, dependency contract, or current-main behavior\n- root cause is traceable to code with file\u002Fline and the proposed fix touches that path\n- no strong smell that a broader refactor, ownership rethink, migration, or product decision is the better fix\n- dependency-backed behavior checked against upstream docs\u002Fsource\u002Ftypes; live or web proof used when local proof is insufficient\n\nLoop:\n\n1. Use `gitcrawl` \u002F `gh` to gather candidate clusters.\n2. Read issue\u002FPR body, comments, current code, adjacent tests, and dependency contracts.\n3. Try focused repro or proof.\n4. Reject unclear, stale, speculative, broad-refactor, or owner-ambiguous items.\n5. Continue until `X` qualified candidates or the bounded search is exhausted.\n\nOutput only qualifying candidates, with: ref, surface, proof, cause, fix sketch, why small, expected test\u002Fgate. If none qualify, say so; do not pad.\n\n## Structure PR review output\n\n- Start every PR review with 1-3 plain sentences explaining what the change does and why it matters. Put this before `Findings`.\n- Then list findings first. If none, say `No blocking findings` or `No findings`.\n- Show size near the top as `Production LOC: +\u003Cadditions>\u002F-\u003Cdeletions> (net \u003Cdelta>) | Tests: +\u003Cadditions>\u002F-\u003Cdeletions>`, classifying per-file `git diff --numstat` or live PR file stats. Optional aggregate PR totals never replace the production\u002Ftest split; justify positive production growth.\n- Always answer: bug\u002Fbehavior being fixed, PR\u002Fissue URL and affected surface, provenance for regressions when traceable, and best-fix verdict.\n- For bug\u002Fregression fixes, include a compact `Provenance:` line after root cause. Use `git log -S\u002F-G`, `git blame` on implicated lines, and linked PRs\u002Fissues to locate candidates, not prove introduction. Before saying `introduced by`, inspect raw parents with `git --no-replace-objects cat-file -p \u003Csha>` and verify that `git --no-replace-objects diff --no-ext-diff --no-textconv \u003Craw-parent> \u003Csha> -- \u003Cpath>` changed the implicated behavior, using tests\u002Frepro when feasible. A genuine root needs raw-header proof that it has no parents.\n- Blame `^sha`, porcelain `boundary`, and shallow\u002Fgrafted history alone are not introduction proof. `--root` can hide boundary markers; `git show` and `rev-list --parents` can disguise a shallow boundary as a root. An available raw parent permits explicit comparison even at a shallow boundary; missing parents or an unverifiable patch require `unknown` with the gap. Apply this bar to summaries and owner hints as well as structured provenance.\n- Keep code author, introducing PR author, merger, committer, automerge trigger, and current PR author separate; none of those roles alone proves who introduced a bug. Cite the verified commit\u002FPR\u002Fdate. If no PR is traceable, use the verified commit and known author identity; leave unverified identities unknown, and do not make missing PR metadata a separate finding.\n- For automation merges, identify the human trigger only from explicit timeline\u002Fcomment\u002Fevent evidence, such as `@clawsweeper automerge`, `\u002Flandpr`, or an arming label. Check live evidence first, then gitcrawl\u002Fcache when needed. Report `automerge triggered by @login` only when verified; otherwise say trigger unknown. Triggering or merging is not proof of authorship or introduction.\n- Use `made visible by` only for a verified trigger and `carried forward by` only for verified preexisting behavior, with confidence (`clear`, `likely`, `unknown`). Unknown provenance does not invalidate an independently proven bug. For features, docs, and refactors, use `Provenance: N\u002FA` or omit it when no broken behavior is being fixed.\n- Keep summaries compact, but include enough proof that the verdict is auditable without rereading the PR.\n\nLOC proof:\n\n```bash\ngh pr view \u003Cnumber> --json additions,deletions,changedFiles \\\n  --jq '\"LOC: +\\(.additions)\u002F-\\(.deletions) (\\(.changedFiles) files)\"'\ngit diff --numstat \u003Cbase-sha>...\u003Chead-sha>\n```\n\n## Read beyond the diff\n\n- Review the surrounding code path, not just changed lines. Open the caller, callee, data contracts, adjacent tests, and owner module.\n- Before any verdict, read enough code to fill this map: changed surface, runtime entry point, owner boundary, one caller, one callee, sibling implementations sharing the invariant, adjacent tests, current `main` behavior, and shipped\u002Fdependency\u002FCodex contracts when relevant.\n- For large-codebase PRs, sample enough related files to understand the runtime boundary before deciding. Default to more code reading when the change touches agents, gateway, plugins, auth, sessions, process, config, or provider\u002Fruntime seams.\n- Compare the PR against current `origin\u002Fmain` behavior. Check whether recent main already changed the same surface.\n- Dependency-backed behavior: MUST read upstream docs\u002Fsource\u002Ftypes before judging API use, defaults, output shapes, errors, timeouts, memory behavior, or compatibility. Do not assume dependency contracts from memory or PR text.\n- Judge solution quality, not only correctness. Ask whether the PR is the clean owner-boundary fix or a wart\u002Fworkaround that should be replaced by a small refactor, moved seam, contract change, or deletion of duplicate logic.\n- Mention the main files read when the verdict depends on code-path evidence.\n- If the user challenges the verdict or asks whether the idea is really good, resume code reading first. Do not defend, soften, or reverse the verdict until the missing caller\u002Fcallee\u002Fsibling\u002Fdependency path is checked.\n\n## Best-fix review loop\n\nEvery PR review must explicitly answer: \"Is this the best fix, or only a plausible fix?\"\n\nBefore verdict:\n\n1. Reconstruct the bug, feature need, or behavior claim from issue\u002FPR\u002Fproof.\n2. Trace current behavior from entry point to failure or decision point.\n3. Read touched files, callers, callees, owner modules, adjacent tests, and relevant docs.\n4. Read sibling surfaces that should share the invariant or could be broken by a one-sided fix.\n5. Compare against current `origin\u002Fmain` and shipped behavior when regression\u002Fcompat matters.\n6. Inspect upstream dependency\u002FCodex source or docs for dependency-backed behavior.\n7. Identify at least one alternative fix location or shape, then reject it with evidence.\n8. If any required path above is uninspected, keep reading or mark `Remaining uncertainty`; do not call the PR best, blocked, proof-sufficient, or merge-ready.\n\nReview output must include:\n\n- `Best-fix verdict:` best \u002F acceptable mitigation \u002F wrong layer \u002F too narrow \u002F too broad.\n- `Alternatives considered:` 1-3 concrete alternatives and why rejected.\n- `Code read:` compact list of main files\u002Fcontracts checked.\n- `Remaining uncertainty:` what was not proven.\n\nIf the best-fix answer is only \"maybe\", keep reading or state the missing evidence. Do not call proof sufficient until the best-fix judgment is explicit.\n\n## Enforce the bug-fix evidence bar\n\n- Never merge a bug-fix PR based only on issue text, PR text, or AI rationale.\n- Choose the strongest proof proportionate to the owner boundary and risk. When\n  feasible, prefer Crabbox (`$crabbox`) or a real packaged\u002FDocker\u002Flive lane\n  exercising the reported user flow before closing or landing; do not confuse\n  packaged, mocked, Docker, or unit proof with live authenticated proof.\n- For a bounded deterministic owner defect, optional unavailable provider\u002Fchannel\n  live proof may be replaced **only when the user explicitly relaxes it** by a\n  failing\u002Fpassing focused owner-boundary regression, direct producer\u002Fcaller\u002Fsibling\n  and dependency\u002Fsource contract inspection, independent review, and exact-head\n  green required CI. Record the missing live\u002Frank-up evidence openly. External\n  API work, security-sensitive changes, explicitly requested live proof, and risk\n  requiring real authenticated execution retain their mandatory live-proof gate.\n- Before landing, require:\n  1. symptom evidence such as a repro, logs, or a failing test\n  2. a verified root cause in code with file\u002Fline\n  3. patch-verified regression provenance when traceable, with author, merger, committer, and trigger roles separate; otherwise explicit `unknown` and the evidence gap\n  4. a fix that touches the implicated code path\n  5. a regression test when feasible, or explicit manual verification plus a reason no test was added\n- If the claim is unsubstantiated or likely wrong, obtain the missing evidence or make authorized owner-boundary repairs; never merge without proof.\n- If the linked issue appears outdated or incorrect, correct triage first. Do not merge a speculative fix.\n- If optional Crabbox\u002FE2E\u002Flive proof is unavailable and the user explicitly\n  relaxes it, state the exact gap and use the strongest focused owner-boundary\n  and exact-head CI evidence. Never claim substitutes are live or waive mandatory\n  external-API, security, or explicitly requested live proof.\n\n## Close low-signal manual PRs carefully\n\n- Do not close for red CI alone. Require a clear low-signal category plus stale or failed validation.\n- Good manual-close categories:\n  - blank or mostly untouched PR template with no concrete OpenClaw problem\u002Ffix\n  - random docs-only churn such as root README translations, generic wording tweaks, or community-plugin discoverability docs that should go through ClawHub\n  - test-only coverage without a linked bug, owner request, or behavior change\n  - refactor-only cleanup, variable renames, formatting, or generated\u002Fbaseline churn without maintainer request\n  - third-party channel\u002Fprovider\u002Ftool\u002Fskill\u002Fplugin work that belongs on ClawHub instead of core\n  - risky ops\u002Finfra drive-bys such as new external CI services, release workflows, host upgrade scripts, Docker base migrations, or apt retry\u002Ffix-missing tweaks without owner request and green validation\n  - dirty branches where a narrow stated change includes unrelated docs\u002Fgenerated\u002Fruntime\u002Fextension files\n  - repeated bot-review spam or copied bot output without author-owned fixes\n- Keep or escalate plausible focused bug fixes, green PRs, active maintainer discussions, assigned work, recent author follow-up, and unique reproduction details.\n- For third-party capabilities, prefer the `r: third-party-extension` auto-response label when it applies; it points contributors to publish on ClawHub.\n\n## Handle GitHub text safely\n\n- For issue comments and PR comments, use literal multiline strings or `-F - \u003C\u003C'EOF'` for real newlines. Never embed `\\n`.\n- Do not use `gh issue\u002Fpr comment -b \"...\"` when the body contains backticks or shell characters. Prefer a single-quoted heredoc.\n- Do not wrap issue or PR refs like `#24643` in backticks when you want auto-linking.\n- PR landing comments should include clickable full commit links for landed and source SHAs when present.\n\n## Search broadly before deciding\n\n- Prefer `gitcrawl` first. Then use targeted GitHub keyword search to verify gaps, live status, comments, and candidates not present in the local store.\n- Use `--repo openclaw\u002Fopenclaw` with `--match title,body` first when using `gh search`.\n- Add `--match comments` when triaging follow-up discussion or closed-as-duplicate chains.\n- Do not stop at the first 500 results when the task requires a full search.\n\nExamples:\n\n```bash\ngh search prs --repo openclaw\u002Fopenclaw --match title,body --limit 50 -- \"auto-update\"\ngh search issues --repo openclaw\u002Fopenclaw --match title,body --limit 50 -- \"auto-update\"\ngh search issues --repo openclaw\u002Fopenclaw --match title,body --limit 50 \\\n  --json number,title,state,url,updatedAt -- \"auto update\" \\\n  --jq '.[] | \"\\(.number) | \\(.state) | \\(.title) | \\(.url)\"'\n```\n\n## Choose a writable landing checkout\n\nBefore `review-init`, compare the editor's writable workspace with the Git\ncommon-directory parent. `scripts\u002Fpr` intentionally creates its worktree at\n`\u003Ccanonical-repo>\u002F.worktrees\u002Fpr-\u003CPR>`; running it from a linked checkout does not\nput review artifacts under that caller. Shell access or a directory grant alone\nmay not make those artifacts editable in an isolated session.\n\nWhen the canonical PR worktree lies outside the permitted workspace, start from\na fresh ordinary checkout **inside** that workspace. Use the verified repository\nURL and normal Git, not another linked worktree pointing at the same outside\ncommon directory. Keep full history and blobs: shallow history breaks provenance\nchecks, and blob filters can turn journaled historical restores into serial\nnetwork fetches.\n\n```bash\ngit clone --single-branch \u003Cverified-repository-url> \u003Cpermitted-workspace>\u002Flanding-checkout\n```\n\nVerify its origin and Git root, then use that checkout's trusted `main` wrapper\nfor the unchanged review\u002Fprepare\u002Fmerge sequence. Its native PR worktrees now stay\ninside the permitted tree. Initialize review templates and verify editor access\nbefore investing in proof. Preserve the original checkout and unique work; never\nuse symlinks, shell-mediated writes to denied paths, or weaker isolation flags.\n\nThis is fresh workspace selection, not recovery: if another checkout has an\nactive operation, uncertain merge capture\u002Foutcome, or pending auto\u002Fqueue request\nfor this PR, reconcile that original state first. Never clone away retained evidence or retry\nan uncertain dispatch from a new repository's independent lock\u002Fref namespace.\n\nKeep the generated first line of `review.md` byte-for-byte, and keep `review.json`\n`pr.number`\u002F`pr.headSha` aligned with the initialized metadata. Put descriptive\nprose below that line. Run native artifact validation before calling the review\nready; regenerated templates, not hand-edited stamps, own head changes.\n\n## Follow PR review and landing hygiene\n\n- `scripts\u002Fpr` requires `git`, `gh`, `jq`, `rg` (ripgrep), `pnpm`, and `node`\n  on the maintainer host. Let its preflight fail loudly when one is missing.\n  Tests that source `scripts\u002Fpr-lib\u002F*` directly must provide the same command\n  surface instead of weakening the production wrapper for a minimal test image.\n- Classify source trust before executing code-changing or landing proof; acquire\n  a safe remote backend lazily through `$crabbox` only when the current host\n  gate requires one; never pre-warm it at task start. Trusted maintainer code\n  runs suitable proof on a dedicated Linux worker and otherwise defaults to Blacksmith Testbox;\n  contributor\u002Ffork code stays untrusted unless a maintainer explicitly approves\n  credentialed execution after review; it uses secretless fork CI or\n  sanitized direct AWS Crabbox with `CRABBOX_ENV_ALLOW=CI`,\n  `--no-hydrate`, and a fresh temporary remote `HOME`, never the\n  credential-hydrated Testbox workflow or a previously hydrated lease. Launch\n  an installed trusted Crabbox binary from clean trusted `main`, fetch the PR\n  with `--fresh-pr`, unset and reject any resolved AWS instance profile, verify\n  trusted IMDS reports no IAM credentials, bind the lease to the reviewed head\n  SHA, and never execute its local wrapper or config. Upload trusted\n  `scripts\u002Fcrabbox-untrusted-bootstrap.sh` from clean `main` alongside\n  `--fresh-pr`; it installs the pinned Node\u002Fpnpm runtime before executing PR\n  code. Force public networking, disable and\n  unset inherited Tailscale\u002Fexit-node settings, and fail closed unless\n  `crabbox inspect` reports no Tailscale state before any script. Rewarm after\n  any head change, sync every run, reuse the lease, then stop it before handoff.\n  Do not acquire a backend for read-only triage or docs-only work.\n- Never mention release-note bookkeeping in review-only output. It is landing\n  or release-generation mechanics, not a correctness finding.\n- If bot review conversations exist on your PR, address them and resolve them yourself once fixed.\n- Leave a review conversation unresolved only when reviewer or maintainer judgment is still needed.\n- Separate repository authorization from GitHub merge enforcement. `CODEOWNERS` routes review requests; a pending request or zero submitted reviews does not prove that approval is mandatory. Restricted\u002Fsecurity paths require listed-owner authorship, review, or direction. For governance changes to ownership\u002Freview policy itself, explicit direction from an organization owner also satisfies repository policy only when live `GET \u002Forgs\u002F{org}\u002Fmemberships\u002F{username}` evidence shows `state: active` and `role: admin`. Repository `ADMIN`, `viewerCanAdminister`, and bypass permission do not establish organization ownership. Neither route waives a live GitHub-enforced review rule.\n- Before reporting a mandatory approval blocker, inspect live branch protection and every matching ruleset, the PR review decision\u002Frequests, and the authenticated actor's permission and bypass state. If using the organization-owner governance route, record the live organization-membership result separately. Name the exact enforced rule and whether it is satisfied. Bypass state is evidence about the likely server outcome, never authorization. If no review rule is enforced, do not stop before native prepare\u002Fmerge solely because a requested team has not reviewed.\n- Explicit user direction resolves this repository-policy question only from the applicable listed owner or through the verified organization-owner governance route; it cannot override server enforcement. If GitHub requires an independent approval and it remains unsatisfied, stop with the exact blocker even when the actor has bypass permission. Otherwise continue through the native landing flow and let its verified merge command exercise the live rule.\n- Before landing any PR with non-trivial code changes, run fresh `$autoreview` until no accepted\u002Factionable findings remain; prior CI, ClawSweeper, or manual review is not a substitute. Skip only for truly trivial\u002Fdocs-only changes or when the user explicitly opts out.\n- When an agent is landing or merging a PR targeting `main`, use only the repo-native `scripts\u002Fpr` wrapper: run `scripts\u002Fpr review-init \u003CPR>`, follow its emitted checkout\u002Fguard guidance, initialize and complete review artifacts with `scripts\u002Fpr review-artifacts-init \u003CPR>`, validate them with `scripts\u002Fpr review-validate-artifacts \u003CPR>`, then run `OPENCLAW_TESTBOX=1 scripts\u002Fpr prepare-run \u003CPR>` and `scripts\u002Fpr merge-run \u003CPR>`. The Testbox flag is mandatory for agents: it verifies hosted CI\u002FTestbox on the current head or reuses a patch-identical pre-rebase run green within 24 hours instead of running full `pnpm` gates locally. `prepare-run` fails fast; invoke only after exact-head CI is complete and green, and do not idle on `auto-response` or `check-docs`. For owner-approved reviewed fork code without hosted Testbox, use `OPENCLAW_PR_GATES_REMOTE=testbox` instead. Do not rebase only because `main` advanced; behind-main drift is advisory unless strict drift is explicitly enabled, while GitHub still blocks conflicts.\n- `scripts\u002Fpr` gotchas: subcommands require a PR number (no subcommand `--help` placeholder). Artifacts preserve template enum values with evidence detail in summaries; validate before prepare, from PR-head mode (moving main invalidates the main-baseline guard). Review flow: checkout main baseline, then PR, before artifact validation. After every PR push, rerun `scripts\u002Fpr review-init`; checkout alone leaves a stale guard SHA. Locally unset `GITHUB_TOKEN`, `GH_TOKEN`, `HOMEBREW_GITHUB_API_TOKEN`; ambient tokens can select an exhausted or wrong identity. Review JSON: land-ready recommendation `READY FOR \u002Fprepare-pr`, `issueValidation.status=valid`; never `APPROVE`. After `scripts\u002Fpr merge-run` removes its worktree, `cd` to a persistent repo before follow-up commands.\n- After GitHub throttling, check core quota before `scripts\u002Fpr prepare-run` or `merge-run`. A failed operation can retain its lock; verify no child remains, then recover only with its emitted token.\n- Stacked branches over a squash-merged parent: rebase with `git rebase --onto origin\u002Fmain \u003Clanded-branch>`; a plain `git rebase origin\u002Fmain` replays the parent's already-squashed commits and manufactures conflicts.\n- Non-main PRs: do not run `scripts\u002Fpr prepare-run` or `merge-run`; they diff against `main`. Use review artifacts, exact base-head CI, revalidate `headRefOid`, then `gh pr merge --match-head-commit \u003Cverified-sha>`.\n- PR-create merge-ref race recognition: the dropped\u002Fkilled pull_request CI run appears as `startup_failure`\u002F`BuildFailed` (`(Unknown event)`) and is not rerunnable — close\u002Freopen or wait for the hourly `pr-ci-sweeper`; rerun attempts are wasted.\n- Preferred PR\u002Fissue media upload: when the command help exposes `--attach`, use the repeatable flag on `gh issue create`, `gh issue edit`, `gh issue comment`, and the matching `gh pr` commands. Example: `gh pr comment \u003Cpr> --repo openclaw\u002Fopenclaw --body-file \u003Ccomment.md> --attach \u003Cproof.mp4>`.\n- `gh --attach` video rules: accepted extensions are `.mp4`, `.mov`, and `.webm`; the local maximum is 100 MB, while GitHub's account limit may be lower. Do not add `#alt` to a video path. `gh` inserts a bare URL so GitHub renders a player, and the uploaded asset cannot be deleted.\n- Compatibility fallback: if the installed `gh` lacks `--attach`, upload directly with `curl -s \"https:\u002F\u002Fuploads.github.com\u002Fuser-attachments\u002Fassets?name=\u003Cfile>&content_type=\u003Cmime>&repository_id=$(gh api repos\u002F\u003Cowner>\u002F\u003Crepo> --jq .id)\" -X POST -H \"Authorization: Bearer $(gh auth token)\" -H \"Accept: application\u002Fjson\" --data-binary @\u003Cfile>`, then embed the returned `.url`: images as `![alt](url)`, video as a bare line so GitHub renders a player. For that endpoint, 422 = unsupported type and 404 = bad repo id\u002Fno push. Use `content_type` `video\u002Fmp4`, `video\u002Fquicktime`, or `video\u002Fwebm`; `![]()` does not render the player. Transcode Playwright webm via `ffmpeg -i in.webm -c:v libx264 -pix_fmt yuv420p out.mp4` for broad playback. Both paths use the same drag-drop CDN, inherit repository visibility, and need no browser\u002Fcomputer use. Non-media artifacts or endpoint failure: Crabbox artifact publishing plus the manifest URL.\n- Use standard Git commands and stage only the files intended for each commit.\n- Keep commit messages concise and action-oriented.\n- Group related changes; avoid bundling unrelated refactors.\n- Use `.github\u002Fpull_request_template.md` for PR submissions and `.github\u002FISSUE_TEMPLATE\u002F` for issues.\n- Do not commit PR-only artifacts such as screenshots under `.github\u002Fpr-assets`; attach them to the PR\u002Fcomment or use an external artifact store instead.\n\n## Extra safety\n\n- Closing or reopening more than 20 PRs needs an explicitly authorized bounded count and scope. Standing full authority covers an already specified count\u002Fscope; more than 50 still requires separate explicit exact-count\u002Fscope approval under root policy.\n- `sync` means synchronize only task-owned, explicitly authorized changes. Preserve unrelated dirty files untouched; use an isolated task-owned\u002Fnative-managed worktree or nondestructive scoped publication when needed. Never commit all dirty changes, stage\u002Fstash\u002Fdiscard unrelated edits, or pull\u002Frebase a dirty shared checkout; resolve only task-owned conflicts safely.\n",{"name":5,"description":7},"main","d69096e239f2a89aabc2cd078c47664a9d3b1e11","05-技能与代理开发\u002Fopenclaw-pr-maintainer",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-pr-maintainer",{"tool":38,"command":39},"bunx","bunx skills add lza6\u002FArmor-piercing-system-prompts --skill openclaw-pr-maintainer",{"tool":41,"command":42},"pnpm","pnpm dlx skills add lza6\u002FArmor-piercing-system-prompts --skill openclaw-pr-maintainer","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F05-技能与代理开发\u002Fopenclaw-pr-maintainer\u002FSKILL.md",true,[],[47,54,59,66,73,80],{"skillNo":48,"name":49,"nameZh":6,"description":50,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":51,"categories":52,"keywords":53,"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":55,"name":49,"nameZh":6,"description":50,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":58,"publishedAt":19},"01M7FFG0T6AZ0STEJPSB3CX84K","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator-antigravity-awesome-skills-main\u002FSKILL.md",[],[],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":19},"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":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":19},"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":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"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":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"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",[],[]]