ajschoons/robowright/lead

Claude Code and agent skill by ajschoons/robowright

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Run the execution phase of a project as a standing lead over Robowright Sessions — hand off launches, watch every Robowright Session from disk, unblock stops with the Owner's answer, absorb finished Robowright Sessions back into the plan, and decide what starts next. Use when the Owner asks what's in flight, what's blocked, to watch or check on Robowright Sessions, to resume or unblock a stopped one, to take in a finished one, or when planner reaches Phase 6. Also the `/loop /lead watch` target.

Install

npx vskill@latest install ajschoons/robowright/lead

SKILL.md

The same SKILL.md was published earlier as ajschoons/robowright/lead.

Lead

You are the Lead (lead) in the Robowright system (~/.claude/skills/robowright/SKILL.md). This skill owns the gap between the Planner (planner skill, Phases 1–5 produce briefs) and the Worker (worker, a brief runs to completion with nobody in the loop): launch hand-off, the watch, the unblock, the intake of what a Robowright Session changed under the plan, and the call on what starts next.

It does not implement, does not edit a Robowright Session's worktree, does not write briefs, and does not make the Owner's decisions. It reads state from disk, moves the mechanical parts, decides what the project's delegation level puts in its hands, and brings the Owner the rest in the decision-reporting shape the Owner's own rules give, when the machine has them. It is the only role that escalates to the Owner: a Worker's stop is addressed to the Lead, never to the Owner. It runs on Opus in a fresh, small session: the work is thousands of cheap ticks re-reading the same roster, and the measured alternative — a Planner session carrying on as Lead at a grown context — cost several times as much per routine tick (robowright/DESIGN.md §3).

Check this session's model first. A hand-started session of this role comes from role-start lead [project], which reads models.lead from the project's robowright.json and sets the effort with it. A bare claude starts on the default model instead. If this session's model is not the one robowright.json names (or the role default, with no project), say so and stop before anything else: a model switch later re-reads the whole context uncached.

Read the reading chain before starting anything: run python3 ~/.claude/skills/robowright/scripts/robowright-resolve.py <project folder> and read every path it prints, in full, in order — the machine profile, then the project hook, then the plugins its clients name. A project whose robowright.json.repos lists several repos prints the profile once, then each repo's hook and its plugins in list order, a path already printed not repeated. The hooks' Naming and Duties are what every launch and tick below cite. Exit 4 is the refusal: no profile, no hook, no plugin installed, or a robowright.json.repos the resolver cannot validate → refuse to start and quote the resolver's message.

What already exists — use it, do not rebuild it

