/lumio:subagent-driven-developmentfrom lumio
Dispatches implementer subagents wave-by-wave to execute task cards from a plan: contract cards first, then parallel implementation waves, merged into one closeout review.
Ships in lumio. 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.
Execute a plan by dispatching fresh implementer subagents wave by wave: the contract card(s) first, then each wave's implementation cards in parallel (non-overlapping file sets, isolated worktrees), merge, and hand the merged diff to one closeout review.
Why subagents: You delegate tasks to specialized agents with isolated context. By precisely crafting their instructions and context, you ensure they stay focused and succeed at their task. They should never inherit your session's context or history — you construct exactly what they need. This also preserves your own context for coordination work.
Core principle: contract first + parallel waves + one review of the merged whole = fast iteration without cross-worker drift. The parallel boundary, merge policy and review timing have a single authority — rules/dispatch.md(「并行边界与合入」「审查闭环」「收口门槛」); this skill only operationalises them.
Narration: between tool calls, narrate at most one short line — the ledger and the tool results carry the record.
Continuous execution: Do not pause to check in with the user between cards or waves. The only reasons to stop are: BLOCKED status you cannot resolve, ambiguity that genuinely prevents progress, a plan contradiction (Pre-Flight), or all cards complete. "Should I continue?" prompts and progress summaries waste their time.
digraph when_to_use {
"Have a plan or task cards?" [shape=diamond];
"Subagents available?" [shape=diamond];
"subagent-driven-development" [shape=box];
"Inline Fallback (see below)" [shape=box];
"writing-plans first" [shape=box];
"Have a plan or task cards?" -> "Subagents available?" [label="yes"];
"Have a plan or task cards?" -> "writing-plans first" [label="no"];
"Subagents available?" -> "subagent-driven-development" [label="yes"];
"Subagents available?" -> "Inline Fallback (see below)" [label="no"];
}
status: in_progress. Check the ledger (Durable Progress) — cards marked complete there are done.scripts/task-brief PLAN_FILE N, and dispatch an implementer (./implementer-prompt.md) in its own isolated worktree (Claude Code: Agent tool isolation: "worktree"; the 【文件集边界】 / 【环境】 lines come from references/dispatch-templates.md). Cards with overlapping file sets or an unresolved dependency edge go to a later wave, never side by side.closeout-gate for the review level; run the project's full 收口门槛 once; generate scripts/review-package MERGE_BASE HEAD (MERGE_BASE = git merge-base main HEAD) and dispatch the closeout reviewer (./code-reviewer.md) with the printed path. Findings → ONE fix subagent carrying the complete list → re-review. Then set the plan to status: completed and finish the branch per rules/dispatch.md「并行边界与合入」.Per-card review is not part of the loop. The one exception: a card touching the red-line surface (rules/, hooks, .claude/, CI config, auth / security) is reviewed before it is merged, with ./task-reviewer-prompt.md.
Before dispatching wave 0, scan the plan once for conflicts:
Present everything you find to the user as one batched question — each finding beside the plan text that mandates it, asking which governs — before execution begins, not one interrupt per discovery mid-plan. If the scan is clean, proceed without comment. The closeout review remains the net for conflicts that only emerge from implementation.
Use the least powerful model that can handle each role, and name it explicitly in every dispatch — an omitted model inherits the session's, often the most capable and most expensive. When genuinely unsure, inherit rather than guess low: cheap models take 2-3× the turns on multi-step work and cost more overall.
| Work | Model tier |
|---|---|
| Transcription-grade implementation (plan text contains the complete code); single-file mechanical fixes | cheapest |
| Implementation from prose specs; contract cards | mid-tier (the floor for these roles) |
| Multi-file integration, debugging | standard |
| Architecture and design; the closeout whole-branch review | most capable available |
Implementer subagents report one of four statuses. Handle each appropriately:
DONE: Confirm the report contains the covering tests, the command run, and the output (a bare "tests pass" is not evidence). Merge the worktree, record the ledger line. Red-line cards only: generate scripts/review-package BASE HEAD (BASE is the commit you recorded before dispatch — never HEAD~1, which silently drops all but the last commit of a multi-commit task) and dispatch the task reviewer before merging.
DONE_WITH_CONCERNS: The implementer completed the work but flagged doubts. Read the concerns before merging. If they are about correctness, scope, or the contract, address them before the merge. If they are observations (e.g. "this file is getting large"), note them in the ledger for the closeout reviewer and proceed.
NEEDS_CONTEXT: The implementer needs information that wasn't provided. Provide the missing context and re-dispatch.
BLOCKED: The implementer cannot complete the task. Assess the blocking condition:
Never ignore an escalation or force the same model to retry without changes. If the implementer said it's stuck, something needs to change.
The closeout reviewer may report "⚠️ Cannot verify from diff" items — requirements that live in unchanged code or span cards. These do not block the rest of the review, but you must resolve each one yourself before closing: you hold the plan and cross-card context the reviewer lacks. If you confirm an item is a real gap, treat it as a failed review — dispatch the fix and re-review.
agents/reviewer.mdscripts/review-package MERGE_BASE HEAD and pass the printed path (or, without bash: git log --oneline, git diff --stat, and git diff -U10 for the range, redirected to one uniquely named file). The output never enters your own context, and the reviewer sees the commit list, stat summary, and full diff with context in one Read call.Everything you paste into a dispatch prompt — and everything a subagent prints back — stays resident in your context for the rest of the session and is re-read on every later turn. Hand artifacts over as files:
scripts/task-brief PLAN_FILE N — it extracts the card's full text to a uniquely named file and prints the path. Compose the dispatch so the brief stays the single source of requirements. Your dispatch should contain: (1) one line on where this card fits in the project and which wave it is in; (2) the brief path, introduced as "read this first — it is your requirements, with the exact values to use verbatim"; (3) the contract artefacts from wave 0 the card consumes (paths, not pasted contents) and the 【文件集边界】 line; (4) your resolution of any ambiguity you noticed in the brief; (5) the report-file path and report contract. Exact values (numbers, magic strings, signatures, test cases) appear only in the brief and the contract files.…/task-N-brief.md → report …/task-N-report.md) and put it in the dispatch prompt. The implementer writes the full report there and returns only status, commits, a one-line test summary, and concerns.Conversation memory does not survive compaction. In real sessions, controllers that lost their place have re-dispatched entire completed waves — the single most expensive failure observed. Track progress in a ledger file, not only in todos.
cat "$(git rev-parse --show-toplevel)/.sdd/progress.md". Cards listed there as complete are DONE — do not re-dispatch them; resume at the first wave with an incomplete card.Task N (wave W): complete (commits <base7>..<head7>, merged). Worker concerns and observations go on the following lines, prefixed note: — the closeout reviewer reads them.git log over your own recollection.git clean -fdx will destroy the ledger (it's git-ignored scratch); if that happens, recover from git log.status: in_progress when execution starts and status: completed when the closeout review passes (enum enforced by spec-lint).You: I'm using Subagent-Driven Development to execute this plan.
[Read plan once: .spec/plans/feature-plan.md — 1 contract card, 3 implementation cards in 2 waves]
[Create todos; set plan status: in_progress; ledger empty]
Wave 0 — Task 1: shared types + API signatures
[task-brief 1; dispatch implementer; DONE with lint + tsc output]
[Merge worktree; ledger: Task 1 (wave 0): complete]
Wave 1 — Tasks 2 and 3 in parallel (disjoint file sets, both consume src/types.ts)
[task-brief 2, task-brief 3; dispatch two implementers, each with isolation: "worktree"]
Implementer 2: DONE — 5/5 covering tests pass, committed
Implementer 3: DONE_WITH_CONCERNS — "the retry contract has no max-attempts field"
[Concern touches the contract → dispatch a contract fix on Task 1's files; re-dispatch Task 3 with the updated contract]
[Merge both; ledger updated with note: lines]
Wave 2 — Task 4 (depends on 2 and 3)
[task-brief 4; dispatch; DONE; merge; ledger]
Closeout
[closeout-gate → 快审; run full 收口门槛 once: green]
[review-package MERGE_BASE HEAD; dispatch closeout reviewer with the path + ledger]
Reviewer: 通过, 1 × P2 (naming) → fix subagent with the full list → re-review: 通过
[plan status: completed; finish branch per rules/dispatch.md]
Never:
rules/dispatch.md「并行边界与合入」)scripts/task-brief — instead)scripts/review-package MERGE_BASE HEAD) and name the printed path in the promptgit log) after any compaction or resumeIf subagent asks questions: answer clearly and completely; provide additional context if needed; don't rush them into implementation.
If the closeout reviewer finds issues: one fix subagent with the full list → reviewer reviews again → repeat until approved. Don't skip the re-review.
If a subagent fails its card: dispatch a fix subagent with specific instructions; don't fix manually (context pollution).
Subagents should use:
rules/dispatch.md「编码约定 · 测试分级」; small cards run existing tests onlyWorkspace isolation and branch finishing follow rules/dispatch.md「并行边界与合入」— no separate skill.
When the host has no subagent support, execute the plan inline in this session:
status: in_progress.agents/reviewer.md, set the plan's frontmatter to status: completed, then finish the branch per rules/dispatch.md.This mode loses fresh-context-per-card and independent review — a known degradation. Apply extra skepticism when self-reviewing.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub lumiogames/lumioagentspec --plugin lumio6 skills in this plugin
/brainstormingUse when starting creative work - creating features, building components, adding functionality, or modifying behavior - before any implementation. Explores user intent, requirements and design./spec-steward维护 LumioAgentSpec 的结构并把改动沉淀进知识库——放对位置(插件资产 vs 项目实例)、校验 frontmatter、同步索引与名册、更新状态。当新增或修改 Agent、Skill、知识或规则,或完成一处改动后需要沉淀时使用。/systematic-debuggingUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes/test-driven-developmentUse when implementing a large task (above the small-task threshold in rules/dispatch.md 测试分级) — feature, bugfix or refactor — before writing implementation code/writing-plansUse when you have a spec or requirements for a multi-step task, before touching code — either a deep step-by-step plan for one feature, or a set of non-overlapping task cards (contract cards first) for parallel fan-outOther plugins' skills for the same job