/kata-flight:rdr-implement-land <RDR_PATH...> [--no-flight]from kata-flight
Use to land a built but unmerged RDR implementation branch: rebase, fast-forward merge, update RDR status/indexes, close tracker(s), and optionally flight follow-up katas. Trigger for land RDR implementation.
Ships in kata-flight. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
The landing half of RDR Stage 8. Where /rdr-implement and
rdr-implement-triage build the implementation onto an isolated
worktree-rdr-<NNNN> or coupled RDR branch and stop before merge,
this skill takes that branch the rest of the way to Implemented:
ship (rebase→ff-merge→teardown) → flip RDR + indexes → close tracker → flight residual bugs
It is the standalone, unattended consumer of
lib-land-rdr — read that first. Every
phase below cites a §<anchor> in lib-land-rdr SKILL.md and adds
nothing but the resolution of inputs and the gate sequencing. The
flag-gated --ship / --close-and-flight phases inside
rdr-implement-triage cite the same anchors, so the two never
fork.
Runs on any unmerged rdr branch. Unlike the triage skill's phases
(which run inside the warm build orchestrator), this skill re-derives
its inputs from disk, so it lands a branch from a cold start — including
one left by the attended /rdr-implement (no triage, no warm
context). If triage never ran, the <BATCH_LABEL> set is empty and
§land-flight short-circuits.
/rdr-implement-land <RDR_PATH...> # land fully: ship → flip → close → flight
/rdr-implement-land <RDR_PATH...> --no-flight # ship → flip → close, then EMIT the flight command (don't run it)
<RDR_PATH...> — one implemented RDR, or the ordered coupled set that
built the branch (resolves under $PROCESS_ROOT/rdr/).--no-flight — stop after §land-kata-close and print
/kata-flight --label <BATCH_LABEL> --drain as a handoff instead of
running §land-flight inline. Use when you want to eyeball the residual
bug batch in a separate turn (the historical hand-driven pattern).AskUserQuestion, no "how should I
proceed?" checkpoint. Each phase is pass → continue or fail →
halt with a named stopped:<reason>. A passing gate is silent.
(Same contract as rdr-implement-triage.)/kata-flight at the top level (it fans out its own agents) with
output redirected to disk. The parent holds only paths + ≤200-word
summaries.stopped:* in ship halts everything (code not merged → RDR is not
Implemented). A stop later leaves a recoverable, forward-idempotent
state (see lib-land-rdr Failure ladder).rdr-resources.md. It is the evidence index, not a
status index.Run all gates; all pass → proceed silently to §land-ship. Any fail →
halt with its named stopped:<reason>.
REPO_ROOT="$(git rev-parse --show-toplevel)";
refuse stopped:wrong-repo unless it matches the configured consumer repo. Capture
TARGET_BRANCH = $(git -C "$REPO_ROOT" branch --show-current)
(non-empty) and require git -C "$REPO_ROOT" status --porcelain
clean (the ff-merge target must be clean).worktree-ship-pipeline §repo-anchor uses — worktree-invariant):
WS="$(dirname "$(dirname "$(cd "$(git rev-parse --git-common-dir)" && pwd -P)")")"
KATA_FLIGHT_CONTEXT_ROOT="${KATA_FLIGHT_CONTEXT_ROOT:-$PRIMARY_ROOT}"
if [ -f "$PRIMARY_ROOT/.kata-flight/workspace" ]; then . "$PRIMARY_ROOT/.kata-flight/workspace"; elif [ -f "$WS/.kata-flight-workspace" ]; then . "$WS/.kata-flight-workspace"; fi
[ -d "$KATA_FLIGHT_CONTEXT_ROOT" ] || { echo "stopped:context-root-not-found:$KATA_FLIGHT_CONTEXT_ROOT" >&2; exit 1; }
[ -d "$PROCESS_ROOT/rdr" ] || { echo "stopped:process-not-found:$PROCESS_ROOT" >&2; exit 1; }
Carry KATA_FLIGHT_CONTEXT_ROOT, PROCESS_ROOT forward as literals.<RDR_PATH> exists under
$PROCESS_ROOT/rdr/. Derive NNNN_LIST, SLUGS, ART_DIRS, and
BATCH_LABEL using the same SHORT_ID rule as rdr-implement-triage.- **Status**: line — it
must read Final or already Implemented (a Draft is not
landable → refuse stopped:rdr-not-final:<NNNN>). Read primary <ART_DIR>/status.md
— it must contain the COMPLETE token (anywhere in the header line);
missing/INCOMPLETE → refuse stopped:implementation-incomplete
(the branch isn't built; this skill lands, it does not build).git -C "$REPO_ROOT" worktree list shows worktree-<SHORT_ID> at
.claude/worktrees/<SHORT_ID> (capture WORKTREE_PATH absolute,
BRANCH). If the worktree is gone but the branch exists →
re-attach (git -C "$REPO_ROOT" worktree add "$REPO_ROOT/.claude/worktrees/<SHORT_ID>" worktree-<SHORT_ID>).
Both gone but every <RDR_PATH> is already Implemented and the
<ART_DIR> shows a recorded merge → already landed; report and
stop (idempotent). Branch missing with Status: Final and no merge
record → refuse stopped:no-branch-to-land (nothing built to land).roborev status exits 0 (do not run roborev daemon ...) — §land-ship's
pre-merge check reads roborev fix --open --list.worktree-ship-pipeline §phase-3-ship-agent): rebase-if-moved →
go test && golangci-lint → squash → merge --ff-only → teardown.
Capture merged_sha. Any stopped:* → halt the landing, leave
the worktree intact, surface the reason. (A green rebased tip is the
only gate — a triage fix-now commit ships if green.)docs(rdr): <SHORT_ID> implemented (consumer-repo <merged_sha>) commit on the configured RDR docs branch flipping
Status + README row(s) + (conditional) matrix cell(s), staging the
artifacts. stopped:process-wrong-branch / readme-row-missing →
halt with the named reason (code is merged; the docs flip is
incomplete — recoverable per the lib Failure ladder).kind:rdr-tracked tracker(s) (tracks: cli/<NNNN>) with typed evidence
citing <merged_sha>; leave the <BATCH_LABEL> children open;
report the open-children count.flight: nothing-to-drain.
Else, unless --no-flight, invoke /kata-flight --label <BATCH_LABEL> --drain at the top level, output to
<ART_DIR>/flight.md, read back a ≤200-word digest. With
--no-flight, skip the run and emit the command as a handoff.Assemble and print the lib's Composite final report, then STOP.
rdr-implement-land: <RDR_PATH...>
ship: shipped <merged_sha> | stopped:<reason>
rdr: Status→Implemented · README✓ · matrix:<edited|none> (docs <docs_sha> on the configured RDR docs branch)
kata: tracker(s) <closed <short_id>|already-closed|none>
flight: nothing-to-drain | drained <n>/<m> (<k> held) (<ART_DIR>/flight.md)
[--no-flight: handoff → /kata-flight --label <BATCH_LABEL> --drain]
| Condition | Action |
|---|---|
REPO_ROOT is not the configured consumer repo / target dirty / no branch | Refuse (stopped:wrong-repo / dirty / no-branch). |
RDR Status is Draft | Refuse stopped:rdr-not-final (nothing locked to land). |
<ART_DIR>/status.md not COMPLETE | Refuse stopped:implementation-incomplete (this skill lands, doesn't build). |
worktree-rdr-<NNNN> branch + worktree both gone, RDR already Implemented | Already landed; report + stop (idempotent). |
Branch gone, Status: Final, no merge record | Refuse stopped:no-branch-to-land. |
roborev status unhealthy | Refuse; surface the normal command output. Do not run roborev daemon .... |
§land-ship stopped:* (test/lint/conflict/ff-reject) | Halt; worktree intact; code NOT merged; re-run after fixing the branch. |
§land-rdr-docs stopped:process-wrong-branch / readme-row-missing | Halt with the named reason; code merged; finish the docs flip per the lib Failure ladder (re-run is forward-idempotent). |
| Tracker not found | Non-fatal; record tracker: none; continue. |
lib-land-rdr — the cited landing tail; read first./rdr-implement — the attended build half (no triage); leaves the
branch this skill lands.rdr-implement-triage — the unattended build half; its
--close-and-flight flags cite the same lib-land-rdr anchors to land
inline. Use this standalone skill to land a branch from a cold
start (e.g. after an attended build, or in a fresh session).worktree-ship-pipeline §phase-3-ship-agent — the ship mechanics
§land-ship reuses./kata-flight — the residual-bug sweep §land-flight invokes.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
16 skills in this plugin
/kata-flightUse to ship a batch of katas selected by ids, priority, parent, or label. Orders the wave, runs scope review by default, then invokes kata-ship per kata. Trigger for ship all/label/priority katas or $kata-flight./kata-flight-doctorUse to verify a Kata Flight setup. Read-only health check for the .kata-flight seam, marker vars, engine layout, context root, optional RDR binding, and skill links. Trigger for diagnose Kata Flight, check Kata Flight setup, $kata-flight-doctor, or /kata-flight-doctor./kata-flight-initUse to bind a consumer repo to Kata Flight: create or refresh .kata-flight seam, env/resources files, optional workspace marker, and optional RDR binding. Trigger for set up kata-flight or $kata-flight-init.npx claudepluginhub cwensel/kata-flight --plugin kata-flight