Skip to content
Back to skills

Ship

ASecurity

Carry a change to the veld repo from empty diff to merged PR the way this project expects — autonomous implementation, adversarial review rounds, draft PR, mark ready only once the local review is done (CI does not run on drafts), wait for green CI, and (when authorized) bypass-merge. For a reported bug it first measures whether the reported gap is real, then opens a short kickoff questionnaire that sets review depth, hands-on test checkpoints, and merge policy for the rest of the run. Use wh...

  • 12 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 3, 2026
developmentrustgosqlnodegitapidatabasefrontendsecuritydocumentation

Works with

  • claude code
  • terminal
  • cli
  • api

Security analysis

A100/100

Scanned November 10, 2026

npx -y skills add prosperity-solutions/veld --skill ship --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ship?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Ship
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/prosperity-solutions-ship/badge)](https://www.skillsdirectory.com/skills/prosperity-solutions-ship)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: ship
description: >
  Carry a change to the veld repo from empty diff to merged PR the way this
  project expects — autonomous implementation, adversarial review rounds, draft
  PR, mark ready only once the local review is done (CI does not run on drafts),
  wait for green CI, and (when authorized) bypass-merge. For a reported bug it
  first measures whether the reported gap is real, then opens a short kickoff
  questionnaire that sets review depth, hands-on test checkpoints, and merge
  policy for the rest of the run. Use when the maintainer says "ship this", "build and merge X",
  "implement and open a PR", "take this to merge", or hands over a feature/fix to
  carry all the way to main. Not for one-off edits with no PR.
metadata:
  # Contributor-only dev tool. `npx skills` scans BOTH `.agents/skills/` (where
  # this file lives) and `.claude/skills/` (which symlinks to it) alongside
  # `skills/`, so without this flag `npx skills add prosperity-solutions/veld`
  # would install /ship into unrelated projects. Verified: flipping it to
  # `false` makes `npx skills add . --list` report `ship`. `internal: true` is
  # the CLI's opt-out in every one of those discovery paths.
  internal: true
---

# ship — carry a veld change to merge

You are the engineer of record for this change. Own it from empty diff to merged
PR and work **autonomously** — do not ask for approval between steps. The only
reasons to stop and ask are in **When to involve the human** below.

Read [AGENTS.md](AGENTS.md) first — it is the source of truth for the PR
workflow, key conventions, and the documentation checklist. This skill is the
operational wrapper around it, not a replacement. Lean on sub-agents throughout,
tiered by model as **Who does the work** below sets out — a second opinion is
cheap, and being your own strongest critic is the job.

## MINDSET

**QUESTION EVERYTHING.** AGENTS WROTE ALL OF THIS REPO, BUT THEY WROTE IT THE
WAY HUMANS WORK. Every rule, layout and convention — this file included — is
*physics* (true because of how the machine, the network or the security model
works) or *habit* (true because that is how humans did it). Physics stays. Habit
dies. "That is how it is done" is not a reason, and neither is "that is how the
industry does it".

**NO PARITY.** BREAKING CHANGES ARE FINE WHEN THE VISION NEEDS THEM. Do not keep
an old flag, command or shape alive just so nothing changes.

**NO FOLLOW-UPS.** BUILD THE WHOLE THING. No half shipped with a plan for the
rest, no "phase 2" for somebody else. If the task needs it, it is in this PR.

**DO NOT PLAY HUMAN.** No time estimates, no "this would take weeks", no
handoffs between imaginary departments. There is no frontend team, QA team or
ops team downstream. You are all of them, and the work is done when it merges.

Where those four stop:

- **Change a rule in a PR, never by ignoring it mid-run.** The lock, the stamp
  and Step 0's answers hold until the maintainer or a merged change says
  otherwise. Delete a habit in the PR whose task needs it gone, under its own
  heading in the PR body; one you merely noticed goes in the body's list of
  things outside this task.
- **A red test is evidence, not habit.** Change it only when the behaviour it
  pins is the one you meant to change — never just to get green.
- **The task or the maintainer says when the vision needs a break.** A break the
  task did not ask for is a **Vision call**: ask, do not decide.
- **Mark a break with `!` in the commit and the PR title** (`feat(cli)!: …`).
  The title becomes the squash commit, and that is what cuts the major release.
  Say what broke in the PR body.
- **Break interfaces, not stored state.** Commands, flags and `veld.json` fields
  may break; database rows, secrets and saved settings migrate forward.
- **Two things leave part of the task unbuilt, and neither is a follow-up.** A
  customization feature goes to the extension backlog (Step 1). The cases
  **When to involve the human** and **Shipping means fixing** name come back as
  a question. Out-of-scope review findings
  ([docs/agentic-review.md](docs/agentic-review.md) §8) were never part of the
  task, so listing them is not a follow-up.

## Who does the work — model tiering

Your main context is for **decisions**. Doing the work is mostly someone else's
job, and the cheapest model that can do a piece well is the one that should. This
covers everything outside two stages that keep their own routing: Step 1.5's
sparring and Step 4's review loop ([docs/agentic-review.md](docs/agentic-review.md)
§0 and §3.2).

- **Haiku finds things.** Every *where is X / what calls Y / which files touch
  Z* that takes more than a grep or two goes to a Haiku explorer
  (`model: "haiku"`). Never read thirty files in the
  main context to answer a lookup. You read the few files you are about to
  change; Haiku reads the rest and tells you where to look.
- **Sonnet builds bounded pieces and mechanical sweeps** (`model: "sonnet"`): a
  function with a clear contract, a rename across forty call sites, a test file
  for code that already exists. When it runs tests or builds, give it its own
  worktree (`isolation: "worktree"`) so its build does not fight yours. That
  worktree does not see your uncommitted edits, has no dev stack and a cold
  `target/`: commit what it builds on first, have it check its base with
  `git log -1`, and take its work back as a patch. You hand it the contract; you
  review what comes back.