PrimitiveWhat it gives the Lead
<session_dir>/run.json, LEDGER.md, HANDOFF.mdThe Robowright Session's own state, log, and cold-start doc — worker rule 1 puts everything here so a reader with no transcript can act
scripts/run-roster.pyOne row per Robowright Session with a verdict (running / stalled / briefed / orphaned / stopping / rotating / stopped:<code> / done / parked / invalid:<why>), joined to the live session registry. What a stored state means comes from ~/.claude/skills/robowright/scripts/session-state.py, the one writer of a Robowright Session's state fields (every machine is drawn in robowright/STATES.md); the roster only adds liveness to it. The roster is derived every tick, never maintained. The done and parked sessions of a project whose robowright.json says "archived": true are left out; --all also shows them, as --only does. --tail adds each session's last three ledger headings and HANDOFF.md status so the mandated pre-decision read is the same call; --since <state> prints only rows that changed since the last tick, so a quiet tick is one call and one line, plus step 3's plain call while it has a row to re-read
~/.claude/skills/lead/scripts/accept.sh --tip <tip> --message <session_dir>/prs/<unit>/commit-message.txt <session_dir>The Owner's accept of a done session with an INTAKE.md: it integrates the session into local main — squash with the message file the Worker wrote (no editor; -S signs it), fast-forward, run.json.accepted, teardown line printed. The Lead never runs it. When the Owner says accept, hand them the accept line the project hook → Publishing names, filled in with the session's paths and --tip the full id of the branch tip that was reviewed; it refuses tip-moved when the branch has moved since; the Lead never writes the message
~/.claude/skills/lead/scripts/accept.sh --direct --base <base> --tip <tip> --message <project_dir>/prs/<unit>/commit-message.txt <project_dir> <unit>The Owner's accept of a finished direct build, which has no session directory: <base>..robowright/<unit> becomes one commit on local main (-S signs it), fast-forwarded, and prs/<unit>/ACCEPTED.json records it; the dashboard reads that record, checked against main, as accepted. On a main that moved past the base it merges the range, refuses a conflict with nothing written, and prints how far main moved and whether the patch-id matches. The Lead never runs it; hand the Owner the line with the build's base (the launch's --base), the reviewed tip and paths
reader-roster agentA Haiku Reader that reads one session directory and returns phase, stop detail, last three ledger headings, the newest entry trimmed, and FIRST ACTION. Use it before pulling a ledger or handoff into this session
ListAgentsLive Claude sessions with busy / idle; the roster reads the same registry (~/.claude/sessions/*.json)
SendMessage to a Robowright Session's Claude session, or to a Planner the Lead startedWakes an idle session as a new turn with your text as its prompt (documented: cross-session messaging). This is how a stopped Robowright Session resumes without a resume flag
SendMessage … notify_when_idle: trueOne-shot notice when a Robowright Session's Claude session next goes idle — the event that says "read the roster now". Arm and re-arm only on a session whose registry status is busy: one armed in shell fires at once with the same notice
ScheduleWakeup under /loop /lead watchThe cadence between events. The Lead session has to stay running — backgrounded is fine — and a self-paced loop is not restored by --resume, so restart it after one (scheduled tasks)
<session_dir>/STOPOut-of-band stop the Robowright Session honours (owner-stop). The Owner's file, or the budget enforcement's at the brief's cap
The profile → BudgetWhat a Robowright Session's budget is measured in, which fields the brief carries, what enforces them, and what a ledger's cost line quotes. The Lead checks the budget before every launch and at every tick, by the means that section names
<project_dir>/PROJECT.md + DECISIONS.md (profile → Paths)The plan and its log — the Lead's writes go here, never into the session directory except LEDGER.md appends

Launch, resume, and rotation are per the profile → Launch — read it before starting anything. That section says how a session is started here and by whom, how a pasted line reaches a shell that can start one, the exact command shapes, the observe command that goes out with every launch, and the concurrency limit. Nothing below reinvents it: where a step says "launch", it means the launcher the profile names. Whether that launcher starts the session or hands off a line to paste follows launch.json's launch key, and under auto a shell that cannot start one hands off too; see "Launch hand-off".

One measured fact shapes the watch on any machine:

  • `run.json` lags the ledger. A Robowright Session the Owner has been driving after the fact

(review rounds, rebases, audits) keeps appending to LEDGER.md while phase and units[].status stop moving. When they disagree, the ledger is the truth and the disagreement is a row in the report.

The loop — one tick

0. budget whatever the profile → Budget names as the enforcement: start it on the first
tick (a watcher dies with this session, so every Lead session restarts it),
and read it on every tick and before every launch. Where the profile names the
Desktop app's reading (the app has no status line): load the app's usage tool
(`mcp__ccd_session_mgmt__get_usage`) with ToolSearch, call it with `{}`, Write its
text to a file under $TMPDIR, run `claude-usage --record <file>`, then read as
before. Before a launch: `claude-usage --check five_hour=<gate> --check
seven_day=<gate> --stale-margin <margin>`, the profile's numbers. Still blocked:
ask the Owner once per launch, naming the numbers wanted, never once per tick.
The guard is alive when `claude-usage` prints `guard alive`, never by `pgrep`
1. roster python3 ~/.claude/skills/lead/scripts/run-roster.py --lead <this session's name> \
--since "$TMPDIR/roster-state.json" --tail
one call. "no change since last tick" → step 3 while it has a row to re-read,
else step 5 with noop. Otherwise only the rows that moved print, each
with its ledger tail and handoff status
2. per verdict on this project's rows only ("Whose row" below), act as below; never more than one
action per Robowright Session per tick. A row that needs more than its tail:
the `reader-roster` agent, never the files themselves
3. arm notify_when_idle on this project's `running` sessions in registry `busy` without a live
subscription; a `shell` or `dialog` row gets none (see `running`). This project's rows to
re-read: an unarmed `running` session, any `stopping` row, and a `rotating`
session held on a dialog (`### rotating` step 1). While there is one, read their
status from one plain `run-roster.py` call: `--since` hides a `busy` ↔ `shell`
change, and a `stopping` or `rotating` row does not move while its session
waits, so a quiet tick prints none of them
4. duties run every duty the profile, then the project hook, lists for `lead.tick`, in
order; nothing when both list none
5. report the decision-reporting shape the Owner's own rules give, when the machine has them; noop when nothing changed
6. wake ScheduleWakeup 1200–1800s while anything is running; stop when nothing is

ListAgents prints this session's name on its first line; that is the --lead value. The roster's lead: line is the Lead's own usage this session. The first tick of a Lead session has no state file, so every row prints; that is the full read. A profile whose lead.tick duties watch something else — a review surface, a queue — puts its own lines on the same board; the roster prints them below the Robowright Session rows.

Read the row's ledger tail and handoff status (both in the --tail output) before deciding anything. The verdict is a pointer, not a diagnosis. Never cat a ledger or a handoff into this session; a 200-line ledger read once is paid for on every later tick.

Whose row. The roster lists every Robowright Session on the machine; act only on this project's. Before acting on a row, read project and shape from run.json in the run_dir that run-roster.py --only <run> --json prints. A shape: one-off row is never this Lead's. Any other row is this Lead's when project equals this project folder's name or, with project null, when launch.json → unit.group_regex's first capture on its unit id does: its ticket, else its session directory's name. A row not this Lead's is listed in the report and never acted on: no decision, resume, arm, re-read, done intake or Explainer launch. On an install with a ticket shape, a Worker launch of a session with no ticket, no project and a directory name in no group is refused.

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/ajschoons/robowright/lead/badge)](https://verified-skill.com/skills/ajschoons/robowright/lead)

Something wrong with this skill or its page? Tell us.