/morning-star-harness:mstar-sddfrom morning-star-harness
Implements subagent-driven development (SDD) with file handoff, per-task implementer and reviewer, progress ledger, and plan QC. Use when execution_mode is sdd and tasks are independent.
Ships in morning-star-harness. 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.
Read mstar-harness-core + mstar-dispatch-gates first. Paths → mstar-conventions; plan QC → mstar-review-qc.
execution_mode: sddexecution_mode: inline) or leaf self-dispatchDefault: fresh implementer per ready task + task-scoped review + plan QC on the changed diff and directly affected interfaces. Execution scope → mstar-harness-core § 定向执行与验证边界.
Optional: sdd_implementer_session: sticky — same implementer subagent across sequential tasks on one plan/branch; task reviewers stay fresh per task. SSOT → references/sticky-implementer-session.md.
Engine check: engine
implementerSessionStickyRulesto validate the sticky resume decision above (no CLI form yet). Onfail, do not proceed — fix and re-run. Contract →mstar-use-cli/references/checks-and-lints.md§ Engine check callouts.
Narration: at most one short line between tool calls — ledger and file paths carry the record.
Continuous execution: do not check in with the human between tasks. Stop only for BLOCKED, genuine ambiguity, or all tasks complete.
Before Task 1, scan plan once for:
Batch all findings for the human in one message. If clean, proceed silently.
Dispatch independent ready tasks concurrently after L2 worktree isolation. Keep one canonical per-plan SDD root; the primary coordinator alone updates its context.json and progress.md and records row state through public plan verbs against the ACTIVE store.db-backed authority, never raw state edits. Prepare context-dependent helper outputs serially. Each writable track has its own worktree/branch and immutable task-specific absolute brief/report/diff paths. Subdirectories are artifact namespaces, not another SDD root. Parallel leaves consume supplied paths directly, never shared-context helpers or mutable checkout selectors; do not share a writable session or implementer-session.json. Use fresh parallel implementers. Serialize only actual dependencies, overlapping ownership, a sticky session or delivery merge, naming the dependency. A reviewer may run alongside unrelated ready implementation. Only the coordinator reconciles returned evidence into the shared ledger and the addressed row.
Rescheduling checkpoint: a running background task is never a reason to stop scheduling. Re-run this ready-task check at the Phase-2 checkpoints named in mstar-iteration/references/phase-2-worktree-lease.md §2.4 — that file is the single authoritative home for the five checkpoint names and their reason vocabulary, and they are deliberately not re-listed here — and start every authorized independent ready task before waiting for an unrelated running task or plan. Waiting is valid only when nothing useful is ready: state the wait reason once and do not re-check or remind on unchanged facts.
Scope and credential boundary: each brief carries the inherited plan id and absolute SDD/brief/report/diff paths. Leaf implementers/reviewers receive no coordinator session file/reference, token/revision, operation id or lifecycle authority. The single primary coordinator explicitly addresses the row for ordinary progress and, after QC/PM Acceptance and declared-route proof, direct complete; own current context may be derived and explicit constraints remain checked. Neither the leaf nor the coordinator invents a per-row identity, claim, transfer or preparation ceremony to advance valid recorded source/defaults.
Dependent-task readiness: review approval alone does not make a prerequisite available. PM serially integrates the reviewed prerequisite commits, then creates or updates the idle dependent worktree from that integrated state before recording its BASE_SHA and dispatching. For each required reviewed commit, record git -C "$FEATURE_CWD" merge-base --is-ancestor <prerequisite-sha> <BASE_SHA> with exit 0; a missing commit blocks only that dependent task. Do not move an active task's base; independent ready tasks continue concurrently.
BASE_SHA (never use HEAD~1 later)mstar sdd workspace <plan-id> → SDD_DIR(iteration L1 从 feature cwd 调用时:MSTAR_CONTROL_ROOT=<main-repo-root>(= Git 派生的主 worktree 根;Git 主 worktree 发现失败(readMainWorktree 返回 null)时 fail closed)或 mstar sdd workspace <plan-id> <main-repo-root>;显式 Git root 必须与派生主根 canonicalize 一致,delivery checkout/外来检出被拒而非静默重定向;probe 仅查 status.json 或任一 workflow snapshot 文件存在性,不校验 workflows[](这是当前发现探针,不是 ACTIVE 状态读写路由);无文件命中则使用主根下的固定 .mstar(.agents/ 回退已退役),不因 linked worktree 缺文件而拒绝)mstar sdd task-brief <plan> N → brief filetask_budget (shape → mstar-roles/references/project-manager/dispatch-and-assignment.md § Assignment Template (Canonical); one-round capacity criterion → mstar-artifacts/references/plan-quality-bar.md item 7) — front matter is the only field contract, so a budget stated in the body declares nothingsdd_implementer_session: fresh (default) — new subagent; templates: references/implementer-prompt.mdsdd_implementer_session: sticky — first task: same as fresh + write {SDD_DIR}/implementer-session.json with host_agent_id; later tasks: host resume + references/implementer-continuation-prompt.md (see references/sticky-implementer-session.md)DONE: mstar sdd review-package BASE HEAD → diff filecode-reviewer (L2; not qc-specialist*; host fallback generic + C5b → mstar-host C5) — brief, implementer report, diff, Global Constraints, and the reviewer's own output REPORT_FILE = {SDD_DIR}/task-N-review.md — references/task-reviewer-prompt.md — never sticky resume for reviewers{SDD_DIR}/task-N-review.md — the always-on L2 report, never the implementer's task-N-report.md — before appending step 8: the earned Task quality and partial findings stand for the reviewed scope, but assigned review scope left uncovered blocks task-complete and dependent release, so PM routes the remaining scope through a fresh/tightened reviewer dispatch; it never overwrites an Approved earned for checked scope or invents Needs fixes because the budget endedNever dispatch parallel writers without isolated worktrees and disjoint ownership. Merge their outputs serially before producing the plan review-package.
Serial delivery merge commits use the already-configured identity; missing/failing identity is Blocked, never fabricate or use per-commit identity overrides → mstar-roles/references/_shared/leaf-executor-core.md § Git NEVER (repo writes).
Detail: references/file-handoffs.md.
Engine check: run
mstar sdd workspace <plan-id>/mstar sdd task-brief <plan-file> <task-number>/mstar sdd review-package <base> <head>(engineassertBaseSha,sddWorkspace,taskBrief,reviewPackage) to drive the loop steps above. Onfail, do not proceed — fix and re-run. Contract →mstar-use-cli/references/checks-and-lints.md§ Engine check callouts.
On dsh: implementer, reviewer and plan-QC-tri dispatches follow the mounted delegation channel — Agent Teams is the default on dsh for a root session with Team mode on (the
team_task_*tools exist only then; one durable teammate per writable track, reused across that track's tasks; reviewers and the tri take no durable teammate seat and run as fresh-contextworkflowread-only children — templatemstar-host→mstar-host/references/dsh-workflow-scripts.md),subagentis the fallback (where continuation resume still applies:implementer-session.json+references/implementer-continuation-prompt.md, host row →references/sticky-implementer-session.md§ Host mapping), andworkflowcarries read-only fan-out only. Board protocol, seat budget and wake discipline are not restated here →mstar-host→mstar-host/references/dsh.md§ Delegation channels +mstar-host/references/dsh-agent-teams.md.
| Status | PM action |
|---|---|
| DONE | review-package → task reviewer |
| DONE_WITH_CONCERNS | read concerns; fix scope issues before review |
| NEEDS_CONTEXT | provide context; re-dispatch. Budget overrun (the declared round cannot close its Files and gates) → split the task per mstar-artifacts/references/plan-quality-bar.md item 7 and re-dispatch with a fresh budget |
| BLOCKED | more context, split task, or escalate human — never same-model blind retry. Budget overrun → split the task per mstar-artifacts/references/plan-quality-bar.md item 7 and re-dispatch with a fresh budget |
⚠️ Cannot verify from diff does not block other findings. PM must resolve each before task complete.
mstar sdd review-package MERGE_BASE HEAD → branch diff in {SDD_DIR}/review/qc_mode: full tri-review, mandatory whenever execution_mode: sdd (single-plan or iteration) — with branch review-package path and report paths under {SDD_DIR}/review/; seat count → mstar-review-qc § 分派时机. Layer SSOT → mstar-review-qc/references/review-responsibility-boundaries.md. PM writes {SDD_DIR}/review/qc-consolidated.md and durable main-plan gate summary.references/file-handoffs.md):
mstar-harness-core Done rules and mstar-roles/references/project-manager/acceptance.md. The primary coordinator then uses direct complete with independent QC, acceptance and declared-route proof: iteration verifies the real serial merge; standalone development verifies registered source; report-only needs QC/PM Acceptance under the policy declared at registration without invented Git. Task ledger completion is not row Done, and row Done does not discharge workflow delivery → mstar-artifacts/references/plan-workflow-lifecycle-contract.md.PM at start: cat {SDD_DIR}/progress.md. Tasks marked complete are DONE — do not re-dispatch after compaction.
PM appends on clean review: Task N: complete (<base>..<head>, review clean, review: task-N-review.md) — the entry names the L2 report path the review closed on.
Minor findings → ## Minor (for plan QC) section in same file.
Engine check: engine
readProgressLedgerto read the ledger above (no CLI form yet). Onfail, do not proceed — fix and re-run. Contract →mstar-use-cli/references/checks-and-lints.md§ Engine check callouts.
HEAD~1 as review BASEtask-N-report.md (the report is {SDD_DIR}/task-N-review.md)host_agent_id in implementer-session.jsonThe SDD helpers are engine-backed commands under mstar sdd(引擎 CLI;原 bash 脚本已移除,行为语义不变)。Run the mstar binary from any checkout; MSTAR_CONTROL_ROOT / SDD_DIR remain honored, while MSTAR_HARNESS_DIR is retired (the value is read and ignored, no unset required).
| Command | Usage |
|---|---|
mstar sdd workspace | PLAN_ID [CONTROL_ROOT] → creates {SDD_DIR} under the verified main-worktree control harness (MSTAR_CONTROL_ROOT or 2nd arg when supplied); fail closed on Git main-worktree discovery failure or a supplied Git control root that is not main. status.json / snapshot existence is only a discovery probe, with directory / .mstar fallback; explicit non-Git standalone roots remain supported |
mstar sdd task-brief | PLAN_FILE TASK_N [OUTFILE] |
mstar sdd review-package | BASE HEAD [OUTFILE] |
mstar sdd check-context | Action-seam gate against resolved SDD context; arguments and refusal recovery → command --help |
Developer check evidence: the task report's command plus its observed result; a retained log is optional. Route and citation rule → references/file-handoffs.md § Optional retained output. mstar sdd exec stays PM-only.
references/file-handoffs.md — open when passing PM↔implementer artifacts as files, writing context.json / progress.md, or recording fix-loop evidence; paths and fix-loop evidencereferences/sticky-implementer-session.md — open when choosing fresh vs sticky for a multi-task plan or resuming an implementer on another host; fresh vs sticky, ledger, host resume, micro-batch fallbackreferences/implementer-prompt.md — open when dispatching an SDD implementer on a fresh session (first task or sdd_implementer_session: fresh)references/implementer-continuation-prompt.md — open when continuing the same implementer session for Task N>1 (sdd_implementer_session: sticky)references/task-reviewer-prompt.md — open when dispatching the one L2 per-task reviewer (spec compliance + code quality)mstar-artifacts/references/plan-quality-bar.md — open when dispatching SDD work, to check the plan meets the required self-containment standard; plan self-containment standard (plans must meet this before SDD dispatch)What SKILL.md sets; muted values are Claude Code's defaults
Claude Code refuses to install this plugin
.claude-plugin/plugin.json: agents: Invalid string: must end with ".md"
Checked against Claude Code 2.1.332's install rules. The listing below is what the repository ships; Claude Code cannot install it as published.
29 skills in this plugin
/drtDirect work entry: one View completes one bounded unit and ends, with no PM, plan row, Done, QC tri-review or delivery chain. Use when the user wants a bounded request executed directly (audit, review, cleanup, governance pass, docs, harness text) without iteration or multi-plan orchestration./grill-meInterview the user relentlessly about a plan or design until shared understanding, resolving each decision branch. Use when a plan or design needs stress-testing, or the user says 'grill me'./mstar-artifactsPlan artifacts: main plans, durable review summaries, QC/PM Acceptance bundles, workflow state/config/progress/evidence, issue capture, residual severity. Read when authoring or mapping them.Other plugins' skills for the same job