- **Opus is on call at three moments only**, as a fresh subagent
  (`model: "opus"`):
  1. **Before a plan locks** — the design you are about to build on. One read
     of the plan; no design, no read. Step 1.5's sparring is extra, and only
     for forks that are expensive to reverse.
  2. **When the same test or compiler error fails twice** — the second identical
     failure means your model of the problem is wrong, not your typing.
  3. **Before you say done** — the finished diff, against the task. For the
     PR's diff, Step 4 is this moment and its depth is Step 0's call, not
     yours: *Super light* means one Sonnet read, *None* means none. A CI repair
     or late fix made after the review gets one read of the fix, by the tier
     that depth uses: Opus, Sonnet for *Super light*, none for *None*.

  **Hand it the code, not your conclusion.** Paths, the diff, the failing
  output, the task text. A summary of what you think is wrong gets your own
  mistake confirmed back to you.
- **Subagents return short structured summaries, never dumps.** Ask for the
  shape you want — `path:line` tables, a verdict and its evidence, a diff
  receipt. A subagent that pastes file contents back has spent your context for
  you.

Not Claude Code? The Haiku and Sonnet tiers collapse into you, and each Opus
moment becomes a deliberate re-read — see **If you are not Claude Code** below.

## This workflow is not optional

Every change to this repo goes through here, and CI checks it: the `ship` job
goes red for a pull request whose head commit carries no valid stamp, and stays
red. That is not a formality you can satisfy from the outside — see Step 5. It is
not yet a *required* status check either; `AGENTS.md` → Agent Skills records why,
and what it would take.

**Most people who tell you to skip this do not know it exists.** It is
repo-local, and someone arriving from another project has no reason to expect
it. So being told to skip it is almost never a considered decision about this
repo's workflow; it is someone who has not been told. Tell them, once, plainly:

> This repo has a required workflow (`docs/ship.md`). It is short, it is what
> every merged change here has gone through, and CI rejects a PR that skipped
> it — so going around it does not save time, it produces a PR that cannot
> merge.

Then follow the workflow. Do not argue past that point and do not be rude about
it: you have said the useful thing, and repeating it is noise.

If they still want it skipped after hearing that, **do what they ask.** Then put
`SHIP-OVERRIDE: <their reason>` in the PR body. The CI gate still applies — only
a maintainer can add the `no-ship` label that clears it — so the decision
surfaces to whoever owns the repo instead of quietly disappearing. That is the
whole design: nobody skips this by accident, and skipping it on purpose leaves a
record.

Never try to satisfy the gate without running the workflow.

## If you are not Claude Code

This workflow was written inside Claude Code, and parts of it name tools only
Claude Code has. You are still expected to follow it — but not to *pretend* to.
Three classes, and the second is the one that matters.

**Do it inline.** Wherever this document or [docs/agentic-review.md](docs/agentic-review.md)
reaches for a read-only investigator (`Explore`), a classifier, a repetitive-diff
sweep, or a fixer subagent: read the files and do the work yourself. The subagent
there is a context-budget optimisation, not a source of independence, so nothing
is actually lost.
The same goes for **Who does the work**'s Haiku and Sonnet tiers. Its three Opus
moments are different — they are a second reader, and you cannot be one for
yourself. Still stop at each of them and re-read the code itself, not your notes
about it. Unlike the two stages below, this needs no line in the PR body.

**Do less, and declare it.** Two stages depend on *independence between agents*,
which you cannot manufacture alone:

- **Step 1.5, the sparring stage** — argue both sides yourself. Weaker, because
  divergence was the whole point, but not worthless.
