[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M734ZSB346C8CYHJXNB7CHRC":3,"skill-same:01M734ZSB346C8CYHJXNB7CHRC":50},{"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":29,"commitSha":30,"skillDirectory":31,"forksCount":32,"repositoryHtmlUrl":33,"repositoryHomepageUrl":34,"ownerHtmlUrl":35,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":36,"install":37,"resources":49},"01M734ZSB346C8CYHJXNB7CHRC","chores",null,"Handle chore and bump PRs.","Morrison-Lab\u002Fai-config","Morrison-Lab","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F104235520?v=4","01M734G0451S2G35MN4HFQK7XP","Morrison Lab","01M734G059BYFDFQA8YTPDGPMH",4,"MIT","https:\u002F\u002Fgithub.com\u002FMorrison-Lab\u002Fai-config\u002Fblob\u002Fmain\u002Fskills\u002Fchores\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: chores\ndescription: \"Handle chore and bump PRs.\"\nuser-invocable: true\nallowed-tools:\n  - Bash\n  - Read\n  - WebFetch\n---\n\n# chores — triage and wrap up dependency-bump PRs\n\nSweep a repo's open **dependency-bump PRs** — the `chore(...)`-titled,\nbot-authored PRs from Dependabot\u002FRenovate (pinned GitHub Actions, git\nsubmodules, package deps) — and clear them: merge the safe ones, flag the risky\nones. These are CI-gated, not review-gated, so they need a different loop than a\nhuman PR.\n\n**Default policy:** merge patch\u002Fminor bumps once CI is green; for **major**\nbumps, fetch the changelog, summarize the breaking-change risk, and surface it\nfor the user's call before merging.\n\n## When this fires\n\n- \"handle chores\", \"chores\", \"do the chores\", \"wrap up the chore PRs\"\n- \"process the dependabot PRs\", \"merge the dependency bumps\", \"deal with the\n  bump PRs\", \"handle the dependency updates\"\n- A weekly Dependabot batch has piled up and you want it cleared.\n\n## What counts as a chore PR\n\nA PR is in scope when **either** of these holds:\n\n- Its author is one of the dependency bots this skill exists for, matched in\n  the exact login form the source returns: `app\u002Fdependabot`,\n  `dependabot[bot]`, `app\u002Frenovate`, `renovate[bot]`.\n  An explicit `chores` call names that population, which is what admits those\n  two bots and no other author.\n- It looks like a chore --- the title starts with `chore(` (e.g.\n  `chore(actions):`, `chore(submodule):`, `chore(deps):`), or the labels\n  include `dependencies` --- **and** it passes `memories\u002Freviewing-prs.md`'s\n  scope test for the invoking user: authored by the GitHub Actions app\n  (`github-actions`, which opens `chore(submodule):` bumps) or by the invoking\n  user or one of their aliases, assigned to one of them, or one the user\n  explicitly asked this run to work on (a mention such as \"do not touch\"\n  followed by a number is not a request).\n\nHuman-authored feature PRs are **out of scope** --- those go through `ardia` \u002F\n`gia` (review-to-clean), not this skill --- and so is a chore-titled or\n`dependencies`-labelled PR whose author is another lab member or another bot,\nunless the invoking user is assigned to it or explicitly asked this run to\nwork on it.\n\n## Procedure\n\n### 0. Establish the target repo\n\nDefault to the current repo; accept an explicit `owner\u002Fname` so you can sweep\nany repo without checking it out:\n\n```bash\nREPO=\"${REPO:-$(gh repo view --json nameWithOwner --jq .nameWithOwner)}\"\n# e.g. to target another repo:  REPO=owner\u002Fother-repo\n```\n\nThis skill is GitHub-first (`gh`). For a GitLab repo, the same shape applies via\n`glab` and `@renovate`\u002F`@dependabot`-equivalent commands.\n\n### 1. List the open chore PRs\n\nSet the three scope inputs first, the way `REPO` is set above.\n`PR_SCOPE_ALIASES` is the comma-separated list of other logins\n`memories\u002Freviewing-prs.md` names as the same person as the resolved user\n(leave it unset when that file lists none for them), and `PR_SCOPE_REQUESTED`\nis the comma-separated list of PR numbers the user explicitly asked this run\nto work on, never a number merely mentioned or excluded\n(leave it unset when there are none).\n`PR_SCOPE_EXCLUDED` is the comma-separated list of PR numbers the user told\nthis run not to touch (\"chores, but do not touch\" followed by a number); it\nis a veto checked before every positive arm, bot authors included, so an\nexcluded dependency-bot PR is neither listed nor merged.\nWith all three unset the filter keeps only the resolved login's own PRs, the\nassigned ones, and the bots', which is the fail-closed default.\n\n```bash\nset -eo pipefail   # a failed command, or a failed gh pr list in the pipeline below, stops here\nME=$(gh api user --jq .login 2>\u002Fdev\u002Fnull) || ME=\"\"   # WHO_AM_I\nif [ -z \"$ME\" ]; then\n  # Fail closed, and say so: with no identity the author and assignee arms\n  # stay unevaluated (aliases included), so only bot-authored and explicitly\n  # requested PRs pass.\n  PR_SCOPE_ALIASES=\"\"\n  echo \"::warning::identity lookup failed; author\u002Fassignee arms unevaluated (report this)\" >&2\nfi\n# e.g. PR_SCOPE_ALIASES=other-login      # from memories\u002Freviewing-prs.md\n# e.g. PR_SCOPE_REQUESTED=123,456       # PRs the user asked this run to work on\n# e.g. PR_SCOPE_EXCLUDED=789            # PRs the user told this run not to touch\nIDS=$(jq -cn --arg me \"$ME\" --arg al \"${PR_SCOPE_ALIASES:-}\" \\\n  '[$me] + ($al | split(\",\") | map(select(length > 0))) | map(select(length > 0)) | unique')\nREQ=$(jq -cn --arg r \"${PR_SCOPE_REQUESTED:-}\" \\\n  '$r | split(\",\") | map(select(length > 0) | tonumber)')\nEXC=$(jq -cn --arg x \"${PR_SCOPE_EXCLUDED:-}\" \\\n  '$x | split(\",\") | map(select(length > 0) | tonumber)')\ngh pr list --repo \"$REPO\" --state open --limit 200 \\\n  --json number,title,author,assignees,labels,mergeable \\\n  | jq -r --argjson ids \"$IDS\" --argjson req \"$REQ\" --argjson exc \"$EXC\" '.[] | select(\n          ((.number as $n | $exc | index($n)) == null)\n          and (\n          (.author.login | test(\"^(app\u002F(dependabot|renovate)|(dependabot|renovate)\\\\[bot\\\\])$\"))\n          or (\n            (\n              (.author.login | test(\"^(app\u002Fgithub-actions|github-actions\\\\[bot\\\\]|github-actions)$\"))\n              or ((.author.login as $a | $ids | index($a)) != null)\n              or any(.assignees[].login; . as $x | ($ids | index($x)) != null)\n              or ((.number as $n | $req | index($n)) != null)\n            ) and (\n              (.title | startswith(\"chore(\"))\n              or (([.labels[].name] | index(\"dependencies\")) != null)\n            )\n          )\n          )\n        ) | \"\\(.number)\\t\\(.mergeable)\\t\\(.title)\"'   # LIST_PRS\n```\n\n`--limit 200` because `gh pr list` defaults to 30 — a piled-up weekly backlog\nwould otherwise be silently truncated.\n\nIf there are none, say so and stop.\n\nThat listing is a snapshot.\nAssignment, the title, and the labels can all change while the sweep runs,\nso re-fetch every input the predicate reads (author, assignees, title,\nlabels) and reapply the same predicate, the `PR_SCOPE_EXCLUDED` veto\nincluded, immediately before each write action in steps 2-5 (closing a bump\nPR, a `@dependabot` comment, a merge), and drop and report a PR that no longer\npasses.\n\n### 2. Classify each PR by bump size\n\nRecord the head, the base, and the title before classifying:\non GitHub read the PR pins directly via `gh pr view` as shown below,\nwhile on GitLab read the MR `sha`, `target_branch`, and `check-mr-fully-clean.py`.\n`chores` is CI-gated, not review-gated:\n`check-pr-fully-clean.py` is the full ARDI instrument for human PRs\nthat requires automated code-review verdicts and quorums\n(which are skipped on dependency bots; if using `check-pr-fully-clean.py` on a bot PR,\npass `--quorum 0`).\nThe classification, every read in step 3, and the merge in step 4 are claims about one SHA on one target under one title,\nand Dependabot can replace the head or retitle the PR between any two of them:\n\n```bash\nPINNED=$(gh pr view \"$N\" --repo \"$REPO\" --json headRefOid -q .headRefOid)   # VIEW_PR\nBASE=$(gh pr view \"$N\" --repo \"$REPO\" --json baseRefName -q .baseRefName)   # VIEW_PR; a retarget at the same tip must not pass\nTITLE=$(gh pr view \"$N\" --repo \"$REPO\" --json title -q .title)   # VIEW_PR; the classification below reads this title\n```\n\nShell variables do not survive between tool calls, so print the three values and substitute the literals into every later command, rather than expecting `$PINNED` to expand later.\nIf the head, the base name, or the title changes before the merge lands, start again from here, classification included.\nA retitle moves neither SHA and can turn a patch-looking bump into a major one.\n\nParse the version pair out of the title (`... from X to Y`) and compare the\nleading number:\n\n- **patch \u002F minor** — same major and the major is ≥ 1 (`3.0.2 → 3.0.3`,\n  `2.4 → 2.7`) → **safe**.\n- **`0.x` bump** (`0.4 → 0.5`, `0.4.1 → 0.4.2`) → **review**; under semver a\n  `0.x` release may break between minor versions, and many `0.x` maintainers\n  don't respect patch semantics either — don't wave these through as safe.\n- **major** — leading number increases (`4 → 7`, `2 → 3`, `1 → 2`) → **review**.\n- **submodule** (`chore(submodule):`) — no semver; it tracks a moving branch by\n  design.\n  Treat a green submodule bump as **safe** (auto-advancing the pointer\n  is the whole point), unless the diff is unexpectedly large.\n  If the repository has migrated to a native plugin for the vendored tool (e.g. `ai-config` as a plugin), close the bump PR and remove the redundant submodule instead per [`remove-redundant-plugin-submodules.md`](..\u002F..\u002Fshared\u002Fworkflow\u002Fremove-redundant-plugin-submodules.md).\n\nWhen the title has no parseable version (some Renovate digests), fall back to\nthe PR body's update table or treat it as **review**.\n\n### 3. Verify CI is fully green\n\nA bump is only \"safe to merge\" if every required check passes. `skipping` is\nfine (path-filtered jobs); `pending` means wait, `fail` means stop.\n\n```bash\ngh pr checks \"$N\" --repo \"$REPO\"   # PR_CHECKS\n# pass \u002F skipping → ok;  pending → not ready yet;  fail → do not merge\n```\n\nAlso confirm it isn't conflicting:\n\n```bash\ngh pr view \"$N\" --repo \"$REPO\" --json mergeable,mergeStateStatus \\\n  --jq '\"\\(.mergeable) \u002F \\(.mergeStateStatus)\"'   # VIEW_PR\n```\n\nIf `CONFLICTING` \u002F `DIRTY`, ask the bot to rebase rather than resolving by hand:\n\n```bash\ngh pr comment \"$N\" --repo \"$REPO\" --body \"@dependabot rebase\"   # COMMENT_PR — Dependabot only\n```\n\nFor a Renovate PR, tick the rebase checkbox in the PR body (or its Dependency\nDashboard) — `@dependabot` comment commands do nothing on Renovate PRs.\n\n#### Automated workflow review requests do not block safe chores\n\nIn repositories using workflows like `Morrison-Lab\u002Fgha`'s `request-dependabot-review.yml`,\nan automated review request for the repository maintainer (e.g. `d-morrison`)\nis automatically attached to bot PRs upon creation.\nBecause `chores` is CI-gated,\nthis automated notification is an informational workflow trigger,\nnot a human review blocker that requires an affirmative review or manual dismissal before merge.\nSafe patch, minor, and submodule bumps merge on green CI alone.\n(Major bumps are held and surfaced for the user's explicit sign-off anyway per step 5).\n\n### 4. Safe bumps (patch \u002F minor \u002F submodule + green) → merge\n\nFirst read whether the base requires a merge queue (the rules probe in `fully-clean`'s stop bullet).\nOn a base that requires a merge queue, stop and report the bump as blocked: the queue form of the gate is [#3030](https:\u002F\u002Fgithub.com\u002FMorrison-Lab\u002Fai-config\u002Fissues\u002F3030) and is out of scope until it lands.\nOtherwise run the base-currency check from [`fully-clean`](..\u002F..\u002Fshared\u002Fworkflow\u002Ffully-clean.md)'s stale-base rule (the Do bullets beginning \"for a direct merge\"), since a green head can still break the base when the base gained a check after the head's CI ran.\nThat check's one-liner prints the tested base tip.\nRecord the printed literal as `TIP` the same way.\nImmediately before the merge command, require the live head to equal `$PINNED`, the live base name to equal `$BASE`, the live title to equal `$TITLE`, and the live base tip to equal `$TIP`, and restart from the currency check if the tip moved or from step 2 if anything else did.\nA regenerated head that already contains the base would otherwise pass a currency check with CI never read for it.\nWhen that check finds the base stale, the bot-bump recovery is to update the branch pinned to `$PINNED`,\nwait until `headRefOid` differs from `$PINNED`, with a deadline of a few minutes (expiry is a failed update: stop and report it rather than restarting),\nand then start again from the top of step 2: re-record `$PINNED` and `$BASE`, re-classify the bump, and rerun the CI and conflict checks against the new pin (review stays skipped on bot PRs).\nThe first different SHA is not necessarily the update's result, since Dependabot or another writer can replace the head in the same window, so re-classification is what keeps the merge pinned to a head this skill has actually judged.\n`gh api -X PUT \"repos\u002F$REPO\u002Fpulls\u002F$N\u002Fupdate-branch\" -f expected_head_sha=\"$PINNED\"` merges the base in, pinned to the head whose CI was read.\nA `422` whose message names an expected-head mismatch (match on the substring `expected head sha`, since the live text carries a curly apostrophe and a trailing period that this ASCII rendering cannot show) means the bot or another writer already replaced that head only if `headRefOid` actually differs from `$PINNED` --- the identical message also appears when `$PINNED` itself was wrong (built from an abbreviation rather than read in full), so re-reading before touching the branch is what tells the two apart, not merely a precaution.\nAny other `422` is a failed update: stop and read the message.\n`@dependabot rebase` rewrites the head onto the base branch and also clears a conflict.\nIt too replaces the head, so it is followed by the same bounded wait and restart from step 2, never by a direct merge on the old `$PINNED`.\nWith the pin current and the checks green, merge directly.\nDependabot deletes its own branch on merge.\n\n```bash\ngh pr merge \"$N\" --repo \"$REPO\" --squash --match-head-commit \"$PINNED\"   # MERGE_PR; $PINNED is the headRefOid recorded above\n```\n\n\nPick a merge method the repo actually allows — `--squash` errors when squash\nmerges are disabled; swap in `--merge` or `--rebase` to match the repo's\nsettings.\n\nDo not arm `gh pr merge --auto` and do not hand the merge to `@dependabot squash and merge`.\nAuto-merge stays enabled across later pushes and fires on required checks alone, so the classified head can be replaced and different content merge without this skill's scope and bump-risk checks rerunning.\nWait for the checks and merge synchronously with the pin instead.\n\n`@dependabot ...` comment commands do nothing on **Renovate** PRs.\nMerge those with the same pinned `gh pr merge`, not with the merge checkbox in Renovate's Dependency Dashboard, which hands the merge to Renovate without the pin.\n\nBatch the safe ones — merge them all in one pass, then report.\n\n### 5. Major bumps → fetch the changelog, summarize, flag\n\nDon't merge a major bump blind, even when CI is green — a green build can still\nhide a behavior change. For each:\n\n1. **Read the release notes Dependabot already embedded in the PR body** — the\n   fastest source:\n   ```bash\n   gh pr view \"$N\" --repo \"$REPO\" --json body --jq .body   # VIEW_PR\n   # look for the \"Release notes\", \"Changelog\", and \"Commits\" sections\n   ```\n2. **If the body is thin, go to the source.** For a GitHub Action the title's\n   dependency name *is* the repo (`actions\u002Fcheckout`), so:\n   ```bash\n   gh api \"repos\u002F\u003Cdep-owner>\u002F\u003Cdep-repo>\u002Freleases\" --jq '.[] | \"\\(.tag_name): \\(.name)\"' | head\n   ```\n   or `WebFetch` the project's releases\u002FCHANGELOG page.\n3. **Summarize the breaking-change risk in one or two lines** per PR — required\n   runtime bumps (e.g. a newer Node for `actions\u002F*` v-major jumps), removed\n   inputs, changed defaults — and give a recommendation (merge \u002F hold \u002F needs a\n   workflow tweak first).\n4. **Surface it for the user's call.** Always get an explicit sign-off before\n   merging a major bump — that human checkpoint is the whole point of flagging\n   it. Don't self-clear a major because the changelog \"looks safe.\"\n\n### 6. Report\n\nA linked wrap-up table — every PR number a markdown link (repo policy) — plus a\nPacific-time timestamp (`TZ=America\u002FLos_Angeles date \"+%Y-%m-%d %H:%M %Z\"`; the\nexplicit `TZ` enforces PT on a machine set to any other zone):\n\n```\n## Chores swept — \u003Crepo> — \u003CPT timestamp>\n\n| PR | Bump | Type | CI | Action |\n|----|------|------|-----|--------|\n| [#124](url) | r-spellcheck-action 3.0.2→3.0.3 | patch | ✅ | merged |\n| [#120](url) | actions\u002Fcheckout 4→7 | major | ✅ | held — needs Node 20+ runtime check |\n```\n\nGroup as **Merged**, **Flagged (major — your call)**, and **Skipped**\n(failing\u002Fpending\u002Fconflicting, with why). Never report \"all clear\" while a major\nbump is sitting unflagged.\n\n## Relationship to other skills\n\n- **`check-dependency-updates` \u002F `cdu`** — the audit counterpart. `cdu` *finds*\n  stale pins and opens\u002Fdrives the bumps itself (or recommends a `dependabot.yml`\n  that automates them); `chores` *processes* the bump PRs that land. Use `cdu`\n  to catch what Dependabot misses, `chores` to clear what it opens.\n- **`ardia` \u002F `gia`** — the human-PR counterpart (drive feature PRs to a clean\n  *review* verdict).\n  `ardia` finishes with a `chores` pass over dependency-bot\n  PRs in the swept repos after human PRs reach terminal states,\n  handing bumps to this skill.\n  `chores` is the bot-PR counterpart (CI-gated bumps).\n  Don't run `ardi` on a Dependabot PR --- `@claude` review is skipped on them by design.\n- **`pr-status-all`** — read-only status of every open PR; `chores` is the\n  acting version scoped to bump PRs.\n- **`clean-branches` \u002F `cb`** — Dependabot deletes its own remote branch on\n  merge, but if you checked any out locally, sweep the stragglers there.\n- **`defer-issue`** — if a major bump needs a real code change before it can\n  land (e.g. migrate a removed Action input), file a follow-up issue instead of\n  leaving the PR to rot.\n- **`wrap-up`** — a session-end bookend; `chores` is the focused bump-PR sweep.\n\n## Anti-patterns\n\n- ❌ Merging a major bump just because CI is green, or self-clearing one because\n  the changelog \"looks safe\" — read the changelog and get an explicit sign-off.\n- ❌ Running the full `ardi` review loop on a bot bump PR (review is skipped on\n  them; they're gated on CI, not a reviewer).\n- ❌ Resolving a Dependabot merge conflict by hand — comment `@dependabot\n  rebase` and let the bot redo it.\n- ❌ Force-merging a PR with `pending` or `fail` checks.\n- ❌ Reporting \"chores done\" while a flagged major bump is still open with no\n  decision recorded.\n- ❌ Treating human feature PRs as chores (or vice-versa) --- a dependency\n  bot's PR is a chore by author; any other PR needs the `chore(` title or\n  `dependencies` label **and** an in-scope author or assignee, never the\n  title or label alone.\n","# chores — triage and wrap up dependency-bump PRs\n\nSweep a repo's open **dependency-bump PRs** — the `chore(...)`-titled,\nbot-authored PRs from Dependabot\u002FRenovate (pinned GitHub Actions, git\nsubmodules, package deps) — and clear them: merge the safe ones, flag the risky\nones. These are CI-gated, not review-gated, so they need a different loop than a\nhuman PR.\n\n**Default policy:** merge patch\u002Fminor bumps once CI is green; for **major**\nbumps, fetch the changelog, summarize the breaking-change risk, and surface it\nfor the user's call before merging.\n\n## When this fires\n\n- \"handle chores\", \"chores\", \"do the chores\", \"wrap up the chore PRs\"\n- \"process the dependabot PRs\", \"merge the dependency bumps\", \"deal with the\n  bump PRs\", \"handle the dependency updates\"\n- A weekly Dependabot batch has piled up and you want it cleared.\n\n## What counts as a chore PR\n\nA PR is in scope when **either** of these holds:\n\n- Its author is one of the dependency bots this skill exists for, matched in\n  the exact login form the source returns: `app\u002Fdependabot`,\n  `dependabot[bot]`, `app\u002Frenovate`, `renovate[bot]`.\n  An explicit `chores` call names that population, which is what admits those\n  two bots and no other author.\n- It looks like a chore --- the title starts with `chore(` (e.g.\n  `chore(actions):`, `chore(submodule):`, `chore(deps):`), or the labels\n  include `dependencies` --- **and** it passes `memories\u002Freviewing-prs.md`'s\n  scope test for the invoking user: authored by the GitHub Actions app\n  (`github-actions`, which opens `chore(submodule):` bumps) or by the invoking\n  user or one of their aliases, assigned to one of them, or one the user\n  explicitly asked this run to work on (a mention such as \"do not touch\"\n  followed by a number is not a request).\n\nHuman-authored feature PRs are **out of scope** --- those go through `ardia` \u002F\n`gia` (review-to-clean), not this skill --- and so is a chore-titled or\n`dependencies`-labelled PR whose author is another lab member or another bot,\nunless the invoking user is assigned to it or explicitly asked this run to\nwork on it.\n\n## Procedure\n\n### 0. Establish the target repo\n\nDefault to the current repo; accept an explicit `owner\u002Fname` so you can sweep\nany repo without checking it out:\n\n```bash\nREPO=\"${REPO:-$(gh repo view --json nameWithOwner --jq .nameWithOwner)}\"\n# e.g. to target another repo:  REPO=owner\u002Fother-repo\n```\n\nThis skill is GitHub-first (`gh`). For a GitLab repo, the same shape applies via\n`glab` and `@renovate`\u002F`@dependabot`-equivalent commands.\n\n### 1. List the open chore PRs\n\nSet the three scope inputs first, the way `REPO` is set above.\n`PR_SCOPE_ALIASES` is the comma-separated list of other logins\n`memories\u002Freviewing-prs.md` names as the same person as the resolved user\n(leave it unset when that file lists none for them), and `PR_SCOPE_REQUESTED`\nis the comma-separated list of PR numbers the user explicitly asked this run\nto work on, never a number merely mentioned or excluded\n(leave it unset when there are none).\n`PR_SCOPE_EXCLUDED` is the comma-separated list of PR numbers the user told\nthis run not to touch (\"chores, but do not touch\" followed by a number); it\nis a veto checked before every positive arm, bot authors included, so an\nexcluded dependency-bot PR is neither listed nor merged.\nWith all three unset the filter keeps only the resolved login's own PRs, the\nassigned ones, and the bots', which is the fail-closed default.\n\n```bash\nset -eo pipefail   # a failed command, or a failed gh pr list in the pipeline below, stops here\nME=$(gh api user --jq .login 2>\u002Fdev\u002Fnull) || ME=\"\"   # WHO_AM_I\nif [ -z \"$ME\" ]; then\n  # Fail closed, and say so: with no identity the author and assignee arms\n  # stay unevaluated (aliases included), so only bot-authored and explicitly\n  # requested PRs pass.\n  PR_SCOPE_ALIASES=\"\"\n  echo \"::warning::identity lookup failed; author\u002Fassignee arms unevaluated (report this)\" >&2\nfi\n# e.g. PR_SCOPE_ALIASES=other-login      # from memories\u002Freviewing-prs.md\n# e.g. PR_SCOPE_REQUESTED=123,456       # PRs the user asked this run to work on\n# e.g. PR_SCOPE_EXCLUDED=789            # PRs the user told this run not to touch\nIDS=$(jq -cn --arg me \"$ME\" --arg al \"${PR_SCOPE_ALIASES:-}\" \\\n  '[$me] + ($al | split(\",\") | map(select(length > 0))) | map(select(length > 0)) | unique')\nREQ=$(jq -cn --arg r \"${PR_SCOPE_REQUESTED:-}\" \\\n  '$r | split(\",\") | map(select(length > 0) | tonumber)')\nEXC=$(jq -cn --arg x \"${PR_SCOPE_EXCLUDED:-}\" \\\n  '$x | split(\",\") | map(select(length > 0) | tonumber)')\ngh pr list --repo \"$REPO\" --state open --limit 200 \\\n  --json number,title,author,assignees,labels,mergeable \\\n  | jq -r --argjson ids \"$IDS\" --argjson req \"$REQ\" --argjson exc \"$EXC\" '.[] | select(\n          ((.number as $n | $exc | index($n)) == null)\n          and (\n          (.author.login | test(\"^(app\u002F(dependabot|renovate)|(dependabot|renovate)\\\\[bot\\\\])$\"))\n          or (\n            (\n              (.author.login | test(\"^(app\u002Fgithub-actions|github-actions\\\\[bot\\\\]|github-actions)$\"))\n              or ((.author.login as $a | $ids | index($a)) != null)\n              or any(.assignees[].login; . as $x | ($ids | index($x)) != null)\n              or ((.number as $n | $req | index($n)) != null)\n            ) and (\n              (.title | startswith(\"chore(\"))\n              or (([.labels[].name] | index(\"dependencies\")) != null)\n            )\n          )\n          )\n        ) | \"\\(.number)\\t\\(.mergeable)\\t\\(.title)\"'   # LIST_PRS\n```\n\n`--limit 200` because `gh pr list` defaults to 30 — a piled-up weekly backlog\nwould otherwise be silently truncated.\n\nIf there are none, say so and stop.\n\nThat listing is a snapshot.\nAssignment, the title, and the labels can all change while the sweep runs,\nso re-fetch every input the predicate reads (author, assignees, title,\nlabels) and reapply the same predicate, the `PR_SCOPE_EXCLUDED` veto\nincluded, immediately before each write action in steps 2-5 (closing a bump\nPR, a `@dependabot` comment, a merge), and drop and report a PR that no longer\npasses.\n\n### 2. Classify each PR by bump size\n\nRecord the head, the base, and the title before classifying:\non GitHub read the PR pins directly via `gh pr view` as shown below,\nwhile on GitLab read the MR `sha`, `target_branch`, and `check-mr-fully-clean.py`.\n`chores` is CI-gated, not review-gated:\n`check-pr-fully-clean.py` is the full ARDI instrument for human PRs\nthat requires automated code-review verdicts and quorums\n(which are skipped on dependency bots; if using `check-pr-fully-clean.py` on a bot PR,\npass `--quorum 0`).\nThe classification, every read in step 3, and the merge in step 4 are claims about one SHA on one target under one title,\nand Dependabot can replace the head or retitle the PR between any two of them:\n\n```bash\nPINNED=$(gh pr view \"$N\" --repo \"$REPO\" --json headRefOid -q .headRefOid)   # VIEW_PR\nBASE=$(gh pr view \"$N\" --repo \"$REPO\" --json baseRefName -q .baseRefName)   # VIEW_PR; a retarget at the same tip must not pass\nTITLE=$(gh pr view \"$N\" --repo \"$REPO\" --json title -q .title)   # VIEW_PR; the classification below reads this title\n```\n\nShell variables do not survive between tool calls, so print the three values and substitute the literals into every later command, rather than expecting `$PINNED` to expand later.\nIf the head, the base name, or the title changes before the merge lands, start again from here, classification included.\nA retitle moves neither SHA and can turn a patch-looking bump into a major one.\n\nParse the version pair out of the title (`... from X to Y`) and compare the\nleading number:\n\n- **patch \u002F minor** — same major and the major is ≥ 1 (`3.0.2 → 3.0.3`,\n  `2.4 → 2.7`) → **safe**.\n- **`0.x` bump** (`0.4 → 0.5`, `0.4.1 → 0.4.2`) → **review**; under semver a\n  `0.x` release may break between minor versions, and many `0.x` maintainers\n  don't respect patch semantics either — don't wave these through as safe.\n- **major** — leading number increases (`4 → 7`, `2 → 3`, `1 → 2`) → **review**.\n- **submodule** (`chore(submodule):`) — no semver; it tracks a moving branch by\n  design.\n  Treat a green submodule bump as **safe** (auto-advancing the pointer\n  is the whole point), unless the diff is unexpectedly large.\n  If the repository has migrated to a native plugin for the vendored tool (e.g. `ai-config` as a plugin), close the bump PR and remove the redundant submodule instead per [`remove-redundant-plugin-submodules.md`](..\u002F..\u002Fshared\u002Fworkflow\u002Fremove-redundant-plugin-submodules.md).\n\nWhen the title has no parseable version (some Renovate digests), fall back to\nthe PR body's update table or treat it as **review**.\n\n### 3. Verify CI is fully green\n\nA bump is only \"safe to merge\" if every required check passes. `skipping` is\nfine (path-filtered jobs); `pending` means wait, `fail` means stop.\n\n```bash\ngh pr checks \"$N\" --repo \"$REPO\"   # PR_CHECKS\n# pass \u002F skipping → ok;  pending → not ready yet;  fail → do not merge\n```\n\nAlso confirm it isn't conflicting:\n\n```bash\ngh pr view \"$N\" --repo \"$REPO\" --json mergeable,mergeStateStatus \\\n  --jq '\"\\(.mergeable) \u002F \\(.mergeStateStatus)\"'   # VIEW_PR\n```\n\nIf `CONFLICTING` \u002F `DIRTY`, ask the bot to rebase rather than resolving by hand:\n\n```bash\ngh pr comment \"$N\" --repo \"$REPO\" --body \"@dependabot rebase\"   # COMMENT_PR — Dependabot only\n```\n\nFor a Renovate PR, tick the rebase checkbox in the PR body (or its Dependency\nDashboard) — `@dependabot` comment commands do nothing on Renovate PRs.\n\n#### Automated workflow review requests do not block safe chores\n\nIn repositories using workflows like `Morrison-Lab\u002Fgha`'s `request-dependabot-review.yml`,\nan automated review request for the repository maintainer (e.g. `d-morrison`)\nis automatically attached to bot PRs upon creation.\nBecause `chores` is CI-gated,\nthis automated notification is an informational workflow trigger,\nnot a human review blocker that requires an affirmative review or manual dismissal before merge.\nSafe patch, minor, and submodule bumps merge on green CI alone.\n(Major bumps are held and surfaced for the user's explicit sign-off anyway per step 5).\n\n### 4. Safe bumps (patch \u002F minor \u002F submodule + green) → merge\n\nFirst read whether the base requires a merge queue (the rules probe in `fully-clean`'s stop bullet).\nOn a base that requires a merge queue, stop and report the bump as blocked: the queue form of the gate is [#3030](https:\u002F\u002Fgithub.com\u002FMorrison-Lab\u002Fai-config\u002Fissues\u002F3030) and is out of scope until it lands.\nOtherwise run the base-currency check from [`fully-clean`](..\u002F..\u002Fshared\u002Fworkflow\u002Ffully-clean.md)'s stale-base rule (the Do bullets beginning \"for a direct merge\"), since a green head can still break the base when the base gained a check after the head's CI ran.\nThat check's one-liner prints the tested base tip.\nRecord the printed literal as `TIP` the same way.\nImmediately before the merge command, require the live head to equal `$PINNED`, the live base name to equal `$BASE`, the live title to equal `$TITLE`, and the live base tip to equal `$TIP`, and restart from the currency check if the tip moved or from step 2 if anything else did.\nA regenerated head that already contains the base would otherwise pass a currency check with CI never read for it.\nWhen that check finds the base stale, the bot-bump recovery is to update the branch pinned to `$PINNED`,\nwait until `headRefOid` differs from `$PINNED`, with a deadline of a few minutes (expiry is a failed update: stop and report it rather than restarting),\nand then start again from the top of step 2: re-record `$PINNED` and `$BASE`, re-classify the bump, and rerun the CI and conflict checks against the new pin (review stays skipped on bot PRs).\nThe first different SHA is not necessarily the update's result, since Dependabot or another writer can replace the head in the same window, so re-classification is what keeps the merge pinned to a head this skill has actually judged.\n`gh api -X PUT \"repos\u002F$REPO\u002Fpulls\u002F$N\u002Fupdate-branch\" -f expected_head_sha=\"$PINNED\"` merges the base in, pinned to the head whose CI was read.\nA `422` whose message names an expected-head mismatch (match on the substring `expected head sha`, since the live text carries a curly apostrophe and a trailing period that this ASCII rendering cannot show) means the bot or another writer already replaced that head only if `headRefOid` actually differs from `$PINNED` --- the identical message also appears when `$PINNED` itself was wrong (built from an abbreviation rather than read in full), so re-reading before touching the branch is what tells the two apart, not merely a precaution.\nAny other `422` is a failed update: stop and read the message.\n`@dependabot rebase` rewrites the head onto the base branch and also clears a conflict.\nIt too replaces the head, so it is followed by the same bounded wait and restart from step 2, never by a direct merge on the old `$PINNED`.\nWith the pin current and the checks green, merge directly.\nDependabot deletes its own branch on merge.\n\n```bash\ngh pr merge \"$N\" --repo \"$REPO\" --squash --match-head-commit \"$PINNED\"   # MERGE_PR; $PINNED is the headRefOid recorded above\n```\n\n\nPick a merge method the repo actually allows — `--squash` errors when squash\nmerges are disabled; swap in `--merge` or `--rebase` to match the repo's\nsettings.\n\nDo not arm `gh pr merge --auto` and do not hand the merge to `@dependabot squash and merge`.\nAuto-merge stays enabled across later pushes and fires on required checks alone, so the classified head can be replaced and different content merge without this skill's scope and bump-risk checks rerunning.\nWait for the checks and merge synchronously with the pin instead.\n\n`@dependabot ...` comment commands do nothing on **Renovate** PRs.\nMerge those with the same pinned `gh pr merge`, not with the merge checkbox in Renovate's Dependency Dashboard, which hands the merge to Renovate without the pin.\n\nBatch the safe ones — merge them all in one pass, then report.\n\n### 5. Major bumps → fetch the changelog, summarize, flag\n\nDon't merge a major bump blind, even when CI is green — a green build can still\nhide a behavior change. For each:\n\n1. **Read the release notes Dependabot already embedded in the PR body** — the\n   fastest source:\n   ```bash\n   gh pr view \"$N\" --repo \"$REPO\" --json body --jq .body   # VIEW_PR\n   # look for the \"Release notes\", \"Changelog\", and \"Commits\" sections\n   ```\n2. **If the body is thin, go to the source.** For a GitHub Action the title's\n   dependency name *is* the repo (`actions\u002Fcheckout`), so:\n   ```bash\n   gh api \"repos\u002F\u003Cdep-owner>\u002F\u003Cdep-repo>\u002Freleases\" --jq '.[] | \"\\(.tag_name): \\(.name)\"' | head\n   ```\n   or `WebFetch` the project's releases\u002FCHANGELOG page.\n3. **Summarize the breaking-change risk in one or two lines** per PR — required\n   runtime bumps (e.g. a newer Node for `actions\u002F*` v-major jumps), removed\n   inputs, changed defaults — and give a recommendation (merge \u002F hold \u002F needs a\n   workflow tweak first).\n4. **Surface it for the user's call.** Always get an explicit sign-off before\n   merging a major bump — that human checkpoint is the whole point of flagging\n   it. Don't self-clear a major because the changelog \"looks safe.\"\n\n### 6. Report\n\nA linked wrap-up table — every PR number a markdown link (repo policy) — plus a\nPacific-time timestamp (`TZ=America\u002FLos_Angeles date \"+%Y-%m-%d %H:%M %Z\"`; the\nexplicit `TZ` enforces PT on a machine set to any other zone):\n\n```\n## Chores swept — \u003Crepo> — \u003CPT timestamp>\n\n| PR | Bump | Type | CI | Action |\n|----|------|------|-----|--------|\n| [#124](url) | r-spellcheck-action 3.0.2→3.0.3 | patch | ✅ | merged |\n| [#120](url) | actions\u002Fcheckout 4→7 | major | ✅ | held — needs Node 20+ runtime check |\n```\n\nGroup as **Merged**, **Flagged (major — your call)**, and **Skipped**\n(failing\u002Fpending\u002Fconflicting, with why). Never report \"all clear\" while a major\nbump is sitting unflagged.\n\n## Relationship to other skills\n\n- **`check-dependency-updates` \u002F `cdu`** — the audit counterpart. `cdu` *finds*\n  stale pins and opens\u002Fdrives the bumps itself (or recommends a `dependabot.yml`\n  that automates them); `chores` *processes* the bump PRs that land. Use `cdu`\n  to catch what Dependabot misses, `chores` to clear what it opens.\n- **`ardia` \u002F `gia`** — the human-PR counterpart (drive feature PRs to a clean\n  *review* verdict).\n  `ardia` finishes with a `chores` pass over dependency-bot\n  PRs in the swept repos after human PRs reach terminal states,\n  handing bumps to this skill.\n  `chores` is the bot-PR counterpart (CI-gated bumps).\n  Don't run `ardi` on a Dependabot PR --- `@claude` review is skipped on them by design.\n- **`pr-status-all`** — read-only status of every open PR; `chores` is the\n  acting version scoped to bump PRs.\n- **`clean-branches` \u002F `cb`** — Dependabot deletes its own remote branch on\n  merge, but if you checked any out locally, sweep the stragglers there.\n- **`defer-issue`** — if a major bump needs a real code change before it can\n  land (e.g. migrate a removed Action input), file a follow-up issue instead of\n  leaving the PR to rot.\n- **`wrap-up`** — a session-end bookend; `chores` is the focused bump-PR sweep.\n\n## Anti-patterns\n\n- ❌ Merging a major bump just because CI is green, or self-clearing one because\n  the changelog \"looks safe\" — read the changelog and get an explicit sign-off.\n- ❌ Running the full `ardi` review loop on a bot bump PR (review is skipped on\n  them; they're gated on CI, not a reviewer).\n- ❌ Resolving a Dependabot merge conflict by hand — comment `@dependabot\n  rebase` and let the bot redo it.\n- ❌ Force-merging a PR with `pending` or `fail` checks.\n- ❌ Reporting \"chores done\" while a flagged major bump is still open with no\n  decision recorded.\n- ❌ Treating human feature PRs as chores (or vice-versa) --- a dependency\n  bot's PR is a chore by author; any other PR needs the `chore(` title or\n  `dependencies` label **and** an in-scope author or assignee, never the\n  title or label alone.\n",{"name":5,"description":7,"allowed-tools":24,"user-invocable":28},[25,26,27],"Bash","Read","WebFetch",true,"main","0f720481f8ce3b3d9fef485f6e230d8b3035748e","skills\u002Fchores",1,"https:\u002F\u002Fgithub.com\u002FMorrison-Lab\u002Fai-config","https:\u002F\u002Fmorrison-lab.github.io\u002Fai-config\u002F","https:\u002F\u002Fgithub.com\u002FMorrison-Lab","2026-11-15 04:39:15",{"source":8,"skillName":5,"commands":38,"prompt":48,"zipAvailable":28},[39,42,45],{"tool":40,"command":41},"npx","npx skills add Morrison-Lab\u002Fai-config --skill chores",{"tool":43,"command":44},"bunx","bunx skills add Morrison-Lab\u002Fai-config --skill chores",{"tool":46,"command":47},"pnpm","pnpm dlx skills add Morrison-Lab\u002Fai-config --skill chores","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FMorrison-Lab\u002Fai-config\u002Fblob\u002Fmain\u002Fskills\u002Fchores\u002FSKILL.md",[],[51,58,65,72,79,86],{"skillNo":52,"name":53,"nameZh":6,"description":54,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":55,"categories":56,"keywords":57,"publishedAt":19},"01M735BVYCGR5VEC65AFDVSNKW","wrap-up","End-of-session verification and UMS.","https:\u002F\u002Fgithub.com\u002FMorrison-Lab\u002Fai-config\u002Fblob\u002Fmain\u002Fskills\u002Fwrap-up\u002FSKILL.md",[],[],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":19},"01M735BTH469T1CQ8G2Q9GENCR","workaround-watcher","Watch upstream issue for fix.","https:\u002F\u002Fgithub.com\u002FMorrison-Lab\u002Fai-config\u002Fblob\u002Fmain\u002Fskills\u002Fworkaround-watcher\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":19},"01M735BRKZWFANSQ0GM380B4TD","wn","→ whats-next.","https:\u002F\u002Fgithub.com\u002FMorrison-Lab\u002Fai-config\u002Fblob\u002Fmain\u002Fskills\u002Fwn\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":19},"01M735BPE9V830B3B6NGXQ56J6","whats-next","Recommend concrete next step or action.","https:\u002F\u002Fgithub.com\u002FMorrison-Lab\u002Fai-config\u002Fblob\u002Fmain\u002Fskills\u002Fwhats-next\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M735BMHQ60EAD5B7QAWXC5A0","wait-for-results","Wait for pipeline\u002FCI results.","https:\u002F\u002Fgithub.com\u002FMorrison-Lab\u002Fai-config\u002Fblob\u002Fmain\u002Fskills\u002Fwait-for-results\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":19},"01M735BKGZHPN1PEMJ7YBD5VJ8","wai","→ send-notes.","https:\u002F\u002Fgithub.com\u002FMorrison-Lab\u002Fai-config\u002Fblob\u002Fmain\u002Fskills\u002Fwai\u002FSKILL.md",[],[]]