[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6DSV3PTJ905JWZHV489QM3K":3,"skill-same:01M6DSV3PTJ905JWZHV489QM3K":114},{"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":37,"linkOnly":38,"markdownContent":39,"markdownBody":40,"frontMatter":41,"refName":42,"commitSha":43,"skillDirectory":44,"forksCount":45,"repositoryHtmlUrl":46,"repositoryHomepageUrl":47,"ownerHtmlUrl":48,"ownerBlogUrl":49,"ownerDescription":6,"updatedAt":50,"install":51,"resources":64},"01M6DSV3PTJ905JWZHV489QM3K","review-loop-author",null,"Run the author side of the OACP review loop — request exact-head review, address verified findings, and drive to LGTM. Single-pass (exits after sending round messages; \u002Fcheck-inbox re-invokes it on the reviewer's reply). The leader session owns all protocol state and side effects.","kiloloop\u002Foacp-skills","kiloloop","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F264514437?v=4","01M6DSS1K2JKZD3YRMXRH54968","Kiloloop","01M6DSS1SMM810F7327W2YX7ZZ",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fkiloloop\u002Foacp-skills\u002Fblob\u002Fmain\u002Fskills\u002Freview-loop-author\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36],"review loop author","loop","review loop","review","reviewer","oacp","head","lgtm","reply","drive","session","check","leader","messages","inbox","protocol","state","run","2026-11-10 10:12:30",false,"---\nname: review-loop-author\ndescription: Run the author side of the OACP review loop — request exact-head review, address verified findings, and drive to LGTM. Single-pass (exits after sending round messages; \u002Fcheck-inbox re-invokes it on the reviewer's reply). The leader session owns all protocol state and side effects.\n---\n\n# \u002Freview-loop-author — Author-Side Review Loop\n\nThe **leader** (this session) owns all protocol state and side effects: inbox\nI\u002FO, verification, git\u002Fgh, message sends, and the final decision each round.\nCode fixes are leader-direct for small fix sets; for larger sets spawn the\nfix-only subagent per [references\u002Ffix-subagent-prompt.md](references\u002Ffix-subagent-prompt.md).\nSubagents never hold OACP state or perform side effects.\n\nProtocol truth lives in the OACP runtime's `docs\u002Fprotocol\u002Freview_loop.md` and\n`dispatch_states.yaml`; they override this skill on conflict.\n\n`SKILL_DIR=\"${CLAUDE_SKILL_DIR}\"` — the directory holding this file and its\n`scripts\u002F` (set it by hand if your runtime does not substitute the variable).\nSnippets here use named variables only: the Skill tool substitutes invocation\narguments into `$`-digit tokens at render time, so a bare positional in a code\nblock silently becomes an argument value.\n\n## Arguments\n\n```\n\u002Freview-loop-author \u003CPR_NUMBER> --reviewer \u003Cname> [--project \u003Cname>] [--task-id \u003Cid>] [--max-rounds 2] [--dry-run]\n```\n\n- `PR_NUMBER` — required positional.\n- `--reviewer` — required. Exception: when the inbox already holds a verified\n  `review_feedback` (or review-shaped `notification`) for this PR, infer the\n  reviewer from its `from:` field.\n- `--project` — for a new loop, must match the PR repository's OACP binding\n  (Step 1); an existing loop keeps its original project.\n- `--task-id` — optional; enables task-state updates.\n- `--max-rounds` — default **2** (protocol default), maximum 3. A round past\n  the cap needs fresh human direction (Step 10).\n- `--dry-run` — show the plan, change nothing.\n\n## Instructions\n\n### 1. Gather context and check preconditions\n\nFor a new loop, resolve the PR's base repository to its OACP project through\nthat repository's `.oacp` marker, and confirm the checkout's remote is the PR\nrepository — a directory name or the session's current project is not enough.\nValidate any `--project` override against that binding; with no readable\nmarker, stop and ask. Run the loop from the owning repository's author session\nso the reviewer's replies reach its own-project watcher. An existing loop keeps\nits original project and conversation for every later round; moving it needs\nan explicit supersede (Step 4), never a duplicate request.\n\n```bash\nREPO_PATH=$(git rev-parse --show-toplevel)\nBRANCH=$(git -C \"$REPO_PATH\" rev-parse --abbrev-ref HEAD)\nREPO=$(gh repo view --json nameWithOwner -q .nameWithOwner)\nBASE=$(gh pr view \u003CPR_NUMBER> --json baseRefName -q .baseRefName)\n# .oacp sits at the MAIN checkout root; in a linked worktree --show-toplevel is the worktree\nMAIN_ROOT=$(dirname \"$(git -C \"$REPO_PATH\" rev-parse --path-format=absolute --git-common-dir)\")\nPROJECT=${PROJECT_FLAG:-$(python3 -c 'import json,sys; print(json.load(open(sys.argv[1]))[\"project_name\"])' \"$MAIN_ROOT\u002F.oacp\")}\nOACP_HOME=\"${OACP_HOME:-$HOME\u002Foacp}\"\nINBOX_DIR=\"${OACP_HOME}\u002Fprojects\u002F${PROJECT}\u002Fagents\u002Fclaude\u002Finbox\"\n```\n\nUse the GitHub identity the project's instructions require — for example a\nshort-lived App token generated inline per command, exported as `GH_TOKEN`\nfor `gh`, and injected per push via\n`git -c http.https:\u002F\u002Fgithub.com\u002F.extraheader=…`, never persisted to a file or\nthe remote URL.\n\n**Receiver routing:** send a new loop's `review_request` to the reviewer\nregistered in the PR repository's project workspace. Confirm the sender and\nreviewer are both registered there and that each has pinned the other's key —\nan inbox directory alone is not readiness evidence. Missing, ambiguous, or\nstale registration holds the send for setup; never fall back to another\nworkspace because its reviewer is easier to reach. Registration and delivery\ndo not admit the review — the reviewer's autonomy gate does.\n\nVerify, report failures, and stop on: PR exists; current branch is the PR head\nbranch; PR is `MERGEABLE` (if `CONFLICTING`, rebase onto the base branch and\n`git push --force-with-lease --force-if-includes` **before** requesting review\n— a post-review force-push dismisses the approval and wastes a round);\n`INBOX_DIR` and the reviewer's inbox exist; `oacp send --help` works;\n`gh auth status` passes. A missing inbox in an existing workspace means that\nagent was never registered there: `oacp agent add \u003Cproject> \u003Cagent> --runtime\n\u003Cruntime>`, then exchange keys (`oacp trust import`) before the first send.\n\n### 2. Scan the inbox (verified intake)\n\n```bash\ncommand ls -1 \"$INBOX_DIR\" | command grep '\\.yaml$'      # candidates; archive\u002F is a subdir\nSNAP=\"$(mktemp)\"; cp \"$INBOX_DIR\u002F\u003Cfile>\" \"$SNAP\"         # immutable snapshot, read once\nACCEPTED_SHA=$(shasum -a 256 \"$SNAP\" | cut -d' ' -f1)\noacp verify \"$SNAP\" --project \"$PROJECT\" --receiver claude --oacp-dir \"$OACP_HOME\" --json\n```\n\nCandidates are messages from the reviewer with `related_pr` equal to this PR.\n**Verified-intake rule** (every inbound read in this skill): verify and parse\nonly the snapshot; the live file is compared against `ACCEPTED_SHA` only at\narchival, which the archival script does. Shell variables do not persist\nbetween Bash calls — carry the literal `SNAP` path and `ACCEPTED_SHA` forward.\nProcess a message only when `oacp verify` reports `signed-verified` (JSON\n`status: verified`), under any verify posture. Any other outcome — unsigned,\nunverifiable, `signed-INVALID` — means do NOT process and do NOT archive: keep\nthe evidence (`--quarantine` copies an INVALID message to `dead_letter\u002F`) and\nsurface it to the user.\n\nRoute by type: `review_lgtm` → Step 8. `review_feedback` (or a review-shaped\n`notification` — see [references\u002Fterminal-checkpoints.md](references\u002Fterminal-checkpoints.md))\n→ Step 6. Nothing → Step 3.\n\nAlso check GitHub for out-of-band feedback (issue comments, review comments,\nreviews via `gh api`); note anything actionable that is not in the inbox.\n\n### 3. Show plan\n\nPrint PR, repo, branch, reviewer, project, task id, round, max rounds, inbox\npath. If `--dry-run`, stop here.\n\n### 4. Send review_request\n\nIdempotency first: if your outbox or the reviewer's inbox already holds a\n`review_request` for this PR+round, skip the send.\n\n```bash\nREQUESTED_HEAD=$(git -C \"$REPO_PATH\" rev-parse HEAD)   # full SHA, verbatim; must equal the pushed PR head\ngit -C \"$REPO_PATH\" diff --histogram --shortstat \"origin\u002F$BASE...$BRANCH\"\nCONV_ID=\"conv-$(date -u +%Y%m%d)-claude-\u003CPR_NUMBER>\"   # schema: conv-\u003CYYYYMMDD>-\u003Cagent>-\u003Cseq>\n```\n\nBody fields (review_loop.md names; `requested_head` and `review_round` are\nlegacy duplicates for older reviewer tooling):\n\n```yaml\npr: \u003CPR_NUMBER>\nrepo: \u003COWNER\u002FREPO>\nbranch: \u003CBRANCH>\nround: \u003CN>\nmax_rounds: \u003CMAX_ROUNDS>\ndeclared_head: \u003CREQUESTED_HEAD>\nrequested_head: \u003CREQUESTED_HEAD>\nreview_round: \u003CN>\ndiff_summary: |\n  \u003C2-4 lines>\ntask_id: \u003CTASK_ID>\nmax_turns_reviewer: 8\nmax_runtime_s_reviewer: 600\nside_effects:\n  - writes_findings_packet\n  - sends_oacp_reply\n  - comments_on_github        # status comments; only when intended and permitted\n  - submits_github_review     # GitHub approval; only when needed and permitted\n```\n\nThe reviewer parses the body with `yaml.safe_load`, and a hand-written scalar\ncontaining a colon-space or a leading quote breaks it. Build the body as a mapping,\n`yaml.safe_dump(body, sort_keys=False, width=100000)`, assert\n`yaml.safe_load(text) == body`, write it to a temp file, and send:\n\n```bash\noacp send \"$PROJECT\" \\\n  --from claude --to \u003CREVIEWER> --type review_request \\\n  --subject \"Review: PR #\u003CPR_NUMBER> (round \u003CN>)\" \\\n  --conversation-id \"$CONV_ID\" --body-file \"$BODY_FILE\" \\\n  --related-pr \u003CPR_NUMBER> --priority P1 --oacp-dir \"$OACP_HOME\"\n```\n\nThis contract applies to every `review_request` you send as author, from any\nflow — task dispatch, inline continuation rounds, batched sibling PRs. Re-read\nthis step before composing one, and after any context compaction; the\n`side_effects:` block and the verbatim heads are the parts that drop.\n\n- **Heads**: both head fields carry the same verbatim `rev-parse` output. They\n  are context for the reviewer, never evidence — the reviewer binds its\n  verdict to the live head it fetches.\n- **Thread identity**: `CONV_ID` must match\n  `^conv-\\d{8}-[A-Za-z0-9._-]{1,64}-\\d{1,6}$` (UTC date; the PR number is a\n  natural sequence when it has six digits or fewer — pick a fresh sequence for\n  a second thread on the same PR and day). Carry it verbatim on EVERY loop\n  message: continuation-grant evidence matches an equal `conversation_id` or\n  an immediate parent only (no chain traversal), and an archived message\n  cannot donate a conversation to `--in-reply-to` — thread to one with\n  explicit `--parent-message-id` + `--conversation-id`.\n- **Grants**: the receiver's continuation gate reads only `round` and\n  `side_effects`; `repo` is required on granted rounds so the reviewer can\n  validate the thread's repository and PR.\n- **Side effects**: declare the round's GitHub actions on every request that\n  expects one. Omission declares only the defaults (findings packet + OACP\n  reply), and the reviewer withholds anything undeclared — on a\n  ruleset-protected repository a withheld `submits_github_review` blocks the\n  merge and costs a round-trip. On a grant-governed thread declare only what\n  the grant permits; an expanding declaration pauses the round\n  (`continuation_grant_scope_exceeded`).\n\n**Superseding a request** (review_loop.md → Superseding a Request):\n\n- **Defective request already sent**: send a contract-complete replacement\n  with `supersedes_message_id: \u003Cdefective id>` and `supersede_reason:` (\"same\n  ask, same head\" when only the body was wrong), `--in-reply-to` the defective\n  message, same `--conversation-id`. The reviewer acts on the replacement only\n  and closes the original. Never leave two live requests for one round, or\n  re-send without the marker.\n- **Head change before the reviewer starts — no round cost**: before pushing\n  over an in-flight request, check the reviewer's\n  `agents\u002F\u003Creviewer>\u002Faudit\u002Fautonomy_decisions\u002F` for a record naming the\n  request's id, and its `status.yaml` `current_task`. Both empty → no head is\n  materialized: push, then send the replacement at the NEW head with\n  `supersede_reason` naming the old head void.\n- **Head change after the reviewer started, before any verdict**: announce\n  first. (1) Before any push, a `notification` threaded on the request —\n  \"author pause: declared_head `\u003Csha>` will be replaced, stop at that head\" —\n  naming the human direction behind it; (2) do the work locally, one push;\n  (3) the replacement at the new head at the same `round: \u003CN>` — a fresh\n  admission, not a continuation of the cancelled round, which produced no\n  verdict and consumes nothing — with `supersede_reason` (old head void, what\n  changed), `human_direction:` when a human asked for the scope change, and\n  what is new since the superseded request so the reviewer can reuse its\n  partial work. A verdict that lands before your push is round-N\n  output: process it, and the replacement becomes round N+1.\n\n**Pre-request checks, every round:**\n\n- **Round 1 declares the artifact's class and threat model** in the body\n  (`artifact_class:` plus what it defends against). Authorization, evidence,\n  and transaction machinery earns invariant-maximal closure — and where that\n  bar is \"every X is collected\" over a finite grammar, the enumerated grammar\n  is the round-1 bar (Step 7). Diagnostics, docs, and convenience surfaces do\n  not, so out-of-model hardening findings can be answered as advisory.\n  Undeclared, the reviewer discovers the bar one adjacent gap per round.\n- **Size the reviewable surface before asking.** Count the diff minus\n  fixtures, lockfiles, snapshots, and generated payloads: ~100 such lines\n  review well, ~1,000 do not. Above a few hundred, split before requesting or\n  say in the body why it must land whole — a split now is free; after\n  `max_rounds_exceeded` it costs the loop. Every size figure in the request is\n  pasted from the output of\n  `bash \"$SKILL_DIR\u002Fscripts\u002Fdiff_sizes.sh\" \"$REPO_PATH\" \u003Cbase> \u003Chead>` run at\n  the declared head — its per-file `--histogram --numstat` rows and\n  `--shortstat` totals. Build the body from that output: a figure estimated,\n  summed by hand from the rows, or retyped from an earlier round's body is an\n  estimate. For a lockfile, add a semantic compare of its package map\n  (removed \u002F added \u002F changed counts) — paste the output of\n  `python3 \"$SKILL_DIR\u002Fscripts\u002Flockfile_compare.py\" --repo \u003Cdir> --base main --head \u003Cbranch> [--path package-lock.json]`\n  (`pnpm-lock.yaml` by default); a line diff turns a removed subtree into\n  alignment noise.\n- **A gap you noticed and deferred is a round-1 blocker when it sits inside\n  the declared grammar.** Sweep your design notes for anything waved off as\n  \"another module's business\" or \"not this leg\" — a predicate the code trusts\n  but did not close, a check delegated to a user-editable file — and fix it or\n  name it out of model. The same holds for a caveat written for a later leg\n  when the current leg's code already relies on its negation.\n- **When the artifact caches or mirrors an external tool's verdicts,\n  enumerate the tool's inputs from its source** (what the verdict path opens),\n  not from the arguments you pass, and put every input in the key or name it\n  out of model. Every input that moves the key must also be in the\n  change-detection path, or the cached verdict stays stale until an unrelated\n  event. The tool's answer vocabulary gets the same treatment: one value can\n  fold several states, so enumerate what each answer is emitted for before\n  mapping it to a trusted display. Two verbs of one tool are two sources —\n  know which one does the fresh work, never let the stale verb's headline\n  out-vote the fresh verb's rows, and never read a summary flag as the verdict\n  when warning rows carry the state.\n- **Every cell a test header, PR body, or request names must exist.** Grep\n  each claimed case to the test that establishes it; a design-time header\n  lists intended cells, and the reviewer reads it as coverage. A method\n  sentence (\"every launch sets X\") is the same class — grep each script for\n  how it sets X.\n- **A scorer, gate, or live check you ship is itself under test — make it FAIL\n  before round 1.** Feed every PASS predicate an empty result and one omitted\n  element: a predicate whose denominator comes from the output it scores\n  cannot fail, and `\u003C=` where coverage is claimed is not a coverage check.\n  Build the expected side from a source independent of the thing scored, and\n  ship the negative controls as executed checks.\n- **The requested head is green in CI before the request goes out** (or the\n  body says CI is pending at that head). A local pass proves your platform\n  only; a red check at the declared head spends the round on a head you will\n  replace. After the push, assert the head with\n  `git ls-remote origin refs\u002Fheads\u002F\u003Cbranch>` before `gh pr checks --watch`:\n  `gh pr view` can report the previous head for some seconds, and a watch\n  chained on it returns the old head's green checks.\n- **Never push while a reviewer round is in flight against the declared\n  head** (outside the supersede paths above). Drift during the round makes the\n  reviewer abort for a fresh round — even with a head-amendment `follow_up`\n  sent ahead — and spends one of `max_rounds`; on stacked PRs a fix on the\n  base branch drifts both. Land everything for round N+1 in one push per\n  branch, immediately before its `review_request`.\n- **Deletion PRs: sweep before requesting.** Grep the whole tree bare (no\n  `--include` filters — they skip `.sh`, templates, YAML) for every deleted\n  basename and every retired target as `make \u003Cname>`; recovery hints and\n  template header comments are the hiding spots. Land a word-boundary-anchored\n  regression scan so the class stays closed.\n- **Send when the checks above pass, and on a dispatched leg project the\n  clock first.** A control beyond the list — a second harness, a negative\n  control past the scorer's own — runs after the send or not at all: the\n  reviewer re-verifies independently, and a held request costs their idle\n  wait. When the leg runs under an autonomy admission, its clock runs until\n  the Done reply, so each round is paid from the declared\n  `estimated_minutes`: elapsed since work start + the round's wait\n  (`max_runtime_s_reviewer`) + close-out (merge, bookkeeping, Done). Over the\n  declaration → ask the human for a budget now, before the breach\n  (check-inbox → `references\u002Fautonomy.md` §E, prospective clear), not after\n  Done is composed, when the terminal finalize checkpoints and the reply\n  waits on a human clear. When no human is reachable, do not hold the round\n  on the ask — proceed, say in the status message that the clock will\n  breach, and take the terminal-time checkpoint at the finalize.\n\nFor round > 1 add `--in-reply-to \u003Cid of the reviewer's last message>` — take\nthe id from the message's `id:` field, **never** from the filename hash — and\nkeep `--conversation-id \"$CONV_ID\"` (parenting directly to the round-1 request\nid is the alternative only when no conversation id was established).\n\n**Every round, round 1 included**: post the status-only \"Review requested\" PR\ncomment (template in\n[references\u002Fterminal-checkpoints.md](references\u002Fterminal-checkpoints.md)) — it\nis the only trace of the round on the PR itself. After the send, confirm the\ndelivered copy exists at the `inbox:` path `oacp send` printed, then verify it\nagainst the reviewer's pins (`oacp verify \u003Cthat path> --project \"$PROJECT\"\n--receiver \u003CREVIEWER>`): `signed-unknown-kid` means the reviewer has not\npinned your key and will reject the request at intake —\ntell them now, threaded, instead of losing the round to it. Exit here.\n\n### 5. Wait for the reply — never in-session\n\nThe inbox watcher (`oacp watch` under a Monitor, dispatching `\u002Fcheck-inbox`)\nstarts the next invocation when the reviewer's message lands: `review_lgtm` →\nStep 8; `review_feedback` → Step 6. Re-scanning the inbox inside model turns\nviolates review_loop.md → Shell-Only Polling Rule; a stale round is the\nhuman's call to escalate (Step 10).\n\n### 6. Parse verified feedback\n\nFrom the verified `review_feedback` snapshot: `findings_packet`, `round`,\n`blocking_count`, `validated_head`, and the message `id` and\n`conversation_id` (for threading); optional `task_id`\u002F`review_round`.\n\n- `escalation: max_rounds_exceeded` or `reviewer_budget_exceeded` → Step 10.\n- Read the packet at `${OACP_HOME}\u002Fprojects\u002F${PROJECT}\u002F\u003Cfindings_packet>` as\n  `FINDINGS_CONTENT`.\n- **Leave the feedback message in the inbox**, keeping its Step 2\n  `ACCEPTED_SHA`. It is archived in Step 7 only after BOTH outbound sends\n  (`review_addressed` + the round-N+1 `review_request`) succeed, so a crash\n  re-dispatches cleanly.\n- If a task id is present: set `review_round`, `review_status:\n  needs_changes`, and append the packet path to `findings_packets`.\n\n### 7. Address findings\n\n**Leader-direct** (default for ≤2 findings, doc-only fixes, or fixes already\nverified while processing): read, edit, done. **Subagent** (larger sets):\nspawn per [references\u002Ffix-subagent-prompt.md](references\u002Ffix-subagent-prompt.md),\nthen parse its `FIX_SUMMARY` block and review the actual diff.\n\nBefore replying, **replay the reviewer's validation suite** at your head:\nrerun the packet's `qa_validation.commands_run` (retarget pinned checkout\npaths to your tree, and hardcoded temp dirs to one your sandbox permits — a\ndenied `mkdtemp` kills the probe before it proves anything) and fix what\nfails. A repro probe encodes the defect, so after the fix it may throw at the\nline that assumed the defect happened — that throw is the pass: wrap that\nread, keep the assertion, and say so in `review_addressed` rather than\nsilently editing the probe's claim. Name any proactively fixed, unfiled probe\nin `review_addressed`. A booted-app or render check may stay un-rerun only\nwhen the fix's files sit outside the bundle's import graph — grep the\nimporters and say so.\n\n**Adversarially probe your own fix before sending `review_addressed`.** Probe\na library the way the fix configures it — the same options, callbacks, and\npredicates the app passes — never bare. When you author both implementation\nand tests, the tests encode your blind spot: reproduce every filed finding\nfirst, then probe past the filed set with cases chosen to break the fix; the\nreviewer's cases are a sample, not the class. When the fix is executable copy\n(a command recipe in a page, README, or doc), run the text as rendered —\nextract the command lines from the build output and run them under zsh and\nbash with their variables unset; a hand-substituted equivalent tests your\nparaphrase, not the page.\n\n**Close the class, not the row.** When a finding is one instance of a finite\ngrammar (shell redirect operators, an option table, a long-option\nabbreviation rule), the fix round enumerates the whole grammar in tests\ninstead of fixing the filed row plus a hand-picked neighbour — every\nun-enumerated round loses to the next neighbour. When the grammar has two\nstrip passes or two operator classes, enumerate their compositions, not each\nclass alone: a command grammar closed for keywords and for wrappers\nseparately still let `time ! git commit` through, because the keyword strip\nran once, before the wrapper strip exposed the `!`. If a fix moves an internal\ncall path the reviewer's probes monkeypatch, name the new patch target in\n`review_addressed`. When the fix adds a lock, say that too: a probe that nests\na second invocation in the same thread now blocks on it (`flock` is not\nreentrant), so run their probe retargeted — the overlap on a thread or a\nsecond process — before the reply, never as written.\n\n**Measure a convention finding against the whole file before fixing it.** A\nreviewer sees the diff; complying with \"your changed lines deviate from the\ndocumented contract\" can make the changed lines the only ones that follow it.\nRun a comparator over every row first: if the untouched rows share your\ndeviation, the documentation is the defect — correct it and push back with\nthe counts instead of normalizing a few rows.\n\n**Check the aggregate before composing any fix round.** A blocking count flat\nacross two consecutive rounds, or a cumulative fix delta (`git diff\n\u003Cround-1-head> --shortstat`) rivaling the original change, means the loop is\ninflating the artifact rather than converging — raise the scope question to\nthe human (\"is this the right depth?\") instead of pushing the fix.\n\n**On a dispatched task, recount the files between the commit and the push\nbelow.** An envelope hook cannot count files a scratchpad script writes, so\nthe recount is the guard — and it runs after the commit, because a\n`\u003Cbase>...HEAD` range compares commits only and misses the fix it is about to\nadd:\n\n```bash\ngit -C \"$REPO_PATH\" diff --name-only \u003Cbase>...HEAD | sort -u | wc -l   # after the commit, before the push; every PR and repo of the task, vs the dispatch's expected_files_touched\n```\n\nA fix round that crosses the declared count is the check-inbox §E\ncheckpoint: record it and get the in-session clear BEFORE the push, not at\nthe terminal finalize, where the Done then waits on the human.\n\nThen commit and push:\n\n```bash\ngit -C \"$REPO_PATH\" add \u003Cfiles_modified>        # explicit paths, never -A\ngit -C \"$REPO_PATH\" commit -m \"Address review findings (round \u003CN>)\n\n\u003CF-xxx: one line each>\n\n\u003Cyour runtime's attribution trailer, verbatim>\"\ngit -C \"$REPO_PATH\" push origin \"$BRANCH\"        # auth per Step 1\nNEW_HEAD=$(git -C \"$REPO_PATH\" rev-parse HEAD)\n```\n\nSend replies, each with `--conversation-id \"$CONV_ID\"` and `--in-reply-to\n\u003Cfeedback message id>`, bodies built as in Step 4:\n\n1. Per pushed-back finding: a `question` carrying the reason.\n2. `review_addressed` (idempotency check first), subject `Feedback addressed:\n   round \u003CN> (#\u003CPR_NUMBER>)`:\n\n   ```yaml\n   commit_sha: \u003CNEW_HEAD>\n   validated_head: \u003CNEW_HEAD>\n   round: \u003CN>                 # the round whose feedback this addresses\n   changes_summary: |\n     \u003Cfixed \u002F deferred \u002F pushed-back summary>\n   touched_files:\n     - \u003Ceach modified file>\n   addressed_finding_ids:\n     - \u003Ceach fixed F-id>\n   task_id: \u003CTASK_ID>\n   review_round: \u003CN>\n   ```\n\n3. A fresh round-N+1 `review_request` (Step 4 contract at `NEW_HEAD`,\n   `side_effects:` included).\n4. Status-only PR comments: \"Feedback addressed (round N)\" for this round,\n   then the \"Review requested\" comment the round-N+1 request takes under\n   Step 4's every-round rule — templates in\n   [references\u002Fterminal-checkpoints.md](references\u002Fterminal-checkpoints.md).\n5. **Now** archive the feedback message with the terminal archival helper\n   (below) against `ACCEPTED_SHA`. If the next round would exceed\n   `MAX_ROUNDS`, the next feedback escalates (Step 10). Exit; the watcher\n   re-dispatches on the reply.\n\n### 8. Handle LGTM\n\nFull checkpoint in\n[references\u002Fterminal-checkpoints.md](references\u002Fterminal-checkpoints.md):\n`quality_gate_result: pass` + `merge_ready: true`; **compare `validated_head`\nto the live PR head** (mismatch = stale LGTM — request a fresh round instead);\nread `withheld_side_effects`; adopt structured `nits`; update task fields; PR\ncomment; archive the message after bookkeeping (`ACCEPTED_SHA` captured at\nread time, terminal archival helper). Do NOT merge here. Then Step 9 and\nreport `STATUS: PASSED`.\n\n**Exception — a dispatched task whose admission approved `merges_pr`** (the\ntask profile declares it and the human's approval covered it): the author\nmerges right after this checkpoint, still bound to the validated head —\n`gh pr merge \u003CN> --repo \u003Cowner\u002Frepo> --squash --match-head-commit\n\u003Cvalidated_head>`, from a cwd outside any worktree that has the branch\nchecked out, without `--delete-branch` — then the dispatch's close-out (Done\nreply, terminal finalize, archive). An LGTM outside such an admission still\nends at Step 9 with the merge left to the human.\n\n**A post-LGTM commit trades the approval — so a nit fix is a decision, not a\ncourtesy.** On a ruleset-protected repository, a push after the approval\ndismisses the review and the PR needs another round to become mergeable.\nDefault: do not push a nit fix after LGTM — adopt the nit per the LGTM\ncheckpoint in\n[references\u002Fterminal-checkpoints.md](references\u002Fterminal-checkpoints.md),\nwhich owns where it lives (including the `files_issues` bound on a dispatched\ntask), and say so in the terminal report. Push it only when it is blocking,\nwhen the reviewer is live and will re-approve in the same round, or when the\nhuman says to — never silently.\n\n### 9. Clean up\n\nArchive remaining processed messages for **this PR only** with the terminal\narchival helper; anything pending, held, or unverified stays in the inbox.\n\n### 10. Timeout or escalation\n\n**Timeout only — mandatory final drain**: re-run the Step 2 scan one last\ntime; a matching response voids the timeout (process it normally, send no\ntimeout messaging). Otherwise follow\n[references\u002Fterminal-checkpoints.md](references\u002Fterminal-checkpoints.md):\nescalation notification to the team lead, status-only PR comment, Step 9,\nthen `STATUS: ESCALATED` or `STATUS: TIMEOUT`. After an escalation the loop\nstops pending fresh human direction; a per-round sanction never becomes a\nstanding grant unless the human explicitly grants one.\n\n**When the human sanctions more rounds**, compose per\n[references\u002Fterminal-checkpoints.md → Sanctioned continuation](references\u002Fterminal-checkpoints.md):\n`human_direction:` (who, when, scope) + `max_rounds` bumped + explicit\n`--parent-message-id`\u002F`--conversation-id` threading to the archived\nescalating feedback for a per-round sanction; a standing\ncontinue-until-LGTM grant rides EVERY later round with `max_rounds` at\ncurrent+1 and a named circuit-breaker round. Fix and push BEFORE the sanction\nask. Passing your own breaker needs an explicit human \"continue until merged\",\nstated verbatim on both messages, re-armed, and disclosed in the Done reply.\n\n**Before putting options in front of the human**, read the organization's\nstanding rules for the escalation reason and offer a standing answer as one\nof the options; executing a split or closing the escalation by scope\nreduction follows\n[references\u002Fterminal-checkpoints.md → Options, splits, and descoping](references\u002Fterminal-checkpoints.md).\n\n## Terminal archival helper\n\nProcessed messages are archived, never deleted: a digest-checked, no-clobber\nmove of the bare inbox filename to `inbox\u002Farchive\u002F` that preserves signed\nevidence:\n\n```bash\nbash \"$SKILL_DIR\u002Fscripts\u002Foacp_archive.sh\" \"$INBOX_DIR\" \"\u003Cfilename>\" \"$ACCEPTED_SHA\"\n```\n\nExit 0 and `ARCHIVED:` only on success; every guard fails closed and exits 1.\n`RETAINED:` means nothing moved and the message stays pending (on digest\ndrift, re-verify before any further processing); `ERROR:` means the move ran\nbut a post-move check failed — inspect both paths before any retry. The\n`archive\u002F` directory is provisioned by workspace init or migration; never\ncreate it here.\n\n## Notes\n\n- **Single-pass, always**: each invocation sends its round messages and\n  exits; `\u002Fcheck-inbox` dispatches the next invocation when the reviewer\n  replies. Resumable by re-running.\n- The reviewer does not merge; the author (or human) merges only with the\n  approval the repository's policy requires, bound to `validated_head`.\n- **PR comment data-minimization**: status-only comments via `--body-file`;\n  no command output, logs, stack traces, credentials, or local paths — detail\n  belongs in protocol messages and findings packets.\n- **A stacked PR dies with its base branch — merge the parent without\n  `--delete-branch`.** `gh pr merge --delete-branch` deletes the parent's ref\n  through the API, GitHub then closes every PR based on it, and `gh pr reopen`\n  is refused once the head is force-pushed. On a repository that deletes\n  merged branches itself, merge the parent without the flag and GitHub\n  retargets the child to the parent's base. On one that does not, run\n  `gh pr edit \u003Cchild> --base main` before the merge (no head change, no review\n  drift). Either way: record the parent's head before merging, merge, confirm\n  the child is still open on main, then `git fetch origin main` and check that\n  `origin\u002Fmain` contains the parent's merge commit (`git merge-base\n  --is-ancestor \u003Cmerge-commit> origin\u002Fmain`; a stale `origin\u002Fmain` drops the\n  parent's changes from the restacked child), then `git rebase --onto\n  origin\u002Fmain \u003Cparent-pre-merge-head> \u003Cchild-branch>`, then — BEFORE the\n  lease-push — run Step 4's reviewer-started check. Not started → push and send a superseding\n  `review_request` at the new head (tree identity stated in\n  `supersede_reason`), at no round cost. Started, no verdict yet → Step 4's\n  author-pause sequence: the threaded pause notice before the push, then the\n  replacement `review_request` at the new head. A `follow_up` cannot re-point\n  a started round — the reviewer stops on the drift and only a fresh request\n  starts a new invocation. Verdict already landed → process it, then push and\n  request round N+1 at the new head. Recovery when the parent already merged:\n  open a successor PR from the same branch onto main (\"Supersedes #N\", carry\n  its `Closes` lines), comment on the dead PR, and send a fresh round-1\n  `review_request` for the successor; a sanction given for the dead PR does\n  not carry over to it without the human's word. Either way the child's head\n  changes once, so budget that one re-request when a stack is coming — or,\n  when the child need not be reviewed in parallel, open it for visibility and\n  send its round-1 request only after the restack: no re-request, CI at the\n  final head, serial review latency as the cost. When CI runs\n  only on PRs into main, the child gets no checks while it targets the parent\n  branch: its request says CI fires on the retarget and names the local suite\n  run instead.\n","# \u002Freview-loop-author — Author-Side Review Loop\n\nThe **leader** (this session) owns all protocol state and side effects: inbox\nI\u002FO, verification, git\u002Fgh, message sends, and the final decision each round.\nCode fixes are leader-direct for small fix sets; for larger sets spawn the\nfix-only subagent per [references\u002Ffix-subagent-prompt.md](references\u002Ffix-subagent-prompt.md).\nSubagents never hold OACP state or perform side effects.\n\nProtocol truth lives in the OACP runtime's `docs\u002Fprotocol\u002Freview_loop.md` and\n`dispatch_states.yaml`; they override this skill on conflict.\n\n`SKILL_DIR=\"${CLAUDE_SKILL_DIR}\"` — the directory holding this file and its\n`scripts\u002F` (set it by hand if your runtime does not substitute the variable).\nSnippets here use named variables only: the Skill tool substitutes invocation\narguments into `$`-digit tokens at render time, so a bare positional in a code\nblock silently becomes an argument value.\n\n## Arguments\n\n```\n\u002Freview-loop-author \u003CPR_NUMBER> --reviewer \u003Cname> [--project \u003Cname>] [--task-id \u003Cid>] [--max-rounds 2] [--dry-run]\n```\n\n- `PR_NUMBER` — required positional.\n- `--reviewer` — required. Exception: when the inbox already holds a verified\n  `review_feedback` (or review-shaped `notification`) for this PR, infer the\n  reviewer from its `from:` field.\n- `--project` — for a new loop, must match the PR repository's OACP binding\n  (Step 1); an existing loop keeps its original project.\n- `--task-id` — optional; enables task-state updates.\n- `--max-rounds` — default **2** (protocol default), maximum 3. A round past\n  the cap needs fresh human direction (Step 10).\n- `--dry-run` — show the plan, change nothing.\n\n## Instructions\n\n### 1. Gather context and check preconditions\n\nFor a new loop, resolve the PR's base repository to its OACP project through\nthat repository's `.oacp` marker, and confirm the checkout's remote is the PR\nrepository — a directory name or the session's current project is not enough.\nValidate any `--project` override against that binding; with no readable\nmarker, stop and ask. Run the loop from the owning repository's author session\nso the reviewer's replies reach its own-project watcher. An existing loop keeps\nits original project and conversation for every later round; moving it needs\nan explicit supersede (Step 4), never a duplicate request.\n\n```bash\nREPO_PATH=$(git rev-parse --show-toplevel)\nBRANCH=$(git -C \"$REPO_PATH\" rev-parse --abbrev-ref HEAD)\nREPO=$(gh repo view --json nameWithOwner -q .nameWithOwner)\nBASE=$(gh pr view \u003CPR_NUMBER> --json baseRefName -q .baseRefName)\n# .oacp sits at the MAIN checkout root; in a linked worktree --show-toplevel is the worktree\nMAIN_ROOT=$(dirname \"$(git -C \"$REPO_PATH\" rev-parse --path-format=absolute --git-common-dir)\")\nPROJECT=${PROJECT_FLAG:-$(python3 -c 'import json,sys; print(json.load(open(sys.argv[1]))[\"project_name\"])' \"$MAIN_ROOT\u002F.oacp\")}\nOACP_HOME=\"${OACP_HOME:-$HOME\u002Foacp}\"\nINBOX_DIR=\"${OACP_HOME}\u002Fprojects\u002F${PROJECT}\u002Fagents\u002Fclaude\u002Finbox\"\n```\n\nUse the GitHub identity the project's instructions require — for example a\nshort-lived App token generated inline per command, exported as `GH_TOKEN`\nfor `gh`, and injected per push via\n`git -c http.https:\u002F\u002Fgithub.com\u002F.extraheader=…`, never persisted to a file or\nthe remote URL.\n\n**Receiver routing:** send a new loop's `review_request` to the reviewer\nregistered in the PR repository's project workspace. Confirm the sender and\nreviewer are both registered there and that each has pinned the other's key —\nan inbox directory alone is not readiness evidence. Missing, ambiguous, or\nstale registration holds the send for setup; never fall back to another\nworkspace because its reviewer is easier to reach. Registration and delivery\ndo not admit the review — the reviewer's autonomy gate does.\n\nVerify, report failures, and stop on: PR exists; current branch is the PR head\nbranch; PR is `MERGEABLE` (if `CONFLICTING`, rebase onto the base branch and\n`git push --force-with-lease --force-if-includes` **before** requesting review\n— a post-review force-push dismisses the approval and wastes a round);\n`INBOX_DIR` and the reviewer's inbox exist; `oacp send --help` works;\n`gh auth status` passes. A missing inbox in an existing workspace means that\nagent was never registered there: `oacp agent add \u003Cproject> \u003Cagent> --runtime\n\u003Cruntime>`, then exchange keys (`oacp trust import`) before the first send.\n\n### 2. Scan the inbox (verified intake)\n\n```bash\ncommand ls -1 \"$INBOX_DIR\" | command grep '\\.yaml$'      # candidates; archive\u002F is a subdir\nSNAP=\"$(mktemp)\"; cp \"$INBOX_DIR\u002F\u003Cfile>\" \"$SNAP\"         # immutable snapshot, read once\nACCEPTED_SHA=$(shasum -a 256 \"$SNAP\" | cut -d' ' -f1)\noacp verify \"$SNAP\" --project \"$PROJECT\" --receiver claude --oacp-dir \"$OACP_HOME\" --json\n```\n\nCandidates are messages from the reviewer with `related_pr` equal to this PR.\n**Verified-intake rule** (every inbound read in this skill): verify and parse\nonly the snapshot; the live file is compared against `ACCEPTED_SHA` only at\narchival, which the archival script does. Shell variables do not persist\nbetween Bash calls — carry the literal `SNAP` path and `ACCEPTED_SHA` forward.\nProcess a message only when `oacp verify` reports `signed-verified` (JSON\n`status: verified`), under any verify posture. Any other outcome — unsigned,\nunverifiable, `signed-INVALID` — means do NOT process and do NOT archive: keep\nthe evidence (`--quarantine` copies an INVALID message to `dead_letter\u002F`) and\nsurface it to the user.\n\nRoute by type: `review_lgtm` → Step 8. `review_feedback` (or a review-shaped\n`notification` — see [references\u002Fterminal-checkpoints.md](references\u002Fterminal-checkpoints.md))\n→ Step 6. Nothing → Step 3.\n\nAlso check GitHub for out-of-band feedback (issue comments, review comments,\nreviews via `gh api`); note anything actionable that is not in the inbox.\n\n### 3. Show plan\n\nPrint PR, repo, branch, reviewer, project, task id, round, max rounds, inbox\npath. If `--dry-run`, stop here.\n\n### 4. Send review_request\n\nIdempotency first: if your outbox or the reviewer's inbox already holds a\n`review_request` for this PR+round, skip the send.\n\n```bash\nREQUESTED_HEAD=$(git -C \"$REPO_PATH\" rev-parse HEAD)   # full SHA, verbatim; must equal the pushed PR head\ngit -C \"$REPO_PATH\" diff --histogram --shortstat \"origin\u002F$BASE...$BRANCH\"\nCONV_ID=\"conv-$(date -u +%Y%m%d)-claude-\u003CPR_NUMBER>\"   # schema: conv-\u003CYYYYMMDD>-\u003Cagent>-\u003Cseq>\n```\n\nBody fields (review_loop.md names; `requested_head` and `review_round` are\nlegacy duplicates for older reviewer tooling):\n\n```yaml\npr: \u003CPR_NUMBER>\nrepo: \u003COWNER\u002FREPO>\nbranch: \u003CBRANCH>\nround: \u003CN>\nmax_rounds: \u003CMAX_ROUNDS>\ndeclared_head: \u003CREQUESTED_HEAD>\nrequested_head: \u003CREQUESTED_HEAD>\nreview_round: \u003CN>\ndiff_summary: |\n  \u003C2-4 lines>\ntask_id: \u003CTASK_ID>\nmax_turns_reviewer: 8\nmax_runtime_s_reviewer: 600\nside_effects:\n  - writes_findings_packet\n  - sends_oacp_reply\n  - comments_on_github        # status comments; only when intended and permitted\n  - submits_github_review     # GitHub approval; only when needed and permitted\n```\n\nThe reviewer parses the body with `yaml.safe_load`, and a hand-written scalar\ncontaining a colon-space or a leading quote breaks it. Build the body as a mapping,\n`yaml.safe_dump(body, sort_keys=False, width=100000)`, assert\n`yaml.safe_load(text) == body`, write it to a temp file, and send:\n\n```bash\noacp send \"$PROJECT\" \\\n  --from claude --to \u003CREVIEWER> --type review_request \\\n  --subject \"Review: PR #\u003CPR_NUMBER> (round \u003CN>)\" \\\n  --conversation-id \"$CONV_ID\" --body-file \"$BODY_FILE\" \\\n  --related-pr \u003CPR_NUMBER> --priority P1 --oacp-dir \"$OACP_HOME\"\n```\n\nThis contract applies to every `review_request` you send as author, from any\nflow — task dispatch, inline continuation rounds, batched sibling PRs. Re-read\nthis step before composing one, and after any context compaction; the\n`side_effects:` block and the verbatim heads are the parts that drop.\n\n- **Heads**: both head fields carry the same verbatim `rev-parse` output. They\n  are context for the reviewer, never evidence — the reviewer binds its\n  verdict to the live head it fetches.\n- **Thread identity**: `CONV_ID` must match\n  `^conv-\\d{8}-[A-Za-z0-9._-]{1,64}-\\d{1,6}$` (UTC date; the PR number is a\n  natural sequence when it has six digits or fewer — pick a fresh sequence for\n  a second thread on the same PR and day). Carry it verbatim on EVERY loop\n  message: continuation-grant evidence matches an equal `conversation_id` or\n  an immediate parent only (no chain traversal), and an archived message\n  cannot donate a conversation to `--in-reply-to` — thread to one with\n  explicit `--parent-message-id` + `--conversation-id`.\n- **Grants**: the receiver's continuation gate reads only `round` and\n  `side_effects`; `repo` is required on granted rounds so the reviewer can\n  validate the thread's repository and PR.\n- **Side effects**: declare the round's GitHub actions on every request that\n  expects one. Omission declares only the defaults (findings packet + OACP\n  reply), and the reviewer withholds anything undeclared — on a\n  ruleset-protected repository a withheld `submits_github_review` blocks the\n  merge and costs a round-trip. On a grant-governed thread declare only what\n  the grant permits; an expanding declaration pauses the round\n  (`continuation_grant_scope_exceeded`).\n\n**Superseding a request** (review_loop.md → Superseding a Request):\n\n- **Defective request already sent**: send a contract-complete replacement\n  with `supersedes_message_id: \u003Cdefective id>` and `supersede_reason:` (\"same\n  ask, same head\" when only the body was wrong), `--in-reply-to` the defective\n  message, same `--conversation-id`. The reviewer acts on the replacement only\n  and closes the original. Never leave two live requests for one round, or\n  re-send without the marker.\n- **Head change before the reviewer starts — no round cost**: before pushing\n  over an in-flight request, check the reviewer's\n  `agents\u002F\u003Creviewer>\u002Faudit\u002Fautonomy_decisions\u002F` for a record naming the\n  request's id, and its `status.yaml` `current_task`. Both empty → no head is\n  materialized: push, then send the replacement at the NEW head with\n  `supersede_reason` naming the old head void.\n- **Head change after the reviewer started, before any verdict**: announce\n  first. (1) Before any push, a `notification` threaded on the request —\n  \"author pause: declared_head `\u003Csha>` will be replaced, stop at that head\" —\n  naming the human direction behind it; (2) do the work locally, one push;\n  (3) the replacement at the new head at the same `round: \u003CN>` — a fresh\n  admission, not a continuation of the cancelled round, which produced no\n  verdict and consumes nothing — with `supersede_reason` (old head void, what\n  changed), `human_direction:` when a human asked for the scope change, and\n  what is new since the superseded request so the reviewer can reuse its\n  partial work. A verdict that lands before your push is round-N\n  output: process it, and the replacement becomes round N+1.\n\n**Pre-request checks, every round:**\n\n- **Round 1 declares the artifact's class and threat model** in the body\n  (`artifact_class:` plus what it defends against). Authorization, evidence,\n  and transaction machinery earns invariant-maximal closure — and where that\n  bar is \"every X is collected\" over a finite grammar, the enumerated grammar\n  is the round-1 bar (Step 7). Diagnostics, docs, and convenience surfaces do\n  not, so out-of-model hardening findings can be answered as advisory.\n  Undeclared, the reviewer discovers the bar one adjacent gap per round.\n- **Size the reviewable surface before asking.** Count the diff minus\n  fixtures, lockfiles, snapshots, and generated payloads: ~100 such lines\n  review well, ~1,000 do not. Above a few hundred, split before requesting or\n  say in the body why it must land whole — a split now is free; after\n  `max_rounds_exceeded` it costs the loop. Every size figure in the request is\n  pasted from the output of\n  `bash \"$SKILL_DIR\u002Fscripts\u002Fdiff_sizes.sh\" \"$REPO_PATH\" \u003Cbase> \u003Chead>` run at\n  the declared head — its per-file `--histogram --numstat` rows and\n  `--shortstat` totals. Build the body from that output: a figure estimated,\n  summed by hand from the rows, or retyped from an earlier round's body is an\n  estimate. For a lockfile, add a semantic compare of its package map\n  (removed \u002F added \u002F changed counts) — paste the output of\n  `python3 \"$SKILL_DIR\u002Fscripts\u002Flockfile_compare.py\" --repo \u003Cdir> --base main --head \u003Cbranch> [--path package-lock.json]`\n  (`pnpm-lock.yaml` by default); a line diff turns a removed subtree into\n  alignment noise.\n- **A gap you noticed and deferred is a round-1 blocker when it sits inside\n  the declared grammar.** Sweep your design notes for anything waved off as\n  \"another module's business\" or \"not this leg\" — a predicate the code trusts\n  but did not close, a check delegated to a user-editable file — and fix it or\n  name it out of model. The same holds for a caveat written for a later leg\n  when the current leg's code already relies on its negation.\n- **When the artifact caches or mirrors an external tool's verdicts,\n  enumerate the tool's inputs from its source** (what the verdict path opens),\n  not from the arguments you pass, and put every input in the key or name it\n  out of model. Every input that moves the key must also be in the\n  change-detection path, or the cached verdict stays stale until an unrelated\n  event. The tool's answer vocabulary gets the same treatment: one value can\n  fold several states, so enumerate what each answer is emitted for before\n  mapping it to a trusted display. Two verbs of one tool are two sources —\n  know which one does the fresh work, never let the stale verb's headline\n  out-vote the fresh verb's rows, and never read a summary flag as the verdict\n  when warning rows carry the state.\n- **Every cell a test header, PR body, or request names must exist.** Grep\n  each claimed case to the test that establishes it; a design-time header\n  lists intended cells, and the reviewer reads it as coverage. A method\n  sentence (\"every launch sets X\") is the same class — grep each script for\n  how it sets X.\n- **A scorer, gate, or live check you ship is itself under test — make it FAIL\n  before round 1.** Feed every PASS predicate an empty result and one omitted\n  element: a predicate whose denominator comes from the output it scores\n  cannot fail, and `\u003C=` where coverage is claimed is not a coverage check.\n  Build the expected side from a source independent of the thing scored, and\n  ship the negative controls as executed checks.\n- **The requested head is green in CI before the request goes out** (or the\n  body says CI is pending at that head). A local pass proves your platform\n  only; a red check at the declared head spends the round on a head you will\n  replace. After the push, assert the head with\n  `git ls-remote origin refs\u002Fheads\u002F\u003Cbranch>` before `gh pr checks --watch`:\n  `gh pr view` can report the previous head for some seconds, and a watch\n  chained on it returns the old head's green checks.\n- **Never push while a reviewer round is in flight against the declared\n  head** (outside the supersede paths above). Drift during the round makes the\n  reviewer abort for a fresh round — even with a head-amendment `follow_up`\n  sent ahead — and spends one of `max_rounds`; on stacked PRs a fix on the\n  base branch drifts both. Land everything for round N+1 in one push per\n  branch, immediately before its `review_request`.\n- **Deletion PRs: sweep before requesting.** Grep the whole tree bare (no\n  `--include` filters — they skip `.sh`, templates, YAML) for every deleted\n  basename and every retired target as `make \u003Cname>`; recovery hints and\n  template header comments are the hiding spots. Land a word-boundary-anchored\n  regression scan so the class stays closed.\n- **Send when the checks above pass, and on a dispatched leg project the\n  clock first.** A control beyond the list — a second harness, a negative\n  control past the scorer's own — runs after the send or not at all: the\n  reviewer re-verifies independently, and a held request costs their idle\n  wait. When the leg runs under an autonomy admission, its clock runs until\n  the Done reply, so each round is paid from the declared\n  `estimated_minutes`: elapsed since work start + the round's wait\n  (`max_runtime_s_reviewer`) + close-out (merge, bookkeeping, Done). Over the\n  declaration → ask the human for a budget now, before the breach\n  (check-inbox → `references\u002Fautonomy.md` §E, prospective clear), not after\n  Done is composed, when the terminal finalize checkpoints and the reply\n  waits on a human clear. When no human is reachable, do not hold the round\n  on the ask — proceed, say in the status message that the clock will\n  breach, and take the terminal-time checkpoint at the finalize.\n\nFor round > 1 add `--in-reply-to \u003Cid of the reviewer's last message>` — take\nthe id from the message's `id:` field, **never** from the filename hash — and\nkeep `--conversation-id \"$CONV_ID\"` (parenting directly to the round-1 request\nid is the alternative only when no conversation id was established).\n\n**Every round, round 1 included**: post the status-only \"Review requested\" PR\ncomment (template in\n[references\u002Fterminal-checkpoints.md](references\u002Fterminal-checkpoints.md)) — it\nis the only trace of the round on the PR itself. After the send, confirm the\ndelivered copy exists at the `inbox:` path `oacp send` printed, then verify it\nagainst the reviewer's pins (`oacp verify \u003Cthat path> --project \"$PROJECT\"\n--receiver \u003CREVIEWER>`): `signed-unknown-kid` means the reviewer has not\npinned your key and will reject the request at intake —\ntell them now, threaded, instead of losing the round to it. Exit here.\n\n### 5. Wait for the reply — never in-session\n\nThe inbox watcher (`oacp watch` under a Monitor, dispatching `\u002Fcheck-inbox`)\nstarts the next invocation when the reviewer's message lands: `review_lgtm` →\nStep 8; `review_feedback` → Step 6. Re-scanning the inbox inside model turns\nviolates review_loop.md → Shell-Only Polling Rule; a stale round is the\nhuman's call to escalate (Step 10).\n\n### 6. Parse verified feedback\n\nFrom the verified `review_feedback` snapshot: `findings_packet`, `round`,\n`blocking_count`, `validated_head`, and the message `id` and\n`conversation_id` (for threading); optional `task_id`\u002F`review_round`.\n\n- `escalation: max_rounds_exceeded` or `reviewer_budget_exceeded` → Step 10.\n- Read the packet at `${OACP_HOME}\u002Fprojects\u002F${PROJECT}\u002F\u003Cfindings_packet>` as\n  `FINDINGS_CONTENT`.\n- **Leave the feedback message in the inbox**, keeping its Step 2\n  `ACCEPTED_SHA`. It is archived in Step 7 only after BOTH outbound sends\n  (`review_addressed` + the round-N+1 `review_request`) succeed, so a crash\n  re-dispatches cleanly.\n- If a task id is present: set `review_round`, `review_status:\n  needs_changes`, and append the packet path to `findings_packets`.\n\n### 7. Address findings\n\n**Leader-direct** (default for ≤2 findings, doc-only fixes, or fixes already\nverified while processing): read, edit, done. **Subagent** (larger sets):\nspawn per [references\u002Ffix-subagent-prompt.md](references\u002Ffix-subagent-prompt.md),\nthen parse its `FIX_SUMMARY` block and review the actual diff.\n\nBefore replying, **replay the reviewer's validation suite** at your head:\nrerun the packet's `qa_validation.commands_run` (retarget pinned checkout\npaths to your tree, and hardcoded temp dirs to one your sandbox permits — a\ndenied `mkdtemp` kills the probe before it proves anything) and fix what\nfails. A repro probe encodes the defect, so after the fix it may throw at the\nline that assumed the defect happened — that throw is the pass: wrap that\nread, keep the assertion, and say so in `review_addressed` rather than\nsilently editing the probe's claim. Name any proactively fixed, unfiled probe\nin `review_addressed`. A booted-app or render check may stay un-rerun only\nwhen the fix's files sit outside the bundle's import graph — grep the\nimporters and say so.\n\n**Adversarially probe your own fix before sending `review_addressed`.** Probe\na library the way the fix configures it — the same options, callbacks, and\npredicates the app passes — never bare. When you author both implementation\nand tests, the tests encode your blind spot: reproduce every filed finding\nfirst, then probe past the filed set with cases chosen to break the fix; the\nreviewer's cases are a sample, not the class. When the fix is executable copy\n(a command recipe in a page, README, or doc), run the text as rendered —\nextract the command lines from the build output and run them under zsh and\nbash with their variables unset; a hand-substituted equivalent tests your\nparaphrase, not the page.\n\n**Close the class, not the row.** When a finding is one instance of a finite\ngrammar (shell redirect operators, an option table, a long-option\nabbreviation rule), the fix round enumerates the whole grammar in tests\ninstead of fixing the filed row plus a hand-picked neighbour — every\nun-enumerated round loses to the next neighbour. When the grammar has two\nstrip passes or two operator classes, enumerate their compositions, not each\nclass alone: a command grammar closed for keywords and for wrappers\nseparately still let `time ! git commit` through, because the keyword strip\nran once, before the wrapper strip exposed the `!`. If a fix moves an internal\ncall path the reviewer's probes monkeypatch, name the new patch target in\n`review_addressed`. When the fix adds a lock, say that too: a probe that nests\na second invocation in the same thread now blocks on it (`flock` is not\nreentrant), so run their probe retargeted — the overlap on a thread or a\nsecond process — before the reply, never as written.\n\n**Measure a convention finding against the whole file before fixing it.** A\nreviewer sees the diff; complying with \"your changed lines deviate from the\ndocumented contract\" can make the changed lines the only ones that follow it.\nRun a comparator over every row first: if the untouched rows share your\ndeviation, the documentation is the defect — correct it and push back with\nthe counts instead of normalizing a few rows.\n\n**Check the aggregate before composing any fix round.** A blocking count flat\nacross two consecutive rounds, or a cumulative fix delta (`git diff\n\u003Cround-1-head> --shortstat`) rivaling the original change, means the loop is\ninflating the artifact rather than converging — raise the scope question to\nthe human (\"is this the right depth?\") instead of pushing the fix.\n\n**On a dispatched task, recount the files between the commit and the push\nbelow.** An envelope hook cannot count files a scratchpad script writes, so\nthe recount is the guard — and it runs after the commit, because a\n`\u003Cbase>...HEAD` range compares commits only and misses the fix it is about to\nadd:\n\n```bash\ngit -C \"$REPO_PATH\" diff --name-only \u003Cbase>...HEAD | sort -u | wc -l   # after the commit, before the push; every PR and repo of the task, vs the dispatch's expected_files_touched\n```\n\nA fix round that crosses the declared count is the check-inbox §E\ncheckpoint: record it and get the in-session clear BEFORE the push, not at\nthe terminal finalize, where the Done then waits on the human.\n\nThen commit and push:\n\n```bash\ngit -C \"$REPO_PATH\" add \u003Cfiles_modified>        # explicit paths, never -A\ngit -C \"$REPO_PATH\" commit -m \"Address review findings (round \u003CN>)\n\n\u003CF-xxx: one line each>\n\n\u003Cyour runtime's attribution trailer, verbatim>\"\ngit -C \"$REPO_PATH\" push origin \"$BRANCH\"        # auth per Step 1\nNEW_HEAD=$(git -C \"$REPO_PATH\" rev-parse HEAD)\n```\n\nSend replies, each with `--conversation-id \"$CONV_ID\"` and `--in-reply-to\n\u003Cfeedback message id>`, bodies built as in Step 4:\n\n1. Per pushed-back finding: a `question` carrying the reason.\n2. `review_addressed` (idempotency check first), subject `Feedback addressed:\n   round \u003CN> (#\u003CPR_NUMBER>)`:\n\n   ```yaml\n   commit_sha: \u003CNEW_HEAD>\n   validated_head: \u003CNEW_HEAD>\n   round: \u003CN>                 # the round whose feedback this addresses\n   changes_summary: |\n     \u003Cfixed \u002F deferred \u002F pushed-back summary>\n   touched_files:\n     - \u003Ceach modified file>\n   addressed_finding_ids:\n     - \u003Ceach fixed F-id>\n   task_id: \u003CTASK_ID>\n   review_round: \u003CN>\n   ```\n\n3. A fresh round-N+1 `review_request` (Step 4 contract at `NEW_HEAD`,\n   `side_effects:` included).\n4. Status-only PR comments: \"Feedback addressed (round N)\" for this round,\n   then the \"Review requested\" comment the round-N+1 request takes under\n   Step 4's every-round rule — templates in\n   [references\u002Fterminal-checkpoints.md](references\u002Fterminal-checkpoints.md).\n5. **Now** archive the feedback message with the terminal archival helper\n   (below) against `ACCEPTED_SHA`. If the next round would exceed\n   `MAX_ROUNDS`, the next feedback escalates (Step 10). Exit; the watcher\n   re-dispatches on the reply.\n\n### 8. Handle LGTM\n\nFull checkpoint in\n[references\u002Fterminal-checkpoints.md](references\u002Fterminal-checkpoints.md):\n`quality_gate_result: pass` + `merge_ready: true`; **compare `validated_head`\nto the live PR head** (mismatch = stale LGTM — request a fresh round instead);\nread `withheld_side_effects`; adopt structured `nits`; update task fields; PR\ncomment; archive the message after bookkeeping (`ACCEPTED_SHA` captured at\nread time, terminal archival helper). Do NOT merge here. Then Step 9 and\nreport `STATUS: PASSED`.\n\n**Exception — a dispatched task whose admission approved `merges_pr`** (the\ntask profile declares it and the human's approval covered it): the author\nmerges right after this checkpoint, still bound to the validated head —\n`gh pr merge \u003CN> --repo \u003Cowner\u002Frepo> --squash --match-head-commit\n\u003Cvalidated_head>`, from a cwd outside any worktree that has the branch\nchecked out, without `--delete-branch` — then the dispatch's close-out (Done\nreply, terminal finalize, archive). An LGTM outside such an admission still\nends at Step 9 with the merge left to the human.\n\n**A post-LGTM commit trades the approval — so a nit fix is a decision, not a\ncourtesy.** On a ruleset-protected repository, a push after the approval\ndismisses the review and the PR needs another round to become mergeable.\nDefault: do not push a nit fix after LGTM — adopt the nit per the LGTM\ncheckpoint in\n[references\u002Fterminal-checkpoints.md](references\u002Fterminal-checkpoints.md),\nwhich owns where it lives (including the `files_issues` bound on a dispatched\ntask), and say so in the terminal report. Push it only when it is blocking,\nwhen the reviewer is live and will re-approve in the same round, or when the\nhuman says to — never silently.\n\n### 9. Clean up\n\nArchive remaining processed messages for **this PR only** with the terminal\narchival helper; anything pending, held, or unverified stays in the inbox.\n\n### 10. Timeout or escalation\n\n**Timeout only — mandatory final drain**: re-run the Step 2 scan one last\ntime; a matching response voids the timeout (process it normally, send no\ntimeout messaging). Otherwise follow\n[references\u002Fterminal-checkpoints.md](references\u002Fterminal-checkpoints.md):\nescalation notification to the team lead, status-only PR comment, Step 9,\nthen `STATUS: ESCALATED` or `STATUS: TIMEOUT`. After an escalation the loop\nstops pending fresh human direction; a per-round sanction never becomes a\nstanding grant unless the human explicitly grants one.\n\n**When the human sanctions more rounds**, compose per\n[references\u002Fterminal-checkpoints.md → Sanctioned continuation](references\u002Fterminal-checkpoints.md):\n`human_direction:` (who, when, scope) + `max_rounds` bumped + explicit\n`--parent-message-id`\u002F`--conversation-id` threading to the archived\nescalating feedback for a per-round sanction; a standing\ncontinue-until-LGTM grant rides EVERY later round with `max_rounds` at\ncurrent+1 and a named circuit-breaker round. Fix and push BEFORE the sanction\nask. Passing your own breaker needs an explicit human \"continue until merged\",\nstated verbatim on both messages, re-armed, and disclosed in the Done reply.\n\n**Before putting options in front of the human**, read the organization's\nstanding rules for the escalation reason and offer a standing answer as one\nof the options; executing a split or closing the escalation by scope\nreduction follows\n[references\u002Fterminal-checkpoints.md → Options, splits, and descoping](references\u002Fterminal-checkpoints.md).\n\n## Terminal archival helper\n\nProcessed messages are archived, never deleted: a digest-checked, no-clobber\nmove of the bare inbox filename to `inbox\u002Farchive\u002F` that preserves signed\nevidence:\n\n```bash\nbash \"$SKILL_DIR\u002Fscripts\u002Foacp_archive.sh\" \"$INBOX_DIR\" \"\u003Cfilename>\" \"$ACCEPTED_SHA\"\n```\n\nExit 0 and `ARCHIVED:` only on success; every guard fails closed and exits 1.\n`RETAINED:` means nothing moved and the message stays pending (on digest\ndrift, re-verify before any further processing); `ERROR:` means the move ran\nbut a post-move check failed — inspect both paths before any retry. The\n`archive\u002F` directory is provisioned by workspace init or migration; never\ncreate it here.\n\n## Notes\n\n- **Single-pass, always**: each invocation sends its round messages and\n  exits; `\u002Fcheck-inbox` dispatches the next invocation when the reviewer\n  replies. Resumable by re-running.\n- The reviewer does not merge; the author (or human) merges only with the\n  approval the repository's policy requires, bound to `validated_head`.\n- **PR comment data-minimization**: status-only comments via `--body-file`;\n  no command output, logs, stack traces, credentials, or local paths — detail\n  belongs in protocol messages and findings packets.\n- **A stacked PR dies with its base branch — merge the parent without\n  `--delete-branch`.** `gh pr merge --delete-branch` deletes the parent's ref\n  through the API, GitHub then closes every PR based on it, and `gh pr reopen`\n  is refused once the head is force-pushed. On a repository that deletes\n  merged branches itself, merge the parent without the flag and GitHub\n  retargets the child to the parent's base. On one that does not, run\n  `gh pr edit \u003Cchild> --base main` before the merge (no head change, no review\n  drift). Either way: record the parent's head before merging, merge, confirm\n  the child is still open on main, then `git fetch origin main` and check that\n  `origin\u002Fmain` contains the parent's merge commit (`git merge-base\n  --is-ancestor \u003Cmerge-commit> origin\u002Fmain`; a stale `origin\u002Fmain` drops the\n  parent's changes from the restacked child), then `git rebase --onto\n  origin\u002Fmain \u003Cparent-pre-merge-head> \u003Cchild-branch>`, then — BEFORE the\n  lease-push — run Step 4's reviewer-started check. Not started → push and send a superseding\n  `review_request` at the new head (tree identity stated in\n  `supersede_reason`), at no round cost. Started, no verdict yet → Step 4's\n  author-pause sequence: the threaded pause notice before the push, then the\n  replacement `review_request` at the new head. A `follow_up` cannot re-point\n  a started round — the reviewer stops on the drift and only a fresh request\n  starts a new invocation. Verdict already landed → process it, then push and\n  request round N+1 at the new head. Recovery when the parent already merged:\n  open a successor PR from the same branch onto main (\"Supersedes #N\", carry\n  its `Closes` lines), comment on the dead PR, and send a fresh round-1\n  `review_request` for the successor; a sanction given for the dead PR does\n  not carry over to it without the human's word. Either way the child's head\n  changes once, so budget that one re-request when a stack is coming — or,\n  when the child need not be reviewed in parallel, open it for visibility and\n  send its round-1 request only after the restack: no re-request, CI at the\n  final head, serial review latency as the cost. When CI runs\n  only on PRs into main, the child gets no checks while it targets the parent\n  branch: its request says CI fires on the retarget and names the local suite\n  run instead.\n",{"name":5,"description":7},"main","ea78d5cce0208a15b59f6f2c49e729ba71a3c5af","skills\u002Freview-loop-author",1,"https:\u002F\u002Fgithub.com\u002Fkiloloop\u002Foacp-skills","https:\u002F\u002Foacp.dev\u002Fskills\u002F","https:\u002F\u002Fgithub.com\u002Fkiloloop","https:\u002F\u002Fkiloloop.com","2026-10-31 14:39:52",{"source":8,"skillName":5,"commands":52,"prompt":62,"zipAvailable":63},[53,56,59],{"tool":54,"command":55},"npx","npx skills add kiloloop\u002Foacp-skills --skill review-loop-author",{"tool":57,"command":58},"bunx","bunx skills add kiloloop\u002Foacp-skills --skill review-loop-author",{"tool":60,"command":61},"pnpm","pnpm dlx skills add kiloloop\u002Foacp-skills --skill review-loop-author","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fkiloloop\u002Foacp-skills\u002Fblob\u002Fmain\u002Fskills\u002Freview-loop-author\u002FSKILL.md",true,[65,71,75,79,85,89,93,98,102,106,110],{"path":66,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":69,"sourceHtmlUrl":70},"README.md","REFERENCE","参考文档",2167,"https:\u002F\u002Fgithub.com\u002Fkiloloop\u002Foacp-skills\u002Fblob\u002Fmain\u002Fskills\u002Freview-loop-author\u002FREADME.md",{"path":72,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":73,"sourceHtmlUrl":74},"references\u002Ffix-subagent-prompt.md",2707,"https:\u002F\u002Fgithub.com\u002Fkiloloop\u002Foacp-skills\u002Fblob\u002Fmain\u002Fskills\u002Freview-loop-author\u002Freferences\u002Ffix-subagent-prompt.md",{"path":76,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":77,"sourceHtmlUrl":78},"references\u002Fterminal-checkpoints.md",11342,"https:\u002F\u002Fgithub.com\u002Fkiloloop\u002Foacp-skills\u002Fblob\u002Fmain\u002Fskills\u002Freview-loop-author\u002Freferences\u002Fterminal-checkpoints.md",{"path":80,"resourceType":81,"resourceTypeDesc":82,"sizeBytes":83,"sourceHtmlUrl":84},"scripts\u002Fdiff_sizes.sh","SCRIPT","脚本",1223,"https:\u002F\u002Fgithub.com\u002Fkiloloop\u002Foacp-skills\u002Fblob\u002Fmain\u002Fskills\u002Freview-loop-author\u002Fscripts\u002Fdiff_sizes.sh",{"path":86,"resourceType":81,"resourceTypeDesc":82,"sizeBytes":87,"sourceHtmlUrl":88},"scripts\u002Flockfile_compare.py",2808,"https:\u002F\u002Fgithub.com\u002Fkiloloop\u002Foacp-skills\u002Fblob\u002Fmain\u002Fskills\u002Freview-loop-author\u002Fscripts\u002Flockfile_compare.py",{"path":90,"resourceType":81,"resourceTypeDesc":82,"sizeBytes":91,"sourceHtmlUrl":92},"scripts\u002Foacp_archive.sh",2289,"https:\u002F\u002Fgithub.com\u002Fkiloloop\u002Foacp-skills\u002Fblob\u002Fmain\u002Fskills\u002Freview-loop-author\u002Fscripts\u002Foacp_archive.sh",{"path":94,"resourceType":95,"resourceTypeDesc":96,"sizeBytes":14,"sourceHtmlUrl":97},"shared\u002F.gitkeep","OTHER","其他","https:\u002F\u002Fgithub.com\u002Fkiloloop\u002Foacp-skills\u002Fblob\u002Fmain\u002Fskills\u002Freview-loop-author\u002Fshared\u002F.gitkeep",{"path":99,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":100,"sourceHtmlUrl":101},"shared\u002FINTENT.md",3414,"https:\u002F\u002Fgithub.com\u002Fkiloloop\u002Foacp-skills\u002Fblob\u002Fmain\u002Fskills\u002Freview-loop-author\u002Fshared\u002FINTENT.md",{"path":103,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":104,"sourceHtmlUrl":105},"skill.yaml",351,"https:\u002F\u002Fgithub.com\u002Fkiloloop\u002Foacp-skills\u002Fblob\u002Fmain\u002Fskills\u002Freview-loop-author\u002Fskill.yaml",{"path":107,"resourceType":81,"resourceTypeDesc":82,"sizeBytes":108,"sourceHtmlUrl":109},"tests\u002Ftest_author_oacp_archive.py",2353,"https:\u002F\u002Fgithub.com\u002Fkiloloop\u002Foacp-skills\u002Fblob\u002Fmain\u002Fskills\u002Freview-loop-author\u002Ftests\u002Ftest_author_oacp_archive.py",{"path":111,"resourceType":81,"resourceTypeDesc":82,"sizeBytes":112,"sourceHtmlUrl":113},"tests\u002Ftest_author_size_scripts.py",6032,"https:\u002F\u002Fgithub.com\u002Fkiloloop\u002Foacp-skills\u002Fblob\u002Fmain\u002Fskills\u002Freview-loop-author\u002Ftests\u002Ftest_author_size_scripts.py",[115,126,131,156,162,171],{"skillNo":116,"name":117,"nameZh":6,"description":118,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":119,"categories":120,"keywords":121,"publishedAt":37},"01M6DSWR7WDRG7C3D31R4QKW5T","\u003Cskill-name>","\u003Cone-line description>","https:\u002F\u002Fgithub.com\u002Fkiloloop\u002Foacp-skills\u002Fblob\u002Fmain\u002Ftemplate\u002Fcodex\u002FSKILL.md",[],[122,123,124,125],"skill name","name","\u003Cskill name>","line",{"skillNo":127,"name":117,"nameZh":6,"description":118,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":128,"categories":129,"keywords":130,"publishedAt":37},"01M6DSWMRPCHQH4HJJF3MATTXZ","https:\u002F\u002Fgithub.com\u002Fkiloloop\u002Foacp-skills\u002Fblob\u002Fmain\u002Ftemplate\u002Fclaude\u002FSKILL.md",[],[122,123,124,125],{"skillNo":132,"name":133,"nameZh":6,"description":134,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":135,"categories":136,"keywords":137,"publishedAt":37},"01M6DSWH83XKNGJSKX2XWQCRKJ","wrap-up","End-of-session cleanup for Codex — inspect stale artifacts, run debrief, write significant org-memory events, run a delta-first self-improve pass, then publish bounded approved memory and repository changes.","https:\u002F\u002Fgithub.com\u002Fkiloloop\u002Foacp-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwrap-up\u002Fcodex\u002FSKILL.md",[],[138,139,140,36,141,142,143,144,145,146,147,148,29,149,150,151,152,153,154,155],"wrap up","up","wrap","memory","cleanup","artifacts","repository","publish","first","improve","write","stale","session cleanup","delta","self","end","debrief","codex",{"skillNo":157,"name":158,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":159,"categories":160,"keywords":161,"publishedAt":37},"01M6DSWEQBS2CE6F2H8T3VQNZY","claude","https:\u002F\u002Fgithub.com\u002Fkiloloop\u002Foacp-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwrap-up\u002Fclaude\u002FSKILL.md",[],[],{"skillNo":163,"name":133,"nameZh":6,"description":164,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":165,"categories":166,"keywords":167,"publishedAt":37},"01M6DSW99EPXDVAG8GHR785CC5","End-of-session cleanup, debrief, org-memory events, self-improve, commit, and push in one command.","https:\u002F\u002Fgithub.com\u002Fkiloloop\u002Foacp-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwrap-up\u002FSKILL.md",[],[138,139,140,152,141,168,142,169,147,170,29,150,153,154],"commit","push","command",{"skillNo":172,"name":173,"nameZh":6,"description":174,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":175,"categories":176,"keywords":177,"publishedAt":37},"01M6DSW4FRNRKRQ0TRMZAYNMKZ","self-improve","Audit and improve Codex operating guidance: skills, curated project memory, AGENTS.md, and relevant configuration. Use for explicit self-improve requests, routine wrap-up drift checks, stale or conflicting guidance, or an approved cleanup. Route release-wide OACP migrations and context-budget audits to audit-oacp-skills. Do not hand-edit generated Codex memories or installed plugin\u002Fsystem artifacts.","https:\u002F\u002Fgithub.com\u002Fkiloloop\u002Foacp-skills\u002Fblob\u002Fmain\u002Fskills\u002Fself-improve\u002Fcodex\u002FSKILL.md",[],[178,152,147,179,142,180,181,182,183,184,185,186,139,187,188,189,190,191,24,141],"self improve","project","release","audit","Budget","system","edit","context","generated","do","route","drift","memories","operating"]