[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M735BTH469T1CQ8G2Q9GENCR":3,"skill-same:01M735BTH469T1CQ8G2Q9GENCR":51},{"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":30,"commitSha":31,"skillDirectory":32,"forksCount":33,"repositoryHtmlUrl":34,"repositoryHomepageUrl":35,"ownerHtmlUrl":36,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":37,"install":38,"resources":50},"01M735BTH469T1CQ8G2Q9GENCR","workaround-watcher",null,"Watch upstream issue for fix.","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\u002Fworkaround-watcher\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: workaround-watcher\ndescription: \"Watch upstream issue for fix.\"\nuser-invocable: true\nallowed-tools:\n  - Read\n  - Edit\n  - Write\n  - Bash\n---\n\n# workaround-watcher\n\nTemporary workarounds for upstream bugs tend to become permanent: once the\nupstream issue is fixed, nobody remembers the workaround exists or why. This\nskill sets up a **self-removing workaround** — a scheduled workflow that polls\nthe upstream issue\u002FPR and, the moment it's resolved, opens a PR that reverts\nyour workaround to a known-good target you committed alongside it.\n\nGeneralized from `UCD-SERG\u002Fshigella`'s `check-upstream-claude-fix.yml`, which\nwatched `anthropics\u002Fclaude-code-action#1281` and auto-PR'd the revert of a\ndirect-CLI bypass once the action bug was fixed.\n\n## When to use it\n\n- You've just added a workaround for a specific, tracked upstream bug (a\n  GitHub issue or PR in another repo) and the \"real\" fix is \"wait for\n  upstream.\"\n- The workaround is non-trivial enough that you'd want it gone once it's\n  unnecessary, but you won't be watching the upstream tracker daily.\n\nDon't bother for a one-line workaround you'll obviously notice, or when\nthere's no concrete upstream artifact to watch.\n\n## The pattern (three pieces)\n\n1. **The workaround** lives in its normal place (e.g. the modified\n   `.github\u002Fworkflows\u002Fclaude.yml`, a pinned dependency, a patched config).\n2. **A committed \"target\" template** — the desired end-state, stored *outside*\n   the active path so it isn't itself executed\u002Fused (e.g.\n   `.github\u002Ftemplates\u002F\u003Cname>-simple.yml`). This is what the file should look\n   like *after* the workaround is removed. Committing it makes the revert\n   mechanical (`cp` + diff) instead of a from-memory rewrite months later.\n3. **The watcher workflow** — a `schedule:` + `workflow_dispatch:` job that\n   checks the upstream artifact's state and opens the revert PR when it's\n   resolved.\n\n## Building the watcher\n\nCreate `.github\u002Fworkflows\u002Fcheck-upstream-\u003Cslug>.yml`. Structure:\n\n```yaml\nname: Check upstream \u003Cslug> fix\non:\n  schedule:\n    - cron: '0 12 * * 1'   # weekly is plenty; pick a quiet hour\u002Fday\n  workflow_dispatch:\npermissions:\n  contents: write\n  pull-requests: write\njobs:\n  check:\n    runs-on: ubuntu-latest\n    timeout-minutes: 5\n    steps:\n      - uses: actions\u002Fcheckout@v4\n        with:\n          fetch-depth: 0          # full history so the revert branch pushes cleanly\n\n      - name: Inspect upstream issue\n        id: issue\n        env: { GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} }\n        run: |\n          set -euo pipefail\n          data=$(gh issue view \u003CN> --repo \u003Cowner>\u002F\u003Cupstream-repo> \\\n            --json state,stateReason,url,title)\n          state=$(echo \"$data\" | jq -r '.state')\n          reason=$(echo \"$data\" | jq -r '.stateReason \u002F\u002F \"null\"')\n          # Only CLOSED + COMPLETED counts as fixed. NOT_PLANNED \u002F DUPLICATE\n          # do NOT mean a fix shipped; a REOPEN shows as OPEN.\n          if [ \"$state\" = \"CLOSED\" ] && [ \"$reason\" = \"COMPLETED\" ]; then\n            echo \"fixed=true\" >> \"$GITHUB_OUTPUT\"\n          else\n            echo \"fixed=false\" >> \"$GITHUB_OUTPUT\"\n          fi\n```\n\nThen gate three follow-on steps on `steps.issue.outputs.fixed == 'true'`:\n\n- **Already reverted?** `cmp -s \u003Ctemplate> \u003Cactive-file>` → if equal, nothing\n  to do (`already == 'true'`). Prevents re-acting after the revert merges.\n- **PR already open?** `gh pr list --head \u003Crevert-branch> --state open` → skip\n  if one exists. Prevents a new duplicate PR every week.\n- **Apply + open PR:** create the revert branch, `cp \u003Ctemplate> \u003Cactive-file>`,\n  commit, push, `gh pr create` with a body that links the upstream artifact\n  and gives the reviewer a pre-merge checklist (see below).\n\n## Watching a PR instead of an issue\n\nUse `gh pr view \u003CN> --repo \u003Cowner>\u002F\u003Crepo> --json state,mergedAt` and treat\n`state == \"MERGED\"` as fixed (a PR closed unmerged is not a fix). For a\nrelease\u002Ftag gate, `gh release view` \u002F `gh api repos\u002F...\u002Freleases\u002Flatest`.\n\n## Things to get right\n\n- **`CLOSED` is not enough — require `COMPLETED`.** Stale-bots and\n  `NOT_PLANNED`\u002F`DUPLICATE` closes are false positives that would revert a\n  still-needed workaround. (PR-watch equivalent: require `MERGED`, not just\n  `CLOSED`.)\n- **Idempotency.** The `cmp` (already-reverted) and `gh pr list` (PR-exists)\n  guards keep a weekly cron from spamming PRs or acting post-merge.\n- **Don't auto-merge.** Open a PR and let a human confirm the fix actually\n  shipped in a version you consume. Put that in the PR body as a checklist:\n  - confirm the upstream fix shipped (not closed as a side effect),\n  - confirm your pinned version resolves to a release that includes it,\n  - a quick post-merge smoke test,\n  - \"if it regresses, `git revert` — the workaround is preserved in history\n    and the template stays for next time.\"\n- **Keep the template path out of `.github\u002Fworkflows\u002F`** so Actions doesn't\n  try to run it as a workflow. A comment at the top of both the template and\n  the watcher should name the other, so a future editor doesn't move\u002Frename\n  one and silently break the `cp`.\n\n## Teardown\n\nOnce the revert PR merges, the watcher's `cmp` guard makes it a harmless\nweekly no-op. You can leave it (cheap insurance if upstream regresses) or\ndelete the watcher + template in the same PR that removes the workaround.\n","# workaround-watcher\n\nTemporary workarounds for upstream bugs tend to become permanent: once the\nupstream issue is fixed, nobody remembers the workaround exists or why. This\nskill sets up a **self-removing workaround** — a scheduled workflow that polls\nthe upstream issue\u002FPR and, the moment it's resolved, opens a PR that reverts\nyour workaround to a known-good target you committed alongside it.\n\nGeneralized from `UCD-SERG\u002Fshigella`'s `check-upstream-claude-fix.yml`, which\nwatched `anthropics\u002Fclaude-code-action#1281` and auto-PR'd the revert of a\ndirect-CLI bypass once the action bug was fixed.\n\n## When to use it\n\n- You've just added a workaround for a specific, tracked upstream bug (a\n  GitHub issue or PR in another repo) and the \"real\" fix is \"wait for\n  upstream.\"\n- The workaround is non-trivial enough that you'd want it gone once it's\n  unnecessary, but you won't be watching the upstream tracker daily.\n\nDon't bother for a one-line workaround you'll obviously notice, or when\nthere's no concrete upstream artifact to watch.\n\n## The pattern (three pieces)\n\n1. **The workaround** lives in its normal place (e.g. the modified\n   `.github\u002Fworkflows\u002Fclaude.yml`, a pinned dependency, a patched config).\n2. **A committed \"target\" template** — the desired end-state, stored *outside*\n   the active path so it isn't itself executed\u002Fused (e.g.\n   `.github\u002Ftemplates\u002F\u003Cname>-simple.yml`). This is what the file should look\n   like *after* the workaround is removed. Committing it makes the revert\n   mechanical (`cp` + diff) instead of a from-memory rewrite months later.\n3. **The watcher workflow** — a `schedule:` + `workflow_dispatch:` job that\n   checks the upstream artifact's state and opens the revert PR when it's\n   resolved.\n\n## Building the watcher\n\nCreate `.github\u002Fworkflows\u002Fcheck-upstream-\u003Cslug>.yml`. Structure:\n\n```yaml\nname: Check upstream \u003Cslug> fix\non:\n  schedule:\n    - cron: '0 12 * * 1'   # weekly is plenty; pick a quiet hour\u002Fday\n  workflow_dispatch:\npermissions:\n  contents: write\n  pull-requests: write\njobs:\n  check:\n    runs-on: ubuntu-latest\n    timeout-minutes: 5\n    steps:\n      - uses: actions\u002Fcheckout@v4\n        with:\n          fetch-depth: 0          # full history so the revert branch pushes cleanly\n\n      - name: Inspect upstream issue\n        id: issue\n        env: { GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} }\n        run: |\n          set -euo pipefail\n          data=$(gh issue view \u003CN> --repo \u003Cowner>\u002F\u003Cupstream-repo> \\\n            --json state,stateReason,url,title)\n          state=$(echo \"$data\" | jq -r '.state')\n          reason=$(echo \"$data\" | jq -r '.stateReason \u002F\u002F \"null\"')\n          # Only CLOSED + COMPLETED counts as fixed. NOT_PLANNED \u002F DUPLICATE\n          # do NOT mean a fix shipped; a REOPEN shows as OPEN.\n          if [ \"$state\" = \"CLOSED\" ] && [ \"$reason\" = \"COMPLETED\" ]; then\n            echo \"fixed=true\" >> \"$GITHUB_OUTPUT\"\n          else\n            echo \"fixed=false\" >> \"$GITHUB_OUTPUT\"\n          fi\n```\n\nThen gate three follow-on steps on `steps.issue.outputs.fixed == 'true'`:\n\n- **Already reverted?** `cmp -s \u003Ctemplate> \u003Cactive-file>` → if equal, nothing\n  to do (`already == 'true'`). Prevents re-acting after the revert merges.\n- **PR already open?** `gh pr list --head \u003Crevert-branch> --state open` → skip\n  if one exists. Prevents a new duplicate PR every week.\n- **Apply + open PR:** create the revert branch, `cp \u003Ctemplate> \u003Cactive-file>`,\n  commit, push, `gh pr create` with a body that links the upstream artifact\n  and gives the reviewer a pre-merge checklist (see below).\n\n## Watching a PR instead of an issue\n\nUse `gh pr view \u003CN> --repo \u003Cowner>\u002F\u003Crepo> --json state,mergedAt` and treat\n`state == \"MERGED\"` as fixed (a PR closed unmerged is not a fix). For a\nrelease\u002Ftag gate, `gh release view` \u002F `gh api repos\u002F...\u002Freleases\u002Flatest`.\n\n## Things to get right\n\n- **`CLOSED` is not enough — require `COMPLETED`.** Stale-bots and\n  `NOT_PLANNED`\u002F`DUPLICATE` closes are false positives that would revert a\n  still-needed workaround. (PR-watch equivalent: require `MERGED`, not just\n  `CLOSED`.)\n- **Idempotency.** The `cmp` (already-reverted) and `gh pr list` (PR-exists)\n  guards keep a weekly cron from spamming PRs or acting post-merge.\n- **Don't auto-merge.** Open a PR and let a human confirm the fix actually\n  shipped in a version you consume. Put that in the PR body as a checklist:\n  - confirm the upstream fix shipped (not closed as a side effect),\n  - confirm your pinned version resolves to a release that includes it,\n  - a quick post-merge smoke test,\n  - \"if it regresses, `git revert` — the workaround is preserved in history\n    and the template stays for next time.\"\n- **Keep the template path out of `.github\u002Fworkflows\u002F`** so Actions doesn't\n  try to run it as a workflow. A comment at the top of both the template and\n  the watcher should name the other, so a future editor doesn't move\u002Frename\n  one and silently break the `cp`.\n\n## Teardown\n\nOnce the revert PR merges, the watcher's `cmp` guard makes it a harmless\nweekly no-op. You can leave it (cheap insurance if upstream regresses) or\ndelete the watcher + template in the same PR that removes the workaround.\n",{"name":5,"description":7,"allowed-tools":24,"user-invocable":29},[25,26,27,28],"Read","Edit","Write","Bash",true,"main","0f720481f8ce3b3d9fef485f6e230d8b3035748e","skills\u002Fworkaround-watcher",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":39,"prompt":49,"zipAvailable":29},[40,43,46],{"tool":41,"command":42},"npx","npx skills add Morrison-Lab\u002Fai-config --skill workaround-watcher",{"tool":44,"command":45},"bunx","bunx skills add Morrison-Lab\u002Fai-config --skill workaround-watcher",{"tool":47,"command":48},"pnpm","pnpm dlx skills add Morrison-Lab\u002Fai-config --skill workaround-watcher","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FMorrison-Lab\u002Fai-config\u002Fblob\u002Fmain\u002Fskills\u002Fworkaround-watcher\u002FSKILL.md",[],[52,59,66,73,80,87],{"skillNo":53,"name":54,"nameZh":6,"description":55,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":58,"publishedAt":19},"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":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":19},"01M735BRKZWFANSQ0GM380B4TD","wn","→ whats-next.","https:\u002F\u002Fgithub.com\u002FMorrison-Lab\u002Fai-config\u002Fblob\u002Fmain\u002Fskills\u002Fwn\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":19},"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":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"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":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M735BKGZHPN1PEMJ7YBD5VJ8","wai","→ send-notes.","https:\u002F\u002Fgithub.com\u002FMorrison-Lab\u002Fai-config\u002Fblob\u002Fmain\u002Fskills\u002Fwai\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":19},"01M735BJ0ZBADJXQ9YPTYSWJZN","use-preferred-style","Apply preferred writing style.","https:\u002F\u002Fgithub.com\u002FMorrison-Lab\u002Fai-config\u002Fblob\u002Fmain\u002Fskills\u002Fuse-preferred-style\u002FSKILL.md",[],[]]