[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M735396AEVEK1TC10Z9HT84D":3,"skill-same:01M735396AEVEK1TC10Z9HT84D":49},{"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":28,"commitSha":29,"skillDirectory":30,"forksCount":31,"repositoryHtmlUrl":32,"repositoryHomepageUrl":33,"ownerHtmlUrl":34,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":35,"install":36,"resources":48},"01M735396AEVEK1TC10Z9HT84D","fetch-all",null,"Fetch all remotes and submodules.","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\u002Ffetch-all\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: fetch-all\ndescription: \"Fetch all remotes and submodules.\"\nuser-invocable: true\nallowed-tools:\n  - Bash\n  - Read\n---\n\n# Fetch All (aka `fa`)\n\nRun `git fetch origin` across **every git repo under a directory** and report a\nper-repo status line. This is a **read-only** sweep — it updates remote-tracking\nrefs only. It never merges, pulls, rebases, or touches any working tree, so it's\nsafe to run over a whole directory of repos with uncommitted work.\n\n## When this fires\n\n- \"fetch all\", \"fa\", \"fetch from origin on all repos\", \"fetch every repo\"\n- \"update all my repos\", \"git fetch everywhere\"\n- \"fetch all the repos under `\u003Cdir>`\"\n\nFor a single repo that also merges main and the remote branch and pushes, use\n`sync-pr-branch` \u002F `sync` instead — that one mutates the tree; this one doesn't.\n\n## Scope\n\n- **Default root**: the current working directory. Sweep its **immediate\n  subdirectories** (depth 1) that are git repos.\n- The user may name a different root (\"fetch all the repos under `~\u002Fcode`\") —\n  use that instead.\n- A repo with **no `origin` remote** is reported `SKIP`, not failed.\n\n## Procedure\n\n### 1. Preview the repos (optional)\n\nTo see what the sweep will cover before running it:\n\n```bash\nROOT=\"${ROOT:-$PWD}\"     # or the directory the user named\nfind \"$ROOT\" -maxdepth 2 -name .git | sort   # no -type d: worktree\u002Fsubmodule .git is a file\n```\n\n`-maxdepth 2` finds `\u003Croot>\u002F\u003Crepo>\u002F.git` — the immediate children. (If `ROOT`\nis *itself* a repo it also lists `\u003Croot>\u002F.git`; the Step 2 loop ignores that\ncase, fetching only the subdirectories.) Don't recurse deeper by default:\nnested repos and submodules balloon the sweep, and submodule fetches are\nhandled by their superproject. This step is just a preview — the Step 2 loop\ndiscovers the repos on its own, so you can skip straight to it.\n\n### 2. Fetch each, capture status\n\nLoop over the immediate subdirectories, fetch each from origin, and classify\nthe outcome. This loop is self-contained — it does its own discovery (no need\nto pipe Step 1 into it). Run it as a single block so the user gets one\nconsolidated report:\n\n```bash\nROOT=\"${ROOT:-$PWD}\"     # the root from Step 1, or default to the current dir\ncd \"$ROOT\" || { echo \"ERROR: cannot cd to $ROOT\"; exit 1; }\nfor d in *\u002F; do\n  repo=\"${d%\u002F}\"\n  [ -e \"$repo\u002F.git\" ] || continue   # -e, not -d: a worktree\u002Fsubmodule .git is a file\n  if ! git -C \"$repo\" remote | grep -qx origin; then\n    echo \"SKIP $repo (no origin remote)\"; continue\n  fi\n  if ! out=$(git -C \"$repo\" fetch origin 2>&1); then   # FETCH\n    echo \"FAIL $repo: $(echo \"$out\" | tr '\\n' ' ')\"\n  elif [ -z \"$out\" ]; then\n    echo \"OK   $repo\"\n  else\n    echo \"UPD  $repo: $(echo \"$out\" | tr '\\n' ' ')\"\n  fi\ndone\n```\n\nStatus codes:\n\n| Code   | Meaning                                                        |\n|--------|---------------------------------------------------------------|\n| `OK`   | Fetch succeeded, already up to date (no new refs)             |\n| `UPD`  | Fetch succeeded and pulled new commits \u002F branches \u002F tags      |\n| `FAIL` | Fetch errored (unreachable host, auth, missing repo, ref clash) |\n| `SKIP` | No `origin` remote — nothing to fetch                         |\n\n### 3. Report\n\nSummarize counts (OK \u002F updated \u002F failed \u002F skipped), then **call out the\nfailures and skips explicitly** — those are the only lines the user needs to act\non. For each `FAIL`, give the one-line reason and, where the fix is obvious,\nsuggest it:\n\n- **`Could not resolve host`** → off the VPN \u002F network for an internal forge\n  (e.g. a corporate GitLab). Reconnect and re-run.\n- **`Repository not found` \u002F `repository ... not found`** → the remote was\n  moved or deleted; the `origin` URL is stale.\n- **`'refs\u002Fremotes\u002Forigin\u002F\u003Cx>' exists; cannot create 'refs\u002Fremotes\u002Forigin\u002F\u003Cx>\u002F\u003Cy>'`**\n  → a ref\u002Fnamespace clash. Fix with `git -C \u003Crepo> remote prune origin` then\n  re-fetch that one. Same for an `Errors during submodule fetch` line.\n\nDon't bury a `FAIL` inside a wall of `OK` lines — the failures are the signal.\n\n## Anti-patterns\n\n- ❌ Following the fetch with `git pull` \u002F `git merge` — this skill is\n  read-only by contract; mutating the tree is `sync-pr-branch`'s job.\n- ❌ Recursing into every nested `.git` (huge sweeps, redundant submodule\n  fetches). Stay at depth 1 unless asked.\n- ❌ Reporting a no-`origin` repo as a failure — it's a `SKIP`.\n- ❌ Aborting the whole sweep when one repo fails — each repo is independent;\n  keep going and collect every result.\n\n## Relationship to other skills\n\n- **`sync-pr-branch` \u002F `sync` \u002F `merge-main`** — single-repo, *mutating*\n  counterpart: fetch **and** merge main + remote branch, then push. Use that\n  when you want the working tree updated, not just the refs.\n- **`clean-branches` \u002F `cb` \u002F `prune`** — after fetching, prune and tidy the\n  branches the fetch revealed.\n- **`pr-status-all`** — whole-repo status overview once refs are current.\n","# Fetch All (aka `fa`)\n\nRun `git fetch origin` across **every git repo under a directory** and report a\nper-repo status line. This is a **read-only** sweep — it updates remote-tracking\nrefs only. It never merges, pulls, rebases, or touches any working tree, so it's\nsafe to run over a whole directory of repos with uncommitted work.\n\n## When this fires\n\n- \"fetch all\", \"fa\", \"fetch from origin on all repos\", \"fetch every repo\"\n- \"update all my repos\", \"git fetch everywhere\"\n- \"fetch all the repos under `\u003Cdir>`\"\n\nFor a single repo that also merges main and the remote branch and pushes, use\n`sync-pr-branch` \u002F `sync` instead — that one mutates the tree; this one doesn't.\n\n## Scope\n\n- **Default root**: the current working directory. Sweep its **immediate\n  subdirectories** (depth 1) that are git repos.\n- The user may name a different root (\"fetch all the repos under `~\u002Fcode`\") —\n  use that instead.\n- A repo with **no `origin` remote** is reported `SKIP`, not failed.\n\n## Procedure\n\n### 1. Preview the repos (optional)\n\nTo see what the sweep will cover before running it:\n\n```bash\nROOT=\"${ROOT:-$PWD}\"     # or the directory the user named\nfind \"$ROOT\" -maxdepth 2 -name .git | sort   # no -type d: worktree\u002Fsubmodule .git is a file\n```\n\n`-maxdepth 2` finds `\u003Croot>\u002F\u003Crepo>\u002F.git` — the immediate children. (If `ROOT`\nis *itself* a repo it also lists `\u003Croot>\u002F.git`; the Step 2 loop ignores that\ncase, fetching only the subdirectories.) Don't recurse deeper by default:\nnested repos and submodules balloon the sweep, and submodule fetches are\nhandled by their superproject. This step is just a preview — the Step 2 loop\ndiscovers the repos on its own, so you can skip straight to it.\n\n### 2. Fetch each, capture status\n\nLoop over the immediate subdirectories, fetch each from origin, and classify\nthe outcome. This loop is self-contained — it does its own discovery (no need\nto pipe Step 1 into it). Run it as a single block so the user gets one\nconsolidated report:\n\n```bash\nROOT=\"${ROOT:-$PWD}\"     # the root from Step 1, or default to the current dir\ncd \"$ROOT\" || { echo \"ERROR: cannot cd to $ROOT\"; exit 1; }\nfor d in *\u002F; do\n  repo=\"${d%\u002F}\"\n  [ -e \"$repo\u002F.git\" ] || continue   # -e, not -d: a worktree\u002Fsubmodule .git is a file\n  if ! git -C \"$repo\" remote | grep -qx origin; then\n    echo \"SKIP $repo (no origin remote)\"; continue\n  fi\n  if ! out=$(git -C \"$repo\" fetch origin 2>&1); then   # FETCH\n    echo \"FAIL $repo: $(echo \"$out\" | tr '\\n' ' ')\"\n  elif [ -z \"$out\" ]; then\n    echo \"OK   $repo\"\n  else\n    echo \"UPD  $repo: $(echo \"$out\" | tr '\\n' ' ')\"\n  fi\ndone\n```\n\nStatus codes:\n\n| Code   | Meaning                                                        |\n|--------|---------------------------------------------------------------|\n| `OK`   | Fetch succeeded, already up to date (no new refs)             |\n| `UPD`  | Fetch succeeded and pulled new commits \u002F branches \u002F tags      |\n| `FAIL` | Fetch errored (unreachable host, auth, missing repo, ref clash) |\n| `SKIP` | No `origin` remote — nothing to fetch                         |\n\n### 3. Report\n\nSummarize counts (OK \u002F updated \u002F failed \u002F skipped), then **call out the\nfailures and skips explicitly** — those are the only lines the user needs to act\non. For each `FAIL`, give the one-line reason and, where the fix is obvious,\nsuggest it:\n\n- **`Could not resolve host`** → off the VPN \u002F network for an internal forge\n  (e.g. a corporate GitLab). Reconnect and re-run.\n- **`Repository not found` \u002F `repository ... not found`** → the remote was\n  moved or deleted; the `origin` URL is stale.\n- **`'refs\u002Fremotes\u002Forigin\u002F\u003Cx>' exists; cannot create 'refs\u002Fremotes\u002Forigin\u002F\u003Cx>\u002F\u003Cy>'`**\n  → a ref\u002Fnamespace clash. Fix with `git -C \u003Crepo> remote prune origin` then\n  re-fetch that one. Same for an `Errors during submodule fetch` line.\n\nDon't bury a `FAIL` inside a wall of `OK` lines — the failures are the signal.\n\n## Anti-patterns\n\n- ❌ Following the fetch with `git pull` \u002F `git merge` — this skill is\n  read-only by contract; mutating the tree is `sync-pr-branch`'s job.\n- ❌ Recursing into every nested `.git` (huge sweeps, redundant submodule\n  fetches). Stay at depth 1 unless asked.\n- ❌ Reporting a no-`origin` repo as a failure — it's a `SKIP`.\n- ❌ Aborting the whole sweep when one repo fails — each repo is independent;\n  keep going and collect every result.\n\n## Relationship to other skills\n\n- **`sync-pr-branch` \u002F `sync` \u002F `merge-main`** — single-repo, *mutating*\n  counterpart: fetch **and** merge main + remote branch, then push. Use that\n  when you want the working tree updated, not just the refs.\n- **`clean-branches` \u002F `cb` \u002F `prune`** — after fetching, prune and tidy the\n  branches the fetch revealed.\n- **`pr-status-all`** — whole-repo status overview once refs are current.\n",{"name":5,"description":7,"allowed-tools":24,"user-invocable":27},[25,26],"Bash","Read",true,"main","0f720481f8ce3b3d9fef485f6e230d8b3035748e","skills\u002Ffetch-all",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":37,"prompt":47,"zipAvailable":27},[38,41,44],{"tool":39,"command":40},"npx","npx skills add Morrison-Lab\u002Fai-config --skill fetch-all",{"tool":42,"command":43},"bunx","bunx skills add Morrison-Lab\u002Fai-config --skill fetch-all",{"tool":45,"command":46},"pnpm","pnpm dlx skills add Morrison-Lab\u002Fai-config --skill fetch-all","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FMorrison-Lab\u002Fai-config\u002Fblob\u002Fmain\u002Fskills\u002Ffetch-all\u002FSKILL.md",[],[50,57,64,71,78,85],{"skillNo":51,"name":52,"nameZh":6,"description":53,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":54,"categories":55,"keywords":56,"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":58,"name":59,"nameZh":6,"description":60,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"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":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":19},"01M735BRKZWFANSQ0GM380B4TD","wn","→ whats-next.","https:\u002F\u002Fgithub.com\u002FMorrison-Lab\u002Fai-config\u002Fblob\u002Fmain\u002Fskills\u002Fwn\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"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":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"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":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":19},"01M735BKGZHPN1PEMJ7YBD5VJ8","wai","→ send-notes.","https:\u002F\u002Fgithub.com\u002FMorrison-Lab\u002Fai-config\u002Fblob\u002Fmain\u002Fskills\u002Fwai\u002FSKILL.md",[],[]]