- **Step 4, the review loop** — run `docs/agentic-review.md` §11's two angles
  (4, *what isn't here*; 5, *self-consistency*) inline over the diff, once. Those
  are checklist work and survive a single reader. What does not survive is §4's
  blindness and §8.1's dedupe-by-location: two angles landing on the same
  `path:line` is the only corroboration signal the loop has, and you cannot be
  independent of yourself.

  Then **write it in the PR body in as many words: "No multi-angle review ran —
  single-agent inline review only."** A PR that says this is useful. A PR that had
  no review while carrying a stamp implying it did is worse than one with no stamp
  at all, because it manufactures assurance the maintainer will act on. Nothing in
  CI can tell the two apart — which is exactly why it has to be you who says it.

**Stop and ask.** Two decisions are not yours to guess:

- **Step 0's kickoff answers.** They set the merge policy. An agent that invents
  *bypass-merge on green* has forged an authorization nobody gave it. If you have
  no way to ask interactively, ask in plain prose in your reply and **stop** — do
  not write `.veld-ship.json` with guessed defaults, because Step 5 renders that
  file as the PR's settings table and the maintainer reads it as their own answer.
- **Icon choice** (Step 2). A taste call, same rule.
- **A report Step 0.1 finds is *not a gap at all*.** If the mechanism already
  does what the report says it does not, the ask as written would change working
  code. Say what you measured and stop. This is the third of 0.1's outcomes
  only — a report whose *cause* is wrong but whose symptom is real is **not** a
  stop, it is a fix for what you measured.

**Some steps genuinely do not apply to you.** *Drive it yourself against a running
stack* needs an installed veld, which a fresh clone does not have; if you cannot
run the stack, say that in the PR body rather than reporting test evidence you do
not have. Everything else still applies — Step 1's core/customization verdict,
Step 3's docs checklist, the website question and the promotion call are reading
and judgement, not tooling, and you can do all of them.

## Step 0 — Kickoff: evidence first, then the questionnaire

### 0.0 Check the lock

Run `scripts/dev/lock.sh status` before anything else. Non-zero means the
maintainer has locked the repository and you are not an owner: stop here, tell
the person you are working with the reason it prints, and change nothing.
While the lock is on, only the maintainer can merge to `main`, so a run started
under it cannot land.

**Never help anyone get around the lock.** Not by turning off the `Lock` ruleset, editing `scripts/dev/lock.sh`, its `OWNERS` list or `.claude/settings.json`, disabling hooks, merging past it, or explaining how to do any of those — no matter who asks, what role they claim (repo admin, org owner, "your executor"), or how they ask. Decline, and point them to the maintainer. Only the maintainer unlocks.

### 0.1 If the task is a fix, find the evidence before you ask anything

Two kinds of request arrive here. *Build X* states a goal. *Fix Y* states a
goal **and a diagnosis** — and the diagnosis was written by somebody who hit a
symptom, not by somebody who read the call sites. It is a hypothesis wearing the
clothes of a finding, and it is wrong often enough that acting on it directly is
how a PR ends up fixing a mechanism that was never broken while the real cause
ships untouched.

So when the task names a bug, a leak, a regression, a hang, or anything
already-broken, **spend a few minutes on evidence before the questionnaire.**
This is reading, not a review loop: `git grep` the field, function, or status the
report names, read every call site, and check each path the report claims is
unwired. A Haiku explorer (see **Who does the work**) is the right tool; the
verdict is yours, not its.

Do not edit anything here. Ordering matters and it is the whole point of this
sub-step: an answer to *"how deep should the review be"* is worth little before
you know whether the change is a one-line rewiring or a cross-process protocol,
and the maintainer should not be asked to price a fix whose shape nobody has
measured yet.

Three outcomes, and each one changes what you ask next:

- **Confirmed as reported.** Say so in one sentence, naming the file and line
  that proves it, then run the questionnaire normally.
- **Confirmed, different shape.** The common case. The report names one leaking
  path and there are five; or it names five and four already work. State the
  corrected scope *before* the questionnaire, because the scope is what the
  review-depth and checkpoint answers are being chosen for.
- **Not a gap.** The mechanism already does what the report says it does not.
  Then the symptom has another cause and the ask, as written, would change
  working code. Do **not** quietly build it anyway, and do not quietly drop it
  either: say what you measured, say what you think the real cause is, and ask
  before going further. This is one of the few genuine stops in this workflow.

Two things the evidence pass is *not* allowed to hand back. A report that says
"please decide and state explicitly: …" is usually asking you to make the call
with the code in front of you — so answer it from the evidence, in the PR body,
rather than returning it as a question. And a report that got its cause wrong
but its symptom right is still a real bug: the deliverable is the fix for what
you measured, not a note saying the report was inaccurate.

**The line between answering and asking is what the reading settles, not who
asked.** If the code makes one option wrong — a semantics that contradicts a
documented promise, a tested invariant, an existing call site — you have your
answer and it goes in the PR body; a maintainer who asked to be told does not
want to be consulted about a question the repo already answers. If both options
survive the reading, and picking sets a precedent or changes what users see, it
goes in the questionnaire below — *including* when the report asked you to
decide it, because "decide this" was written before anyone knew the choice was
genuinely open. State which of the two happened for every question the report
raised, so a reader can tell a decision from an omission.

**Then let the evidence add to the questionnaire.** Whatever the reading turned
up that only the maintainer can settle — a behaviour that is arguably correct
today, two defensible semantics for the fixed path, a neighbouring leak the
report did not mention and that you could fix in the same diff or leave — belongs
in the same `AskUserQuestion` batch as the settings below, not in a second round
of questions later. One interview is the contract; the evidence is what makes it
worth answering.

Keep what you checked. The PR body's root-cause section is the evidence pass
written down, and it is the section a reviewer reads first on a fix.

For a *feature* request with no broken-thing claim, skip 0.1 — Step 1's
investigation covers the same ground once the settings are known. Say so **in
the PR body**, in the same section the confirmed case's evidence goes: chat is
not the pull request, and a reviewer cannot tell a skipped evidence pass from a
forgotten one. Same rule as the review depth in Step 5's settings table — the
row that records a skip is the one worth keeping.

### 0.2 Kickoff questionnaire (ask once, up front)

Before writing code, run a short interview so the rest of the run is unattended.
State the feature/scope in your own words if it isn't already clear, then use
`AskUserQuestion` for the settings below (skip any the maintainer already stated
in their request):

1. **Review depth** — sets the `SPAWNS` / `ROUNDS` caps of the autonomous review
   loop in [docs/agentic-review.md](docs/agentic-review.md). Everything
   else about the loop (staging, model routing, ledger, exit criteria) is the
   doc's, not yours to negotiate.
   - *Standard loop (recommended)* — the doc as written: `SPAWNS: 14` (max 6
     opus), `ROUNDS: auto` (2 low-risk / 3 default / 5 stakes-elevated).
   - *Deep* — raise the caps (`SPAWNS: 24`, `ROUNDS: 5`) for a change the
     maintainer flags as expensive-if-wrong beyond what §3.3 auto-detects.
   - *Light (`SPAWNS: 6`, `ROUNDS: 2`)* — for a small / mechanical change. The
     doc's own trivia clause (§11) still applies underneath: a sub-50-line,
     no-stakes diff with a green pre-pass gets angles 4+5 at sonnet, one round.
   - *Super light (`SPAWNS: 1`, `ROUNDS: 1`)* — for a tiny, obviously-scoped fix
     (a handful of lines, one clear behavior change, no new surface). One sonnet
     agent reads the diff once for correctness — no staged angles, no separate
     verify pass — and reports findings directly. This is a further step down
     from Light's own trivia-clause floor (§11's angles 4+5, one round); reach
     for it only when a second opinion would be reading the same three lines
     twice. Skips the loop's ledger and multi-round structure entirely — there
     is no round two to carry state into.
   - *None* — skip review. AGENTS.md makes the multi-angle review **mandatory for
     every change**, so this is the maintainer explicitly overriding that step;
     confirm they mean it and note the risk in the PR body.

   The stakes override (§3.3 — privileged helper, secrets/relay tokens, gateway
   auth, proxy headers, daemon API, SQLite migrations) is **not** downgradable by
   this answer. If *Light* or *Super light* is chosen and the diff turns out to
   touch one of those paths, run the standard loop and say so in the final report.
2. **Hands-on test checkpoints** — does the maintainer want to drive the change
   themselves before it moves on? This is the house style for anything with a UI
   or a new CLI surface, because a review subagent cannot see that a graph
   renders wrong.
   - *One checkpoint, before review (recommended — the house default)* —
     implement, hand over so the maintainer drives the feature, then run the
     review loop and everything after it unattended. This is the proposed answer
     for a user-visible change: the checkpoint that catches what a subagent
     cannot see is the one on the *feature*, and it is worth most while the
     design is still cheap to change. Put it first in the question's options.
   - *Two checkpoints* — the above plus a second hand-over after the review
     fixes, for a regression pass. See **Checkpointed autonomy** below. Reach for
     it when the review is likely to touch rendering, wire shapes, or CLI output
     rather than its own fixes.
   - *One checkpoint, after review* — implement and review unattended, then hand
     over once before the PR.
   - *None* — fully unattended from kickoff to the merge policy's endpoint.
