[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6HQFRJGFGQ5SF1VF8DHEQJJ":3,"skill-same:01M6HQFRJGFGQ5SF1VF8DHEQJJ":145},{"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":46,"commitSha":47,"skillDirectory":48,"forksCount":49,"repositoryHtmlUrl":50,"repositoryHomepageUrl":51,"ownerHtmlUrl":52,"ownerBlogUrl":53,"ownerDescription":6,"updatedAt":54,"install":55,"resources":68},"01M6HQFRJGFGQ5SF1VF8DHEQJJ","ship-it",null,"Worktree-side implementation orchestrator for an OpenSpec change. Idempotent: gates automated scenarios on filesystem reality, owns the red-test fix loop, runs the docker harness with always-teardown, then drives ship-change inline. Escape hatch writes SHIP_IT_BLOCKED.md. Runnable headless. Triggers: \"ship it\", \"build and ship this change\", \"run ship-it\", \"implement + test + land in the worktree\".","BlackBeltTechnology\u002Fpi-agent-dashboard","BlackBeltTechnology","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F8101592?v=4","01M6HQDX7QAJA0QP4NYRYBMJ8A","BlackBelt Technology","01M6HQDXCC7719N9YDMQVH9JS6",348,"MIT","https:\u002F\u002Fgithub.com\u002FBlackBeltTechnology\u002Fpi-agent-dashboard\u002Fblob\u002Fdevelop\u002F.pi\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","idempotent","openspec","docker","for","test fix","harness","land","run","orchestrator","worktree","inline","change","loop","fix","teardown","project","headless","2026-11-10 10:12:30",false,"---\nname: ship-it\ndescription: 'Worktree-side implementation orchestrator for an OpenSpec change. Idempotent: gates automated scenarios on filesystem reality, owns the red-test fix loop, runs the docker harness with always-teardown, then drives ship-change inline. Escape hatch writes SHIP_IT_BLOCKED.md. Runnable headless. Triggers: \"ship it\", \"build and ship this change\", \"run ship-it\", \"implement + test + land in the worktree\".'\nmetadata:\n  version: \"1.0\"\n  scope: project\n---\n\n# ship-it\n\nOrchestrates the **implementation phase** of an OpenSpec change **inside its git\nworktree**. Twin of `plan-proposal` (which runs the planning phase on `develop`).\nComposes existing skills — `openspec-apply-change`, the docker harness, and\n`ship-change` — and adds the wiring they lack. Runnable **headless**.\n\n```mermaid\nflowchart LR\n  P[\"plan-proposal (develop)\"] -->|\"boundary: spawn worktree\"| S\n  subgraph Worktree [\"IMPLEMENTATION — worktree (this skill)\"]\n    S[\"ship-it\"] --> A[\"apply\"] --> M[\"merge develop (2.5)\"] --> T[\"docker-harness test\"] --> E[\"enforcers (4.4)\"] --> Q[\"CodeQL ratchet (4.4b)\"] --> R[\"local review (4.5)\"] --> C[\"ship-change\"]\n  end\n  S -.->|\"reverse: SHIP_IT_BLOCKED.md on design issue\"| P\n```\n\nPure decision logic lives in this skill's own `scripts\u002F` directory and is\nunit-tested (`.pi\u002Fskills\u002Fship-it` is a vitest project):\n`scripts\u002Fmanifest.ts` (`parseManifest`, `deferDecision`, `filesystemRealityCheck`),\n`scripts\u002Fno-weakening.ts` (`assertNoWeakening`),\n`scripts\u002Freview-gate.ts` (`reviewRoundDecision`, `parseReviewReply`,\n`resolveReviewer`, `classifyFindings`, `REVIEW_TIMEOUT_MS`),\n`scripts\u002Ffix-ledger.ts` (`validateFixLedger`), `scripts\u002Freview-state.ts`\n(`deriveReviewState`), and `scripts\u002Freview-prompt.ts` (`buildReviewPrompt` + the\nstep-4.5 CLI), and `scripts\u002Fopenspec-deps-gate.ts` (`runGate`, the step-1.5\ndependency gate). The CodeQL ratchet of step 4.4b is the repo script\n`scripts\u002Fcodeql-local.mjs` (see `docs\u002Fcode-quality.md`).\n\n## Preconditions\n\n- Running **inside the change's worktree** (`.worktrees\u002Fos-\u003Cchange>`, branch\n  `os\u002F\u003Cchange>`). Resolve the change name from the worktree dir basename.\n- `docker` available (the e2e harness); `openspec` CLI resolves from the parent\n  repo root when inside a worktree (per `AGENTS.md`).\n- Announce: *\"Shipping change: `\u003Cchange>` (worktree implementation phase).\"*\n\n## Procedure\n\n### 1. Orient with `openspec status`, but gate on filesystem reality (idempotent)\n\n**Entry gate — a previous hand-back.** If\n`openspec\u002Fchanges\u002F\u003Cchange>\u002FSHIP_IT_BLOCKED.md` already exists, a previous\ninvocation handed the change to a human. A run is **interactive** exactly when\nthe `ask_user` tool is available; otherwise it is headless.\n\n- **Headless** → exit non-zero naming `SHIP_IT_BLOCKED.md`. No fix loop, no\n  review round, no `ship-change` step.\n- **Interactive** → show its cause and `ask_user` **resume \u002F abort**. On\n  *abort*, stop without changes. On *resume*, create this invocation's run dir\n  (step 4.5), copy `SHIP_IT_BLOCKED.md` into it (evidence kept), then remove\n  the file from the change dir.\n\nRemoving the file, or answering *resume*, is the human decision that starts a\nnew review budget — re-invoking `ship-it` alone never does. A hand-back written\nby step 4.4b (new CodeQL alerts, a script error, a baseline-diff violation) lists\nthe alerts and how to resolve them; *resume* re-runs 4.4 and 4.4b, which then ask\nper alert.\n\nRead `openspec status --change \u003Cchange> --json` for orientation only. **Do not\ntrust the `tasks.md` checkbox** as proof an automated scenario is done — a\nhand-checked or prior-partial `- [x]` can lie.\n\nParse `test-plan.md` (`parseManifest`). For each `automated` row, resolve its\nfolded test file and run `filesystemRealityCheck`: a scenario is satisfied only\nwhen its **test file exists AND passes in the harness** (step 3). Any automated\nrow whose test file is absent → NOT done → author it (step 2) regardless of the\ncheckbox. This makes re-invocation genuinely idempotent: fresh run and re-run\nreach the same all-green end state.\n\n### 1.5. Dependency gate — are this change's blockers shipped?\n\nRuns on every invocation, **after** the `SHIP_IT_BLOCKED.md` entry gate and the\norientation above, and **before** any implementation step. From the worktree\nroot, with a **60 s overall timeout** on the tool call:\n\n```bash\nnpx tsx .pi\u002Fskills\u002Fship-it\u002Fscripts\u002Fopenspec-deps-gate.ts --change \u003Cchange>\n```\n\nThe script owns all logic (dashboard query with a bounded retry, offline parser\nfallback, `origin\u002Fdevelop` archive lookup) and prints one JSON verdict\n`{ status: ok|warn|blocked, mode: online|offline, blockers: [{ change, state:\nopen|satisfied|unknown, source }], issues: [{ code, severity, message }], notes }`.\nAct on it — do not re-derive it:\n\n- **Crash, timeout or unparseable output** → record *\"dependencies not checked\"*\n  in the step report and **continue**; this gate never stops a run by failing.\n- **`status: blocked`** (an `error` issue: `invalid-file`, `self-reference`, a\n  declared `cycle`) → write `SHIP_IT_BLOCKED.md` naming the issue(s) and stop via\n  the step-5 escape hatch. No fix loop, no review round.\n- **Open blockers** (`state: open`) → a warning. **Interactive** → `ask_user`\n  *continue \u002F stop* (with the situation brief below, listing the open blockers);\n  on *stop* write `SHIP_IT_BLOCKED.md` naming them and stop. **Headless** →\n  **continue** and carry the open blockers into the final report.\n- Warnings (including inferred-cycle warnings), `satisfied`, `unknown` names and\n  the script's notes never interrupt; report them. A blocker the script counted\n  as satisfied because it is archived on `origin\u002Fdevelop` is a pending merge,\n  not a blocker (step 2.5 brings it in).\n- `mode: offline` checked this change's own `dependencies.yaml` only: say in the\n  report that cycles and inferred edges were **not checked**.\n\n### 2. Run apply if non-manual work remains — inject the exemplar\n\n**kb-first, even as an executor.** You know which files the tasks name, so your\nreflex is `grep`\u002F`cat`\u002FRead on them directly. The docs-first gate still applies:\nbefore you `grep`\u002F`rg` for a symbol, Read a file to learn its purpose, or chase\nan import, run `kb_search` \u002F `kb agents \u003Cpath>` \u002F `kb_neighbors` FIRST. Knowing\nthe file does not exempt you — kb the symbol\u002Ffile, then edit.\n\nIf non-`manual-only` tasks remain (real code + the test files the fold tasked),\nrun `openspec-apply-change` for the change. `apply` writes code and marks tasks.\n\n`apply` has no \"copy from exemplar\" capability of its own. For each folded test\ntask, **resolve the harness-exemplar pointer** (the nearest existing spec of that\ncategory named in the task) and inject its path into the task context you hand\n`apply` — or author the spec yourself in the fix loop (step 4). Bare\n\"author X.spec.ts\" with no exemplar is forbidden.\n\n### 2.5. Integrate `develop` — merge before the harness (primary integration point)\n\nThe harness (step 3) is the **strongest gate** on the ship-it path, so integration\nmust sit **upstream** of it: the harness must validate the merged tree `T1`, not\nthe pre-merge tree `T0`. Merge `origin\u002Fdevelop` — the **remote ref**, never local\n`develop` (checked out in the parent repo → worktree branch-collision pitfall):\n\n```bash\ngit fetch origin develop\ngit merge --no-edit origin\u002Fdevelop\n```\n\nIdempotent: up-to-date → \"Already up to date\", no merge commit, safe to always\nrun. **Merge, not rebase** — step 9 squash-merges anyway, so rebase's linear\nhistory is moot while its force-push is a documented `ship-change` footgun.\n\n**Conflict → abort + STOP.** On an unresolved conflict, `git merge --abort`,\nreport, and do **not** enter the harness — never run the gate on a half-merged\ntree. Resolve trivial conflicts with `ship-change`'s existing recipes (`AGENTS.md`\nunion-keep; `pnpm-lock.yaml` → `git checkout --theirs` +\n`pnpm install --lockfile-only`), then re-run the merge. A conflict you cannot\nresolve mechanically → escape hatch (step 5).\n\n### 3. Harness lifecycle — delegate the port, always tear down\n\nObtain the harness and its port from `docker\u002Ftest-up.sh` (allocator on first run,\nreuser on re-up — do NOT add port code). Read the derived port from\n`.pi-test-harness.json` (`dashboardPort`) — **never hardcode `:18000`**.\n\nWrap the whole run so teardown ALWAYS happens (red test, abort, or a partial\n`test-up.sh` start):\n\n```bash\ncleanup() { docker\u002Ftest-down.sh || true; }\ntrap cleanup EXIT\ndocker\u002Ftest-up.sh -d --build            # allocates + records .pi-test-harness.json\nport=$(jq -r '.dashboardPort' .pi-test-harness.json)   # jq is present in the harness env\n# run the relevant suite against $port:\nPW_E2E_USE_RUNNING=1 npm run test:e2e   # L3; or the L1\u002FL2 suite for other levels\n```\n\n`test-down.sh` is safe against a partially-created compose project (`compose down\n-v` + best-effort `rm`). Isolation is no longer silent, though: a second\nworktree's harness saturates the daemon (two 4 GiB limits on an 8 GB VM), so\n`test-up.sh` refuses when `(n+1) × MEM_LIMIT >= MemTotal` — `n` = other running\n`pi-dash-test-*` projects, `MEM_LIMIT` default `4g` — naming them and the\narithmetic, and warns (once) when the limits fit but a peer is up, because a red\nrun is then not attributable. Free the peer with its own `test-down.sh`, or set\n`PI_HARNESS_ALLOW_OVERSUBSCRIBE=1`. The harness emits no committed whole-run\ntimeout (#450): bound a local run with `--global-timeout`, never a config edit.\n\n### 4. Red-test fix loop — OWNED by ship-it (apply cannot fix a checked task)\n\n`apply` marks `- [ ]` → `- [x]` and never revisits a checked task, so re-invoking\n`apply` on a red-but-checked test no-ops. **On a red test, `ship-it` drives the\nfix itself** — edit the code or the test, re-run the harness. Never re-invoke\n`apply` on an already-checked task.\n\nBound the loop by **progress-making cycles**, not a fixed count:\n\n- A cycle that changes the worktree and moves the harness result counts.\n- A cycle that produces **no change** to the worktree → **STOP immediately** and\n  escalate (step 5). Do not spin.\n- This bound is independent of doubt-review's 3-cycle bound (different semantics).\n\n**No-weakening guardrail (mechanical, enforced every cycle):** before accepting a\nchange to a test file, run `assertNoWeakening` on its diff\n(`git diff -- \u003Ctest-file>`). If it reports `ok:false` (added `.only`\u002F`skip`,\ndeleted assertion, or a strong→permissive matcher swap), **REJECT** the change —\nyou may not reach green by degrading the test. Fix the code instead.\n\n### 4.4. Deterministic enforcers — cheap, offline, before any model call\n\nRun the enforcers from the worktree root. Each is already the sole owner of its\nrule; this step only *invokes* them:\n\n```bash\nnode scripts\u002Fcheck-conventions.mjs --base origin\u002Fdevelop\nnode scripts\u002Fcheck-plugin-boundary.mjs  # core\u002Fplugin import ratchet: NEW edge or STALE allowlist row fails\nnode scripts\u002Fcheck-client-sinks.mjs     # raw navigation \u002F HTML \u002F script sinks outside the chokepoints\nnode scripts\u002Fdox-byte-gate.mjs\nnode scripts\u002Fi18n-lint.mjs --strict     # --strict, else it exits 0 regardless\nnode scripts\u002Fi18n-parity.mjs\nnode scripts\u002Fknip-config.mjs            # knip.json still roots every manifest entry\nnode scripts\u002Fknip-ratchet.mjs           # per-class dead-code ratchet (~8s)\nnode scripts\u002Fknip-ratchet.mjs --check-baseline-diff origin\u002Fdevelop   # ceiling not raised\nnode scripts\u002Fcodeql-local.mjs --check-baseline-diff origin\u002Fdevelop   # CodeQL baseline grew only with a reason (static, instant)\n```\n\nThe plugin-boundary gate (`npm run check:plugin-boundary`) fails on a core→plugin\nor plugin→plugin edge with no row in `scripts\u002Fplugin-boundary-allowlist.json`\n(NEW) and on a row whose edge is gone (STALE). A fix PR deletes the rows it\nremoves; `--write-baseline` re-seeds and is a reviewed maintainer step, never a\nway to make this check green. A failure routes to the step-4 fix loop.\n\nThe knip pair is the **preventive** half of the dead-code oracle: the nightly\njob runs after merge and can only report. Order matters — `knip-config.mjs`\nfirst, because an unrooted graph reports live files as dead, and a ratchet over\nthat number gates noise (measured: unrooted 723 findings \u002F 90 unused files vs\nrooted 437 \u002F 10). Fix a ratchet failure by deleting the dead code; raising a\nbaseline is rejected by the third command — which must stay wired, or \"never\nraise the ceiling\" is aspirational: the plain ratchet passes happily against a\nraised number. It also rejects a DELETED class, the cheaper bypass.\n\nThe CodeQL baseline-diff check is static (no analysis, no CodeQL needed): it\ncompares `codeql-baseline.json` with `origin\u002Fdevelop`'s — `untriaged` never grows,\ngrowth needs a typed reason. A violation here is handled like one in 4.4b's\nclosing check (below), never by the red-test fix loop. The analysis itself is too\nslow for 4.4 and runs in step 4.4b.\n\nThey are placed here, after the harness and before the review, because they are\ndeterministic, offline and near-instant: a mechanically-failing tree must never\nspend a model call. A non-zero exit routes to the step-4 fix loop; **step 4.5\ndoes not run**.\n\n`--base` is mandatory for gating: without it the touched set is undefined and\nthe Discipline-Skills and Mermaid rules report without gating. The touched set\nunions the committed diff with the working tree, so fixes still uncommitted in\nthe fix loop are inspected.\n\nThese do NOT move into `quality:changed`. That script is the dev-loop oracle and\nhas no automated caller; the ship gate is here.\n\n### 4.4b. CodeQL ratchet — blocks NEW code-scanning alerts, still no model call\n\nRuns between 4.4 and 4.5, on every invocation. It analyses a content-addressed\nsnapshot of the worktree with the pinned query packs (~1.5 min) and compares the\nresults with the committed `codeql-baseline.json`. **No model call** is made here.\nA run is interactive exactly when `ask_user` is available, otherwise headless.\n\n```bash\nnpm run codeql -- --json        # exit 0 pass\u002Fskipped · 1 new alerts · 2 error\n```\n\n1. **Skip.** stderr `CODEQL SKIPPED: \u003Ccause>` (no `codeql`, packs neither cached\n   nor downloadable) → record the skip in the step report, run the closing check\n   (step 6 below; static only) and continue. A machine without CodeQL never blocks\n   shipping — the PR's GitHub analysis is the backstop.\n2. **Prune first.** `staleEntries` in the JSON (fewer current results than\n   recorded) → `node scripts\u002Fcodeql-local.mjs --prune`, then\n   `git add codeql-baseline.json` so the lowered baseline ships with the change.\n   `--prune` exit 1 only means new alerts remain — go on to step 3. Show any\n   removed `github-dismissed` entry it prints when asking about its replacement.\n3. **New alerts, headless.** Write `SHIP_IT_BLOCKED.md` listing each new alert\n   (rule, file, line, message) and how to resolve it: resume `ship-it`\n   interactively (the entry gate asks resume\u002Fabort, then 4.4b asks per alert), or\n   re-run `npm run codeql`, fix or `--accept` by hand, and delete the report. Exit\n   non-zero; no `ask_user`, no 4.5, no `ship-change`.\n4. **New alerts, interactive.** `ask_user` per alert (more than 5 → one `batch`,\n   one sub-question each): **fix**, **accept with a typed reason**\n   (`accepted-risk: …`, `false-positive: …`), and — only for\n   `js\u002Fpath-injection`, `js\u002Fcommand-line-injection` and\n   `js\u002Fshell-command-constructed-from-input` — the **`operator-authz`** preset, a\n   template the answer fills in with the gate that bounds this sink:\n   `operator-authz: gate: \u003Csymbol> \u003Crepo-path>:\u003Cline>; \u003Cbasis>` (≤ 236 chars,\n   gate first). Only `git-operations.ts`, `process-manager.ts` and\n   `spawn-preflight.ts` may use `operator-authz: control-tier: \u003Cbasis>` instead.\n   No gate bounds the sink → it is a finding, not an `operator-authz` accept.\n   `codeql-baseline-gates.test.ts` enforces the form. The preset is never offered\n   for any other rule (the argument does not hold for them). Accept with\n   `node scripts\u002Fcodeql-local.mjs --accept \u003CruleId> \u003Cfile> \u003ClineHash> --reason \"\u003Creason>\"`\n   then `git add codeql-baseline.json`.\n   **Accepts before fixes** within one batch of answers: a fix changes the\n   snapshot and makes later `--accept` refuse. Then route the fixes to the step-4\n   fix loop and re-run 4.4 and 4.4b.\n5. **Script error (exit 2).** Interactive: show the error, `ask_user`\n   **retry \u002F abort**. Headless: write `SHIP_IT_BLOCKED.md` with the error and stop.\n   Never the red-test fix loop.\n6. **Closing check — a gate.** `node scripts\u002Fcodeql-local.mjs --check-baseline-diff origin\u002Fdevelop`\n   (add `--no-growth` when headless, so a headless run never grows the baseline).\n   Exit 0 → continue to 4.5. Exit 1\u002F2 → interactive: show the violation, `ask_user`\n   **revert \u002F abort**; headless: write `SHIP_IT_BLOCKED.md` naming the entry. A\n   baseline-diff violation (here or in step 4.4) never enters the red-test fix\n   loop.\n\n**Baseline edits go only through `--prune` and `--accept`.** Never edit\n`codeql-baseline.json` by hand in this step; seeding (`--write-baseline`) and\n`--triage` are implementation \u002F maintenance steps outside 4.4b.\n\n### 4.5. Local review checkpoint — the semantic half\n\nRuns on **every** invocation, but only after step 4.4b passes or skips. There is no triviality escape: no diff-size, path,\nor changed-file-count condition skips it. A run is **interactive** exactly when\nthe `ask_user` tool is available in the session; otherwise it is headless.\n\n`CLI` below is `npx tsx .pi\u002Fskills\u002Fship-it\u002Fscripts\u002Freview-prompt.ts`. Records\nlive in this invocation's run dir, created once with\n`RUN=$(CLI --new-run --change \u003Cchange>)` →\n`$(git rev-parse --git-dir)\u002Fship-it\u002F\u003Cchange>\u002F\u003Crun-id>\u002F` (per worktree, never\ncommitted, `\u003Crun-id>` = invocation start timestamp):\n`review-r\u003CN>.md` (well-formed reply of round N), `review-r\u003CN>.attempt-\u003Ck>.md`\n(malformed attempt), `fix-ledger-r\u003CN>.json` (answers `review-r\u003CN>.md`),\n`ledger-failures.log` (written by the CLI), `approvals.log` (one line per human\n\"one more round\" answer — written only right after an `ask_user` answer).\n\n1. **Resolve the reviewer** with `resolveReviewer` from `scripts\u002Freview-gate.ts`.\n   `@review` is REQUIRED. Unconfigured → hard fail naming `update_roles` \u002F the\n   dashboard Roles panel. There is deliberately **no fallback to the session\n   default model**: that model is the author, so falling back turns the gate into\n   self-review. Interactive runs may offer the bootstrap prompt; a headless run\n   fails.\n2. **Derive state, then decide.** Run `CLI --state \"$RUN\"` → `round`,\n   `approvedExtraRounds`, `malformedRetries`, `ledgerFailures`. Feed exactly\n   those values (plus `interactive` and the last round's blocking ids) to\n   `reviewRoundDecision`. Never supply a counter from memory; never relabel a\n   round as round 1 of a new budget.\n3. **Commit the worktree before each round** (squash-merge collapses these), so\n   every reviewed tree has a sha. Check `git status --short`, then stage the\n   change's own paths explicitly and commit exactly that list with\n   `git commit -- \u003Cpaths>` (a bare `git commit` takes everything in the index),\n   so files already staged before this step stay out; unrelated local edits\n   (e.g. a worktree-local `.pi\u002Fsettings.json`) stay unstaged and never enter\n   the change. Record the commit as the round's sha.\n4. **Generate the prompt — never hand-write it.** Round 1:\n   `CLI --change \u003Cchange> --round 1`. Round N ≥ 2 (a verification round):\n   `CLI --change \u003Cchange> --round N --prior \"$RUN\u002Freview-r\u003CN-1>.md\" --ledger \"$RUN\u002Ffix-ledger-r\u003CN-1>.json\" --since \u003Cround N-1 sha>`.\n   Pass its stdout to the reviewer **verbatim** — no added framing, summary, or\n   claim about the fixes; keep its header line. The generated prompt carries the\n   `review-code` rubric, the diff range `git diff origin\u002Fdevelop...HEAD`\n   (three-dot, so the step-2.5 merge is not attributed to this change), every\n   intent artifact present (`proposal.md`, `tasks.md`, `design.md`, delta specs,\n   `test-plan.md`), and the defect-class sweep. Known limitation: a verification\n   round carries each prior `B` finding up to its first *unindented* paragraph\n   (indented continuations are kept) — the price of keeping the prior reply\n   bounded (#E24); the prompt asks the reviewer to indent continuations.\n5. **Spawn it as an isolated subagent** — an `Agent` call with `model: \"@review\"`\n   and `subagent_type: \"CodeReviewer\"` (the definition in\n   `.pi\u002Fagents\u002FCodeReviewer.md` disables context inheritance; no other agent\n   type may be used here). Never an in-context self-review, never the\n   CodeRabbit CLI (that is `ship-change`'s remote gate, later and different).\n6. **Bound the call** by `REVIEW_TIMEOUT_MS` (300s). A timeout is neither a pass\n   nor a blocking finding — it is a checkpoint failure.\n7. **Parse the reply** with `parseReviewReply`. Well-formed → save it as\n   `$RUN\u002Freview-r\u003CN>.md`. Malformed (empty, no or duplicate\n   `BLOCKING_COUNT`\u002F`VERDICT` line, or self-contradictory) → save it as\n   `$RUN\u002Freview-r\u003CN>.attempt-\u003Ck>.md`; it is never a pass and never a round.\n   **Retry once**: re-invoke the same round; a second malformed reply halts like\n   a timeout. A missing sweep table is noted in the round record and the step\n   report, not a failure.\n8. **Route findings**: only `issue(blocking)` (`B\u003Cn>` ids) re-enters the fix\n   loop. Everything else is reported and shipped.\n9. **Fix protocol, per `B` id** (the `review-code` fix protocol): reproducing\n   test first (or a ≥20-char reason no automated test can observe it) →\n   smallest fix → sibling sweep of the same pattern across the change → re-read\n   the fix hunk against the finding's defect class. After each review fix,\n   **re-run the harness (step 3) and the step-4.4 enforcers** before anything\n   else; a failure re-enters the fix loop first.\n10. **Write and validate the ledger** before a verification round:\n    `$RUN\u002Ffix-ledger-r\u003CN>.json`, one entry per `B` id — `{ id, test: {path} |\n    {untestable}, siblings: {searched, sites}, fixedIn }`, no status field, no\n    verdict language. Then\n    `CLI --validate-ledger --prior \"$RUN\u002Freview-r\u003CN>.md\" --ledger \"$RUN\u002Ffix-ledger-r\u003CN>.json\"`.\n    Non-zero → complete the listed entries (each failure is recorded; the third\n    for a round routes as unsatisfiable). An entry the fix loop cannot complete\n    → unsatisfiable. No verification round while validation fails.\n11. **Bound the loop** with `reviewRoundDecision`. The base cap is two rounds —\n    review, fix, re-review. This is a hard numeric cap, NOT step 4's\n    no-progress rule, because a reviewer can emit a fresh finding every round\n    and each fix changes the worktree, so a no-progress bound would never fire.\n    - `review` → next round (step 3).\n    - `proceed` → step 6.\n    - `ask` (interactive, cap reached) → one `ask_user` select naming the\n      remaining `B` ids: **one more verification round** \u002F **hand back to\n      planning**. *One more* → append one line to `$RUN\u002Fapprovals.log` and record\n      the answer in the round file, then run exactly one verification round.\n      *Hand back* → escape hatch. If the `ask_user` call fails, treat the run as\n      headless and take the escape hatch.\n    - `escape` → the boundary-reverse (step-5) escape hatch.\n12. `assertNoWeakening` still governs every test edit a review fix makes. A\n    finding that can only be satisfied by weakening a test is **unsatisfiable** →\n    escape hatch (step 5), naming both the finding and the guardrail. The\n    guardrail is never relaxed to reach green.\n\nEvery `escape` decision carries a `reason`; write it into `SHIP_IT_BLOCKED.md`\ntogether with the run dir path.\n\n### 5. Boundary-reverse escape hatch\n\nThe worktree boundary is **not one-way**. Trigger the reverse path when ANY of:\n\n- `apply` reports a design issue (NL prose — implementation reveals the design is\n  wrong), OR\n- the step-4 fix bound is exhausted (a no-progress cycle), OR\n- the step-4.5 review checkpoint decides `escape` (including a human choosing\n  *hand back* at the cap), OR\n- a **headless** step-4.4b stop (new CodeQL alerts, a script error, or a\n  baseline-diff violation).\n\nThen, **do NOT headlessly rewrite `proposal.md`\u002F`design.md`**:\n\n1. Leave the worktree intact (no revert).\n2. Write `openspec\u002Fchanges\u002F\u003Cchange>\u002FSHIP_IT_BLOCKED.md` naming the failing\n   scenario \u002F design gap and what was tried.\n3. Exit non-zero.\n4. Surface via the dashboard so a human re-enters `plan-proposal` \u002F\n   `doubt-driven-review` on `develop`.\n\n### 6. Drive ship-change INLINE, with manifest-aware defer + teardown ordering\n\nOnce every automated scenario is green (harness-verified), ship. Execute\n`ship-change`'s procedure **inline** (not as a black-box subagent) so you keep\nstep-level control for the teardown ordering below.\n\n**Defer rule (`deferDecision`, manifest-aware):**\n- `test-plan.md` exists → a leftover `- [ ]` is deferrable only if it maps to a\n  `manual-only` manifest row (inline `(test-plan: manual-only)` or a\n  `(test-plan #\u003Cid>)` reference resolved against the manifest). Any other leftover\n  = real work = **STOP** (return to step 2, or the escape hatch).\n- `test-plan.md` absent (legacy change) → `ship-change`'s current keyword defer\n  applies unchanged.\n\n**Archive+sync gate before the destructive steps (load-bearing):** do **not** let\n`ship-change` merge the PR, delete the branch, or remove the worktree while the\nproposal is not archived and specs are not synced. `ship-change` step 8.5 is that\nhard gate — driving `ship-change` inline, hold at step 8.5 until the change is\narchived (source dir moved to `openspec\u002Fchanges\u002Farchive\u002F`, move committed) and\nspecs synced. Failed\u002Fskipped archive → STOP (return to step 2 or the escape hatch),\nnever proceed to steps 9\u002F10.\n\n**Teardown-before-removal ordering (load-bearing):** the harness MUST be torn down\n(`test-down.sh`, already wired via the step-3 trap) **before** `ship-change` step\n10 removes the worktree. A leaked container makes the worktree \"busy\" and stalls\nremoval. Run the harness teardown, then let `ship-change` archive → commit → PR →\nCI → CodeRabbit → (archive+sync gate) → squash-merge → remove worktree.\n\n**CI watching is fail-fast** (`ship-change` step 6): never block on\n`gh pr checks --watch` until every job ends. Poll in short bounded calls; the\nmoment any check reports `fail`, diagnose it while the remaining jobs keep\nrunning, and batch the round's failures into one push.\n\n## Situation brief for `ask_user`\n\nEvery `ask_user` call this skill makes MUST carry a self-contained situation\nbrief in its `message` — at least 240 characters (the dashboard's\n`questions.minBriefChars` default; shorter and the server generates a brief with\nthe `@fast` model instead). The answer may be given from the global question\nstack by someone who has not seen this chat. State, in 2–4 lines:\n\n1. **Task** — what change\u002Fstep is in progress.\n2. **Why asking** — what was found or blocked that needs a human.\n3. **Per-option outcome** — what each option leads to (skip for free-text inputs).\n\nA bare question (\"Resume or hand back?\") is never enough. See change:\n`add-pending-question-stack`.\n\n## Guardrails\n\n- **Idempotent on filesystem reality** — checkbox `- [x]` is never proof; the\n  test file must exist and pass in the harness.\n- **ship-it owns the fix loop** — never re-invoke `apply` on a checked task.\n- **Never weaken a test to reach green** — `assertNoWeakening` rejects it.\n- **Enforcers (4.4) before the reviewer (4.5)** — never spend a model call on a\n  mechanically-failing tree.\n- **CodeQL (4.4b) gates 4.5** — 4.5 runs only after 4.4b passes or skips; 4.4b\n  never makes a model call, never edits `codeql-baseline.json` except through\n  `--prune` \u002F `--accept`, never routes a baseline-diff violation or a script\n  error to the red-test fix loop, and a headless run never grows the baseline\n  (`--no-growth`).\n- **The review is unconditional** — no triviality escape, and `@review` is\n  required; never fall back to the session default model (that is self-review).\n- **Two review rounds, hard cap** — review, fix, re-review. Not a no-progress\n  bound: a model always makes \"progress\". Only a human approval at the cap\n  (interactive `ask_user`, recorded in `approvals.log`) adds a round — exactly\n  **+1 round per human approval**. The orchestrator **never renews its own\n  budget**: no self-reset, no \"fresh two-round budget\", no relabelled round.\n  Headless runs and hand-backs take the boundary-reverse (step-5) escape hatch.\n- **The reviewer prompt is generated** — `review-prompt.ts` output, passed\n  verbatim to `subagent_type: \"CodeReviewer\"`; never hand-written, never\n  carrying the author's conclusions.\n- **A `SHIP_IT_BLOCKED.md` at entry stops the run** — headless exits non-zero;\n  interactive asks resume\u002Fabort.\n- **Merge `develop` before the harness (step 2.5)** — the strong gate validates\n  the integrated tree `T1`; merge `origin\u002Fdevelop` (remote ref), never rebase.\n  Conflict → abort + STOP, never enter the harness on a half-merged tree.\n- **Never merge \u002F delete branch \u002F remove worktree while the proposal is not archived and synced** — hold at `ship-change` step 8.5 (archive+sync gate) until it passes; failed archive → STOP.\n- **Always tear the harness down** (trap\u002Ffinally), **before** worktree removal.\n- **Never hardcode `:18000`** — read `dashboardPort` from `.pi-test-harness.json`.\n- **Never headlessly rewrite planning artifacts** — use the escape hatch.\n- **Drive ship-change inline** — do not spawn it as a subagent (you need its step\n  boundaries for teardown ordering).\n\n## Composed skills\n\n`openspec-apply-change` · `docker\u002Ftest-up.sh` + `lib-ports.sh` + `test-down.sh` ·\n`review-code` (its rubric is what the step-4.5 reviewer applies) ·\n`ship-change` (driven inline, manifest-aware defer). Handoff back to\n`plan-proposal` via `SHIP_IT_BLOCKED.md`.\n","# ship-it\n\nOrchestrates the **implementation phase** of an OpenSpec change **inside its git\nworktree**. Twin of `plan-proposal` (which runs the planning phase on `develop`).\nComposes existing skills — `openspec-apply-change`, the docker harness, and\n`ship-change` — and adds the wiring they lack. Runnable **headless**.\n\n```mermaid\nflowchart LR\n  P[\"plan-proposal (develop)\"] -->|\"boundary: spawn worktree\"| S\n  subgraph Worktree [\"IMPLEMENTATION — worktree (this skill)\"]\n    S[\"ship-it\"] --> A[\"apply\"] --> M[\"merge develop (2.5)\"] --> T[\"docker-harness test\"] --> E[\"enforcers (4.4)\"] --> Q[\"CodeQL ratchet (4.4b)\"] --> R[\"local review (4.5)\"] --> C[\"ship-change\"]\n  end\n  S -.->|\"reverse: SHIP_IT_BLOCKED.md on design issue\"| P\n```\n\nPure decision logic lives in this skill's own `scripts\u002F` directory and is\nunit-tested (`.pi\u002Fskills\u002Fship-it` is a vitest project):\n`scripts\u002Fmanifest.ts` (`parseManifest`, `deferDecision`, `filesystemRealityCheck`),\n`scripts\u002Fno-weakening.ts` (`assertNoWeakening`),\n`scripts\u002Freview-gate.ts` (`reviewRoundDecision`, `parseReviewReply`,\n`resolveReviewer`, `classifyFindings`, `REVIEW_TIMEOUT_MS`),\n`scripts\u002Ffix-ledger.ts` (`validateFixLedger`), `scripts\u002Freview-state.ts`\n(`deriveReviewState`), and `scripts\u002Freview-prompt.ts` (`buildReviewPrompt` + the\nstep-4.5 CLI), and `scripts\u002Fopenspec-deps-gate.ts` (`runGate`, the step-1.5\ndependency gate). The CodeQL ratchet of step 4.4b is the repo script\n`scripts\u002Fcodeql-local.mjs` (see `docs\u002Fcode-quality.md`).\n\n## Preconditions\n\n- Running **inside the change's worktree** (`.worktrees\u002Fos-\u003Cchange>`, branch\n  `os\u002F\u003Cchange>`). Resolve the change name from the worktree dir basename.\n- `docker` available (the e2e harness); `openspec` CLI resolves from the parent\n  repo root when inside a worktree (per `AGENTS.md`).\n- Announce: *\"Shipping change: `\u003Cchange>` (worktree implementation phase).\"*\n\n## Procedure\n\n### 1. Orient with `openspec status`, but gate on filesystem reality (idempotent)\n\n**Entry gate — a previous hand-back.** If\n`openspec\u002Fchanges\u002F\u003Cchange>\u002FSHIP_IT_BLOCKED.md` already exists, a previous\ninvocation handed the change to a human. A run is **interactive** exactly when\nthe `ask_user` tool is available; otherwise it is headless.\n\n- **Headless** → exit non-zero naming `SHIP_IT_BLOCKED.md`. No fix loop, no\n  review round, no `ship-change` step.\n- **Interactive** → show its cause and `ask_user` **resume \u002F abort**. On\n  *abort*, stop without changes. On *resume*, create this invocation's run dir\n  (step 4.5), copy `SHIP_IT_BLOCKED.md` into it (evidence kept), then remove\n  the file from the change dir.\n\nRemoving the file, or answering *resume*, is the human decision that starts a\nnew review budget — re-invoking `ship-it` alone never does. A hand-back written\nby step 4.4b (new CodeQL alerts, a script error, a baseline-diff violation) lists\nthe alerts and how to resolve them; *resume* re-runs 4.4 and 4.4b, which then ask\nper alert.\n\nRead `openspec status --change \u003Cchange> --json` for orientation only. **Do not\ntrust the `tasks.md` checkbox** as proof an automated scenario is done — a\nhand-checked or prior-partial `- [x]` can lie.\n\nParse `test-plan.md` (`parseManifest`). For each `automated` row, resolve its\nfolded test file and run `filesystemRealityCheck`: a scenario is satisfied only\nwhen its **test file exists AND passes in the harness** (step 3). Any automated\nrow whose test file is absent → NOT done → author it (step 2) regardless of the\ncheckbox. This makes re-invocation genuinely idempotent: fresh run and re-run\nreach the same all-green end state.\n\n### 1.5. Dependency gate — are this change's blockers shipped?\n\nRuns on every invocation, **after** the `SHIP_IT_BLOCKED.md` entry gate and the\norientation above, and **before** any implementation step. From the worktree\nroot, with a **60 s overall timeout** on the tool call:\n\n```bash\nnpx tsx .pi\u002Fskills\u002Fship-it\u002Fscripts\u002Fopenspec-deps-gate.ts --change \u003Cchange>\n```\n\nThe script owns all logic (dashboard query with a bounded retry, offline parser\nfallback, `origin\u002Fdevelop` archive lookup) and prints one JSON verdict\n`{ status: ok|warn|blocked, mode: online|offline, blockers: [{ change, state:\nopen|satisfied|unknown, source }], issues: [{ code, severity, message }], notes }`.\nAct on it — do not re-derive it:\n\n- **Crash, timeout or unparseable output** → record *\"dependencies not checked\"*\n  in the step report and **continue**; this gate never stops a run by failing.\n- **`status: blocked`** (an `error` issue: `invalid-file`, `self-reference`, a\n  declared `cycle`) → write `SHIP_IT_BLOCKED.md` naming the issue(s) and stop via\n  the step-5 escape hatch. No fix loop, no review round.\n- **Open blockers** (`state: open`) → a warning. **Interactive** → `ask_user`\n  *continue \u002F stop* (with the situation brief below, listing the open blockers);\n  on *stop* write `SHIP_IT_BLOCKED.md` naming them and stop. **Headless** →\n  **continue** and carry the open blockers into the final report.\n- Warnings (including inferred-cycle warnings), `satisfied`, `unknown` names and\n  the script's notes never interrupt; report them. A blocker the script counted\n  as satisfied because it is archived on `origin\u002Fdevelop` is a pending merge,\n  not a blocker (step 2.5 brings it in).\n- `mode: offline` checked this change's own `dependencies.yaml` only: say in the\n  report that cycles and inferred edges were **not checked**.\n\n### 2. Run apply if non-manual work remains — inject the exemplar\n\n**kb-first, even as an executor.** You know which files the tasks name, so your\nreflex is `grep`\u002F`cat`\u002FRead on them directly. The docs-first gate still applies:\nbefore you `grep`\u002F`rg` for a symbol, Read a file to learn its purpose, or chase\nan import, run `kb_search` \u002F `kb agents \u003Cpath>` \u002F `kb_neighbors` FIRST. Knowing\nthe file does not exempt you — kb the symbol\u002Ffile, then edit.\n\nIf non-`manual-only` tasks remain (real code + the test files the fold tasked),\nrun `openspec-apply-change` for the change. `apply` writes code and marks tasks.\n\n`apply` has no \"copy from exemplar\" capability of its own. For each folded test\ntask, **resolve the harness-exemplar pointer** (the nearest existing spec of that\ncategory named in the task) and inject its path into the task context you hand\n`apply` — or author the spec yourself in the fix loop (step 4). Bare\n\"author X.spec.ts\" with no exemplar is forbidden.\n\n### 2.5. Integrate `develop` — merge before the harness (primary integration point)\n\nThe harness (step 3) is the **strongest gate** on the ship-it path, so integration\nmust sit **upstream** of it: the harness must validate the merged tree `T1`, not\nthe pre-merge tree `T0`. Merge `origin\u002Fdevelop` — the **remote ref**, never local\n`develop` (checked out in the parent repo → worktree branch-collision pitfall):\n\n```bash\ngit fetch origin develop\ngit merge --no-edit origin\u002Fdevelop\n```\n\nIdempotent: up-to-date → \"Already up to date\", no merge commit, safe to always\nrun. **Merge, not rebase** — step 9 squash-merges anyway, so rebase's linear\nhistory is moot while its force-push is a documented `ship-change` footgun.\n\n**Conflict → abort + STOP.** On an unresolved conflict, `git merge --abort`,\nreport, and do **not** enter the harness — never run the gate on a half-merged\ntree. Resolve trivial conflicts with `ship-change`'s existing recipes (`AGENTS.md`\nunion-keep; `pnpm-lock.yaml` → `git checkout --theirs` +\n`pnpm install --lockfile-only`), then re-run the merge. A conflict you cannot\nresolve mechanically → escape hatch (step 5).\n\n### 3. Harness lifecycle — delegate the port, always tear down\n\nObtain the harness and its port from `docker\u002Ftest-up.sh` (allocator on first run,\nreuser on re-up — do NOT add port code). Read the derived port from\n`.pi-test-harness.json` (`dashboardPort`) — **never hardcode `:18000`**.\n\nWrap the whole run so teardown ALWAYS happens (red test, abort, or a partial\n`test-up.sh` start):\n\n```bash\ncleanup() { docker\u002Ftest-down.sh || true; }\ntrap cleanup EXIT\ndocker\u002Ftest-up.sh -d --build            # allocates + records .pi-test-harness.json\nport=$(jq -r '.dashboardPort' .pi-test-harness.json)   # jq is present in the harness env\n# run the relevant suite against $port:\nPW_E2E_USE_RUNNING=1 npm run test:e2e   # L3; or the L1\u002FL2 suite for other levels\n```\n\n`test-down.sh` is safe against a partially-created compose project (`compose down\n-v` + best-effort `rm`). Isolation is no longer silent, though: a second\nworktree's harness saturates the daemon (two 4 GiB limits on an 8 GB VM), so\n`test-up.sh` refuses when `(n+1) × MEM_LIMIT >= MemTotal` — `n` = other running\n`pi-dash-test-*` projects, `MEM_LIMIT` default `4g` — naming them and the\narithmetic, and warns (once) when the limits fit but a peer is up, because a red\nrun is then not attributable. Free the peer with its own `test-down.sh`, or set\n`PI_HARNESS_ALLOW_OVERSUBSCRIBE=1`. The harness emits no committed whole-run\ntimeout (#450): bound a local run with `--global-timeout`, never a config edit.\n\n### 4. Red-test fix loop — OWNED by ship-it (apply cannot fix a checked task)\n\n`apply` marks `- [ ]` → `- [x]` and never revisits a checked task, so re-invoking\n`apply` on a red-but-checked test no-ops. **On a red test, `ship-it` drives the\nfix itself** — edit the code or the test, re-run the harness. Never re-invoke\n`apply` on an already-checked task.\n\nBound the loop by **progress-making cycles**, not a fixed count:\n\n- A cycle that changes the worktree and moves the harness result counts.\n- A cycle that produces **no change** to the worktree → **STOP immediately** and\n  escalate (step 5). Do not spin.\n- This bound is independent of doubt-review's 3-cycle bound (different semantics).\n\n**No-weakening guardrail (mechanical, enforced every cycle):** before accepting a\nchange to a test file, run `assertNoWeakening` on its diff\n(`git diff -- \u003Ctest-file>`). If it reports `ok:false` (added `.only`\u002F`skip`,\ndeleted assertion, or a strong→permissive matcher swap), **REJECT** the change —\nyou may not reach green by degrading the test. Fix the code instead.\n\n### 4.4. Deterministic enforcers — cheap, offline, before any model call\n\nRun the enforcers from the worktree root. Each is already the sole owner of its\nrule; this step only *invokes* them:\n\n```bash\nnode scripts\u002Fcheck-conventions.mjs --base origin\u002Fdevelop\nnode scripts\u002Fcheck-plugin-boundary.mjs  # core\u002Fplugin import ratchet: NEW edge or STALE allowlist row fails\nnode scripts\u002Fcheck-client-sinks.mjs     # raw navigation \u002F HTML \u002F script sinks outside the chokepoints\nnode scripts\u002Fdox-byte-gate.mjs\nnode scripts\u002Fi18n-lint.mjs --strict     # --strict, else it exits 0 regardless\nnode scripts\u002Fi18n-parity.mjs\nnode scripts\u002Fknip-config.mjs            # knip.json still roots every manifest entry\nnode scripts\u002Fknip-ratchet.mjs           # per-class dead-code ratchet (~8s)\nnode scripts\u002Fknip-ratchet.mjs --check-baseline-diff origin\u002Fdevelop   # ceiling not raised\nnode scripts\u002Fcodeql-local.mjs --check-baseline-diff origin\u002Fdevelop   # CodeQL baseline grew only with a reason (static, instant)\n```\n\nThe plugin-boundary gate (`npm run check:plugin-boundary`) fails on a core→plugin\nor plugin→plugin edge with no row in `scripts\u002Fplugin-boundary-allowlist.json`\n(NEW) and on a row whose edge is gone (STALE). A fix PR deletes the rows it\nremoves; `--write-baseline` re-seeds and is a reviewed maintainer step, never a\nway to make this check green. A failure routes to the step-4 fix loop.\n\nThe knip pair is the **preventive** half of the dead-code oracle: the nightly\njob runs after merge and can only report. Order matters — `knip-config.mjs`\nfirst, because an unrooted graph reports live files as dead, and a ratchet over\nthat number gates noise (measured: unrooted 723 findings \u002F 90 unused files vs\nrooted 437 \u002F 10). Fix a ratchet failure by deleting the dead code; raising a\nbaseline is rejected by the third command — which must stay wired, or \"never\nraise the ceiling\" is aspirational: the plain ratchet passes happily against a\nraised number. It also rejects a DELETED class, the cheaper bypass.\n\nThe CodeQL baseline-diff check is static (no analysis, no CodeQL needed): it\ncompares `codeql-baseline.json` with `origin\u002Fdevelop`'s — `untriaged` never grows,\ngrowth needs a typed reason. A violation here is handled like one in 4.4b's\nclosing check (below), never by the red-test fix loop. The analysis itself is too\nslow for 4.4 and runs in step 4.4b.\n\nThey are placed here, after the harness and before the review, because they are\ndeterministic, offline and near-instant: a mechanically-failing tree must never\nspend a model call. A non-zero exit routes to the step-4 fix loop; **step 4.5\ndoes not run**.\n\n`--base` is mandatory for gating: without it the touched set is undefined and\nthe Discipline-Skills and Mermaid rules report without gating. The touched set\nunions the committed diff with the working tree, so fixes still uncommitted in\nthe fix loop are inspected.\n\nThese do NOT move into `quality:changed`. That script is the dev-loop oracle and\nhas no automated caller; the ship gate is here.\n\n### 4.4b. CodeQL ratchet — blocks NEW code-scanning alerts, still no model call\n\nRuns between 4.4 and 4.5, on every invocation. It analyses a content-addressed\nsnapshot of the worktree with the pinned query packs (~1.5 min) and compares the\nresults with the committed `codeql-baseline.json`. **No model call** is made here.\nA run is interactive exactly when `ask_user` is available, otherwise headless.\n\n```bash\nnpm run codeql -- --json        # exit 0 pass\u002Fskipped · 1 new alerts · 2 error\n```\n\n1. **Skip.** stderr `CODEQL SKIPPED: \u003Ccause>` (no `codeql`, packs neither cached\n   nor downloadable) → record the skip in the step report, run the closing check\n   (step 6 below; static only) and continue. A machine without CodeQL never blocks\n   shipping — the PR's GitHub analysis is the backstop.\n2. **Prune first.** `staleEntries` in the JSON (fewer current results than\n   recorded) → `node scripts\u002Fcodeql-local.mjs --prune`, then\n   `git add codeql-baseline.json` so the lowered baseline ships with the change.\n   `--prune` exit 1 only means new alerts remain — go on to step 3. Show any\n   removed `github-dismissed` entry it prints when asking about its replacement.\n3. **New alerts, headless.** Write `SHIP_IT_BLOCKED.md` listing each new alert\n   (rule, file, line, message) and how to resolve it: resume `ship-it`\n   interactively (the entry gate asks resume\u002Fabort, then 4.4b asks per alert), or\n   re-run `npm run codeql`, fix or `--accept` by hand, and delete the report. Exit\n   non-zero; no `ask_user`, no 4.5, no `ship-change`.\n4. **New alerts, interactive.** `ask_user` per alert (more than 5 → one `batch`,\n   one sub-question each): **fix**, **accept with a typed reason**\n   (`accepted-risk: …`, `false-positive: …`), and — only for\n   `js\u002Fpath-injection`, `js\u002Fcommand-line-injection` and\n   `js\u002Fshell-command-constructed-from-input` — the **`operator-authz`** preset, a\n   template the answer fills in with the gate that bounds this sink:\n   `operator-authz: gate: \u003Csymbol> \u003Crepo-path>:\u003Cline>; \u003Cbasis>` (≤ 236 chars,\n   gate first). Only `git-operations.ts`, `process-manager.ts` and\n   `spawn-preflight.ts` may use `operator-authz: control-tier: \u003Cbasis>` instead.\n   No gate bounds the sink → it is a finding, not an `operator-authz` accept.\n   `codeql-baseline-gates.test.ts` enforces the form. The preset is never offered\n   for any other rule (the argument does not hold for them). Accept with\n   `node scripts\u002Fcodeql-local.mjs --accept \u003CruleId> \u003Cfile> \u003ClineHash> --reason \"\u003Creason>\"`\n   then `git add codeql-baseline.json`.\n   **Accepts before fixes** within one batch of answers: a fix changes the\n   snapshot and makes later `--accept` refuse. Then route the fixes to the step-4\n   fix loop and re-run 4.4 and 4.4b.\n5. **Script error (exit 2).** Interactive: show the error, `ask_user`\n   **retry \u002F abort**. Headless: write `SHIP_IT_BLOCKED.md` with the error and stop.\n   Never the red-test fix loop.\n6. **Closing check — a gate.** `node scripts\u002Fcodeql-local.mjs --check-baseline-diff origin\u002Fdevelop`\n   (add `--no-growth` when headless, so a headless run never grows the baseline).\n   Exit 0 → continue to 4.5. Exit 1\u002F2 → interactive: show the violation, `ask_user`\n   **revert \u002F abort**; headless: write `SHIP_IT_BLOCKED.md` naming the entry. A\n   baseline-diff violation (here or in step 4.4) never enters the red-test fix\n   loop.\n\n**Baseline edits go only through `--prune` and `--accept`.** Never edit\n`codeql-baseline.json` by hand in this step; seeding (`--write-baseline`) and\n`--triage` are implementation \u002F maintenance steps outside 4.4b.\n\n### 4.5. Local review checkpoint — the semantic half\n\nRuns on **every** invocation, but only after step 4.4b passes or skips. There is no triviality escape: no diff-size, path,\nor changed-file-count condition skips it. A run is **interactive** exactly when\nthe `ask_user` tool is available in the session; otherwise it is headless.\n\n`CLI` below is `npx tsx .pi\u002Fskills\u002Fship-it\u002Fscripts\u002Freview-prompt.ts`. Records\nlive in this invocation's run dir, created once with\n`RUN=$(CLI --new-run --change \u003Cchange>)` →\n`$(git rev-parse --git-dir)\u002Fship-it\u002F\u003Cchange>\u002F\u003Crun-id>\u002F` (per worktree, never\ncommitted, `\u003Crun-id>` = invocation start timestamp):\n`review-r\u003CN>.md` (well-formed reply of round N), `review-r\u003CN>.attempt-\u003Ck>.md`\n(malformed attempt), `fix-ledger-r\u003CN>.json` (answers `review-r\u003CN>.md`),\n`ledger-failures.log` (written by the CLI), `approvals.log` (one line per human\n\"one more round\" answer — written only right after an `ask_user` answer).\n\n1. **Resolve the reviewer** with `resolveReviewer` from `scripts\u002Freview-gate.ts`.\n   `@review` is REQUIRED. Unconfigured → hard fail naming `update_roles` \u002F the\n   dashboard Roles panel. There is deliberately **no fallback to the session\n   default model**: that model is the author, so falling back turns the gate into\n   self-review. Interactive runs may offer the bootstrap prompt; a headless run\n   fails.\n2. **Derive state, then decide.** Run `CLI --state \"$RUN\"` → `round`,\n   `approvedExtraRounds`, `malformedRetries`, `ledgerFailures`. Feed exactly\n   those values (plus `interactive` and the last round's blocking ids) to\n   `reviewRoundDecision`. Never supply a counter from memory; never relabel a\n   round as round 1 of a new budget.\n3. **Commit the worktree before each round** (squash-merge collapses these), so\n   every reviewed tree has a sha. Check `git status --short`, then stage the\n   change's own paths explicitly and commit exactly that list with\n   `git commit -- \u003Cpaths>` (a bare `git commit` takes everything in the index),\n   so files already staged before this step stay out; unrelated local edits\n   (e.g. a worktree-local `.pi\u002Fsettings.json`) stay unstaged and never enter\n   the change. Record the commit as the round's sha.\n4. **Generate the prompt — never hand-write it.** Round 1:\n   `CLI --change \u003Cchange> --round 1`. Round N ≥ 2 (a verification round):\n   `CLI --change \u003Cchange> --round N --prior \"$RUN\u002Freview-r\u003CN-1>.md\" --ledger \"$RUN\u002Ffix-ledger-r\u003CN-1>.json\" --since \u003Cround N-1 sha>`.\n   Pass its stdout to the reviewer **verbatim** — no added framing, summary, or\n   claim about the fixes; keep its header line. The generated prompt carries the\n   `review-code` rubric, the diff range `git diff origin\u002Fdevelop...HEAD`\n   (three-dot, so the step-2.5 merge is not attributed to this change), every\n   intent artifact present (`proposal.md`, `tasks.md`, `design.md`, delta specs,\n   `test-plan.md`), and the defect-class sweep. Known limitation: a verification\n   round carries each prior `B` finding up to its first *unindented* paragraph\n   (indented continuations are kept) — the price of keeping the prior reply\n   bounded (#E24); the prompt asks the reviewer to indent continuations.\n5. **Spawn it as an isolated subagent** — an `Agent` call with `model: \"@review\"`\n   and `subagent_type: \"CodeReviewer\"` (the definition in\n   `.pi\u002Fagents\u002FCodeReviewer.md` disables context inheritance; no other agent\n   type may be used here). Never an in-context self-review, never the\n   CodeRabbit CLI (that is `ship-change`'s remote gate, later and different).\n6. **Bound the call** by `REVIEW_TIMEOUT_MS` (300s). A timeout is neither a pass\n   nor a blocking finding — it is a checkpoint failure.\n7. **Parse the reply** with `parseReviewReply`. Well-formed → save it as\n   `$RUN\u002Freview-r\u003CN>.md`. Malformed (empty, no or duplicate\n   `BLOCKING_COUNT`\u002F`VERDICT` line, or self-contradictory) → save it as\n   `$RUN\u002Freview-r\u003CN>.attempt-\u003Ck>.md`; it is never a pass and never a round.\n   **Retry once**: re-invoke the same round; a second malformed reply halts like\n   a timeout. A missing sweep table is noted in the round record and the step\n   report, not a failure.\n8. **Route findings**: only `issue(blocking)` (`B\u003Cn>` ids) re-enters the fix\n   loop. Everything else is reported and shipped.\n9. **Fix protocol, per `B` id** (the `review-code` fix protocol): reproducing\n   test first (or a ≥20-char reason no automated test can observe it) →\n   smallest fix → sibling sweep of the same pattern across the change → re-read\n   the fix hunk against the finding's defect class. After each review fix,\n   **re-run the harness (step 3) and the step-4.4 enforcers** before anything\n   else; a failure re-enters the fix loop first.\n10. **Write and validate the ledger** before a verification round:\n    `$RUN\u002Ffix-ledger-r\u003CN>.json`, one entry per `B` id — `{ id, test: {path} |\n    {untestable}, siblings: {searched, sites}, fixedIn }`, no status field, no\n    verdict language. Then\n    `CLI --validate-ledger --prior \"$RUN\u002Freview-r\u003CN>.md\" --ledger \"$RUN\u002Ffix-ledger-r\u003CN>.json\"`.\n    Non-zero → complete the listed entries (each failure is recorded; the third\n    for a round routes as unsatisfiable). An entry the fix loop cannot complete\n    → unsatisfiable. No verification round while validation fails.\n11. **Bound the loop** with `reviewRoundDecision`. The base cap is two rounds —\n    review, fix, re-review. This is a hard numeric cap, NOT step 4's\n    no-progress rule, because a reviewer can emit a fresh finding every round\n    and each fix changes the worktree, so a no-progress bound would never fire.\n    - `review` → next round (step 3).\n    - `proceed` → step 6.\n    - `ask` (interactive, cap reached) → one `ask_user` select naming the\n      remaining `B` ids: **one more verification round** \u002F **hand back to\n      planning**. *One more* → append one line to `$RUN\u002Fapprovals.log` and record\n      the answer in the round file, then run exactly one verification round.\n      *Hand back* → escape hatch. If the `ask_user` call fails, treat the run as\n      headless and take the escape hatch.\n    - `escape` → the boundary-reverse (step-5) escape hatch.\n12. `assertNoWeakening` still governs every test edit a review fix makes. A\n    finding that can only be satisfied by weakening a test is **unsatisfiable** →\n    escape hatch (step 5), naming both the finding and the guardrail. The\n    guardrail is never relaxed to reach green.\n\nEvery `escape` decision carries a `reason`; write it into `SHIP_IT_BLOCKED.md`\ntogether with the run dir path.\n\n### 5. Boundary-reverse escape hatch\n\nThe worktree boundary is **not one-way**. Trigger the reverse path when ANY of:\n\n- `apply` reports a design issue (NL prose — implementation reveals the design is\n  wrong), OR\n- the step-4 fix bound is exhausted (a no-progress cycle), OR\n- the step-4.5 review checkpoint decides `escape` (including a human choosing\n  *hand back* at the cap), OR\n- a **headless** step-4.4b stop (new CodeQL alerts, a script error, or a\n  baseline-diff violation).\n\nThen, **do NOT headlessly rewrite `proposal.md`\u002F`design.md`**:\n\n1. Leave the worktree intact (no revert).\n2. Write `openspec\u002Fchanges\u002F\u003Cchange>\u002FSHIP_IT_BLOCKED.md` naming the failing\n   scenario \u002F design gap and what was tried.\n3. Exit non-zero.\n4. Surface via the dashboard so a human re-enters `plan-proposal` \u002F\n   `doubt-driven-review` on `develop`.\n\n### 6. Drive ship-change INLINE, with manifest-aware defer + teardown ordering\n\nOnce every automated scenario is green (harness-verified), ship. Execute\n`ship-change`'s procedure **inline** (not as a black-box subagent) so you keep\nstep-level control for the teardown ordering below.\n\n**Defer rule (`deferDecision`, manifest-aware):**\n- `test-plan.md` exists → a leftover `- [ ]` is deferrable only if it maps to a\n  `manual-only` manifest row (inline `(test-plan: manual-only)` or a\n  `(test-plan #\u003Cid>)` reference resolved against the manifest). Any other leftover\n  = real work = **STOP** (return to step 2, or the escape hatch).\n- `test-plan.md` absent (legacy change) → `ship-change`'s current keyword defer\n  applies unchanged.\n\n**Archive+sync gate before the destructive steps (load-bearing):** do **not** let\n`ship-change` merge the PR, delete the branch, or remove the worktree while the\nproposal is not archived and specs are not synced. `ship-change` step 8.5 is that\nhard gate — driving `ship-change` inline, hold at step 8.5 until the change is\narchived (source dir moved to `openspec\u002Fchanges\u002Farchive\u002F`, move committed) and\nspecs synced. Failed\u002Fskipped archive → STOP (return to step 2 or the escape hatch),\nnever proceed to steps 9\u002F10.\n\n**Teardown-before-removal ordering (load-bearing):** the harness MUST be torn down\n(`test-down.sh`, already wired via the step-3 trap) **before** `ship-change` step\n10 removes the worktree. A leaked container makes the worktree \"busy\" and stalls\nremoval. Run the harness teardown, then let `ship-change` archive → commit → PR →\nCI → CodeRabbit → (archive+sync gate) → squash-merge → remove worktree.\n\n**CI watching is fail-fast** (`ship-change` step 6): never block on\n`gh pr checks --watch` until every job ends. Poll in short bounded calls; the\nmoment any check reports `fail`, diagnose it while the remaining jobs keep\nrunning, and batch the round's failures into one push.\n\n## Situation brief for `ask_user`\n\nEvery `ask_user` call this skill makes MUST carry a self-contained situation\nbrief in its `message` — at least 240 characters (the dashboard's\n`questions.minBriefChars` default; shorter and the server generates a brief with\nthe `@fast` model instead). The answer may be given from the global question\nstack by someone who has not seen this chat. State, in 2–4 lines:\n\n1. **Task** — what change\u002Fstep is in progress.\n2. **Why asking** — what was found or blocked that needs a human.\n3. **Per-option outcome** — what each option leads to (skip for free-text inputs).\n\nA bare question (\"Resume or hand back?\") is never enough. See change:\n`add-pending-question-stack`.\n\n## Guardrails\n\n- **Idempotent on filesystem reality** — checkbox `- [x]` is never proof; the\n  test file must exist and pass in the harness.\n- **ship-it owns the fix loop** — never re-invoke `apply` on a checked task.\n- **Never weaken a test to reach green** — `assertNoWeakening` rejects it.\n- **Enforcers (4.4) before the reviewer (4.5)** — never spend a model call on a\n  mechanically-failing tree.\n- **CodeQL (4.4b) gates 4.5** — 4.5 runs only after 4.4b passes or skips; 4.4b\n  never makes a model call, never edits `codeql-baseline.json` except through\n  `--prune` \u002F `--accept`, never routes a baseline-diff violation or a script\n  error to the red-test fix loop, and a headless run never grows the baseline\n  (`--no-growth`).\n- **The review is unconditional** — no triviality escape, and `@review` is\n  required; never fall back to the session default model (that is self-review).\n- **Two review rounds, hard cap** — review, fix, re-review. Not a no-progress\n  bound: a model always makes \"progress\". Only a human approval at the cap\n  (interactive `ask_user`, recorded in `approvals.log`) adds a round — exactly\n  **+1 round per human approval**. The orchestrator **never renews its own\n  budget**: no self-reset, no \"fresh two-round budget\", no relabelled round.\n  Headless runs and hand-backs take the boundary-reverse (step-5) escape hatch.\n- **The reviewer prompt is generated** — `review-prompt.ts` output, passed\n  verbatim to `subagent_type: \"CodeReviewer\"`; never hand-written, never\n  carrying the author's conclusions.\n- **A `SHIP_IT_BLOCKED.md` at entry stops the run** — headless exits non-zero;\n  interactive asks resume\u002Fabort.\n- **Merge `develop` before the harness (step 2.5)** — the strong gate validates\n  the integrated tree `T1`; merge `origin\u002Fdevelop` (remote ref), never rebase.\n  Conflict → abort + STOP, never enter the harness on a half-merged tree.\n- **Never merge \u002F delete branch \u002F remove worktree while the proposal is not archived and synced** — hold at `ship-change` step 8.5 (archive+sync gate) until it passes; failed archive → STOP.\n- **Always tear the harness down** (trap\u002Ffinally), **before** worktree removal.\n- **Never hardcode `:18000`** — read `dashboardPort` from `.pi-test-harness.json`.\n- **Never headlessly rewrite planning artifacts** — use the escape hatch.\n- **Drive ship-change inline** — do not spawn it as a subagent (you need its step\n  boundaries for teardown ordering).\n\n## Composed skills\n\n`openspec-apply-change` · `docker\u002Ftest-up.sh` + `lib-ports.sh` + `test-down.sh` ·\n`review-code` (its rubric is what the step-4.5 reviewer applies) ·\n`ship-change` (driven inline, manifest-aware defer). Handoff back to\n`plan-proposal` via `SHIP_IT_BLOCKED.md`.\n",{"name":5,"metadata":44,"description":7},{"scope":37,"version":45},"1.0","develop","c8bd4179ca5f622deb267689cc52126c647be60f",".pi\u002Fskills\u002Fship-it",56,"https:\u002F\u002Fgithub.com\u002FBlackBeltTechnology\u002Fpi-agent-dashboard","https:\u002F\u002Fpi-dashboard.dev\u002F","https:\u002F\u002Fgithub.com\u002FBlackBeltTechnology","https:\u002F\u002Fwww.blackbelt.hu","2026-11-12 23:37:37",{"source":8,"skillName":5,"commands":56,"prompt":66,"zipAvailable":67},[57,60,63],{"tool":58,"command":59},"npx","npx skills add BlackBeltTechnology\u002Fpi-agent-dashboard --skill ship-it",{"tool":61,"command":62},"bunx","bunx skills add BlackBeltTechnology\u002Fpi-agent-dashboard --skill ship-it",{"tool":64,"command":65},"pnpm","pnpm dlx skills add BlackBeltTechnology\u002Fpi-agent-dashboard --skill ship-it","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FBlackBeltTechnology\u002Fpi-agent-dashboard\u002Fblob\u002Fdevelop\u002F.pi\u002Fskills\u002Fship-it\u002FSKILL.md",true,[69,75,79,83,87,91,95,99,103,107,111,115,119,123,127,131,135,141],{"path":70,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":73,"sourceHtmlUrl":74},"scripts\u002F__tests__\u002Fdeps-gate-wiring.test.ts","SCRIPT","脚本",2820,"https:\u002F\u002Fgithub.com\u002FBlackBeltTechnology\u002Fpi-agent-dashboard\u002Fblob\u002Fdevelop\u002F.pi\u002Fskills\u002Fship-it\u002Fscripts\u002F__tests__\u002Fdeps-gate-wiring.test.ts",{"path":76,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":77,"sourceHtmlUrl":78},"scripts\u002F__tests__\u002Ffix-ledger.test.ts",3304,"https:\u002F\u002Fgithub.com\u002FBlackBeltTechnology\u002Fpi-agent-dashboard\u002Fblob\u002Fdevelop\u002F.pi\u002Fskills\u002Fship-it\u002Fscripts\u002F__tests__\u002Ffix-ledger.test.ts",{"path":80,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":81,"sourceHtmlUrl":82},"scripts\u002F__tests__\u002Fopenspec-deps-gate.test.ts",11487,"https:\u002F\u002Fgithub.com\u002FBlackBeltTechnology\u002Fpi-agent-dashboard\u002Fblob\u002Fdevelop\u002F.pi\u002Fskills\u002Fship-it\u002Fscripts\u002F__tests__\u002Fopenspec-deps-gate.test.ts",{"path":84,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":85,"sourceHtmlUrl":86},"scripts\u002F__tests__\u002Freview-cli.test.ts",4442,"https:\u002F\u002Fgithub.com\u002FBlackBeltTechnology\u002Fpi-agent-dashboard\u002Fblob\u002Fdevelop\u002F.pi\u002Fskills\u002Fship-it\u002Fscripts\u002F__tests__\u002Freview-cli.test.ts",{"path":88,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":89,"sourceHtmlUrl":90},"scripts\u002F__tests__\u002Freview-gate.test.ts",12828,"https:\u002F\u002Fgithub.com\u002FBlackBeltTechnology\u002Fpi-agent-dashboard\u002Fblob\u002Fdevelop\u002F.pi\u002Fskills\u002Fship-it\u002Fscripts\u002F__tests__\u002Freview-gate.test.ts",{"path":92,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":93,"sourceHtmlUrl":94},"scripts\u002F__tests__\u002Freview-prompt.test.ts",7176,"https:\u002F\u002Fgithub.com\u002FBlackBeltTechnology\u002Fpi-agent-dashboard\u002Fblob\u002Fdevelop\u002F.pi\u002Fskills\u002Fship-it\u002Fscripts\u002F__tests__\u002Freview-prompt.test.ts",{"path":96,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":97,"sourceHtmlUrl":98},"scripts\u002F__tests__\u002Freview-state.test.ts",3871,"https:\u002F\u002Fgithub.com\u002FBlackBeltTechnology\u002Fpi-agent-dashboard\u002Fblob\u002Fdevelop\u002F.pi\u002Fskills\u002Fship-it\u002Fscripts\u002F__tests__\u002Freview-state.test.ts",{"path":100,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":101,"sourceHtmlUrl":102},"scripts\u002F__tests__\u002Fsituation-brief-rule.test.ts",1003,"https:\u002F\u002Fgithub.com\u002FBlackBeltTechnology\u002Fpi-agent-dashboard\u002Fblob\u002Fdevelop\u002F.pi\u002Fskills\u002Fship-it\u002Fscripts\u002F__tests__\u002Fsituation-brief-rule.test.ts",{"path":104,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":105,"sourceHtmlUrl":106},"scripts\u002F__tests__\u002Fskill-contract.test.ts",13251,"https:\u002F\u002Fgithub.com\u002FBlackBeltTechnology\u002Fpi-agent-dashboard\u002Fblob\u002Fdevelop\u002F.pi\u002Fskills\u002Fship-it\u002Fscripts\u002F__tests__\u002Fskill-contract.test.ts",{"path":108,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":109,"sourceHtmlUrl":110},"scripts\u002Ffix-ledger.ts",5083,"https:\u002F\u002Fgithub.com\u002FBlackBeltTechnology\u002Fpi-agent-dashboard\u002Fblob\u002Fdevelop\u002F.pi\u002Fskills\u002Fship-it\u002Fscripts\u002Ffix-ledger.ts",{"path":112,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":113,"sourceHtmlUrl":114},"scripts\u002Fmanifest.ts",6639,"https:\u002F\u002Fgithub.com\u002FBlackBeltTechnology\u002Fpi-agent-dashboard\u002Fblob\u002Fdevelop\u002F.pi\u002Fskills\u002Fship-it\u002Fscripts\u002Fmanifest.ts",{"path":116,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":117,"sourceHtmlUrl":118},"scripts\u002Fno-weakening.ts",2871,"https:\u002F\u002Fgithub.com\u002FBlackBeltTechnology\u002Fpi-agent-dashboard\u002Fblob\u002Fdevelop\u002F.pi\u002Fskills\u002Fship-it\u002Fscripts\u002Fno-weakening.ts",{"path":120,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":121,"sourceHtmlUrl":122},"scripts\u002Fopenspec-deps-gate.ts",10074,"https:\u002F\u002Fgithub.com\u002FBlackBeltTechnology\u002Fpi-agent-dashboard\u002Fblob\u002Fdevelop\u002F.pi\u002Fskills\u002Fship-it\u002Fscripts\u002Fopenspec-deps-gate.ts",{"path":124,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":125,"sourceHtmlUrl":126},"scripts\u002Freview-gate.ts",10345,"https:\u002F\u002Fgithub.com\u002FBlackBeltTechnology\u002Fpi-agent-dashboard\u002Fblob\u002Fdevelop\u002F.pi\u002Fskills\u002Fship-it\u002Fscripts\u002Freview-gate.ts",{"path":128,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":129,"sourceHtmlUrl":130},"scripts\u002Freview-prompt.ts",15766,"https:\u002F\u002Fgithub.com\u002FBlackBeltTechnology\u002Fpi-agent-dashboard\u002Fblob\u002Fdevelop\u002F.pi\u002Fskills\u002Fship-it\u002Fscripts\u002Freview-prompt.ts",{"path":132,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":133,"sourceHtmlUrl":134},"scripts\u002Freview-state.ts",4018,"https:\u002F\u002Fgithub.com\u002FBlackBeltTechnology\u002Fpi-agent-dashboard\u002Fblob\u002Fdevelop\u002F.pi\u002Fskills\u002Fship-it\u002Fscripts\u002Freview-state.ts",{"path":136,"resourceType":137,"resourceTypeDesc":138,"sizeBytes":139,"sourceHtmlUrl":140},"SKILL.agent.md","REFERENCE","参考文档",7110,"https:\u002F\u002Fgithub.com\u002FBlackBeltTechnology\u002Fpi-agent-dashboard\u002Fblob\u002Fdevelop\u002F.pi\u002Fskills\u002Fship-it\u002FSKILL.agent.md",{"path":142,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":143,"sourceHtmlUrl":144},"vitest.config.ts",730,"https:\u002F\u002Fgithub.com\u002FBlackBeltTechnology\u002Fpi-agent-dashboard\u002Fblob\u002Fdevelop\u002F.pi\u002Fskills\u002Fship-it\u002Fvitest.config.ts",[146,173,200,223,244,265],{"skillNo":147,"name":148,"nameZh":6,"description":149,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":150,"categories":151,"keywords":152,"publishedAt":39},"01M6HQYQ5B82AM5T9Y299S9CFY","youtube-srt","Download YouTube subtitles (SRT + timestamped TXT) for a channel, playlist or video via yt-dlp, no media download; optionally mine them into a categorized catalog (e.g. AI models by function, open weights, local runnability, hardware tier). Use on \"download the srt of this video\", \"transcripts of channel X for the last N months\", \"catalog the models AI Search talked about\", \"update docs\u002Fmodels\".","https:\u002F\u002Fgithub.com\u002FBlackBeltTechnology\u002Fpi-agent-dashboard\u002Fblob\u002Fdevelop\u002Fpackages\u002Fvideo-transcription\u002F.pi\u002Fskills\u002Fyoutube-srt\u002FSKILL.md",[],[153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,25,172],"youtube","srt","youtube srt","update","search","subtitles","dlp","Video","Media","open","catalog","use","update docs","yt-dlp","local","mine","via","ai models","last","media download",{"skillNo":174,"name":175,"nameZh":6,"description":176,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":177,"categories":178,"keywords":179,"publishedAt":39},"01M6HQYJBKSXR55T5RSYNJQG4D","video-transcription","Transcribe video and audio files to SRT subtitles with speaker diarization using the Soniox (default) or AssemblyAI API. Use when the user wants to transcribe meetings, videos, or audio files. Supports MKV, MP4, MOV, M4A, MP3. Triggers on \"\u002Ftranscribe\", \"transcribe my meetings\", \"transcribe videos in ~\u002FMovies\", or any request to convert audio\u002Fvideo to text.","https:\u002F\u002Fgithub.com\u002FBlackBeltTechnology\u002Fpi-agent-dashboard\u002Fblob\u002Fdevelop\u002Fpackages\u002Fvideo-transcription\u002F.pi\u002Fskills\u002Fvideo-transcription\u002FSKILL.md",[],[160,180,181,182,158,183,184,185,186,187,188,164,189,190,191,192,193,194,195,154,196,197,198,199],"transcription","video transcription","transcribe","api","Audio","convert","mp4","text","meetings","files","default","mp3","triggers","with","videos","assemblyai","my","srt subtitles","request","when",{"skillNo":201,"name":202,"nameZh":6,"description":203,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":204,"categories":205,"keywords":206,"publishedAt":39},"01M6HQYECMVDC5TDHHW22VC5RX","speaker-id","Name anonymous diarized SRT speakers from a persistent local voiceprint library and repair speaker drift; local, CPU-only, no API key. Triggers \"who is speaker 2\", \"put names on the transcript\", \"label the meeting SRT\", \"the diarization split one person into three\", \"enroll my voice\". Backed by the pi-voiceid CLI.","https:\u002F\u002Fgithub.com\u002FBlackBeltTechnology\u002Fpi-agent-dashboard\u002Fblob\u002Fdevelop\u002Fpackages\u002Fvideo-transcription\u002F.pi\u002Fskills\u002Fspeaker-id\u002FSKILL.md",[],[207,208,209,210,183,211,212,213,214,215,216,167,192,217,218,219,220,154,221,222],"id","speaker id","cli","transcript","voice","pi","only","three","drift","repair","name","CPU","meeting","anonymous","split","person",{"skillNo":224,"name":225,"nameZh":6,"description":226,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":227,"categories":228,"keywords":229,"publishedAt":39},"01M6HQYAZWDXE9QJEG592E5PXK","veo-showreel-production-kit","Turn a video timeline + voiceover into a reproducible, sliceable Veo 3.1 prompt package with a consistency anchor and AI storyboard sketches.","https:\u002F\u002Fgithub.com\u002FBlackBeltTechnology\u002Fpi-agent-dashboard\u002Fblob\u002Fdevelop\u002Fpackages\u002Fvideo-production\u002F.pi\u002Fskills\u002Fveo-showreel-production-kit\u002FSKILL.md",[],[230,231,232,233,234,235,236,160,237,238,239,240,193,241,242,243],"Production","veo","kit","veo showreel production kit","package","Reproducible","timeline","prompt","voiceover","storyboard","anchor","consistency","veo 3","2026",{"skillNo":245,"name":246,"nameZh":6,"description":247,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":248,"categories":249,"keywords":250,"publishedAt":39},"01M6HQY6TJ0X1ADDKYPMVJY6NV","veo-generator","Render a scripted video project into mp4 clips with the Google Veo 3.1 API. Reads a project's shot package (shots\u002F*.md), one clip per camera cut, reusing each shot's prompt and sketch — world anchor only with `--with-reference`, seed unless `--no-seed`. Use on \"render the Veo video for \u003Cproject>\", \"generate the videos from the shot scripts\", \"make the clips with Veo\".","https:\u002F\u002Fgithub.com\u002FBlackBeltTechnology\u002Fpi-agent-dashboard\u002Fblob\u002Fdevelop\u002Fpackages\u002Fvideo-production\u002F.pi\u002Fskills\u002Fveo-generator\u002FSKILL.md",[],[231,251,252,253,254,234,183,160,186,237,164,255,213,256,257,258,259,37,240,260,261,262,263,193,264,25,242],"generator","veo generator","google","generate","clip","sketch","camera","world","seed","cut","scripts","make","render","google veo",{"skillNo":266,"name":267,"nameZh":6,"description":268,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":269,"categories":270,"keywords":271,"publishedAt":39},"01M6HQY1K2NZJ3B2YHSJJPPVAF","hyperframes-showreel","Turn real screen and site footage into a rhythmic showreel rendered with HyperFrames: sampling, edit script, redacted clips, a generated composition, Veo only as additive FX, music edit + camera punches, delivery render and export QA. Use on \"make a showreel from these recordings\", \"build the HyperFrames video\", \"assemble the footage edit\", \"render and QA the showreel\".","https:\u002F\u002Fgithub.com\u002FBlackBeltTechnology\u002Fpi-agent-dashboard\u002Fblob\u002Fdevelop\u002Fpackages\u002Fvideo-production\u002F.pi\u002Fskills\u002Fhyperframes-showreel\u002FSKILL.md",[],[272,273,274,160,275,276,277,164,278,279,280,213,281,282,283,284,285,263,193,286],"hyperframes","hyperframes showreel","qa","Composition","edit","generated","assemble","export","sampling","build","delivery","as","fx","screen","script"]