[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71FTDMRRMR48EFJXTT548FT":3,"skill-same:01M71FTDMRRMR48EFJXTT548FT":67},{"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":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":45,"commitSha":46,"skillDirectory":47,"forksCount":14,"repositoryHtmlUrl":48,"repositoryHomepageUrl":6,"ownerHtmlUrl":49,"ownerBlogUrl":50,"ownerDescription":51,"updatedAt":52,"install":53,"resources":66},"01M71FTDMRRMR48EFJXTT548FT","sync-fork",null,"ALWAYS invoke this skill when bringing a fork's default branch current with the repository it was forked from. NEVER bring a fork's default branch current with `gh repo sync`, `git merge`, or `git reset` run directly.","outcomeeng\u002Fplugins","outcomeeng","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F257335685?v=4","01M71FRVRF36XYR3HRSCGFHK2R","Outcome Engineering","01M71FRVS4BZG17DWANFJ7EPNY",1,"MIT","https:\u002F\u002Fgithub.com\u002Foutcomeeng\u002Fplugins\u002Fblob\u002Fmain\u002Fsrc\u002Fplugins\u002Fcontribute\u002Fskills\u002Fsync-fork\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"sync fork","fork","sync","default","when","invoke","rev","bring","URL","remote","get","never","use","fetch","view","repo","branch","gh","tool","git merge","2026-11-10 10:12:30",false,"---\nname: sync-fork\ndescription: >-\n  ALWAYS invoke this skill when bringing a fork's default branch current with the repository it was forked from.\n  NEVER bring a fork's default branch current with `gh repo sync`, `git merge`, or `git reset` run directly.\nallowed-tools: Bash(git remote get-url origin), {{! tool('use_skill') !}}, Bash(gh repo view:*), Bash(gh repo sync:*), Bash(git fetch:*), Bash(git rev-list:*), Bash(git log:*)\n---\n\n\u003Cobjective>\nThe fork's default branch current with its upstream's default branch, or the divergence that prevents it named commit by commit.\n\u003C\u002Fobjective>\n\n\u003Cworkflow>\n\n**Step 1 — Load the standards.** {!% require_skill 'contribute:contribution-standards' %!} Its vocabulary names the upstream, base, and head.\n\n**Step 2 — GATE: Establish the target.** Read the live `\u003CUPSTREAM_TARGET>` marker; invoke `\u002Fupstream` when none is live. Only `upstream-contribution` continues — it is the classification that reports both a head repository and the upstream it was forked from. `head-ambiguous` names several forks, and choosing which to sync is the operator's. `fork-absent` has nothing to sync, `controlled` describes a repository that is not a fork of another party's, and `blocked` stops with the resolver's `detail` verbatim.\n\n**Step 3 — Read the two default branches.** Substitute the resolved values literally per `\u002Fcontribution-standards` `\u003Cresolution>`:\n\n```bash\ngh repo view \"\u003Chead>\" --json defaultBranchRef --jq '.defaultBranchRef.name'\ngh repo view \"\u003Cbase>\" --json defaultBranchRef --jq '.defaultBranchRef.name'\n```\n\n**Step 4 — GATE: Establish behind versus diverged.** Confirm `origin` resolves to the resolved head per `\u002Fcontribution-standards` `\u003Cresolution>` before fetching through it — a remote name is a local label, and this step decides whether to discard commits:\n\n```bash\ngh repo view \"$(git remote get-url origin)\" --json nameWithOwner --jq '.nameWithOwner'\n```\n\n**STOP when that does not equal the resolved `head`.** Fetch the base default branch by URL, so the count never depends on a remote name the checkout may not carry, then count commits on each side:\n\n```bash\ngit fetch origin \"\u003Chead-default-branch>\"\ngit fetch \"https:\u002F\u002Fgithub.com\u002F\u003Cbase>.git\" \"\u003Cbase-default-branch>\"\ngit rev-list --left-right --count \"origin\u002F\u003Chead-default-branch>...FETCH_HEAD\"\n```\n\nThe left count is commits the fork's default branch carries that the upstream does not. When it is zero the fork is behind and Step 5 syncs it. When it is greater than zero the fork's default branch is **diverged**: someone committed there, and syncing would discard that work.\n\nA diverged default branch stops the flow. Read the commits the count reported on the left, which is the side `origin\u002F\u003Chead-default-branch>` carries and the upstream does not:\n\n```bash\ngit log --format='%h %s (%an)' \"FETCH_HEAD..origin\u002F\u003Chead-default-branch>\"\n```\n\nReport each one with its subject and author, and the branch or pull request that could preserve it. Never resolve divergence by discarding.\n\n**Step 5 — Sync.**\n\n```bash\ngh repo sync \"\u003Chead>\" --source \"\u003Cbase>\" --branch \"\u003Chead-default-branch>\"\n```\n\n`--branch` names the branch to update in the destination, so it is the head's default branch — the one Step 4 compared. Naming the base's default instead updates a differently-named branch, or fails, and either way leaves the fork's default stale. When the two defaults carry different names, report both and stop: `gh repo sync` matches by name, and choosing which branch tracks which is the operator's call.\n\nNEVER pass `--force`. The flag exists to make the fork's default branch match the upstream's by discarding whatever the fork carries, which is the outcome Step 4 stops for.\n\n**Step 6 — Report.** State the head repository, the upstream, the branch synced, and the commit count the sync advanced. When Step 4 found divergence, state that instead and leave both repositories untouched.\n\n\u003C\u002Fworkflow>\n\n\u003Cworked_example>\n\nOne diverged fork, `operator-org\u002Fparser` forked from `acme\u002Fparser`, to compare a report against. Step 4's count decides the whole flow:\n\n```console\n$ git rev-list --left-right --count \"origin\u002Fmain...FETCH_HEAD\"\n2\t17\n```\n\nThe left number is 2, so `main` carries two commits `acme\u002Fparser` has never seen and Step 5 never runs. `0\t17` would read as behind-only and sync. Name what the left side holds:\n\n```console\n$ git log --format='%h %s (%an)' \"FETCH_HEAD..origin\u002Fmain\"\nc41d09e Pin the parser version for the demo (R. Ellis)\n8a2f7b1 Add local notes on the strict flag (R. Ellis)\n```\n\nThe report:\n\n```text\noperator-org\u002Fparser's default branch `main` has diverged from acme\u002Fparser's. It\ncarries 2 commits the upstream does not, and it is 17 behind:\n\n- c41d09e Pin the parser version for the demo (R. Ellis)\n- 8a2f7b1 Add local notes on the strict flag (R. Ellis)\n\nSyncing discards both. `git switch -c demo-pins main` in this checkout keeps\nthem, and whichever belongs upstream can go through \u002Fopen-upstream-pr. Neither\nrepository was changed.\n```\n\nThe report names every commit by subject and author, so the operator recognizes the work before deciding its fate. It offers the branch that preserves them rather than asking whether to discard, and it says plainly that nothing moved — a divergence report that ends without that sentence reads like a failed sync.\n\n\u003C\u002Fworked_example>\n\n\u003Cconstraints>\n\n- MUST establish the upstream through `\u002Fupstream`, never from a remote carrying that name — a remote name is a local label that identifies no repository.\n- MUST classify behind versus diverged before syncing.\n- NEVER pass `--force` to `gh repo sync`. The `Bash(gh repo sync:*)` grant matches by prefix, so it admits `--force` too — the allow-list cannot express \"every flag but this one\". This constraint is the whole containment for that flag, not a restatement of what the grant already blocks.\n- NEVER resolve divergence by discarding commits; report them and stop.\n- NEVER treat a stale fork default branch as a blocker for opening a contribution — a contribution branch is cut from the base repository's default branch.\n\n\u003C\u002Fconstraints>\n\n\u003Csuccess_criteria>\n\n- The `\u003CUPSTREAM_TARGET>` marker read for this pass carries `classification=\"upstream-contribution\"`, and its `base` and `head` values appear verbatim.\n- Behind and diverged were distinguished by commit count before any mutation.\n- A behind fork's default branch matches its upstream's: `gh repo sync` reported the commits it advanced, and that count reaches the report.\n- A diverged fork's default branch is untouched: no `gh repo sync` ran, and every commit the Step 4 left count covers is named by subject and author.\n- No force flag and no reset appears in any executed command.\n\n\u003C\u002Fsuccess_criteria>\n","\u003Cobjective>\nThe fork's default branch current with its upstream's default branch, or the divergence that prevents it named commit by commit.\n\u003C\u002Fobjective>\n\n\u003Cworkflow>\n\n**Step 1 — Load the standards.** {!% require_skill 'contribute:contribution-standards' %!} Its vocabulary names the upstream, base, and head.\n\n**Step 2 — GATE: Establish the target.** Read the live `\u003CUPSTREAM_TARGET>` marker; invoke `\u002Fupstream` when none is live. Only `upstream-contribution` continues — it is the classification that reports both a head repository and the upstream it was forked from. `head-ambiguous` names several forks, and choosing which to sync is the operator's. `fork-absent` has nothing to sync, `controlled` describes a repository that is not a fork of another party's, and `blocked` stops with the resolver's `detail` verbatim.\n\n**Step 3 — Read the two default branches.** Substitute the resolved values literally per `\u002Fcontribution-standards` `\u003Cresolution>`:\n\n```bash\ngh repo view \"\u003Chead>\" --json defaultBranchRef --jq '.defaultBranchRef.name'\ngh repo view \"\u003Cbase>\" --json defaultBranchRef --jq '.defaultBranchRef.name'\n```\n\n**Step 4 — GATE: Establish behind versus diverged.** Confirm `origin` resolves to the resolved head per `\u002Fcontribution-standards` `\u003Cresolution>` before fetching through it — a remote name is a local label, and this step decides whether to discard commits:\n\n```bash\ngh repo view \"$(git remote get-url origin)\" --json nameWithOwner --jq '.nameWithOwner'\n```\n\n**STOP when that does not equal the resolved `head`.** Fetch the base default branch by URL, so the count never depends on a remote name the checkout may not carry, then count commits on each side:\n\n```bash\ngit fetch origin \"\u003Chead-default-branch>\"\ngit fetch \"https:\u002F\u002Fgithub.com\u002F\u003Cbase>.git\" \"\u003Cbase-default-branch>\"\ngit rev-list --left-right --count \"origin\u002F\u003Chead-default-branch>...FETCH_HEAD\"\n```\n\nThe left count is commits the fork's default branch carries that the upstream does not. When it is zero the fork is behind and Step 5 syncs it. When it is greater than zero the fork's default branch is **diverged**: someone committed there, and syncing would discard that work.\n\nA diverged default branch stops the flow. Read the commits the count reported on the left, which is the side `origin\u002F\u003Chead-default-branch>` carries and the upstream does not:\n\n```bash\ngit log --format='%h %s (%an)' \"FETCH_HEAD..origin\u002F\u003Chead-default-branch>\"\n```\n\nReport each one with its subject and author, and the branch or pull request that could preserve it. Never resolve divergence by discarding.\n\n**Step 5 — Sync.**\n\n```bash\ngh repo sync \"\u003Chead>\" --source \"\u003Cbase>\" --branch \"\u003Chead-default-branch>\"\n```\n\n`--branch` names the branch to update in the destination, so it is the head's default branch — the one Step 4 compared. Naming the base's default instead updates a differently-named branch, or fails, and either way leaves the fork's default stale. When the two defaults carry different names, report both and stop: `gh repo sync` matches by name, and choosing which branch tracks which is the operator's call.\n\nNEVER pass `--force`. The flag exists to make the fork's default branch match the upstream's by discarding whatever the fork carries, which is the outcome Step 4 stops for.\n\n**Step 6 — Report.** State the head repository, the upstream, the branch synced, and the commit count the sync advanced. When Step 4 found divergence, state that instead and leave both repositories untouched.\n\n\u003C\u002Fworkflow>\n\n\u003Cworked_example>\n\nOne diverged fork, `operator-org\u002Fparser` forked from `acme\u002Fparser`, to compare a report against. Step 4's count decides the whole flow:\n\n```console\n$ git rev-list --left-right --count \"origin\u002Fmain...FETCH_HEAD\"\n2\t17\n```\n\nThe left number is 2, so `main` carries two commits `acme\u002Fparser` has never seen and Step 5 never runs. `0\t17` would read as behind-only and sync. Name what the left side holds:\n\n```console\n$ git log --format='%h %s (%an)' \"FETCH_HEAD..origin\u002Fmain\"\nc41d09e Pin the parser version for the demo (R. Ellis)\n8a2f7b1 Add local notes on the strict flag (R. Ellis)\n```\n\nThe report:\n\n```text\noperator-org\u002Fparser's default branch `main` has diverged from acme\u002Fparser's. It\ncarries 2 commits the upstream does not, and it is 17 behind:\n\n- c41d09e Pin the parser version for the demo (R. Ellis)\n- 8a2f7b1 Add local notes on the strict flag (R. Ellis)\n\nSyncing discards both. `git switch -c demo-pins main` in this checkout keeps\nthem, and whichever belongs upstream can go through \u002Fopen-upstream-pr. Neither\nrepository was changed.\n```\n\nThe report names every commit by subject and author, so the operator recognizes the work before deciding its fate. It offers the branch that preserves them rather than asking whether to discard, and it says plainly that nothing moved — a divergence report that ends without that sentence reads like a failed sync.\n\n\u003C\u002Fworked_example>\n\n\u003Cconstraints>\n\n- MUST establish the upstream through `\u002Fupstream`, never from a remote carrying that name — a remote name is a local label that identifies no repository.\n- MUST classify behind versus diverged before syncing.\n- NEVER pass `--force` to `gh repo sync`. The `Bash(gh repo sync:*)` grant matches by prefix, so it admits `--force` too — the allow-list cannot express \"every flag but this one\". This constraint is the whole containment for that flag, not a restatement of what the grant already blocks.\n- NEVER resolve divergence by discarding commits; report them and stop.\n- NEVER treat a stale fork default branch as a blocker for opening a contribution — a contribution branch is cut from the base repository's default branch.\n\n\u003C\u002Fconstraints>\n\n\u003Csuccess_criteria>\n\n- The `\u003CUPSTREAM_TARGET>` marker read for this pass carries `classification=\"upstream-contribution\"`, and its `base` and `head` values appear verbatim.\n- Behind and diverged were distinguished by commit count before any mutation.\n- A behind fork's default branch matches its upstream's: `gh repo sync` reported the commits it advanced, and that count reaches the report.\n- A diverged fork's default branch is untouched: no `gh repo sync` ran, and every commit the Step 4 left count covers is named by subject and author.\n- No force flag and no reset appears in any executed command.\n\n\u003C\u002Fsuccess_criteria>\n",{"name":5,"description":7,"allowed-tools":44},"Bash(git remote get-url origin), {{! tool('use_skill') !}}, Bash(gh repo view:*), Bash(gh repo sync:*), Bash(git fetch:*), Bash(git rev-list:*), Bash(git log:*)","main","978d51c51d68c99cffb2ba48f7cad9d2f07e5738","src\u002Fplugins\u002Fcontribute\u002Fskills\u002Fsync-fork","https:\u002F\u002Fgithub.com\u002Foutcomeeng\u002Fplugins","https:\u002F\u002Fgithub.com\u002Foutcomeeng","https:\u002F\u002Foutcome.engineering","Spec-driven development for AI-assisted engineering","2026-11-14 20:33:56",{"source":8,"skillName":5,"commands":54,"prompt":64,"zipAvailable":65},[55,58,61],{"tool":56,"command":57},"npx","npx skills add outcomeeng\u002Fplugins --skill sync-fork",{"tool":59,"command":60},"bunx","bunx skills add outcomeeng\u002Fplugins --skill sync-fork",{"tool":62,"command":63},"pnpm","pnpm dlx skills add outcomeeng\u002Fplugins --skill sync-fork","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Foutcomeeng\u002Fplugins\u002Fblob\u002Fmain\u002Fsrc\u002Fplugins\u002Fcontribute\u002Fskills\u002Fsync-fork\u002FSKILL.md",true,[],[68,74,98,114,128,138],{"skillNo":69,"name":70,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":39},"01M71G25RZTPQG9KJ00JCHC1F7","plugin","https:\u002F\u002Fgithub.com\u002Foutcomeeng\u002Fplugins\u002Fblob\u002Fmain\u002Fsrc\u002Ftemplates\u002Fplugin\u002FSKILL.md",[],[70],{"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":39},"01M71G23DCX3SV60H63HBBKQ6J","sanitize-powerpoint","ALWAYS invoke this skill when sanitizing, cleaning up, auditing, or aligning a PowerPoint (.pptx) deck — slide-master and layout structure, layout type attributes, stray fonts, non-theme colors, or layout naming. NEVER hand-edit pptx XML without this skill.","https:\u002F\u002Fgithub.com\u002Foutcomeeng\u002Fplugins\u002Fblob\u002Fmain\u002Fsrc\u002Fplugins\u002Fwork\u002Fskills\u002Fsanitize-powerpoint\u002FSKILL.md",[],[81,82,83,84,85,86,87,30,88,89,90,91,92,93,94,95,96,97,24,23],"sanitize powerpoint","powerpoint","sanitize","fonts","type","cleaning","structure","attributes","theme","pptx","naming","layout","deck","up","edit","xml","master",{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":39},"01M71G21PQKBCDECHGVYSKPJW5","draw-excalidraw","ALWAYS invoke this skill when creating Excalidraw diagrams, visualizing workflows, architectures, or concepts. NEVER generate Excalidraw JSON without this skill.","https:\u002F\u002Fgithub.com\u002Foutcomeeng\u002Fplugins\u002Fblob\u002Fmain\u002Fsrc\u002Fplugins\u002Fwork\u002Fskills\u002Fdraw-excalidraw\u002FSKILL.md",[],[105,106,107,108,109,30,24,110,111,23,112,113],"draw excalidraw","excalidraw","draw","diagrams","architectures","generate","workflows","concepts","json",{"skillNo":115,"name":116,"nameZh":6,"description":117,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":118,"categories":119,"keywords":120,"publishedAt":39},"01M71G1ZMNGFD37RZYM620XM2C","typescript-test-standards","TypeScript test standards enforced across all skills. Loaded by other skills, not invoked directly.","https:\u002F\u002Fgithub.com\u002Foutcomeeng\u002Fplugins\u002Fblob\u002Fmain\u002Fsrc\u002Fplugins\u002Ftypescript\u002Fskills\u002Ftypescript-test-standards\u002FSKILL.md",[],[121,122,123,124,125,126,127],"typescript","typescript test standards","test","standards","false","read","across",{"skillNo":129,"name":130,"nameZh":6,"description":131,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":132,"categories":133,"keywords":134,"publishedAt":39},"01M71G1XBH0X1VCTR7269MDGSY","typescript-code-standards","TypeScript code standards enforced across all skills. Loaded by other skills, not invoked directly.","https:\u002F\u002Fgithub.com\u002Foutcomeeng\u002Fplugins\u002Fblob\u002Fmain\u002Fsrc\u002Fplugins\u002Ftypescript\u002Fskills\u002Ftypescript-code-standards\u002FSKILL.md",[],[121,135,136,137,124,125,126,127],"code","typescript code standards","code standards",{"skillNo":139,"name":140,"nameZh":6,"description":141,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":142,"categories":143,"keywords":144,"publishedAt":39},"01M71G1TQ3VN45SJ75DFMJDB9W","typescript-architecture-standards","TypeScript ADR conventions enforced across architect and auditor skills. Loaded by other skills, not invoked directly.","https:\u002F\u002Fgithub.com\u002Foutcomeeng\u002Fplugins\u002Fblob\u002Fmain\u002Fsrc\u002Fplugins\u002Ftypescript\u002Fskills\u002Ftypescript-architecture-standards\u002FSKILL.md",[],[145,124,146,147,121,148,149,127,126,150,125,151],"architecture standards","typescript architecture standards","architecture","adr","architect","auditor","conventions"]