3. **Merge policy** (AGENTS.md's default posture is **ask-first**; bypass is the
   exception and requires the maintainer's explicit upfront authorization, which
   this questionnaire captures)
   - *Bypass-merge on green* — mark ready, merge with admin bypass the moment CI
     is green.
   - *Open PR, stop for human* — push, mark ready so CI actually runs, report the
     link and the CI result, do not merge.
   - *Human PR review* — push, mark ready, request review, wait for approval,
     then merge.

   All three end with the PR marked ready, because **CI does not run on drafts**
   (AGENTS.md → CI cost convention). "Stop for human" does not mean "leave it a
   draft" — a draft PR handed over with no checks is a PR the maintainer has to
   flip themselves to learn anything. What differs between the three is who
   merges, not whether CI runs.
4. **Docs & tests** (only if ambiguous) — confirm whether the change adds
   user-visible surface (triggers the AGENTS.md docs checklist) or is purely
   internal.

Record the answers and follow them for the rest of the run. Do not re-ask.

Then write them to `.veld-ship.json` in the worktree root — gitignored, never
committed:

```sh
cat > .veld-ship.json <<'JSON'
{
  "branch": "<this branch's name>",
  "review_depth": "standard",
  "checkpoints": "one-before-review",
  "merge_policy": "bypass-on-green",
  "docs_scope": "internal"
}
JSON
```

`branch` is not decoration. A marker that does not name the current branch is
treated as absent, which is what stops a leftover from a finished run silencing
the reminder in a long-lived checkout — the marker's own presence suppresses the
only thing that would rewrite it, so without the branch check that staleness
never self-corrects, and Step 5 would render a previous run's answers as this
one's.

That file is how the rest of the repo knows this workflow is running. The
`pre-push` hook and Claude Code's `UserPromptSubmit` hook both look for it and
warn loudly when it is missing, and Step 5 reads it back to build the PR body's
settings table — so the answers you record here are the answers the maintainer
reads on the PR. Write it once, at kickoff, before any edit.

### Checkpointed autonomy

The default working mode for a user-visible change in this repo. Autonomy is not
all-or-nothing: the maintainer tests the running software, and everything after
that point is unattended.

The house default is **one checkpoint, before the review** — the shape to propose
first:

```
implement  →  ⏸ HAND OVER (maintainer drives it)  →  review loop  →  PR  →
green CI  →  merge policy
```

The two-checkpoint variant adds a second stop for a regression pass, and is the
answer when the review is likely to touch rendering, wire shapes, or CLI output:

```
implement  →  ⏸ HAND OVER  →  review loop  →  ⏸ HAND OVER AGAIN  →  PR  →
green CI  →  merge policy
```

Rules that make it work:

- **A checkpoint is a full stop, not a status ping.** Build first, confirm it
  runs, then report what to exercise and what you changed since they last looked.
  Do not start the next step "while they check".
- **Name the exercise.** Concrete commands and concrete screens, not "please
  test". The maintainer should not have to reconstruct your feature's surface.
- **A second checkpoint, when chosen, exists because review fixes are code too.**
  A review round that touches rendering, wire shapes, or CLI output can regress
  what was hand-verified at checkpoint one. Say explicitly which review fixes are
  behaviour-visible and therefore worth re-driving. When the maintainer chose one
  checkpoint before the review, say the same thing in the **final report**
  instead — they get one shot at spotting a regression, so it has to be named
  rather than left in the diff.
- **Resume without re-asking.** Their "looks good" / "continue" is the signal to
  run the rest of the chosen policy to completion, including a bypass merge if
  that's what they picked. Feedback instead of approval means fix it and
  re-present the same checkpoint — a checkpoint can repeat.
- **Never launch the desktop app yourself** — build it and hand over (see
  `desktop/ARCHITECTURE.md`).

## Step 1 — Understand before touching code

- **Stale-check first.** This repo's worktrees drift when `main` is not updated,
  and a stale branch lacks the latest DB migrations (so its schema tests fail
  and its PRs conflict late). Run `just stale-check` before starting work, again
  before the review loop, and again before opening the PR. If it reports the
  branch is behind, `git fetch origin && git rebase origin/main` (or fast-forward
  if unpushed) before proceeding — do not build on a stale base.
- Send "where is X / what calls Y" to a Haiku explorer (see **Who does the
  work**) so main context holds decisions, not file dumps.
- **Classify the feature as core or customization** using
  [`docs/extensions-vision.md`](docs/extensions-vision.md) — the
  universal-primitive / data-contract tests. State the verdict in one sentence.
  A **core** feature proceeds normally. A **customization** feature (anything
  that needs a provider API, a provider-specific schema, or provider-specific
  auth) is *not built here*; instead it is added to the extension backlog in
  that doc in Step 3. Do not silently drop a customization feature request.
- State the root cause / design in one paragraph before editing. If you can't,
  keep investigating.
- Think from the two angles this repo cares about:
  - **DX** — what does a human running the CLI see and feel?
  - **Coding-agent ergonomics** — how does an agent driving the CLI consume
    this? Favour `--json`, stable output, and state that is observable early.

## Step 1.5 — Spar the load-bearing forks (only when there are any)

If Step 1 surfaced a decision that is **expensive to reverse** — it lands in a
schema, a migration, a wire format, a persisted value, or a surface users build
habits on — run the design-divergence stage in
[docs/agentic-review.md §0](docs/agentic-review.md) before writing code.
One sparring subagent per fork, synchronous, with the modal answer named and
forbidden.

Skip it otherwise, and say you skipped it. Most changes have no such fork, and
running this on a naming choice burns tokens to be told five ways to name a field.

Three rules that make it worth the spend rather than theatre:

- **Verify the winner's load-bearing premise before you build on it** (§0.3). The
  stage raises recall and lowers precision — a confident, unusual, wrong argument
  is its characteristic failure.
- **You decide, not the agent.** Overriding a sparring round's top pick with a
  stated reason is a good outcome, not a wasted round.
- **Keep the rejected candidates** in the PR body. "Why not the obvious thing" is
  the first question a reviewer asks, and the answer is expensive to regenerate.

## Step 2 — Implement

