[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71KR0YNJ99YAJGEDPHZTTTQ":3,"skill-same:01M71KR0YNJ99YAJGEDPHZTTTQ":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":48,"repositoryHtmlUrl":49,"repositoryHomepageUrl":50,"ownerHtmlUrl":51,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":52,"install":53,"resources":66},"01M71KR0YNJ99YAJGEDPHZTTTQ","ship-it",null,"Wrap up a finished round of work — verify README and CHANGELOG are current, cut a version if warranted, move completed task files into the completed\u002F folder, then create a feature branch if needed, commit, push, and open a PR. Run after `\u002Ffsad-harness:do-task` has marked one or more tasks done. Takes no arguments.","tbeack\u002Ffsad_training","tbeack","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F206807984?v=4","01M6K7Q3C3VRTCVC55T71A1SY9","Theo Beack","01M71KPJZ6H9P6B793RT1JXX9R",4,"MIT","https:\u002F\u002Fgithub.com\u002Ftbeack\u002Ffsad_training\u002Fblob\u002Fmain\u002Fskills\u002Fship-it\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"ship","it","ship it","log","parse","ls","remote","move","checkout","done","files","commit","up","branch","work","gh pr","Bash","open","create","tasks","2026-11-10 10:56:23",false,"---\nallowed-tools: Bash(git worktree:*), Bash(git -C:*), Bash(git merge:*), Bash(git merge-base:*), Bash(git add:*), Bash(git commit:*), Bash(git branch:*), Bash(git mv:*), Bash(git rev-parse:*), Bash(git checkout:*), Bash(git push:*), Bash(git pull:*), Bash(git status:*), Bash(git log:*), Bash(git remote:*), Bash(git ls-remote:*), Bash(gh pr create:*), Bash(gh pr view:*), Bash(gh pr list:*)\ndescription: Wrap up a finished round of work — verify README and CHANGELOG are current, cut a version if warranted, move completed task files into the completed\u002F folder, then create a feature branch if needed, commit, push, and open a PR. Run after `\u002Ffsad-harness:do-task` has marked one or more tasks done. Takes no arguments.\n---\n\n# fsad-harness:ship-it — wrap up and ship\n\nYou run four sequential phases to close out a batch of completed work: worktree merge (Step 0.5), pre-flight audits — README\u002FCHANGELOG\u002Fversion\u002Fcompleted-task cleanup (Step 1), commit + push + PR (Step 2), and verify-shipped (Step 3). Do not skip phases or reorder them.\n\n\"Shipped\" means all three of the following verifiable predicates hold — not that a phase list was walked:\n\n1. **Remote-HEAD parity** — the pushed branch's remote SHA (`git ls-remote`) equals local `HEAD`.\n2. **PR existence** — `gh pr view` confirms a PR exists for this branch and targets the default branch.\n3. **Version-string consistency** — every file in `cfg.version_files` carries the identical new version string (when a version was cut).\n\nStep 3 (Verify shipped) checks all three explicitly before the skill reports success — see that step for details.\n\n## Step 0 — Detect the project\n\n1. Determine the current working directory.\n2. Read `~\u002F.claude\u002Fcommands\u002Ffsd\u002Fprojects.yaml`.\n3. Match cwd against each project's `match_paths` (expand `~`). Prefer the longest (most specific) match if multiple match.\n4. If a project matches, refer to its entry as `cfg` and the resolved project root as `project_root`. Proceed.\n5. If **no project matches**:\n   - Tell the user the project is not registered.\n   - Suggest running `\u002Ffsad-harness:add-task` from the project to register it.\n   - Stop.\n\n## Step 0.5 — Merge pending worktrees\n\n1. Run `git worktree list --porcelain` from `project_root`. Parse the output to get all worktrees (each block starts with `worktree \u003Cpath>`).\n2. Filter out the main worktree — the one whose path equals `project_root`.\n3. If **no additional worktrees** exist: skip this step entirely and proceed to Step 1.\n4. If additional worktrees exist:\n   - List them for the user: path and branch name (the `branch` field from the porcelain output), plus each branch's uncommitted-changes status (`git -C \u003Cpath> status --porcelain`, summarized as \"clean\" or \"N uncommitted files\").\n   - **Stop and ask for explicit confirmation** before touching anything:\n     > \"About to merge {N} worktree branch(es) into `{project_root}`: {list}. For each: commit any uncommitted changes, `git merge --no-ff \u003Cbranch>`, verify the merge landed, then force-remove the worktree and delete the branch. Proceed? (y\u002Fn)\"\n   - If the user declines: stop here. Do not modify or remove any worktree. Report which worktrees remain pending.\n   - On confirmation, for each worktree in order:\n     a. Check for uncommitted changes: `git -C \u003Cpath> status --porcelain`. If any are present, commit them: `git -C \u003Cpath> add -A && git -C \u003Cpath> commit -m \"\u003Cbranch-name>: parallel do-task changes\"`.\n     b. Merge the branch into the main worktree: `git merge --no-ff \u003Cbranch>`.\n     c. If the merge produces a conflict: **stop immediately**. Tell the user which file(s) conflict and provide these resolution steps:\n        1. Open each conflicting file and locate the conflict markers (`\u003C\u003C\u003C\u003C\u003C\u003C\u003C`, `=======`, `>>>>>>>`).\n        2. Edit the file to keep the correct content and remove all conflict markers.\n        3. Stage each resolved file: `git add \u003Cfile>`.\n        4. Complete the merge commit: `git commit`.\n        5. Re-run `fsad-harness:ship-it` to continue from where it left off.\n        Do not proceed to Step 1. Do not remove the worktree — it may still hold the only copy of unmerged work.\n     d. **Verify the merge landed before removing anything**: run `git merge-base --is-ancestor \u003Cbranch> HEAD`. Exit code `0` means the branch tip is now reachable from `HEAD` — the merge is confirmed in the main tree.\n        - If this check **fails** (non-zero exit): **stop immediately**. Do not remove the worktree or delete the branch — the merge did not land as expected and the worktree is the only safe copy of that work. Report the branch name and ask the user how to proceed.\n        - If this check **passes**: only now remove the worktree (`git worktree remove --force \u003Cpath>`) and delete the branch (`git branch -d \u003Cbranch>`).\n5. After all worktrees are merged, verified, and removed: tell the user \"Worktrees merged.\" and proceed to Step 1.\n\n## Step 1 — Pre-flight audits (run concurrently)\n\nThese three checks are read-only and independent of each other — none needs another's output. Dispatch them as concurrent subagents (or, if subagents aren't available in the current context, run the three read passes back-to-back with no dependency ordering between them) rather than sequentially:\n\n- **Audit A — README ↔ skills-table consistency:** List all subdirectories in `{project_root}\u002Fskills\u002F` (each is a skill). Read `{project_root}\u002FREADME.md`. For every skill directory, check a corresponding row exists in the README skills table (match on directory name). Report any skills missing from the README.\n- **Audit B — CHANGELOG\u002Fversion derivation:** Read `{project_root}\u002FCHANGELOG.md`. Find the `## [Unreleased]` section and collect everything between that heading and the next `## [` heading (the pending content). Read `cfg.version_scheme` and `cfg.version_files`; if set, read the first file in the list and extract the current version string (JSON `\"version\"` field, README version-table row, or HTML `\u003Ctitle>`). Report: pending CHANGELOG content (or \"empty\"), current version scheme, and current version string.\n- **Audit C — completed-task cross-reference:** Scan `{project_root}\u002F{cfg.task_dir}\u002F` for files matching the task filename pattern (e.g. `task-proj-NNN.md`) not already inside `completed\u002F`. For each, look up the corresponding identifier in `cfg.todo_file`: `- [x]` → candidate to move; `- [ ]` or not found → leave in place. Report the candidate list.\n\nOnce all three audits report back, apply their results serially (writes must stay serial even though the reads were concurrent):\n\n### 1a — README check\n\n- If Audit A found missing skills: tell the user which ones (e.g. `ship-it`, `next`). Ask them to update the README before continuing. Stop — do not proceed until the user confirms it's done and re-invokes.\n- If clean: tell the user \"README check passed.\" and proceed.\n\n### 1b — CHANGELOG + version\n\n1. If Audit B's pending content is **empty** (no bullets\u002Fsubsections):\n   - Tell the user: \"The [Unreleased] section has no content — there may be nothing to release. Proceed anyway? (y\u002Fn)\"\n   - No → stop. Yes → skip the version-bump sub-steps and go to 1c.\n2. If Audit B's pending content is **non-empty**:\n   - Show the user the pending content.\n   - **Propose next version** based on `cfg.version_scheme` (from Audit B):\n     - `semver`: bump the **patch** component by default (e.g., `v3.2.0 → v3.2.1`). Tell the user they can type `minor` or `major` for a different bump level.\n     - `integer`: increment the integer suffix by 1 (e.g., `v36 → v37`).\n     - `calver`: use today's date in `YYYY.MM.DD` format.\n     - **No `version_scheme` configured:** ask \"Cut a new version? If yes, what tag? (e.g. v4)\" and use whatever they provide.\n   - **Confirm:** Present \"Suggested version: **[tag]** — confirm, type a different tag, or type `no` to skip.\"\n     - `no`\u002Fskip → proceed to 1c without modifying CHANGELOG or version files.\n     - `minor`\u002F`major` (semver only) → recompute at that level and re-present.\n     - Confirmed\u002Fdifferent tag → use that tag and continue.\n   - **Write version files:** update every file in `cfg.version_files` with the new version string, preserving each file's existing format (JSON `\"version\"` field, README table row, HTML `\u003Ctitle>`).\n   - **Update CHANGELOG:** replace `## [Unreleased]` with `## [vN] — YYYY-MM-DD` (today's date), insert a fresh empty `## [Unreleased]` block above it, write the file. Tell the user \"CHANGELOG updated — [vN] cut.\"\n\n### 1c — Move completed task files\n\n- If Audit C found no candidates: tell the user \"No completed task files to move.\" and proceed to Step 2.\n- If candidates exist: tell the user \"Moving these to `completed\u002F`:\" followed by the list, then `git mv` each file into `{project_root}\u002F{cfg.task_dir}\u002Fcompleted\u002F`.\n\n## Step 2 — Commit, push, PR\n\n### 2.0 — Branch guard\n\n1. Run `git rev-parse --abbrev-ref HEAD` to get the current branch name.\n2. If the branch is `main` or `master`:\n   - Propose a feature branch name:\n     - If a version was cut in Step 1: suggest `release\u002F{version}` (e.g. `release\u002Fv4`).\n     - Otherwise: suggest `task\u002F{task-ids}` using any task IDs marked done during this session (e.g. `task\u002Fproj-007`), or `ship\u002F{YYYY-MM-DD}` if no IDs are in scope.\n   - Ask the user: \"Create and switch to `{branch}`? (y\u002Fn or type a different name)\"\n   - On confirmation: run `git checkout -b {branch}`.\n3. If already on a non-default branch:\n   - Tell the user \"Already on branch `{branch}`.\"\n   - If a version was cut in Step 1 **and** the current branch matches the pattern `release\u002FvX.Y.Z` **and** `vX.Y.Z` does not equal the newly cut version:\n     - Propose renaming: \"Branch name `{branch}` is stale — rename to `release\u002F{version}`? (y\u002Fn)\"\n     - If yes:\n       a. `git branch -m {branch} release\u002F{version}` — rename locally.\n       b. `git push origin release\u002F{version}` — push the new name.\n       c. `git push origin --delete {branch}` — delete the old remote branch (ignore error if it didn't exist remotely).\n       d. `git branch -u origin\u002Frelease\u002F{version}` — update tracking ref.\n       e. Tell the user \"Branch renamed to `release\u002F{version}`.\"\n     - If no: continue on the current branch name.\n   - Otherwise: continue without renaming.\n\n### 2.1 — Independent pre-PR checklist verifier\n\nBefore committing, run one more fresh, independent read pass over the three Pre-PR Checklist items (README, CHANGELOG, version files — see `CLAUDE.md`'s Pre-PR Checklist section if present). This pass must **re-read the files from disk**, not reuse conclusions from Step 1 — the point is to catch a mistake the same pass that wrote them could have missed:\n\n1. Re-read `{project_root}\u002FCHANGELOG.md`: confirm the change has an entry either under `## [Unreleased]` or in a freshly cut version block.\n2. Re-read `{project_root}\u002FREADME.md`: confirm the version table's **Current version** and **Date** match what's being shipped (if a version was cut).\n3. Re-read every file in `cfg.version_files`: confirm all carry the identical new version string (if a version was cut).\n4. If any mismatch is found: report it to the user and stop — do not commit with a known Pre-PR Checklist violation. Ask whether to fix it now or abort.\n5. If all three check out: tell the user \"Pre-PR checklist verified independently.\" and proceed.\n\n### 2.2 — Commit\n\n1. Run `git status` to see what's staged and unstaged. Stage all relevant changed files by name (do **not** use `git add -A` or `git add .`):\n   - Modified: `CHANGELOG.md`, `README.md`, todo file, any other files changed during this work session.\n   - Moved task files (already staged by `git mv`).\n2. Run `git log --oneline -5` to read recent commit message style.\n3. Draft a commit message:\n   - If a version was cut in Step 1: use `release [vN] — \u003Cone-line summary of what's in the release>`.\n   - If no version was cut: summarize the batch of completed work in one line.\n   - Append `Co-Authored-By:` with the **current model's** name and provider, derived at runtime from the executing session (e.g. the model identifying itself in this conversation) — never hardcode a specific model name\u002Fversion in the skill file itself, since that goes stale every time the underlying model changes.\n   - Pass via heredoc to avoid shell quoting issues.\n4. Show the user the draft commit message and ask for confirmation before committing.\n5. On confirmation: create the commit.\n\n### 2.3 — Push, with verify-and-retry\n\n1. Record the local HEAD SHA: `git rev-parse HEAD`.\n2. Push: `git push -u origin HEAD`.\n3. **Verify the push landed**: `git ls-remote origin {branch}` and compare the remote SHA to the local HEAD SHA from step 1.\n   - **Match**: push confirmed, continue to 2.4.\n   - **Mismatch or push failed**: retry, capped at 2–3 attempts:\n     a. If the remote moved ahead (someone else pushed): `git pull --rebase` then re-push.\n     b. If the push was simply rejected\u002Ffailed transiently: re-push directly.\n     c. After each retry, re-check `git ls-remote` against the (possibly updated) local HEAD.\n   - If still mismatched after the retry cap: **stop and ask the user** how to proceed. Do not silently continue as if the push succeeded.\n\n### 2.4 — Create PR, with verify-and-fallback\n\n1. Detect the default branch: `git remote show origin | grep 'HEAD branch' | awk '{print $NF}'` (typically `main` or `master`).\n2. Create PR with `gh pr create`:\n   - Title: same one-liner used in the commit.\n   - Include `--base {default_branch}` so the PR always targets the default branch.\n   - Body (heredoc):\n     ```\n     ## Summary\n     \u003CCHANGELOG content for this version, or a bullet-list summary if no version was cut>\n\n     ## Test plan\n     - [ ] Skill files deployed and appear in `\u002Ffsad-harness:*` command list\n     - [ ] README skills table is accurate\n     - [ ] CHANGELOG entry is present and correctly formatted\n\n     🤖 Generated with [Claude Code](https:\u002F\u002Fclaude.com\u002Fclaude-code)\n     ```\n3. **Verify the PR actually exists** — do not trust `gh pr create`'s exit code alone: run `gh pr view --json url,state,baseRefName` for the current branch.\n   - If it returns a PR with the expected base branch: confirmed. Record the URL.\n   - If `gh pr create` reported failure because a PR already exists for this branch: run `gh pr list --head {branch} --json url,state,baseRefName` to find the existing PR and report it instead of treating this as an error.\n   - If neither check turns up a PR: stop and tell the user PR creation could not be confirmed — do not report a PR URL that wasn't actually verified.\n4. Proceed to Step 3 (Verify shipped) once the PR is confirmed.\n\n## Step 3 — Verify shipped\n\nConfirm the three \"shipped\" predicates from the top of this document, using fresh checks (not assumptions carried over from Step 2):\n\n1. **Remote-HEAD parity**: `git ls-remote origin {branch}` — the returned SHA must equal `git rev-parse HEAD`. PASS\u002FFAIL.\n2. **PR existence**: `gh pr view --json url,state,baseRefName` — must return a PR targeting the default branch. PASS\u002FFAIL.\n3. **Version-string consistency** (only if a version was cut in Step 1): re-read every file in `cfg.version_files` and confirm they all carry the identical new version string. PASS\u002FFAIL.\n\nReport all three verdicts to the user. If any predicate fails, say so explicitly — do not report the work as \"shipped\" on a partial result. Only report success when all applicable predicates pass.\n","# fsad-harness:ship-it — wrap up and ship\n\nYou run four sequential phases to close out a batch of completed work: worktree merge (Step 0.5), pre-flight audits — README\u002FCHANGELOG\u002Fversion\u002Fcompleted-task cleanup (Step 1), commit + push + PR (Step 2), and verify-shipped (Step 3). Do not skip phases or reorder them.\n\n\"Shipped\" means all three of the following verifiable predicates hold — not that a phase list was walked:\n\n1. **Remote-HEAD parity** — the pushed branch's remote SHA (`git ls-remote`) equals local `HEAD`.\n2. **PR existence** — `gh pr view` confirms a PR exists for this branch and targets the default branch.\n3. **Version-string consistency** — every file in `cfg.version_files` carries the identical new version string (when a version was cut).\n\nStep 3 (Verify shipped) checks all three explicitly before the skill reports success — see that step for details.\n\n## Step 0 — Detect the project\n\n1. Determine the current working directory.\n2. Read `~\u002F.claude\u002Fcommands\u002Ffsd\u002Fprojects.yaml`.\n3. Match cwd against each project's `match_paths` (expand `~`). Prefer the longest (most specific) match if multiple match.\n4. If a project matches, refer to its entry as `cfg` and the resolved project root as `project_root`. Proceed.\n5. If **no project matches**:\n   - Tell the user the project is not registered.\n   - Suggest running `\u002Ffsad-harness:add-task` from the project to register it.\n   - Stop.\n\n## Step 0.5 — Merge pending worktrees\n\n1. Run `git worktree list --porcelain` from `project_root`. Parse the output to get all worktrees (each block starts with `worktree \u003Cpath>`).\n2. Filter out the main worktree — the one whose path equals `project_root`.\n3. If **no additional worktrees** exist: skip this step entirely and proceed to Step 1.\n4. If additional worktrees exist:\n   - List them for the user: path and branch name (the `branch` field from the porcelain output), plus each branch's uncommitted-changes status (`git -C \u003Cpath> status --porcelain`, summarized as \"clean\" or \"N uncommitted files\").\n   - **Stop and ask for explicit confirmation** before touching anything:\n     > \"About to merge {N} worktree branch(es) into `{project_root}`: {list}. For each: commit any uncommitted changes, `git merge --no-ff \u003Cbranch>`, verify the merge landed, then force-remove the worktree and delete the branch. Proceed? (y\u002Fn)\"\n   - If the user declines: stop here. Do not modify or remove any worktree. Report which worktrees remain pending.\n   - On confirmation, for each worktree in order:\n     a. Check for uncommitted changes: `git -C \u003Cpath> status --porcelain`. If any are present, commit them: `git -C \u003Cpath> add -A && git -C \u003Cpath> commit -m \"\u003Cbranch-name>: parallel do-task changes\"`.\n     b. Merge the branch into the main worktree: `git merge --no-ff \u003Cbranch>`.\n     c. If the merge produces a conflict: **stop immediately**. Tell the user which file(s) conflict and provide these resolution steps:\n        1. Open each conflicting file and locate the conflict markers (`\u003C\u003C\u003C\u003C\u003C\u003C\u003C`, `=======`, `>>>>>>>`).\n        2. Edit the file to keep the correct content and remove all conflict markers.\n        3. Stage each resolved file: `git add \u003Cfile>`.\n        4. Complete the merge commit: `git commit`.\n        5. Re-run `fsad-harness:ship-it` to continue from where it left off.\n        Do not proceed to Step 1. Do not remove the worktree — it may still hold the only copy of unmerged work.\n     d. **Verify the merge landed before removing anything**: run `git merge-base --is-ancestor \u003Cbranch> HEAD`. Exit code `0` means the branch tip is now reachable from `HEAD` — the merge is confirmed in the main tree.\n        - If this check **fails** (non-zero exit): **stop immediately**. Do not remove the worktree or delete the branch — the merge did not land as expected and the worktree is the only safe copy of that work. Report the branch name and ask the user how to proceed.\n        - If this check **passes**: only now remove the worktree (`git worktree remove --force \u003Cpath>`) and delete the branch (`git branch -d \u003Cbranch>`).\n5. After all worktrees are merged, verified, and removed: tell the user \"Worktrees merged.\" and proceed to Step 1.\n\n## Step 1 — Pre-flight audits (run concurrently)\n\nThese three checks are read-only and independent of each other — none needs another's output. Dispatch them as concurrent subagents (or, if subagents aren't available in the current context, run the three read passes back-to-back with no dependency ordering between them) rather than sequentially:\n\n- **Audit A — README ↔ skills-table consistency:** List all subdirectories in `{project_root}\u002Fskills\u002F` (each is a skill). Read `{project_root}\u002FREADME.md`. For every skill directory, check a corresponding row exists in the README skills table (match on directory name). Report any skills missing from the README.\n- **Audit B — CHANGELOG\u002Fversion derivation:** Read `{project_root}\u002FCHANGELOG.md`. Find the `## [Unreleased]` section and collect everything between that heading and the next `## [` heading (the pending content). Read `cfg.version_scheme` and `cfg.version_files`; if set, read the first file in the list and extract the current version string (JSON `\"version\"` field, README version-table row, or HTML `\u003Ctitle>`). Report: pending CHANGELOG content (or \"empty\"), current version scheme, and current version string.\n- **Audit C — completed-task cross-reference:** Scan `{project_root}\u002F{cfg.task_dir}\u002F` for files matching the task filename pattern (e.g. `task-proj-NNN.md`) not already inside `completed\u002F`. For each, look up the corresponding identifier in `cfg.todo_file`: `- [x]` → candidate to move; `- [ ]` or not found → leave in place. Report the candidate list.\n\nOnce all three audits report back, apply their results serially (writes must stay serial even though the reads were concurrent):\n\n### 1a — README check\n\n- If Audit A found missing skills: tell the user which ones (e.g. `ship-it`, `next`). Ask them to update the README before continuing. Stop — do not proceed until the user confirms it's done and re-invokes.\n- If clean: tell the user \"README check passed.\" and proceed.\n\n### 1b — CHANGELOG + version\n\n1. If Audit B's pending content is **empty** (no bullets\u002Fsubsections):\n   - Tell the user: \"The [Unreleased] section has no content — there may be nothing to release. Proceed anyway? (y\u002Fn)\"\n   - No → stop. Yes → skip the version-bump sub-steps and go to 1c.\n2. If Audit B's pending content is **non-empty**:\n   - Show the user the pending content.\n   - **Propose next version** based on `cfg.version_scheme` (from Audit B):\n     - `semver`: bump the **patch** component by default (e.g., `v3.2.0 → v3.2.1`). Tell the user they can type `minor` or `major` for a different bump level.\n     - `integer`: increment the integer suffix by 1 (e.g., `v36 → v37`).\n     - `calver`: use today's date in `YYYY.MM.DD` format.\n     - **No `version_scheme` configured:** ask \"Cut a new version? If yes, what tag? (e.g. v4)\" and use whatever they provide.\n   - **Confirm:** Present \"Suggested version: **[tag]** — confirm, type a different tag, or type `no` to skip.\"\n     - `no`\u002Fskip → proceed to 1c without modifying CHANGELOG or version files.\n     - `minor`\u002F`major` (semver only) → recompute at that level and re-present.\n     - Confirmed\u002Fdifferent tag → use that tag and continue.\n   - **Write version files:** update every file in `cfg.version_files` with the new version string, preserving each file's existing format (JSON `\"version\"` field, README table row, HTML `\u003Ctitle>`).\n   - **Update CHANGELOG:** replace `## [Unreleased]` with `## [vN] — YYYY-MM-DD` (today's date), insert a fresh empty `## [Unreleased]` block above it, write the file. Tell the user \"CHANGELOG updated — [vN] cut.\"\n\n### 1c — Move completed task files\n\n- If Audit C found no candidates: tell the user \"No completed task files to move.\" and proceed to Step 2.\n- If candidates exist: tell the user \"Moving these to `completed\u002F`:\" followed by the list, then `git mv` each file into `{project_root}\u002F{cfg.task_dir}\u002Fcompleted\u002F`.\n\n## Step 2 — Commit, push, PR\n\n### 2.0 — Branch guard\n\n1. Run `git rev-parse --abbrev-ref HEAD` to get the current branch name.\n2. If the branch is `main` or `master`:\n   - Propose a feature branch name:\n     - If a version was cut in Step 1: suggest `release\u002F{version}` (e.g. `release\u002Fv4`).\n     - Otherwise: suggest `task\u002F{task-ids}` using any task IDs marked done during this session (e.g. `task\u002Fproj-007`), or `ship\u002F{YYYY-MM-DD}` if no IDs are in scope.\n   - Ask the user: \"Create and switch to `{branch}`? (y\u002Fn or type a different name)\"\n   - On confirmation: run `git checkout -b {branch}`.\n3. If already on a non-default branch:\n   - Tell the user \"Already on branch `{branch}`.\"\n   - If a version was cut in Step 1 **and** the current branch matches the pattern `release\u002FvX.Y.Z` **and** `vX.Y.Z` does not equal the newly cut version:\n     - Propose renaming: \"Branch name `{branch}` is stale — rename to `release\u002F{version}`? (y\u002Fn)\"\n     - If yes:\n       a. `git branch -m {branch} release\u002F{version}` — rename locally.\n       b. `git push origin release\u002F{version}` — push the new name.\n       c. `git push origin --delete {branch}` — delete the old remote branch (ignore error if it didn't exist remotely).\n       d. `git branch -u origin\u002Frelease\u002F{version}` — update tracking ref.\n       e. Tell the user \"Branch renamed to `release\u002F{version}`.\"\n     - If no: continue on the current branch name.\n   - Otherwise: continue without renaming.\n\n### 2.1 — Independent pre-PR checklist verifier\n\nBefore committing, run one more fresh, independent read pass over the three Pre-PR Checklist items (README, CHANGELOG, version files — see `CLAUDE.md`'s Pre-PR Checklist section if present). This pass must **re-read the files from disk**, not reuse conclusions from Step 1 — the point is to catch a mistake the same pass that wrote them could have missed:\n\n1. Re-read `{project_root}\u002FCHANGELOG.md`: confirm the change has an entry either under `## [Unreleased]` or in a freshly cut version block.\n2. Re-read `{project_root}\u002FREADME.md`: confirm the version table's **Current version** and **Date** match what's being shipped (if a version was cut).\n3. Re-read every file in `cfg.version_files`: confirm all carry the identical new version string (if a version was cut).\n4. If any mismatch is found: report it to the user and stop — do not commit with a known Pre-PR Checklist violation. Ask whether to fix it now or abort.\n5. If all three check out: tell the user \"Pre-PR checklist verified independently.\" and proceed.\n\n### 2.2 — Commit\n\n1. Run `git status` to see what's staged and unstaged. Stage all relevant changed files by name (do **not** use `git add -A` or `git add .`):\n   - Modified: `CHANGELOG.md`, `README.md`, todo file, any other files changed during this work session.\n   - Moved task files (already staged by `git mv`).\n2. Run `git log --oneline -5` to read recent commit message style.\n3. Draft a commit message:\n   - If a version was cut in Step 1: use `release [vN] — \u003Cone-line summary of what's in the release>`.\n   - If no version was cut: summarize the batch of completed work in one line.\n   - Append `Co-Authored-By:` with the **current model's** name and provider, derived at runtime from the executing session (e.g. the model identifying itself in this conversation) — never hardcode a specific model name\u002Fversion in the skill file itself, since that goes stale every time the underlying model changes.\n   - Pass via heredoc to avoid shell quoting issues.\n4. Show the user the draft commit message and ask for confirmation before committing.\n5. On confirmation: create the commit.\n\n### 2.3 — Push, with verify-and-retry\n\n1. Record the local HEAD SHA: `git rev-parse HEAD`.\n2. Push: `git push -u origin HEAD`.\n3. **Verify the push landed**: `git ls-remote origin {branch}` and compare the remote SHA to the local HEAD SHA from step 1.\n   - **Match**: push confirmed, continue to 2.4.\n   - **Mismatch or push failed**: retry, capped at 2–3 attempts:\n     a. If the remote moved ahead (someone else pushed): `git pull --rebase` then re-push.\n     b. If the push was simply rejected\u002Ffailed transiently: re-push directly.\n     c. After each retry, re-check `git ls-remote` against the (possibly updated) local HEAD.\n   - If still mismatched after the retry cap: **stop and ask the user** how to proceed. Do not silently continue as if the push succeeded.\n\n### 2.4 — Create PR, with verify-and-fallback\n\n1. Detect the default branch: `git remote show origin | grep 'HEAD branch' | awk '{print $NF}'` (typically `main` or `master`).\n2. Create PR with `gh pr create`:\n   - Title: same one-liner used in the commit.\n   - Include `--base {default_branch}` so the PR always targets the default branch.\n   - Body (heredoc):\n     ```\n     ## Summary\n     \u003CCHANGELOG content for this version, or a bullet-list summary if no version was cut>\n\n     ## Test plan\n     - [ ] Skill files deployed and appear in `\u002Ffsad-harness:*` command list\n     - [ ] README skills table is accurate\n     - [ ] CHANGELOG entry is present and correctly formatted\n\n     🤖 Generated with [Claude Code](https:\u002F\u002Fclaude.com\u002Fclaude-code)\n     ```\n3. **Verify the PR actually exists** — do not trust `gh pr create`'s exit code alone: run `gh pr view --json url,state,baseRefName` for the current branch.\n   - If it returns a PR with the expected base branch: confirmed. Record the URL.\n   - If `gh pr create` reported failure because a PR already exists for this branch: run `gh pr list --head {branch} --json url,state,baseRefName` to find the existing PR and report it instead of treating this as an error.\n   - If neither check turns up a PR: stop and tell the user PR creation could not be confirmed — do not report a PR URL that wasn't actually verified.\n4. Proceed to Step 3 (Verify shipped) once the PR is confirmed.\n\n## Step 3 — Verify shipped\n\nConfirm the three \"shipped\" predicates from the top of this document, using fresh checks (not assumptions carried over from Step 2):\n\n1. **Remote-HEAD parity**: `git ls-remote origin {branch}` — the returned SHA must equal `git rev-parse HEAD`. PASS\u002FFAIL.\n2. **PR existence**: `gh pr view --json url,state,baseRefName` — must return a PR targeting the default branch. PASS\u002FFAIL.\n3. **Version-string consistency** (only if a version was cut in Step 1): re-read every file in `cfg.version_files` and confirm they all carry the identical new version string. PASS\u002FFAIL.\n\nReport all three verdicts to the user. If any predicate fails, say so explicitly — do not report the work as \"shipped\" on a partial result. Only report success when all applicable predicates pass.\n",{"description":7,"allowed-tools":44},"Bash(git worktree:*), Bash(git -C:*), Bash(git merge:*), Bash(git merge-base:*), Bash(git add:*), Bash(git commit:*), Bash(git branch:*), Bash(git mv:*), Bash(git rev-parse:*), Bash(git checkout:*), Bash(git push:*), Bash(git pull:*), Bash(git status:*), Bash(git log:*), Bash(git remote:*), Bash(git ls-remote:*), Bash(gh pr create:*), Bash(gh pr view:*), Bash(gh pr list:*)","main","e32e0d2b9fad831f2915fc773e03fd68d98c8c1e","skills\u002Fship-it",0,"https:\u002F\u002Fgithub.com\u002Ftbeack\u002Ffsad_training","https:\u002F\u002Ffsad-training.vercel.app","https:\u002F\u002Fgithub.com\u002Ftbeack","2026-10-12 21:23:30",{"source":8,"skillName":5,"commands":54,"prompt":64,"zipAvailable":65},[55,58,61],{"tool":56,"command":57},"npx","npx skills add tbeack\u002Ffsad_training --skill ship-it",{"tool":59,"command":60},"bunx","bunx skills add tbeack\u002Ffsad_training --skill ship-it",{"tool":62,"command":63},"pnpm","pnpm dlx skills add tbeack\u002Ffsad_training --skill ship-it","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Ftbeack\u002Ffsad_training\u002Fblob\u002Fmain\u002Fskills\u002Fship-it\u002FSKILL.md",true,[],[68,77,86,102,111,120],{"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},"01M71KR8NEVXYHFZ9YF9PBEMH9","verify-ac","https:\u002F\u002Fgithub.com\u002Ftbeack\u002Ffsad_training\u002Fblob\u002Fmain\u002Fskills\u002Fverify-ac\u002FSKILL.md",[],[74,75,76],"verify ac","ac","verify",{"skillNo":78,"name":79,"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":80,"categories":81,"keywords":82,"publishedAt":39},"01M71KR6NR71VM37PJX36EM18X","spec-review","https:\u002F\u002Fgithub.com\u002Ftbeack\u002Ffsad_training\u002Fblob\u002Fmain\u002Fskills\u002Fspec-review\u002FSKILL.md",[],[83,84,85],"spec","review","spec review",{"skillNo":87,"name":19,"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":39},"01M71KR55DS0Q45W9YF0516AX4","Short alias for \u002Ffsad-harness:ship-it. Wrap up finished work, cut a version, commit, push, and open a PR.","https:\u002F\u002Fgithub.com\u002Ftbeack\u002Ffsad_training\u002Fblob\u002Fmain\u002Fskills\u002Fship\u002FSKILL.md",[],[19,92,93,94,33,95,20,30,96,97,36,98,31,99,100,101],"version","harness","alias","push","pr","wrap up","wrap","short","cut","for",{"skillNo":103,"name":104,"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":105,"categories":106,"keywords":107,"publishedAt":39},"01M71KQZ640W3AQ707NFDANCMW","set-context","https:\u002F\u002Fgithub.com\u002Ftbeack\u002Ffsad_training\u002Fblob\u002Fmain\u002Fskills\u002Fset-context\u002FSKILL.md",[],[108,109,110],"context","SET","set context",{"skillNo":112,"name":113,"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":114,"categories":115,"keywords":116,"publishedAt":39},"01M71KQV6HR3HP3G2K0BFC011Y","sec-review-team","https:\u002F\u002Fgithub.com\u002Ftbeack\u002Ffsad_training\u002Fblob\u002Fmain\u002Fskills\u002Fsec-review-team\u002FSKILL.md",[],[117,84,118,119],"team","sec review team","review team",{"skillNo":121,"name":122,"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":123,"categories":124,"keywords":125,"publishedAt":39},"01M71KQQREFKM53TYCAB13FABN","sec-review-fixes","https:\u002F\u002Fgithub.com\u002Ftbeack\u002Ffsad_training\u002Fblob\u002Fmain\u002Fskills\u002Fsec-review-fixes\u002FSKILL.md",[],[84,126,127,128],"fixes","review fixes","sec review fixes"]