[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7355MZ46NNCKM52S9BWPNVP":3,"skill-same:01M7355MZ46NNCKM52S9BWPNVP":52},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":31,"commitSha":32,"skillDirectory":33,"forksCount":34,"repositoryHtmlUrl":35,"repositoryHomepageUrl":36,"ownerHtmlUrl":37,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":38,"install":39,"resources":51},"01M7355MZ46NNCKM52S9BWPNVP","mma",null,"Merge main into open PR branches.","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\u002Fmma\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: mma\ndescription: \"Merge main into open PR branches.\"\nuser-invocable: true\nallowed-tools:\n  - Bash\n  - Read\n  - Edit\n  - Write\n  - Agent\n---\n\n# mma\n\nRepo-wide fan-out of [`sync-pr-branch`](..\u002Fsync-pr-branch\u002FSKILL.md): instead\nof resyncing one branch, resync **every currently-open PR** in the repo that passes `memories\u002Freviewing-prs.md`'s scope test\nagainst `main` (and each PR's own remote), so a burst of merges into `main`\ndoesn't leave the rest of the queue stale and conflict-prone.\n\nThis is not a duplicate of `sync-pr-branch` — it's an orchestration layer on\ntop of it. The per-branch mechanics (fetch, merge `origin\u002Fmain`, merge\n`origin\u002F\u003Cbranch>`, resolve conflicts, run checks, push) are unchanged; only\n`sync-pr-branch` owns that logic. Keep it that way — if the per-branch steps\never need to change, fix them in `sync-pr-branch` and this skill inherits the\nfix for free.\n\n## When this fires\n\n- \"merge main into all pr branches\", \"sync every open PR with main\", \"mma\",\n  \"resync the whole queue with main\".\n- After a run of merges to `main` (e.g. finishing an `ardia`\u002F`gia` sweep) —\n  proactively, even without being asked, since every remaining open PR just\n  fell further behind.\n\n## The procedure\n\n1. **List every open PR in the repo** (`mcp__github__list_pull_requests` \u002F\n   `gh pr list --json number,headRefName,author,assignees`).\n   Note each PR's number, `headRefName`, `author`, and `assignees`.\n   Filter the list by `memories\u002Freviewing-prs.md`'s scope test first, as\n   `ardia` step 1 does (opened by or assigned to the invoking user,\n   explicitly requested by name, or authored by the GitHub Actions app (`github-actions`)), and report the PRs\n   dropped: a resync pushes a merge commit, which that memory forbids on any\n   other PR.\n\n2. **Check whether main is actually ahead** before touching anything:\n   ```bash\n   git fetch origin main\n   ```\n   For a PR whose `origin\u002Fmain` is already an ancestor of the branch tip\n   (`git merge-base --is-ancestor origin\u002Fmain \u003Cbranch-tip>` returns true),\n   skip it — main is already incorporated; nothing to merge.\n\n3. **Resync each PR branch, one at a time — do not parallelize the push\n   step.** This is the\n   [shared-runner exception](..\u002F..\u002Fshared\u002Fworkflow\u002Fwhen-to-orchestrate.md) in\n   practice: several PRs is decomposable, but each push triggers that PR's\n   own CI and `@claude` review bot on a runner the whole repo shares, and\n   parallel pushes make per-PR status illegible and can race concurrency\n   groups against each other (see `gha`'s own\n   `claude-review-\u003CPR>`\u002F`cancel-in-progress` note for what that race looks\n   like in practice). Work the queue serially, or cap concurrency low enough\n   that no two pushes land in the same few seconds.\n\n   For each PR branch, in its own worktree (never the shared main checkout —\n   see the per-repo memory file for this repo's worktree conventions if it\n   has one). Pass `-b \u003Cbranch>` so the worktree gets a real local branch\n   instead of detached HEAD — `sync-pr-branch`'s own step 1 checks\n   `git branch --show-current` and halts if that's empty:\n   ```bash\n   git worktree add -b \u003Cbranch> .claude\u002Fworktrees\u002Fpr-\u003CN> origin\u002F\u003Cbranch>\n   ```\n   `cd` doesn't persist across separate tool calls — run subsequent commands\n   with that path (`(cd .claude\u002Fworktrees\u002Fpr-\u003CN> && git ...)`, or an\n   absolute path) rather than assuming a prior `cd` carried over.\n\n   Then run **exactly** the [`sync-pr-branch`](..\u002Fsync-pr-branch\u002FSKILL.md)\n   procedure against that branch: fetch, merge `origin\u002Fmain`, merge\n   `origin\u002F\u003Cbranch>`, resolve any conflicts (see `resolve-conflicts` \u002F `rc`),\n   run the repo's pre-commit checks, push.\n\n   **Only merge `origin\u002Fmain` and the PR's own `origin\u002F\u003Cbranch>`** — never\n   another open PR's branch. Cross-PR changes stay out of scope here, same\n   as `sync-pr-branch`'s own note.\n\n   **Remove the worktree once that branch is done** —\n   `git worktree remove .claude\u002Fworktrees\u002Fpr-\u003CN>` — so they don't pile up\n   across runs. Leave it in place only when step 4 left a real conflict\n   unresolved and the PR needs a later resume.\n\n4. **A real conflict blocks that one PR, not the sweep.** If a merge needs\n   real conflict resolution beyond a mechanical pick, resolve it inline when\n   confident and small; when the resolution is ambiguous or\n   architecturally significant, leave that PR's worktree in place (mid-merge\n   is fine to pause on — don't force through it) and move to the next PR,\n   then come back to it. Report which PRs needed real resolution versus\n   which were a clean fast-forward-style merge with nothing to resolve.\n\n5. **A push can 403 in a session scoped to only its own harness-assigned\n   branch** (see `ai-config`'s own \"Use the existing PR branch, not the\n   harness-specified branch\" note). When that happens, don't retry the plain\n   push — it's a policy denial, not a transient failure. That same note's\n   default fallback is to stack the merge as its own PR against the\n   original branch, or ask the user directly — **not** to reach for\n   `git push --force-with-lease` as a routine step. A force-push is\n   destructive and needs the user's own live, per-instance authorization\n   (see the top-level git-safety rules); don't bake it into this skill's\n   default path even when a past session found the proxy permitted it —\n   that was an environment-specific exception, not a standing grant.\n   Surface the blocked PRs to the user rather than guessing at a workaround.\n\n6. **Report a per-PR summary** at the end: which PRs were already up to\n   date, which merged clean and pushed, which needed conflict resolution\n   (and whether that's done or still open), and which are blocked on\n   something outside this skill's scope (a push restriction, an ambiguous\n   conflict needing the user's call).\n\n## Notes\n\n- You *can* parallelize the local fetch-and-merge groundwork (step 3's setup,\n  before any push) within a single agent loop when the queue is large —\n  but keep the pushes themselves sequential per step 3's shared-runner\n  reasoning. This skill doesn't define a cross-agent coordination\n  mechanism, so don't dispatch one background agent per PR and assume\n  they'll serialize their pushes on their own; either push from a single\n  loop, or add an explicit handoff (a queue, a lock file) before fanning\n  the push step out across agents.\n- This skill only touches branches with an **open** PR. A stale local\n  worktree left over from a merged PR isn't in scope — that's the\n  `post-merge` skill's job.\n- If every open PR is already current with `main`, say so and stop; nothing\n  to do is a valid, common outcome right after this same skill last ran.\n","# mma\n\nRepo-wide fan-out of [`sync-pr-branch`](..\u002Fsync-pr-branch\u002FSKILL.md): instead\nof resyncing one branch, resync **every currently-open PR** in the repo that passes `memories\u002Freviewing-prs.md`'s scope test\nagainst `main` (and each PR's own remote), so a burst of merges into `main`\ndoesn't leave the rest of the queue stale and conflict-prone.\n\nThis is not a duplicate of `sync-pr-branch` — it's an orchestration layer on\ntop of it. The per-branch mechanics (fetch, merge `origin\u002Fmain`, merge\n`origin\u002F\u003Cbranch>`, resolve conflicts, run checks, push) are unchanged; only\n`sync-pr-branch` owns that logic. Keep it that way — if the per-branch steps\never need to change, fix them in `sync-pr-branch` and this skill inherits the\nfix for free.\n\n## When this fires\n\n- \"merge main into all pr branches\", \"sync every open PR with main\", \"mma\",\n  \"resync the whole queue with main\".\n- After a run of merges to `main` (e.g. finishing an `ardia`\u002F`gia` sweep) —\n  proactively, even without being asked, since every remaining open PR just\n  fell further behind.\n\n## The procedure\n\n1. **List every open PR in the repo** (`mcp__github__list_pull_requests` \u002F\n   `gh pr list --json number,headRefName,author,assignees`).\n   Note each PR's number, `headRefName`, `author`, and `assignees`.\n   Filter the list by `memories\u002Freviewing-prs.md`'s scope test first, as\n   `ardia` step 1 does (opened by or assigned to the invoking user,\n   explicitly requested by name, or authored by the GitHub Actions app (`github-actions`)), and report the PRs\n   dropped: a resync pushes a merge commit, which that memory forbids on any\n   other PR.\n\n2. **Check whether main is actually ahead** before touching anything:\n   ```bash\n   git fetch origin main\n   ```\n   For a PR whose `origin\u002Fmain` is already an ancestor of the branch tip\n   (`git merge-base --is-ancestor origin\u002Fmain \u003Cbranch-tip>` returns true),\n   skip it — main is already incorporated; nothing to merge.\n\n3. **Resync each PR branch, one at a time — do not parallelize the push\n   step.** This is the\n   [shared-runner exception](..\u002F..\u002Fshared\u002Fworkflow\u002Fwhen-to-orchestrate.md) in\n   practice: several PRs is decomposable, but each push triggers that PR's\n   own CI and `@claude` review bot on a runner the whole repo shares, and\n   parallel pushes make per-PR status illegible and can race concurrency\n   groups against each other (see `gha`'s own\n   `claude-review-\u003CPR>`\u002F`cancel-in-progress` note for what that race looks\n   like in practice). Work the queue serially, or cap concurrency low enough\n   that no two pushes land in the same few seconds.\n\n   For each PR branch, in its own worktree (never the shared main checkout —\n   see the per-repo memory file for this repo's worktree conventions if it\n   has one). Pass `-b \u003Cbranch>` so the worktree gets a real local branch\n   instead of detached HEAD — `sync-pr-branch`'s own step 1 checks\n   `git branch --show-current` and halts if that's empty:\n   ```bash\n   git worktree add -b \u003Cbranch> .claude\u002Fworktrees\u002Fpr-\u003CN> origin\u002F\u003Cbranch>\n   ```\n   `cd` doesn't persist across separate tool calls — run subsequent commands\n   with that path (`(cd .claude\u002Fworktrees\u002Fpr-\u003CN> && git ...)`, or an\n   absolute path) rather than assuming a prior `cd` carried over.\n\n   Then run **exactly** the [`sync-pr-branch`](..\u002Fsync-pr-branch\u002FSKILL.md)\n   procedure against that branch: fetch, merge `origin\u002Fmain`, merge\n   `origin\u002F\u003Cbranch>`, resolve any conflicts (see `resolve-conflicts` \u002F `rc`),\n   run the repo's pre-commit checks, push.\n\n   **Only merge `origin\u002Fmain` and the PR's own `origin\u002F\u003Cbranch>`** — never\n   another open PR's branch. Cross-PR changes stay out of scope here, same\n   as `sync-pr-branch`'s own note.\n\n   **Remove the worktree once that branch is done** —\n   `git worktree remove .claude\u002Fworktrees\u002Fpr-\u003CN>` — so they don't pile up\n   across runs. Leave it in place only when step 4 left a real conflict\n   unresolved and the PR needs a later resume.\n\n4. **A real conflict blocks that one PR, not the sweep.** If a merge needs\n   real conflict resolution beyond a mechanical pick, resolve it inline when\n   confident and small; when the resolution is ambiguous or\n   architecturally significant, leave that PR's worktree in place (mid-merge\n   is fine to pause on — don't force through it) and move to the next PR,\n   then come back to it. Report which PRs needed real resolution versus\n   which were a clean fast-forward-style merge with nothing to resolve.\n\n5. **A push can 403 in a session scoped to only its own harness-assigned\n   branch** (see `ai-config`'s own \"Use the existing PR branch, not the\n   harness-specified branch\" note). When that happens, don't retry the plain\n   push — it's a policy denial, not a transient failure. That same note's\n   default fallback is to stack the merge as its own PR against the\n   original branch, or ask the user directly — **not** to reach for\n   `git push --force-with-lease` as a routine step. A force-push is\n   destructive and needs the user's own live, per-instance authorization\n   (see the top-level git-safety rules); don't bake it into this skill's\n   default path even when a past session found the proxy permitted it —\n   that was an environment-specific exception, not a standing grant.\n   Surface the blocked PRs to the user rather than guessing at a workaround.\n\n6. **Report a per-PR summary** at the end: which PRs were already up to\n   date, which merged clean and pushed, which needed conflict resolution\n   (and whether that's done or still open), and which are blocked on\n   something outside this skill's scope (a push restriction, an ambiguous\n   conflict needing the user's call).\n\n## Notes\n\n- You *can* parallelize the local fetch-and-merge groundwork (step 3's setup,\n  before any push) within a single agent loop when the queue is large —\n  but keep the pushes themselves sequential per step 3's shared-runner\n  reasoning. This skill doesn't define a cross-agent coordination\n  mechanism, so don't dispatch one background agent per PR and assume\n  they'll serialize their pushes on their own; either push from a single\n  loop, or add an explicit handoff (a queue, a lock file) before fanning\n  the push step out across agents.\n- This skill only touches branches with an **open** PR. A stale local\n  worktree left over from a merged PR isn't in scope — that's the\n  `post-merge` skill's job.\n- If every open PR is already current with `main`, say so and stop; nothing\n  to do is a valid, common outcome right after this same skill last ran.\n",{"name":5,"description":7,"allowed-tools":24,"user-invocable":30},[25,26,27,28,29],"Bash","Read","Edit","Write","Agent",true,"main","0f720481f8ce3b3d9fef485f6e230d8b3035748e","skills\u002Fmma",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":40,"prompt":50,"zipAvailable":30},[41,44,47],{"tool":42,"command":43},"npx","npx skills add Morrison-Lab\u002Fai-config --skill mma",{"tool":45,"command":46},"bunx","bunx skills add Morrison-Lab\u002Fai-config --skill mma",{"tool":48,"command":49},"pnpm","pnpm dlx skills add Morrison-Lab\u002Fai-config --skill mma","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FMorrison-Lab\u002Fai-config\u002Fblob\u002Fmain\u002Fskills\u002Fmma\u002FSKILL.md",[],[53,60,67,74,81,88],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":19},"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":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"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":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":19},"01M735BRKZWFANSQ0GM380B4TD","wn","→ whats-next.","https:\u002F\u002Fgithub.com\u002FMorrison-Lab\u002Fai-config\u002Fblob\u002Fmain\u002Fskills\u002Fwn\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"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":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"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":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":19},"01M735BKGZHPN1PEMJ7YBD5VJ8","wai","→ send-notes.","https:\u002F\u002Fgithub.com\u002FMorrison-Lab\u002Fai-config\u002Fblob\u002Fmain\u002Fskills\u002Fwai\u002FSKILL.md",[],[]]