[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71XJX92TTSEK9HB23HH85YF":3,"skill-same:01M71XJX92TTSEK9HB23HH85YF":53},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":21,"linkOnly":22,"markdownContent":23,"markdownBody":24,"frontMatter":25,"refName":26,"commitSha":27,"skillDirectory":28,"forksCount":13,"repositoryHtmlUrl":29,"repositoryHomepageUrl":6,"ownerHtmlUrl":30,"ownerBlogUrl":31,"ownerDescription":6,"updatedAt":32,"install":33,"resources":46},"01M71XJX92TTSEK9HB23HH85YF","spec-land",null,"Vigil-Harbor\u002Fvigil-skills","Vigil-Harbor","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F274451992?v=4","01M71XFV786Y0N52C3M5D2WF4H","Vigil Harbor","01M71XFV7ZCE2MKGJX8DP3SGKD",0,"MIT","https:\u002F\u002Fgithub.com\u002FVigil-Harbor\u002Fvigil-skills\u002Fblob\u002Fmain\u002Fskills\u002Fspec-land\u002FSKILL.md",[],[18,19,20],"spec","land","spec land","2026-11-10 13:45:54",false,"---\nname: spec-land\ndescription: After a PR is merged, confirm the landed code matches the recorded head and patch-id, move the Plane ticket to Done or Post-merge Checklists, write the wiki merge line and filemap delta, and clean up the worktree and branch. Never merges and never commits.\nuser_invocable: true\nrequires:\n  shell: true\n  filesystem: [read, write]\n  network: true\n  services: [vcs-host, issue-tracker?]\n---\n\n# \u002Fspec-land\n\nRun after a pull request is merged and before `\u002Fspec-close`. One script call reads everything and prints a confirmation block. After one operator agreement, the script writes the wiki, you move the issue-tracker ticket, and the script cleans up and runs the project's post-land command.\n\n`land_check.py` owns every check and every write except the tracker. Do not re-derive its mechanics by hand.\n\n## What this skill must not do\n\n- Run `gh pr merge`. The operator merges.\n- Run `git commit` or `git add`, push content, stash, or force anything. The only remote change is the script's leased branch delete.\n- Write anything before the operator agrees to the confirmation block.\n- Hand-edit `log.md`. The script calls the installed `prepend_log_entry.py`.\n- Write `state.md`, comprehension pages, or sibling tickets. `\u002Fspec-close` does the rest of the wiki.\n- Invent a state UUID. Use the one the script prints from the installed `states.json`.\n\n## Script\n\nResolve the installed script and an interpreter in the same shell call as each command:\n\n```bash\nSCRIPT=\"${CLAUDE_CONFIG_DIR:-$HOME\u002F.claude}\u002Fskills\u002Fspec-land\u002Fscripts\u002Fland_check.py\"\ncommand -v python3 >\u002Fdev\u002Fnull 2>&1 && python3 -c '' >\u002Fdev\u002Fnull 2>&1 && PY=python3 || PY=python\ntest -f \"$SCRIPT\" || echo \"land_check.py not found — install with 'python sync.py install'\"\n```\n\nA missing script stops the run. Every subcommand reads no stdin; give it `\u003C \u002Fdev\u002Fnull`. The script accepts both `C:\u002F` and `\u002Fc\u002F` path forms.\n\n## Step 1 — Preflight\n\n```bash\n\"$PY\" \"$SCRIPT\" preflight \u003CPR-number | PR-URL | spec-path> \u003C \u002Fdev\u002Fnull\n```\n\nNo argument uses the current branch's PR, so it works only from the PR branch's checkout. From the main checkout, pass the PR number, URL or spec path. Apart from `git fetch` updating remote refs, it writes nothing.\n\n- **Exit 0.** Stdout is the confirmation block, then one line that starts with `spec_land_state=`. Hold that line exactly as printed. Do not edit it.\n- **Exit 1.** The first line is `HALT: \u003Creason>`. Show it and stop. Nothing was written. The script halts only when the PR is not merged, a PR or comment read fails, the fetch fails, a PR URL names another repository, no single PR matches, or a git command fails.\n- **Exit 4.** `NEEDS TICKET`: the branch and title disagree on the ticket id, or name none. Ask the operator for the id, then rerun with `--ticket \u003CID>` on the same PR number.\n- **Any other exit.** Show stderr and stop.\n\nA failed comment read is never \"no marker\". A marker that is absent after a full read means verification is skipped, and the run continues.\n\n## Step 2 — Confirm once\n\nShow the confirmation block verbatim, except the `spec_land_state=` line. Then wait. The SHA line is one of:\n\n- `match`: the landed code is the recorded code. It is not a statement that the code was reviewed. The review token is shown, never a gate.\n- `no marker`: verification skipped.\n- `WARNING`: a head mismatch, a patch-id mismatch, a malformed marker, or base drift onto PR files. The operator may still land. Say what the warning means in plain words.\n\nRead the reply for intent. A clear yes for this ticket lands. On a `WARNING`, the reply must say to land despite the warning; a plain yes gets one question back naming the warning. Silence, an empty reply, or anything unclear is not yes; ask once, naming what is unclear. A reply that declines stops with nothing written. A host that cannot wait prints the block and stops.\n\nBefore you act, print `Reading: \u003Cwhat you will do>.`\n\n## Step 3 — Save the state\n\nAfter the operator agrees, write the held `spec_land_state=` line to a new temporary file outside the repository, with your file-write tool. Pass that path to the next two commands. Delete the file at the end of the run.\n\n## Step 4 — Wiki\n\n```bash\n\"$PY\" \"$SCRIPT\" wiki --state \u003Cstate-file> \u003C \u002Fdev\u002Fnull\n```\n\nIt prepends the merge line to the wiki `log.md` with a guard, so a rerun does not duplicate it. Then it applies the filemap delta for added, deleted and renamed files. No wiki configured, no slug, or a missing filemap file is reported and skipped. Exit 1 means a write failed; report it and continue. Never hand-edit `log.md` to recover; rerun `\u002Fspec-land`.\n\n## Step 5 — Issue tracker\n\nPlane is optional. Take the prefix, target state, state UUID, project UUID and checklist comment from the state.\n\n1. Read the ticket's current state with the tracker's retrieve-by-identifier capability (for example `mcp__claude_ai_Plane__workitem` with `action: retrieve_by_identifier`, `workitem_identifier: \"\u003CTICKET-ID>\"` and `fields: \"id,state\"` in Claude Code, or the equivalent in your host; load the tool first if your host defers tool schemas). Do not pass `expand`, so `state` stays a UUID.\n2. On the Post-merge Checklists path only, list the ticket's comments (for example `mcp__claude_ai_Plane__workitem_comment` with `action: list` in Claude Code, or the equivalent in your host). Skip the post when a comment already contains the last line of the checklist comment. If the list cannot be read, post anyway; a duplicate comment does no harm. Post the comment body exactly as printed. Its last line is visible text, because Plane strips HTML comments.\n3. Move the ticket to the target UUID with the state-update capability (for example `mcp__claude_ai_Plane__workitem` with `action: update` in Claude Code, or the equivalent in your host). Skip the move when the ticket is already there.\n\nA failed post does not skip the move. When the tracker is unreachable, the lookup fails, or the state reports a Plane problem, skip the tracker and print:\n\n```text\nIssue tracker skipped — \u003Creason>.\nTo complete manually:\n  1. Move \u003CTICKET-ID> to \u003Ctarget state> in Plane\n  2. Comment on the ticket with the checklist body when the target is Post-merge Checklists:\n\u003Cchecklist comment, or \"no checklist comment\" when the target is Done>\n```\n\n## Step 6 — Cleanup\n\n```bash\n\"$PY\" \"$SCRIPT\" cleanup --state \u003Cstate-file> \u003C \u002Fdev\u002Fnull\n```\n\nRun it from the main checkout (the `main` path in the state), never from inside the worktree it removes. It rechecks the checkouts before it acts, then prints one line per action. The safety rules it holds:\n\n- A dirty worktree is kept, and so are its local and remote branches.\n- Several checkouts of the branch are kept with their branches. The run continues.\n- `git branch -D` runs only after a SHA match with the local tip equal to the PR head. Never on the no-marker or warning path.\n- The remote branch is deleted only with a lease on the PR head. Already gone is normal, because GitHub often deletes it.\n- The default branch is never deleted.\n- The main checkout fast-forwards only when it is on the default branch and clean.\n- The post-land command runs once, in the main checkout, only when that fast-forward left it holding the landed commit.\n\nExit 1 means an action failed. Report it. Earlier actions are not rolled back.\n\n## Step 7 — Summary\n\n```text\n=== LANDED: \u003CTICKET-ID> ===\nPR: \u003Curl>\nSHA: match | skipped | warning — landed anyway\nPlane: \u003Cfrom> → \u003Cto> | skipped\nWiki: \u003Clog outcome>; \u003Cfilemap outcome>\nCleanup: \u003Cone line per action>\nNext: \u002Fspec-close \u003Cspec-path>\nSuggested wiki commit: \u003Cfiles the wiki step wrote, or none>\n```\n\nOmit the spec path on the Next line when the run had none. The suggested commit is text for the operator. Do not run it.\n\n## Rerun\n\nRerunning on the same PR is safe. Start again at Step 1 with a fresh confirmation; do not reuse an old state file or an old agreement. Guards skip what is done: the log guard, existing filemap headings, the checklist marker, a ticket already in its target state, and branches already gone.\n\n## Tool-use notes\n\n- Shell for `land_check.py`; `vcs-host` is required. File write for the temporary state file.\n- The tracker capabilities in Step 5. `issue-tracker` is optional: without it, print the manual steps and continue.\n","# \u002Fspec-land\n\nRun after a pull request is merged and before `\u002Fspec-close`. One script call reads everything and prints a confirmation block. After one operator agreement, the script writes the wiki, you move the issue-tracker ticket, and the script cleans up and runs the project's post-land command.\n\n`land_check.py` owns every check and every write except the tracker. Do not re-derive its mechanics by hand.\n\n## What this skill must not do\n\n- Run `gh pr merge`. The operator merges.\n- Run `git commit` or `git add`, push content, stash, or force anything. The only remote change is the script's leased branch delete.\n- Write anything before the operator agrees to the confirmation block.\n- Hand-edit `log.md`. The script calls the installed `prepend_log_entry.py`.\n- Write `state.md`, comprehension pages, or sibling tickets. `\u002Fspec-close` does the rest of the wiki.\n- Invent a state UUID. Use the one the script prints from the installed `states.json`.\n\n## Script\n\nResolve the installed script and an interpreter in the same shell call as each command:\n\n```bash\nSCRIPT=\"${CLAUDE_CONFIG_DIR:-$HOME\u002F.claude}\u002Fskills\u002Fspec-land\u002Fscripts\u002Fland_check.py\"\ncommand -v python3 >\u002Fdev\u002Fnull 2>&1 && python3 -c '' >\u002Fdev\u002Fnull 2>&1 && PY=python3 || PY=python\ntest -f \"$SCRIPT\" || echo \"land_check.py not found — install with 'python sync.py install'\"\n```\n\nA missing script stops the run. Every subcommand reads no stdin; give it `\u003C \u002Fdev\u002Fnull`. The script accepts both `C:\u002F` and `\u002Fc\u002F` path forms.\n\n## Step 1 — Preflight\n\n```bash\n\"$PY\" \"$SCRIPT\" preflight \u003CPR-number | PR-URL | spec-path> \u003C \u002Fdev\u002Fnull\n```\n\nNo argument uses the current branch's PR, so it works only from the PR branch's checkout. From the main checkout, pass the PR number, URL or spec path. Apart from `git fetch` updating remote refs, it writes nothing.\n\n- **Exit 0.** Stdout is the confirmation block, then one line that starts with `spec_land_state=`. Hold that line exactly as printed. Do not edit it.\n- **Exit 1.** The first line is `HALT: \u003Creason>`. Show it and stop. Nothing was written. The script halts only when the PR is not merged, a PR or comment read fails, the fetch fails, a PR URL names another repository, no single PR matches, or a git command fails.\n- **Exit 4.** `NEEDS TICKET`: the branch and title disagree on the ticket id, or name none. Ask the operator for the id, then rerun with `--ticket \u003CID>` on the same PR number.\n- **Any other exit.** Show stderr and stop.\n\nA failed comment read is never \"no marker\". A marker that is absent after a full read means verification is skipped, and the run continues.\n\n## Step 2 — Confirm once\n\nShow the confirmation block verbatim, except the `spec_land_state=` line. Then wait. The SHA line is one of:\n\n- `match`: the landed code is the recorded code. It is not a statement that the code was reviewed. The review token is shown, never a gate.\n- `no marker`: verification skipped.\n- `WARNING`: a head mismatch, a patch-id mismatch, a malformed marker, or base drift onto PR files. The operator may still land. Say what the warning means in plain words.\n\nRead the reply for intent. A clear yes for this ticket lands. On a `WARNING`, the reply must say to land despite the warning; a plain yes gets one question back naming the warning. Silence, an empty reply, or anything unclear is not yes; ask once, naming what is unclear. A reply that declines stops with nothing written. A host that cannot wait prints the block and stops.\n\nBefore you act, print `Reading: \u003Cwhat you will do>.`\n\n## Step 3 — Save the state\n\nAfter the operator agrees, write the held `spec_land_state=` line to a new temporary file outside the repository, with your file-write tool. Pass that path to the next two commands. Delete the file at the end of the run.\n\n## Step 4 — Wiki\n\n```bash\n\"$PY\" \"$SCRIPT\" wiki --state \u003Cstate-file> \u003C \u002Fdev\u002Fnull\n```\n\nIt prepends the merge line to the wiki `log.md` with a guard, so a rerun does not duplicate it. Then it applies the filemap delta for added, deleted and renamed files. No wiki configured, no slug, or a missing filemap file is reported and skipped. Exit 1 means a write failed; report it and continue. Never hand-edit `log.md` to recover; rerun `\u002Fspec-land`.\n\n## Step 5 — Issue tracker\n\nPlane is optional. Take the prefix, target state, state UUID, project UUID and checklist comment from the state.\n\n1. Read the ticket's current state with the tracker's retrieve-by-identifier capability (for example `mcp__claude_ai_Plane__workitem` with `action: retrieve_by_identifier`, `workitem_identifier: \"\u003CTICKET-ID>\"` and `fields: \"id,state\"` in Claude Code, or the equivalent in your host; load the tool first if your host defers tool schemas). Do not pass `expand`, so `state` stays a UUID.\n2. On the Post-merge Checklists path only, list the ticket's comments (for example `mcp__claude_ai_Plane__workitem_comment` with `action: list` in Claude Code, or the equivalent in your host). Skip the post when a comment already contains the last line of the checklist comment. If the list cannot be read, post anyway; a duplicate comment does no harm. Post the comment body exactly as printed. Its last line is visible text, because Plane strips HTML comments.\n3. Move the ticket to the target UUID with the state-update capability (for example `mcp__claude_ai_Plane__workitem` with `action: update` in Claude Code, or the equivalent in your host). Skip the move when the ticket is already there.\n\nA failed post does not skip the move. When the tracker is unreachable, the lookup fails, or the state reports a Plane problem, skip the tracker and print:\n\n```text\nIssue tracker skipped — \u003Creason>.\nTo complete manually:\n  1. Move \u003CTICKET-ID> to \u003Ctarget state> in Plane\n  2. Comment on the ticket with the checklist body when the target is Post-merge Checklists:\n\u003Cchecklist comment, or \"no checklist comment\" when the target is Done>\n```\n\n## Step 6 — Cleanup\n\n```bash\n\"$PY\" \"$SCRIPT\" cleanup --state \u003Cstate-file> \u003C \u002Fdev\u002Fnull\n```\n\nRun it from the main checkout (the `main` path in the state), never from inside the worktree it removes. It rechecks the checkouts before it acts, then prints one line per action. The safety rules it holds:\n\n- A dirty worktree is kept, and so are its local and remote branches.\n- Several checkouts of the branch are kept with their branches. The run continues.\n- `git branch -D` runs only after a SHA match with the local tip equal to the PR head. Never on the no-marker or warning path.\n- The remote branch is deleted only with a lease on the PR head. Already gone is normal, because GitHub often deletes it.\n- The default branch is never deleted.\n- The main checkout fast-forwards only when it is on the default branch and clean.\n- The post-land command runs once, in the main checkout, only when that fast-forward left it holding the landed commit.\n\nExit 1 means an action failed. Report it. Earlier actions are not rolled back.\n\n## Step 7 — Summary\n\n```text\n=== LANDED: \u003CTICKET-ID> ===\nPR: \u003Curl>\nSHA: match | skipped | warning — landed anyway\nPlane: \u003Cfrom> → \u003Cto> | skipped\nWiki: \u003Clog outcome>; \u003Cfilemap outcome>\nCleanup: \u003Cone line per action>\nNext: \u002Fspec-close \u003Cspec-path>\nSuggested wiki commit: \u003Cfiles the wiki step wrote, or none>\n```\n\nOmit the spec path on the Next line when the run had none. The suggested commit is text for the operator. Do not run it.\n\n## Rerun\n\nRerunning on the same PR is safe. Start again at Step 1 with a fresh confirmation; do not reuse an old state file or an old agreement. Guards skip what is done: the log guard, existing filemap headings, the checklist marker, a ticket already in its target state, and branches already gone.\n\n## Tool-use notes\n\n- Shell for `land_check.py`; `vcs-host` is required. File write for the temporary state file.\n- The tracker capabilities in Step 5. `issue-tracker` is optional: without it, print the manual steps and continue.\n",{},"main","7ea4cc6f73e7d33f418734ebbc004955eb1ce984","skills\u002Fspec-land","https:\u002F\u002Fgithub.com\u002FVigil-Harbor\u002Fvigil-skills","https:\u002F\u002Fgithub.com\u002FVigil-Harbor","https:\u002F\u002Fvigilharbor.com","2026-11-09 09:04:05",{"source":7,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add Vigil-Harbor\u002Fvigil-skills --skill spec-land",{"tool":39,"command":40},"bunx","bunx skills add Vigil-Harbor\u002Fvigil-skills --skill spec-land",{"tool":42,"command":43},"pnpm","pnpm dlx skills add Vigil-Harbor\u002Fvigil-skills --skill spec-land","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FVigil-Harbor\u002Fvigil-skills\u002Fblob\u002Fmain\u002Fskills\u002Fspec-land\u002FSKILL.md",true,[47],{"path":48,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":51,"sourceHtmlUrl":52},"scripts\u002Fland_check.py","SCRIPT","脚本",54862,"https:\u002F\u002Fgithub.com\u002FVigil-Harbor\u002Fvigil-skills\u002Fblob\u002Fmain\u002Fskills\u002Fspec-land\u002Fscripts\u002Fland_check.py",[54,69,84,100,111,119],{"skillNo":55,"name":56,"nameZh":6,"description":57,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":21},"01M71XKRKQKW37MQFZ3HTJ609D","split-marker","a case-2 tag that wraps onto the line after the tool token.","https:\u002F\u002Fgithub.com\u002FVigil-Harbor\u002Fvigil-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fsplit-marker\u002FSKILL.md",[],[61,62,63,64,65,66,67,68],"split marker","marker","split","token","tool","line","case","true",{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":21},"01M71XKQ57F2ZVNW6K4W9VWBKS","optional-bool","A skill that declares optional booleans, used only by the lint test suite.","https:\u002F\u002Fgithub.com\u002FVigil-Harbor\u002Fvigil-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Foptional-bool\u002FSKILL.md",[],[76,77,78,79,80,81,82,83],"optional bool","lint","read","only","test suite","suite","a skill","test",{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":21},"01M71XKN6VPTF1KE94VGM338VS","notes-bare-name","a bare harness tool name in a non-operative Tool-use notes section.","https:\u002F\u002Fgithub.com\u002FVigil-Harbor\u002Fvigil-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fnotes-bare-name\u002FSKILL.md",[],[91,92,93,94,95,96,68,97,98,65,99],"name","notes bare name","bare","notes","section","tool name","tool-use","use","harness",{"skillNo":101,"name":102,"nameZh":6,"description":103,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":104,"categories":105,"keywords":106,"publishedAt":21},"01M71XKM5R0Q4N7MBATYBP1YB1","indented-fence","a tool token inside an indented fenced code block.","https:\u002F\u002Fgithub.com\u002FVigil-Harbor\u002Fvigil-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Findented-fence\u002FSKILL.md",[],[107,108,68,109,64,65,110],"indented fence","code block","block","code",{"skillNo":112,"name":113,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":114,"categories":115,"keywords":116,"publishedAt":21},"01M71XKK80YEASYAHNAPCNYH0S","good-skill","https:\u002F\u002Fgithub.com\u002FVigil-Harbor\u002Fvigil-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fgood-skill\u002FSKILL.md",[],[117,118],"good skill","good",{"skillNo":120,"name":121,"nameZh":6,"description":122,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":123,"categories":124,"keywords":125,"publishedAt":21},"01M71XKJAG58KDWPP2XEHCT7TZ","crlf-skill","a valid skill saved with CRLF line endings.","https:\u002F\u002Fgithub.com\u002FVigil-Harbor\u002Fvigil-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fcrlf-skill\u002FSKILL.md",[],[126,127,128,68,66,129,130,131],"CRLF","crlf skill","with","valid","saved","valid skill"]