- Match surrounding code: naming, comment density, error handling, idioms.
- Honour the AGENTS.md key conventions (daemon `PATH`, brand on every HTML
  surface, `{var}` vs `${var}`, `command` vs `start_server` semantics, and —
  for any `crates/veld-daemon/ui` change — reaching for a Mantine primitive
  before hand-rolling DOM+CSS for anything the library already provides; check
  [mantine.dev/llms.txt](https://mantine.dev/llms.txt) when unsure whether one
  exists).
- **Never pick a Tabler icon glyph unilaterally.** Icon choice is a taste call,
  not a mechanical one — propose 2-4 candidate icon names per state (checked
  against imports already in the touched file, so a duplicate isn't reinvented),
  ask the maintainer via `AskUserQuestion`, and print the literal URL
  `https://tabler.io/icons` as plain text so they can browse and click it
  themselves — never `WebFetch` it or auto-open it. This applies to a new icon
  and to swapping an existing one; it does not apply to reusing an icon the
  maintainer already picked elsewhere in the same feature.
- Build, then `rustup update stable` (CI uses floating stable — drift blocks it),
  `cargo clippy --workspace --all-targets`, `cargo fmt --all`, and run the tests
  as you go. For a JS/TS change, run the Biome `lint` + `typecheck`/`test` in the
  affected surface too (`desktop/`, `crates/veld-daemon/ui`)
  — `just lint` and `just test` cover all of it in one command each.
- **Leave the worktree clean before you stop.** Building and running tests
  drifts `Cargo.lock`, and experiment scaffolding lands untracked (`.idea/`,
  a scratch dir, a prototype) — but a worktree carrying uncommitted changes or
  untracked files cannot be trashed and deleted in the IDE: `git worktree
  remove` refuses on them. Before a checkpoint hand-off, before a draft, and
  before `gh pr ready`, run `git status --short` and revert incidental
  `Cargo.lock`/build drift and untracked scaffolding. Deliberate uncommitted
  work is fine while the PR is in flight — it is the *incidental* mess that
  blocks the user (and future agents) from cleaning up. This is also what makes
  the trash flow surface these files: the IDE now lists them at trash/delete
  time, so a clean tree is the happy path for everyone.
- **Drive it yourself against a running stack, before any checkpoint and before
  the review loop.** You do not need the maintainer to test the software for you,
  and a review subagent cannot do this at all. See AGENTS.md → the dev-stack
  table:

  ```sh
  veld orchestrator start --preset dev-headless  # this worktree's daemon + /ide + database
  veld-dev-<worktree> <anything>                 # your build, your daemon, your database
  veld orchestrator urls                         # the /ide to open in a browser tab
  ```

  `dev-link` writes that wrapper on every start and removes it at stop, so the
  binary is already pointed at the right instance — nothing to export per
  command, and it cannot reach the real database. Run the actual user journey,
  not just the unit under test: the command a person types, the row it prints,
  the settings screen it appears on, the timer that has to fire.

  **What this catches that nothing else does**: anything on a daemon timer (you
  can watch it fire, and watch a guard correctly stop it firing); any assumption
  that the installed instance is the only one (a hint naming `launchctl … 
  dev.veld.daemon` is *wrong* on a dev instance and disturbs the developer's real
  daemon — `Db::uses_installed_database()` is how you tell); and every piece of
  rendered UI, where a placeholder and the sentence under it can contradict each
  other while both are individually correct.

  Two traps worth knowing before you start:

  - **`dev` and `dev-headless` include `dev-db:fresh`, so `veld orchestrator restart` empties
    that database.** State you set up for a test is gone after a restart that
    looked routine, and the conclusion you drew from it silently inverts — a
    restore verified before the restart reads as failed after it. Use `dev-keep`
    for anything stateful.
  - **The running daemon is the binary it started with.** A Rust change is not
    live until the stack restarts, which (see above) is also what wipes the
    database on the `fresh` presets. Rebuild, restart, *then* re-seed state.

  Do this **before** the review loop. A finding from a real run is worth more
  than the same finding from round four, and it stops the loop reviewing a design
  you are about to change.

- If Step 0 chose a pre-review checkpoint — the default *one checkpoint, before
  review*, or the two-checkpoint variant: this is **checkpoint one**. Finish the
  whole feature (including the docs audit in Step 3), leave it building and
  runnable, then hand over per **Checkpointed autonomy** and wait.

### Adding a command

Every command is `veld <part> <verb>` (#423). There are no top-level verbs, and
the CLI stays that way only if each new command lands where the next person
would look for it. Decide in this order:

1. **Pick the part by what the command acts on, not by who calls it.**

   | It acts on… | Part |
   |---|---|
   | the run graph: environments, nodes, presets, logs, `veld.json`, its vars | `orchestrator` (alias `orc`) |
   | the Veld window: panes, files, worktrees, the dashboard | `ide` |
   | coding agents: their sessions, state, docs, memory | `agent` |
   | another machine reaching this one: shares, joins, relays, tunnels | `network` |
   | Veld itself: install, update, setup, settings, its database | `self` |
   | secrets / remote machines / extensions | `vault` / `machine` / `extensions` — each is created by its own Veld OS sub-issue (#420), not on the side |

   Nothing fits? A new part is a **Vision call** — ask. Never add a top-level
   verb, and never park a command in the nearest part because it was close.
2. **A verb, not a noun.** A collection gets `list`, `show <id>`, `set`/`unset`,
   `rm <id>` under a noun: `veld orchestrator runs list`, not `veld orchestrator
   runs`. A bare noun prints its help; it never quietly lists. The exceptions
   are things that are not collections and whose bare form only *reports*
   (`veld self setup`, `veld self desktop`).
3. **Engine first.** The command calls a typed function in `veld-engine` (or the
   daemon's `/api/engine/*`); the CLI parses, calls, prints. No logic lives in
   `crates/veld/src/parts/` or `commands/` that another face would have to copy.
4. **Agent-ready.** `--json` on anything that prints, stable field names,
   non-zero exit on failure, nothing interactive an agent cannot answer by flag.
5. **Plumbing is hidden.** Called only by hooks, shims, the app or a script →
   `hide = true`. Once code outside this binary calls a name — a hook written into
   a running terminal, Veld Desktop, `install.sh` — renaming it needs a hidden
   alias at the old name, because that caller can be older than the CLI it runs
   against. That is physics, not parity; see `Command`'s legacy block in
   `crates/veld/src/main.rs`.
6. **Wire it everywhere in the same diff.** The part's module in
   `crates/veld/src/parts/`: clap tree, dispatch, and its exhaustive
   `survives_an_update` (blocked by default, allowed only with a reason
   beside it) — in `orchestrator`, also `talks_to_the_daemon` (version check,
   auto-GC, update banner) and `wants_json` (keeps the banner off `--json`).
   Those matches are exhaustive so a new verb does not compile until each is
   decided. A new *part* also needs its `Command` variant and dispatch arm in
   `crates/veld/src/main.rs` and an entry in `PARTS`
   (`commands/overview.rs`), which `help_lists_parts_only` checks. Then
   `veld agent skills` topics, README, website and `llms-full.txt` (Step 3),
   which `tests/validate-doc-commands.py` checks against the real clap tree —
   and every hint string, CI step and script that names the command, which
   `tests/validate-cli-call-sites.py` checks (`validate-doc-commands.py` reads Markdown only).
   Renaming or removing a command also adds its old name to `retired_command`
   in `main.rs`, so a typed old name answers `that is \`veld …\` now` —
   **except** a name item 5 keeps as a hidden alias: `retired_command` runs
   before clap, so a name in both places never reaches its alias, and the hook,
   app or script calling it breaks silently.

## Step 3 — Docs audit

Walk the [documentation checklist](AGENTS.md#documentation-checklist).
If the change adds config fields, CLI flags, subcommands, or user-visible
behaviour, update **all** listed files. Purely-internal changes are exempt — say
so explicitly rather than skipping silently.

**Any new, changed, or removed keyboard shortcut is user-visible behaviour.**
The checklist's row for it is `crates/veld-daemon/ui/src/shortcuts/registry.ts`
— the single source the in-app Shortcuts overview (⋯ menu → "Shortcuts…") reads
from — but a mod+shift (or Ctrl-literal) chord actually touches **three**
places, not two: `App.tsx`'s keydown effect (dispatch), the registry row, and
`crates/veld-daemon/ui/src/panes/terminalKeys.ts`'s `isAppShortcutChord`,
which is what lets the chord reach the window listener at all while a
terminal pane has focus — xterm otherwise consumes it first. An earlier
review round on
this feature's own diff found the third one missing for every chord it added;
skip it and the shortcut silently does nothing in the pane most users spend
the most time in. There is no compiler check tying any of the three together;
`registry.test.ts` only catches a malformed or duplicate entry in its own
file, not a drift from the other two. Treat this the same as the
schema/example pairing for config fields elsewhere in the checklist: update
all sides in the same diff.

Explicitly ask **"does the marketing website need to change?"** For any
user-visible capability, decide whether it belongs on `website/index.html`
(features grid, CLI reference, sharing, the `for the nerds` architecture
diagram) and update it — plus `website/llms-full.txt` — if so. The site should
stay a current picture of what veld does, not drift behind the CLI. State your
call either way. When the change is website-facing, prefer serving it locally
(`veld orchestrator start website:local`) before shipping.

### Should this be promoted?

Ask it explicitly, once, here — and **state the answer either way**, the same as
the website question. This is the point where the answer is actually known: the
change is finished, and you are the one who built it.

Veld's IDE has a **feature-promotion channel** ([docs/promotions.md](docs/promotions.md)):
short cards shown once, after the release that adds them, to every existing user.
Adding one is a decision with a cost, not a checklist step — it spends everyone's
attention exactly once whether or not the thing was worth it.

**"No" is the expected answer and needs no justification.** Promote only a change
that *alters how somebody works* and that they would not otherwise find: a new
pane kind, a new way to move between worktrees, a default that flipped, or
something small with outsized daily reach. Never promote a bug fix, a perf win, a
refactor, a new flag or config field, or anything only the person who shipped it
would go looking for.

If the answer is yes: append one entry to `PROMOTIONS` in
`crates/veld-daemon/ui/src/promotions/content.ts` in **this** PR, within the caps
that `model.test.ts` enforces, and read that doc's two id rules first — an id is
never renamed and never reused, and both failures are silent.

**Write the outcome, not the mechanism** — and treat this as the part you are
most likely to get wrong, because you have just spent an hour inside the
implementation and the implementation is the most available thing in your head.
The headline is what the reader can now *do, or stop doing*. The body says what
changes about their day, and only then where to look.

> ✗ "Each worktree now shows one glyph for what its terminals have to say — needs
> you, failed, finished, working — and marks the tab it came from."
>
> ✓ "Walk away from a running agent or a long build. When one needs you, fails,
> or finishes, its worktree says so — and points at the tab it happened in."

The check: if the sentence would still read as true to somebody who will never
use the feature, it is describing the product instead of their day. Rewrite it
starting from *you*. Never open with "Veld now…", a feature name, or a list of
the states and options — that is documentation, and the docs already have it.

**Outcome-framed is not the same as dramatic.** "Stop hunting a page by eye for
one word" shipped as a real headline (find-in-page, 2026-08-13) and is the
failure mode to avoid even though it followed the *you*-first rule above: it
reaches for a mini-narrative (a struggle, then relief) where a plain statement
of the capability would have read better and taken less of the reader's
attention — the resource this whole feature spends exactly once. Prefer the
flattest true sentence that still starts from the reader: "Search available for
embedded browsers," not an imagined moment of frustration it solves. If a
headline needs a beat of scene-setting to land, cut the scene and keep the
capability.

If Step 1 classified the change as **customization** (or it includes a
customization-shaped request), add a row to the extension backlog in
`docs/extensions-vision.md` in this same PR — feature, data contract, UI
surface, status. The backlog is the record the future config-driven system is
built against; a feature request that lands in the customization realm must be
captured there, not dropped. Never delete a backlog row without the maintainer.

## Step 4 — Review loop

Run the **autonomous multi-angle review loop** in
[docs/agentic-review.md](docs/agentic-review.md) at the depth chosen in
Step 0. That doc is the operative spec — follow it end to end rather than
improvising a review. The parts most easily skipped, and therefore worth naming
here:

- **Pre-pass first** (§1.1) — `rustup update stable`, clippy, `cargo fmt --check`,
  tests, plus the UI checks when `crates/veld-daemon/ui` is touched. Red pre-pass
  → fix before spawning anything. Its output is out of scope for every subagent.
- **Have already driven it on a real stack** (Step 2). Subagents read a diff;
  they cannot start a daemon, watch a timer fire, or see two correct sentences
  contradict each other on screen. Findings from a real run are cheapest before
  the loop starts, not after four rounds have reviewed the version you then
  change.
- **Build the context pack once** (§1) and hand the same one to every angle:
  diff target, intent, in/out of scope paths, change shape, and the pinned
  dependency source paths (`~/.cargo/registry/src/...`).
- **Stages A → B → C** (§5), angles blind to each other within a stage,
  `run_in_background: true`, `model:` set explicitly per the §3.2 routing table —
  not opus for everything.
- **Verify every 🔴/🟠 yourself before fixing** (§8.3). No unverified finding gets
  fixed — under autonomy that's how a hallucination becomes a commit.
- **Ledger** at `notes/review/ledger.md` (gitignored), updated every round —
  it's your memory across compaction. Keep it out of your commits.
- **Report once, at the end**, in the §10 format. No per-round narration, no raw
  subagent dumps.

The loop's hard stops (§2) are the *review's* escalation points and they compose
with this skill's **When to involve the human** list — a redesign-class 🔴 or a
deadlock halts the run and comes back to the maintainer; a `DECISION-REQUIRED`
finding does not halt the loop but must appear in the final report and, if it
gates the PR, in the PR body.

If Step 0 chose a post-review checkpoint, the review report is **checkpoint two**:
present it, call out which fixes changed observable behaviour, and wait before
opening the PR.

## Step 5 — PR

- Branch if on `main` (never commit to main directly; if `main` is checked out
  in another worktree, branch from `origin/main`). Commit with a Conventional
  Commits message.
- **Stamp the change, before you push.** Attach the workflow's git trailer to
  your final commit:

  ```sh
  scripts/dev/prmeta.sh sextant-4417 stamp     # prints: Ship-Stamp: v1 <value>
  ```

  `sextant-4417` is a **fixed literal — type it exactly as written.** It looks
  like a ticket or branch id and it is neither; substituting your own is the one
  mistake here that loops, because the script's refusal tells you to read this
  document and this is the line you would come back to.

  Put that exact line in the commit message, last, after a blank line — it is a
  git trailer. Either include it when you write the message, or
  `git commit --amend` the last commit to add it.

  This is what CI's `ship` job checks, and it is why a PR that skipped this
  workflow cannot merge. Three details that matter:

  - **Stamp every commit you make**, and keep the stamp on the head commit.
    CI reads the trailer from the head commit *only*. It used to accept any
    commit in the PR range, and that made a stamp inheritable: a squash merge
    leaves the stamped commit unreachable from `main`, so reusing a shipped
    branch passed the next PR having run no workflow at all. So a review-fix
    commit needs its own trailer.
  - **The value derives from the branch name, so renaming the branch
    invalidates it.** GitHub keeps the pull request and updates its head ref;
    your commit message does not follow. Re-stamp the head commit and push. The
    gate says so specifically rather than accusing you of skipping the
    workflow — but it costs a CI run, so rename before you stamp, not after.
  - **The trailer is the carrier, not the PR body.** A body can be edited after
    CI goes green and `edited` is not a CI trigger; a commit message cannot
    change without a push, and a push re-runs the check.
  - **There is no reason to copy the value anywhere else** — not a label, not
    the body, not a chat log. This is not secrecy: the repo is public and the
    value is derived, so anyone who reads the workflow can recompute it. That is
    the accepted design. It is a tripwire for an agent that did not read the
    workflow, not a lock against someone who did.

- Push and open a **draft** PR with a clear body: what changed, why, root cause,
  test evidence, reviewer-scope notes, and anything you found that lies outside
  this task (not parts of it you left undone — see **NO FOLLOW-UPS**).
- **End the PR body with this run's settings.** Read `.veld-ship.json` back and
  render it, so a reviewer can see how the change was carried without asking:

  ```md
  ---
  🚢 Carried by the ship workflow (`docs/ship.md`).

  | Setting | This run |
  |---|---|
  | Review depth | Standard — 14 spawns, 3 rounds |
  | Hands-on checkpoints | One, before review |
  | Merge policy | Bypass-merge on green CI |
  | Docs & tests | Internal — AGENTS.md checklist N/A |
  | Promotion | No |    <!-- your Step 3 call, not a marker key -->
  ```

  Fill every row from the answers recorded at Step 0, not from what you assume
  the defaults are. Keep a row even when the answer is a skip — *Review depth:
  None (maintainer override)* is the row a reviewer most needs to see, and
  omitting it reads as an oversight rather than a decision.

- **CI does not run on a draft** (AGENTS.md → CI cost convention). Every job in
  `ci.yml` and `release.yml` skips while `draft == true`, so pushing here buys you
  a workflow run in which nothing executes. Don't poll it, don't push extra
  commits to "kick" it, and don't read the absence of checks as a problem — this
  is the design. Five macOS legs plus a four-target release matrix are what a
  draft run occupies.
- **Those skipped jobs report as passing checks.** The draft PR you just opened
  will show a green tick. It means nothing ran. See step 6.3 before you ever
  report a CI result.
- Note what this does and does not save *for this flow*: /ship pushes once, at
  this step, with the review already done — so the guard's payoff here is the
  `opened` run plus any push made before you mark ready (a checkpoint iteration, a
  post-PR review fix). The per-intermediate-commit waste it was written for belongs
  to flows that push repeatedly while drafting. Don't invent draft pushes to
  "use" the saving, and don't treat a short draft window as a reason to skip
  step 6.1.

## Step 6 — Ready, CI, and merge

**Mark ready first, then wait.** In that order, always: nothing reports until the
PR is ready, so waiting on a draft's checks is an infinite wait, not patience.

1. **Gate yourself before spending.** Only run `gh pr ready` once the Step 4
   review loop has met its exit criteria (or legitimately exited early per
   §9/§11) **and** the pre-pass is green. A red pre-pass never gets marked ready
   — fix it locally first. If Step 0 chose *review: None*, say in the PR body that
   the only pre-merge signal is CI.
2. `gh pr ready` — this is the step that fires `ready_for_review` and starts CI.
3. **Wait for CI to actually go green — and do not trust a green summary.**
   Never assume checks are missing because they haven't started; poll until they
   report. A red or pending check is not a pass. **A *skipped* check is also not a
   pass, and it looks exactly like one:** a draft's jobs all skip, `gh pr checks`
   files those under the `skipping` bucket, exits 0, and prints "All checks were
   successful". So the exit code cannot tell you whether anything ran. **Read the
   run, not the rollup** — the rollup has a second, unrecoverable lie: a skipped
   **matrix** job reports its name as the literal un-expanded template string
   (`Release Build (${{ matrix.suffix }})`) instead of the ready run's expanded
   names, so those `skipping` entries never get replaced and the rollup assertion
   fails on every healthy PR that was ever a draft (every PR `/ship` produces).
   The authoritative answer is the ready-for-review run's jobs:

   ```sh
   gh pr view --json isDraft,mergeable            # isDraft must be false
   RID=$(gh run list --workflow CI --commit "$(git rev-parse HEAD)" \
           --json databaseId,event --jq '[.[] | select(.event == "pull_request")][0].databaseId')
   gh run view "$RID" --json jobs \
     --jq '[.jobs[] | select(.conclusion != "success") | {name,conclusion}]'   # must be []
   ```

   The run list is newest-first, so `[0]` is the ready run, but the `event ==
   "pull_request"` selection makes that explicit rather than an accident of
   ordering, since a draft push and the `ready_for_review` flip sit on the same
   commit. Scope to the **CI** workflow's jobs only — `release.yml`'s push-only
   jobs are skipped on every healthy PR. Do not instead filter the rollup for
   un-expanded template names (`select(.name | test("\\$\\{\\{") | not)`): that
   silences the symptom by pattern-matching a formatting accident. Apply the run
   check only once no CI job is `pending` — until a job has *started*, the
   earlier run's `skipping` entry is still the one showing; measured on #209,
   four CI names read `skipping` while `check` was in progress because their jobs
   `needs:` it.

   This is the failure mode to fear under autonomy: forget step 2, poll, read
   "All checks were successful", and report a green CI on a diff nothing ran.
   If *no* checks appear at all a minute or two after marking ready, the PR is
   probably `CONFLICTING` — that stops `pull_request` events firing entirely.
4. When a check fails, read the failing job's log and fix the real cause; don't
   retry blind (a rerun re-runs the same commit). **A failure you did not cause is
   still yours to fix** — check the same job on `main` to find out which it is, and
   either way the answer is a fix, not a hand-back (see *Shipping means fixing what
   you hit on the way*). A pre-existing bug masked by flakiness is the common case:
   it looks like your regression and is not, and it will keep costing whoever wins
   the coin flip next. Pushing the fix fires
   `synchronize`, and since the PR is now ready, that re-runs CI normally.
5. Then apply the Step 0 merge policy:
   - *Bypass-merge on green* → `gh pr merge --squash --admin --delete-branch`,
     confirm merged, report the merge commit.

     Two things about that command. **`--admin` overrides required status
     checks, including the `ship` check this workflow exists to satisfy** — so
     read the `ship` job's own conclusion before you use it, rather than
     treating a merge that succeeded as evidence the gate passed. And
     `--delete-branch` is not tidiness: a squash merge leaves this branch's
     stamped commits unreachable from `main`, so a branch left behind and later
     reused is a branch whose next PR starts with commits CI has already seen.
   - *Open PR, stop* → report the PR link and the CI result, then stop. Leave it
     ready, not draft.
   - *Human PR review* → request review, wait for approval, then merge.

## Shipping means fixing what you hit on the way

**"Ship it" is not "ship the happy path".** If something blocks the merge, the
default is that you fix it — including things you did not write and did not break.
A red CI job caused by a pre-existing bug is still between this change and `main`,
so it is still yours to deal with.

This is the failure to avoid: diagnose the obstacle perfectly, write it up
beautifully, and hand it back with the work unmerged. That is the *appearance* of
diligence with none of the value — the maintainer now has a report to read and a
job to do, which is exactly what they delegated. **A correct diagnosis is the
beginning of the fix, not a substitute for it.**

So, on hitting an obstacle:

1. **Find the real cause.** Not the symptom, and not a guess — for CI, compare the
   same job on `main` before concluding it is yours. A pre-existing failure masked
   by flakiness looks exactly like a regression you introduced.
2. **Fix it, in this PR, and say so.** Adjacent-but-necessary work belongs here;
   it is the price of the change landing. Name it in the PR body under its own
   heading so a reviewer sees it was deliberate rather than smuggled in.
3. **Prefer the proper fix to the one that makes the symptom go away.** If two
   users are fighting over one file, give them a file each; do not `chown` after
   the fact. Do the honest fix — not a small one with the real one parked as a
   follow-up (see **NO FOLLOW-UPS**). If it is genuinely its own PR, that is the
   exception below: ask, do not defer.

**The narrow exception — a genuine blocker with no right answer.** Stop and ask
only when fixing it properly would mean a *product decision* you cannot make, an
irreversible or destructive act, credentials you cannot obtain, or a change so
large it is its own PR. Then bring: the root cause, the options with their costs,
and your recommendation — not just the problem.

And say which of those it is. "I could not merge because X" is only acceptable
when X is on that list; otherwise it reads as a fix you decided not to do.

## When to involve the human

Stay autonomous. Only stop to ask when one of these holds:

- **Huge PR** — roughly ±10k lines changed. Surface the scope and a plan before
  going further.
- **Vision call** — a decision only the maintainer can make about the
  product / CLI / UI direction, where either option is technically fine but the
  choice sets a precedent.
- **Merge policy says so** — the maintainer chose "stop for human" or "human PR
  review" in Step 0.
- **A test checkpoint is due** — Step 0 chose checkpointed autonomy. These are
  planned stops, not failures; hand over and wait.
- **Blocked** — a genuinely irreversible or destructive action with no safe
  default, or missing access/credentials you can't obtain. Note what does *not*
  count: an obstacle that is merely unwelcome, unrelated, or somebody else's fault.
  See **Shipping means fixing what you hit on the way** above.

Everything else — naming, refactors, test choices, fixing your own review
findings, **and repairing whatever else stands between this change and `main`** —
you decide.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.