[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71RRX1XYHADZVHQPFPCCNRE":3,"skill-same:01M71RRX1XYHADZVHQPFPCCNRE":64},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":38,"linkOnly":39,"markdownContent":40,"markdownBody":41,"frontMatter":42,"refName":32,"commitSha":43,"skillDirectory":44,"forksCount":45,"repositoryHtmlUrl":46,"repositoryHomepageUrl":47,"ownerHtmlUrl":48,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":49,"install":50,"resources":63},"01M71RRX1XYHADZVHQPFPCCNRE","garrison-merge",null,"Integrate origin\u002Fmain into this node's main checkout of a project, under the two rails - a pre-merge revert tag and a decision card for every non-trivial merge. Use when a merge card arrives on this node's board (duty `merge`), when a node's work needs to land here, or when the nightly convergence card asks for a merge. Not for ordinary same-branch commits and not for resolving a conflict a human is already sitting in.","gongiskhan\u002Fagent-garrison","gongiskhan","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1997392?v=4","01M71RKMFR53TKXE308C22QTNZ","01M71RKMJA57KZHNDCBNKTWZRR",1,"MIT","https:\u002F\u002Fgithub.com\u002Fgongiskhan\u002Fagent-garrison\u002Fblob\u002Fmain\u002Ffittings\u002Fseed\u002Fmerge-agent\u002F.apm\u002Fskills\u002Fgarrison-merge\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37],"garrison merge","garrison","merge","checkout","needs","same","two","revert","when","for","pre-merge","card","conflict","project","main","use","branch","work","decision","commits","2026-11-10 13:02:02",false,"---\nname: garrison-merge\ndescription: Integrate origin\u002Fmain into this node's main checkout of a project, under the two rails - a pre-merge revert tag and a decision card for every non-trivial merge. Use when a merge card arrives on this node's board (duty `merge`), when a node's work needs to land here, or when the nightly convergence card asks for a merge. Not for ordinary same-branch commits and not for resolving a conflict a human is already sitting in.\n---\n\n# Merging another node's work\n\nGarrison merges across nodes **autonomously**. That only works because two rails\nmake every merge reversible and visible. Do not skip either one, and do not\n\"simplify\" a merge by taking one side wholesale.\n\n## The two rails\n\n**Rail 1 - the pre-merge tag.** Before any non-trivial merge, tag the current\nHEAD:\n\n```\ngit tag garrison\u002Fpremerge\u002F\u003Cproject>\u002F\u003CthisNode>\u002F\u003Cstamp>\n```\n\n`\u003Cstamp>` is the ISO instant with the colons removed (`2026-08-24T191134Z`) - a\ngit ref may not contain `:`. Use `premergeTag()` from `lib\u002Fmerge.mjs` rather than\nbuilding the string by hand.\n\nThe tag is the revert. If anything is wrong afterwards:\n\n```\ngit reset --hard garrison\u002Fpremerge\u002F\u003Cproject>\u002F\u003CthisNode>\u002F\u003Cstamp>\n```\n\nA tag, not a branch: it stays out of `git branch`, is not auto-pruned, and pushes\nonce. The nightly convergence card prunes tags older than 14 days.\n\n**Rail 2 - the decision card.** Every **non-trivial** merge files a card on\n`needs-attention` carrying the pre-merge tag, both shas, the conflict list, and\nthe chosen resolution for each conflict. A **trivial fast-forward files\nnothing** - a board full of \"merged 3 commits, no conflicts\" stops being read,\nand a rail nobody reads is not a rail.\n\n## Main and availability\n\nEvery mesh node works on `main`. Source branch names on older cards are historical;\nfetch their commits into `main` without discarding work, then use `origin\u002Fmain`.\nDeploy one node at a time, verify it healthy before the next, and keep another\nhealthy instance available. Never restart a node with a working Conversation;\ndefer its deployment and continue on other nodes. Use the guarded reload\u002Fredeploy\ncommands, never a direct service restart.\n\n## Procedure\n\n1. **Read the card.** It names the project, the source node, the source branch\n   and the source sha. Resolve the project to this node's checkout under the\n   dev-root. If the project does not exist here, file a needs-attention card and\n   stop - do not clone it.\n\n2. **Refuse to merge under a live agent.** If a session is running with this\n   repository as its cwd, stop and say so. Merging under an agent's feet commits\n   half-written files.\n\n3. **Fetch.** `git fetch --all --prune`. This is the only network call you need\n   before deciding anything.\n\n4. **Decide whether it is trivial.** `isTrivialFastForward(cwd, \"origin\u002Fmain\")`.\n   If it is, fast-forward, push, and file **nothing**. You are done.\n\n5. **Tag.** `git tag garrison\u002Fpremerge\u002F\u003Cproject>\u002F\u003Cnode>\u002F\u003Cstamp>` at the current\n   HEAD, before the merge command runs.\n\n6. **Merge.** `git merge --no-ff origin\u002Fmain`.\n\n   **Never `-X ours` or `-X theirs`.** Ever. A blanket strategy option is how you\n   silently lose a day of someone else's work, and it is invisible in the\n   resulting diff.\n\n7. **Handle conflicts file by file.** For each conflicting path, read **both\n   sides in full** (`git show :2:\u003Cpath>` and `git show :3:\u003Cpath>`) plus the merge\n   base (`git show :1:\u003Cpath>`). Produce a resolution that keeps both intentions.\n   Then **prove the result parses** - run the language's cheapest syntax check\n   (`node --check`, `tsc --noEmit` on the file's project, `python -m py_compile`,\n   `yaml`\u002F`json` parse). A conflict resolution that does not parse is not a\n   resolution.\n\n8. **Refuse what must not be merged.** Run `refusalList(conflictPaths)`. Anything\n   it returns stops the merge:\n\n   - **Lockfiles** (`package-lock.json`, `apm.lock.yaml`, `yarn.lock`,\n     `pnpm-lock.yaml`, `Cargo.lock`, `uv.lock`, `go.sum`, …) are **regenerated**,\n     never merged. A three-way-merged lockfile is valid syntax describing a\n     dependency tree that has never existed. Take one side, then re-run the\n     installer to regenerate.\n   - **Binaries** have no line structure. Escalate.\n   - **The never-travels list** (`.env`, `vault.json`, `local.yml`, `owner.json`,\n     `apm_modules\u002F`, `node_modules\u002F`, `.claude\u002F`) is machine-local or secret.\n     Escalate; never carry one across nodes.\n\n   Escalating means: `git merge --abort`, then a needs-attention card naming the\n   paths and why. Do not guess.\n\n9. **Verify before you commit the merge.** Run the project's fast checks - at\n   minimum a typecheck and the test file(s) touching the conflicted paths. A\n   merge that compiles is the floor, not the goal.\n\n10. **Commit and push** on `main`. Never create node\u002Ftask branches or force-push shared main.\n\n11. **File the decision card** when the merge was non-trivial: the premerge tag,\n    `from` sha, `to` sha, the conflict list, and one line per resolution saying\n    which side won and why. That card is the record that makes an autonomous\n    merge acceptable.\n\n## When to stop and ask\n\nStop, abort, and file a needs-attention card when:\n\n- the conflict is a genuine semantic disagreement (both sides changed the same\n  behaviour in incompatible ways) rather than two edits that can coexist;\n- a refusal-list path conflicts;\n- a resolution will not parse or the project's checks fail after the merge;\n- the working tree was already dirty or a merge\u002Frebase was already in progress.\n\nAn honest stop with a tag to reset to costs minutes. A confident wrong merge\ncosts a day of someone else's work, and nobody finds out until much later.\n","# Merging another node's work\n\nGarrison merges across nodes **autonomously**. That only works because two rails\nmake every merge reversible and visible. Do not skip either one, and do not\n\"simplify\" a merge by taking one side wholesale.\n\n## The two rails\n\n**Rail 1 - the pre-merge tag.** Before any non-trivial merge, tag the current\nHEAD:\n\n```\ngit tag garrison\u002Fpremerge\u002F\u003Cproject>\u002F\u003CthisNode>\u002F\u003Cstamp>\n```\n\n`\u003Cstamp>` is the ISO instant with the colons removed (`2026-08-24T191134Z`) - a\ngit ref may not contain `:`. Use `premergeTag()` from `lib\u002Fmerge.mjs` rather than\nbuilding the string by hand.\n\nThe tag is the revert. If anything is wrong afterwards:\n\n```\ngit reset --hard garrison\u002Fpremerge\u002F\u003Cproject>\u002F\u003CthisNode>\u002F\u003Cstamp>\n```\n\nA tag, not a branch: it stays out of `git branch`, is not auto-pruned, and pushes\nonce. The nightly convergence card prunes tags older than 14 days.\n\n**Rail 2 - the decision card.** Every **non-trivial** merge files a card on\n`needs-attention` carrying the pre-merge tag, both shas, the conflict list, and\nthe chosen resolution for each conflict. A **trivial fast-forward files\nnothing** - a board full of \"merged 3 commits, no conflicts\" stops being read,\nand a rail nobody reads is not a rail.\n\n## Main and availability\n\nEvery mesh node works on `main`. Source branch names on older cards are historical;\nfetch their commits into `main` without discarding work, then use `origin\u002Fmain`.\nDeploy one node at a time, verify it healthy before the next, and keep another\nhealthy instance available. Never restart a node with a working Conversation;\ndefer its deployment and continue on other nodes. Use the guarded reload\u002Fredeploy\ncommands, never a direct service restart.\n\n## Procedure\n\n1. **Read the card.** It names the project, the source node, the source branch\n   and the source sha. Resolve the project to this node's checkout under the\n   dev-root. If the project does not exist here, file a needs-attention card and\n   stop - do not clone it.\n\n2. **Refuse to merge under a live agent.** If a session is running with this\n   repository as its cwd, stop and say so. Merging under an agent's feet commits\n   half-written files.\n\n3. **Fetch.** `git fetch --all --prune`. This is the only network call you need\n   before deciding anything.\n\n4. **Decide whether it is trivial.** `isTrivialFastForward(cwd, \"origin\u002Fmain\")`.\n   If it is, fast-forward, push, and file **nothing**. You are done.\n\n5. **Tag.** `git tag garrison\u002Fpremerge\u002F\u003Cproject>\u002F\u003Cnode>\u002F\u003Cstamp>` at the current\n   HEAD, before the merge command runs.\n\n6. **Merge.** `git merge --no-ff origin\u002Fmain`.\n\n   **Never `-X ours` or `-X theirs`.** Ever. A blanket strategy option is how you\n   silently lose a day of someone else's work, and it is invisible in the\n   resulting diff.\n\n7. **Handle conflicts file by file.** For each conflicting path, read **both\n   sides in full** (`git show :2:\u003Cpath>` and `git show :3:\u003Cpath>`) plus the merge\n   base (`git show :1:\u003Cpath>`). Produce a resolution that keeps both intentions.\n   Then **prove the result parses** - run the language's cheapest syntax check\n   (`node --check`, `tsc --noEmit` on the file's project, `python -m py_compile`,\n   `yaml`\u002F`json` parse). A conflict resolution that does not parse is not a\n   resolution.\n\n8. **Refuse what must not be merged.** Run `refusalList(conflictPaths)`. Anything\n   it returns stops the merge:\n\n   - **Lockfiles** (`package-lock.json`, `apm.lock.yaml`, `yarn.lock`,\n     `pnpm-lock.yaml`, `Cargo.lock`, `uv.lock`, `go.sum`, …) are **regenerated**,\n     never merged. A three-way-merged lockfile is valid syntax describing a\n     dependency tree that has never existed. Take one side, then re-run the\n     installer to regenerate.\n   - **Binaries** have no line structure. Escalate.\n   - **The never-travels list** (`.env`, `vault.json`, `local.yml`, `owner.json`,\n     `apm_modules\u002F`, `node_modules\u002F`, `.claude\u002F`) is machine-local or secret.\n     Escalate; never carry one across nodes.\n\n   Escalating means: `git merge --abort`, then a needs-attention card naming the\n   paths and why. Do not guess.\n\n9. **Verify before you commit the merge.** Run the project's fast checks - at\n   minimum a typecheck and the test file(s) touching the conflicted paths. A\n   merge that compiles is the floor, not the goal.\n\n10. **Commit and push** on `main`. Never create node\u002Ftask branches or force-push shared main.\n\n11. **File the decision card** when the merge was non-trivial: the premerge tag,\n    `from` sha, `to` sha, the conflict list, and one line per resolution saying\n    which side won and why. That card is the record that makes an autonomous\n    merge acceptable.\n\n## When to stop and ask\n\nStop, abort, and file a needs-attention card when:\n\n- the conflict is a genuine semantic disagreement (both sides changed the same\n  behaviour in incompatible ways) rather than two edits that can coexist;\n- a refusal-list path conflicts;\n- a resolution will not parse or the project's checks fail after the merge;\n- the working tree was already dirty or a merge\u002Frebase was already in progress.\n\nAn honest stop with a tag to reset to costs minutes. A confident wrong merge\ncosts a day of someone else's work, and nobody finds out until much later.\n",{"name":5,"description":7},"31458d7e0e08a7b3494c27bf2b912ed41c87a138","fittings\u002Fseed\u002Fmerge-agent\u002F.apm\u002Fskills\u002Fgarrison-merge",0,"https:\u002F\u002Fgithub.com\u002Fgongiskhan\u002Fagent-garrison","https:\u002F\u002Fgongiskhan.github.io\u002Fagent-garrison\u002F","https:\u002F\u002Fgithub.com\u002Fgongiskhan","2026-11-07 05:27:23",{"source":8,"skillName":5,"commands":51,"prompt":61,"zipAvailable":62},[52,55,58],{"tool":53,"command":54},"npx","npx skills add gongiskhan\u002Fagent-garrison --skill garrison-merge",{"tool":56,"command":57},"bunx","bunx skills add gongiskhan\u002Fagent-garrison --skill garrison-merge",{"tool":59,"command":60},"pnpm","pnpm dlx skills add gongiskhan\u002Fagent-garrison --skill garrison-merge","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fgongiskhan\u002Fagent-garrison\u002Fblob\u002Fmain\u002Ffittings\u002Fseed\u002Fmerge-agent\u002F.apm\u002Fskills\u002Fgarrison-merge\u002FSKILL.md",true,[],[65,77,87,98,109,132],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":38},"01M71RTFA0HD83YBE1TE7DCE6B","pinned-helper","An owned skill the human has pinned so the Improver must not touch it.","https:\u002F\u002Fgithub.com\u002Fgongiskhan\u002Fagent-garrison\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fimprover\u002Fskills\u002Fpinned-helper\u002FSKILL.md",[],[72,73,74,75,76],"pinned helper","helper","human","touch","it",{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":38},"01M71RTDKBG0WQHPHKFZKFWDHF","legacy-helper","A rarely used helper kept around from an earlier workflow.","https:\u002F\u002Fgithub.com\u002Fgongiskhan\u002Fagent-garrison\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fimprover\u002Fskills\u002Flegacy-helper\u002FSKILL.md",[],[84,73,85,86],"Legacy","legacy helper","workflow",{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":38},"01M71RTCC6ZVVJ9MHHESXPHWA6","human-notes","A human-authored skill not deployed by APM (loose, not in the lock).","https:\u002F\u002Fgithub.com\u002Fgongiskhan\u002Fagent-garrison\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fimprover\u002Fskills\u002Fhuman-notes\u002FSKILL.md",[],[94,74,95,96,97],"notes","human notes","lock","apm",{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":38},"01M71RTB83ZP6VK6XH19Z93FAC","garrison-helper","Helps compose and station Garrison Fittings into Faculty role slots.","https:\u002F\u002Fgithub.com\u002Fgongiskhan\u002Fagent-garrison\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fimprover\u002Fskills\u002Fgarrison-helper\u002FSKILL.md",[],[73,19,105,106,107,108],"garrison helper","slots","role","compose",{"skillNo":110,"name":111,"nameZh":6,"description":112,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":113,"categories":114,"keywords":115,"publishedAt":38},"01M71RT6MBGJC4QQZBGHF4H1M8","walkthrough","Record a short, narrated, captioned video walkthrough that proves a finished coding task and shows how it behaves, then self-verify the video via vision on extracted frames and publish it as one scrubbable Tailscale link. Use after completing a change\u002Ffix\u002Ffeature on a web project (Next.js\u002FReact etc.) when the user wants visual proof of work, a demo of a user flow, or to avoid manually retesting and watching a long raw screen recording. Triggers on requests like \"record a walkthrough\", \"show me it working\", \"make a demo video of this\", \"prove the feature\", or finishing a UI\u002Froute\u002Fform\u002FAPI change worth demonstrating. Not for walking through a full from-scratch project build.","https:\u002F\u002Fgithub.com\u002Fgongiskhan\u002Fagent-garrison\u002Fblob\u002Fmain\u002Ffittings\u002Fseed\u002Fwalkthrough\u002F.apm\u002Fskills\u002Fwalkthrough\u002FSKILL.md",[],[111,26,31,116,117,118,119,120,121,122,123,124,35,125,126,127,128,129,130,131],"project build","api","react","change","demo video","publish","recording","Video","show me","short","fix","show","route","me","next","self",{"skillNo":133,"name":134,"nameZh":6,"description":135,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":136,"categories":137,"keywords":138,"publishedAt":38},"01M71RT54T0SQS42XEP5FVQ28K","Trello","Manage tasks via Trello REST API.","https:\u002F\u002Fgithub.com\u002Fgongiskhan\u002Fagent-garrison\u002Fblob\u002Fmain\u002Ffittings\u002Fseed\u002Ftrello\u002F.apm\u002Fskills\u002Ftrello\u002FSKILL.md",[],[139,140,141,117,142,143,144],"trello","tasks","REST","manage","rest api","via"]