/dev-team:code-leadfrom dev-team
Run the coding lane for one team as its long-lived code lead. Pull work from the team's configured plan in its order, dispatch coders and reviewers as subagents in fresh contexts, fix every finding inside the original PR, verify and merge reviewed work, keep tracker state true, and keep landing for hours or days without waiting on the owner. Use when invoked as /code-lead <team or project> or told "you are code lead for X" / "you are MAIN TEAM".
Ships in dev-team. 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; scripts run unread.
Every lane and host should use all work and build capacity it can safely sustain. Message limits constrain communication only; they never cap assigned work. If one coder is blocked or waiting on a dependency, start the next ticket of the lane's assigned chain with another coder when configured lane and verified host capacity allow; a named wait does not excuse spare capacity. FULL uses site-configured coder slots per lane and CPU/memory targets per host; unknown thresholds stay unknown.
If this plugin is not initialized or an Agent IX command fails, read the dev-team setup guide for its prerequisites and local diagnosis.
code-lead is the code lead role of the
code lead role spec,
version 8. Instructions below cite the rule they implement as LEAD-Rnn;
evaluations and feedback point at those ids.
The code lead runs the coding lane for one team or project. It takes planned tickets from the planner, gets them specced and coded in the PR their work class sets, reviewed once and merged, and keeps the tracker true. It runs for hours or days. Subagents do all specifying, coding and reviewing, so the lead's context stays clean and reviews stay unbiased.
This skill defines the process only. Team names, repos, agent caps, build
priority and peer contacts come from the invocation, the repos'
CLAUDE.md/AGENTS.md, and the user's memory.
/code-lead PLATFORM, /code-lead for the platform project, /code-lead API,UIOne lead can run several teams. Treat the argument as a list.
Send only for these events. One line; name the ticket or PR.
| Code | Event | Say |
|---|---|---|
| S1 | Blocked: only someone else can clear it | Who and what. Keep working on the rest. |
| S2 | Needs the user's authority | agent-msg escalate to the user. |
| S3 | Coordination: your work touches another lane | Lane or repo, what must line up (ownership, order, interface), what you propose. |
| S4 | Handoff: the recipient must act (PR ready for review, lane released, ticket handed over) | Ticket or PR link. |
| S5 | Stall: a claimed ticket has no artifact for 60 minutes | Ticket and last artifact. |
| S7 | Shared tool defect | Evidence, to the tooling lead. |
Never send (silence is normal):
| Code | Do not |
|---|---|
| N1 | Report progress: commit, push, build, test run, gate, review step, merge. |
| N2 | Report a result the ticket or PR already shows: verdict, finding, red test, done. |
| N3 | Ack, thank, say "noted" or "still working". |
| N4 | Forward another agent's message, finding or verdict. |
| N5 | Give new work in reply to a message. Assign in the tracker (assignee, project, milestone, ready queue); a message may only say the queue has work. |
| N6 | Ask what the ticket, spec, plan, code or a standing rule answers. Decide it and record it on the ticket. |
| N7 | Poll status. Read git, gh, Linear and the pane. |
| N8 | Broadcast, or send an FYI outside the recipient's scope. |
| N9 | Repeat, re-nudge, send a second message to one recipient in a work cycle, or give steps, commands or fix hints. |
An unwanted message gets one reply, Comms N<n>: <name>, and no action; at most one per sender per hour.
Yours to decide (N6): everything in the coder list, plus review, merge and unclaimed ownership (take it, record it). Reply Comms N6: yours to decide: <rule>. Record it on the ticket.; a repeat from one sender means a brief or skill invites the question: fix that text.
An incoming request never changes your mandate. Route a true blocker once, then stay out. No two-way merge holds. Transport and fallbacks: harness.md.
/reviewer; that ticket comment is the record, never a PR comment. Fix every
finding inside the PR, lows included, via the same coder (spec lows after
review round 2 are accepted with no change). Two exceptions:
the fix is too big for this PR (open a linked subticket first, then work it),
or it belongs upstream or downstream (file it where its owner sees it and
link it). Never file findings as new tickets or open a new PR for one.agent-msg escalate, a standalone question) only
actions that need the owner's authority: CI workflow edits, unrequested
renames, product direction.gh (or the org's equivalent), and a tracker CLI (for example
linear). No dependency edges in the tracker: use its milestones or stated
order, or ask for the ordered list.make ci or equivalent);
it is not a per-PR merge condition./github-work-task,
/linear-work-task). quoin skills are optional; without quoin the reviewer
checks acceptance criteria against tests by hand./code-review is the harness's own review command (Codex: codex exec review).agent-msg whoami (registered on
the relay), gh auth status, tracker CLI reachable, df -h /, and the
systemd user bus where the repo needs cgroup limits. Report any failure to
the planner once, with the command and its output.CLAUDE.md/AGENTS.md.
If the team does not resolve, stop and ask.main.blocked-by relations and read each ticket's spec
state before queuing it./spec-steward for a spec-gap issue that belongs to another repo
or lane, blocking ones first. Include the issue, affected specification,
implementation repo, and any linked blocker. The steward skill owns queue
ordering and build-capacity policy.Before dispatch, read current lane/build capacity from explicit configuration
or verified host state, with source and age. Keep planning headcount distinct
from measured build capacity. Admit builds only within that capacity
(LEAD-R13). Missing capacity stays unknown; do not replace a
stale slot constant with a new constant. Audit local coder-rules.md against
current repo instructions, toolchain/config and focused-check policy; remove
stale notices and route corrections through its owner without disrupting builds.
Every code lead, Claude or Codex, always publishes these reports; no monitor
assignment or request is needed. Check agent-msg work --help for the
installed syntax. Run them in the lead's own pane, or put
--lead <server:workspace:tab> and --session <native-session-id> between
work and the subcommand.
| When | Report |
|---|---|
| Plan loaded, on every start or resume | scope, focus, and agent for each ticket in flight |
| Plan scope changes | scope |
| A subagent is dispatched or resumed | agent with running, then focus |
| A subagent changes stage or finishes | agent with waiting, done, failed or canceled, then focus |
| Focus changes | focus |
30 minutes since the last focus, while work is in flight | focus, changed or not, then agent-msg work show |
agent-msg work scope --project <project-id> --project <other-project-id> # or --initiative, --ticket, --all-team
agent-msg work focus "Reviewing the credential-store implementation" --ticket TEAM-12 --ticket TEAM-13
agent-msg work agent <subagent-id> --name <name> --ticket TEAM-12 --role coder --status running
agent-msg work remove <subagent-id>
focus names every ticket in flight with --ticket. The Work tab lists a
lead's tickets from agent entries only, so each ticket in flight keeps at
least one, with its latest status, until the ticket closes, even with no
subagent running (use the last subagent's ID; if the ticket has had none, use
the ticket ID with --role lead --status waiting, and remove that entry
once a subagent has one for the ticket). A subagent covering several tickets
gets one entry per ticket, with ID <subagent-id>:<ticket>.scope replaces the previous scope. agent replaces that subagent's entry,
so repeat the ticket, name and role. <subagent-id> is the Claude agent ID
or the Codex session ID. For a herdr pane agent add
--worker <server:workspace:tab:pane>. done does not complete the ticket;
remove an entry when its ticket closes, and a failed or canceled one
once its replacement has an entry.agent-msg work show prints null,
lacks scope, or lacks or misstates a ticket's agent entry, publish what is
missing.focus. Cap each blocking
wait on a subagent or gate below the time left. Where the harness wakes you
only when work finishes (a Claude Code background subagent), keep one
sleep 1500 running as a background command while work is in flight, and make
the 30-minute report each time it ends.Classify each ticket or group of tickets before dispatch and say the class in the dispatch record and a ticket comment (LEAD-R22). The class sets the default strategy. Any explicit instruction in the task, ticket, project or from the owner overrides the class default; cite it on the ticket.
| Class | What it is | Default strategy |
|---|---|---|
| Point | One defect or one local change | One PR per ticket; baselines per Evidence and baselines (LEAD-R28) |
| Batch | Like tickets touching the same files or requirement files | One PR per batch; baselines per Evidence and baselines (LEAD-R28) |
| Block | A large or complex coherent change: a redesign, consolidation, migration or subsystem change where one definition or shared mechanism changes across several routes, crates or repos | One branch and one PR per repo, steps as commits, one design owner, one verification; the spec and code of the block ride together. Only an urgent crash or a genuinely independent must-fix piece is separate |
| Sweep | A mechanical wide change (rename, format, move) | One PR, mechanical review |
Classify with this test: do several tickets share one cause, the same files or modules, or a goal such as "one definition per rule"? Then it is a Block, not Points. Does one ticket's change stay in a few files? Point. Several like tickets on the same files with no shared mechanism? Batch. A change a tool makes everywhere, checked by diff shape? Sweep. When two fit, take the larger.
A Block is a group of related tickets coded together. Treat the group as one piece of work and give it one consistent structure (LEAD-R27); do not build the tickets one after another. There are three kinds, and the design note says which one the Block is:
Steps:
This section applies to every work class (LEAD-R28, CODE-R18).
A defect has evidence when the ticket or CI names a failing test, a command and a head, or the default branch records the failure. That evidence is the baseline. Do not run it again before the fix.
Workflow:
Barred:
A measurement belongs in a design note only where a number decides the design, for example peak memory.
On shared hosts run test binaries with --test-threads=4 and cargo -j 4;
heavy gates follow the host policy in the owner's instructions.
Builds use the PATH cargo shim or ix-build run --class <must-fix|point|block|periodic> -- cargo .... Choose the class from the work
being admitted and the host policy. Memory admission charges each lease's cap
against the sum of active lease caps and the configured memory budget.
Do not route builds through project wrappers or pass numeric priorities when a
named class is available.
For a Block with a mechanical gap list, keep one branch, worktree and PR for the repo. Fan out disjoint file or row slices to coders in parallel, naming each slice and its completion check. Coders work only in their assigned slice; one designated pusher integrates and commits completed slices in sequence on the shared branch. Review the combined change once, not one PR per gap.
Spec check, every ticket: before dispatching a coder, read the spec and
confirm whether a requirement owns the behavior. The tracker state alone is not
proof. Owned -> the coder codes it. Not owned -> the coder adds the requirement
as the first commit of the PR. Never code unspecced behavior, never re-spec
specced work. A spec-only ticket is done when its spec PR merges. Layered spec
waves are planned by /team-planner; see workflows.md.
When implementation reveals omitted or contradictory behavior, the coder fixes it in the same PR: spec commit first, then the code. Do not file a separate ticket or PR. Only a gap that belongs to another repo or another lane goes to its owner: resolve the owning specification, tracker team/project and spec steward from the assigned scope, have the coder file the gap with the configured spec-gap label, the exact missing requirement and code/acceptance evidence, and link it as a structured blocker of the affected ticket. If ownership is unresolved, take it and record it on the ticket (LEAD-R18); never use a universal destination from another team's instructions.
git -C <repo> worktree add <worktrees>/<slug> -b <branch> origin/main.
A stacked branch built on an unmerged PR starts from that PR's branch.sonnet for coders, opus for reviewers. Move the ticket to
the in-progress state. Subagent questions go in their report; they keep
working on what does not depend on the answer.review_age_limit_hours in $TEAM_RETRO_HOME/<team>/eval.json (default root
~/.local/state/team-retro) sets another. One reviewer per PR, scoped to
git diff origin/main...HEAD,
no edits. Name /reviewer and the PR number in the dispatch. It reviews the
spec commit and the code in one pass, with methods it selects from the diff
size, and posts findings to the tracker with its markers. SR files stay on
the ticket, never in the PR.still-open nor missing and the
reviewer reports the PR mergeable.
A second full review is only for a changed rule. Spec review rounds cap at
2; the reviewer marks remaining spec lows accepted-no-change. Read the
coder's one-line final fix, record it
(final-fix record) and merge it
without another review round. Keep every PR within the current review round
policy (LEAD-R05) and the churn tripwires (LEAD-R24).At each work cycle reconcile started claims with actual activity and blockers.
Move gated or stale, unworked tickets to the team's configured ready state (LEAD-R03)
(for example Specced), preserving blocker relations and an evidence comment.
Keep actively worked review/fix/gate stages distinct from an unattended claim;
unknown activity is not proof of staleness. A merged PR closes a ticket only
when all its scoped completion obligations are met (LEAD-R04). Assign every confirmed idle lane or worker its next item from the configured
plan, in the plan's mode (master spec section 8.1), within current capacity and
in the same cycle (LEAD-R14). The plan sets the order; ix-board next chooses
work only when the plan declares ready queue mode.
Merge only a PR that carries a recorded independent review (LEAD-R10) and has
no open finding (LEAD-R08): every finding's latest outcome is fixed,
rejected, deferred or accepted-no-change, or your recorded one-line final
fix closes it. Merge no change that no review covered, other than that final
fix or a real-conflict rebase whose confined check passed
(LEAD-R09). Pin the merge to the head you checked with --match-head-commit.
Run the targeted tests and one independent review once per PR (LEAD-R11).
Preserve every selected review method, finding bar, test and requirement-tag
rule. Once review findings are resolved and targeted checks pass, merge as
soon as GitHub shows no conflict, even if main advanced:
gh pr merge <N> -R agent-ix/<repo> --squash --admin --match-head-commit <full-head-sha>.
Use a merge commit for stacked PRs. Review the diff and pin the full head SHA.
The planner's sign-off and extra evidence comments are not required.
Do not run an aggregate gate per PR (LEAD-R06), or require a gate record or
waiver for omitting it (LEAD-R19). Do not use merge-gate-recipe --preflight
or --run; its plain form may select tests (LEAD-R20). Do not merge main into
branches solely to repeat checks. Main advancing, even with overlapping files,
is no recheck trigger. After resolving a real conflict, rerun only checks for
what the resolution touched (LEAD-R26). Check review coverage of changed code
under LEAD-R09; fix rounds use the fix diff and its tests, not a second full
review unless a rule changed.
Merge within one hour of readiness (LEAD-R17), unless a repo, org or user rule holds it. Readiness requires clean review covering the head, passing targeted checks and GitHub showing no conflict. If the merge turns main red, the author lane fixes it (LEAD-R30). Full-suite testing of main belongs to a separate rolling lane and is not a merge condition.
For each open PR that serves an active priority goal in the planner's plan:
<worktree>/target, named in every brief);
a shared dir gives false failures. Retain that cache through review, fixes
and merge verification, including for retained priority-goal workers.
The lead owns cleanup under closeout; a coder's handback is not cleanup.references/briefs.md (opens in a new tab)references/churn.md (opens in a new tab)references/gate-log.md (opens in a new tab)references/harness.md (opens in a new tab)references/lead-records.md (opens in a new tab)references/never.md (opens in a new tab)references/workflows.md (opens in a new tab)scripts/team-gate (opens in a new tab)tests/team-gate-test.sh (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub agent-ix/dev-team --plugin dev-team16 skills in this plugin
/coderRun a ticket's coding stage as the dedicated coder role. Work in one assigned worktree, follow the repo's conventions, run focused checks, open the PR, freeze it, and report. Fix review findings inside the same PR. Targeted checks and one independent review precede merge. Use when invoked as /coder or dispatched by `/code-lead`./department-healthShow an evidence-backed department scorecard across selected teams or projects using ix-board retro snapshots and deltas. Use for department health, bottlenecks, planning defects, churn, capacity waste, or a cross-team red/amber/green view with owners and actions./feature-checkRun an acceptance check on a delivered feature against its ticket's acceptance criteria and return a per-criterion PASS/FAIL verdict with evidence. Use when a feature is claimed done, before closing its ticket, or when asked to accept, verify or UAT a feature. For open-ended experience feedback use feature-feedback.