Skip to content

btspoony/morning-star-harness

v3.11.2MIT

Morning Star — Agent Plugin for harness engineering workflows: a TS Harness Workflow Engine (@mstar-harness/engine) that enforces deterministic workflow gates, plus mstar-* judgment skills for multi-agent code delivery across OpenCode, Cursor, Codex, Kimi Code, ZCode, and omp.

grill-me

Interview the user relentlessly about a plan or design until reaching shared understanding, resolving each branch of the decision tree. Use when user wants to stress-test a plan, get grilled on their design, or mentions "grill me".

mstar-artifacts

Morning Star plan harness artifacts — {PLAN_DIR} main plans and durable review summaries, {SDD_DIR}/review/ ephemeral QC/QA bundles, {KNOWLEDGE_DIR} / {ITERATION_DIR} indexes, plus {HARNESS_DIR}/status.json (v2 root register) / {WORKFLOW_DIR}/<id>/snapshot.json (plan rows + leases + plan-scoped coordination/session/handoff/revision semantics) and {PROJECT_DIR}/<id>/residuals.json (residual register; severity SSOT, open/close lifecycle). Read when writing plans or QC/QA review bundles, maintaining knowledge/iteration indexes, reading or writing status/snapshot/register, or mapping QC severity to JSON. Required for @project-manager on status, residuals, and InReview/QC waves; @qc-specialist* before writing review bundle reports; @qa-engineer before closing R# when QA gate: mandatory. Verdict rules: leaf → mstar-roles/references/qc-specialist/report-template.md; PM → mstar-review-qc.

mstar-audit

Morning Star codebase audit — survey any repository and produce prioritized, self-contained improvement plans for the normal Prepare → Execute flow. Strictly read-only on source code. Use when asked to audit or survey a codebase, find improvement opportunities (bugs, security, performance, test gaps, tech debt, dependency upgrades, DX), suggest what to build next (direction/roadmap), or when the user says 'what should I improve / fix / refactor / upgrade in this codebase'. Loads for deep, evidence-first review of a pull request / branch / diff / working-tree changes / a single commit (the pr variant — 'deeply review a PR'). Per-variant process detail lives in references/ (codebase-audit.md full audit, pr-review.md PR review). Dispatched by PM under Task category audit.

mstar-branch-worktree

Morning Star 业务仓 Git 功能分支、worktree 隔离与三写域模型(L1 跨 plan:主 checkout control root + iteration integration worktree + 每 plan feature worktree + execution_lease,默认 gitignore 下经 control 绝对路径读写进程产物;L2 同 plan:references/parallel-writable-pre-dispatch.md,N 次 invoke ≠ 隔离)、Spec 集成分支、QC/QA 检出对齐(Review cwd / Working branch / plan_id / Review range / Diff basis 三审 + QA 逐字相同)。Read when PM writes Working branch / Branch policy, iteration/parallel writable dispatch, QC/QA checkout alignment, or guarded post-merge worktree/branch cleanup (mstar worktree cleanup) is needed.

mstar-coding-behavior

Morning Star 跨角色通用编码行为准则 —— 任何实现、调试、重构、审查任务动手前必读。约束 Think Before Coding(先读懂再改、显式假设、不静默猜测)、Simplicity First(YAGNI、The Ladder、simplify: 标记、最小耐久切片)、Surgical Changes(改动可追溯、Bug 修根因定向检查直接调用点、不 piggyback)、Debugging(先复现、一步一测、修前写复现测试)、Review Feedback Handling(先核实再改、证据反驳)、Goal-Driven Execution(非平凡逻辑留可运行检查、Step→verify)。@fullstack-dev* / @frontend-dev / @architect / @qa-engineer / @ops-engineer / @prompt-engineer 必读;QC 核对手术范围时必读。不覆盖分支门禁、QC/QA 路由、Assignment 权限。

mstar-compound

Morning Star 知识结晶 —— 将已解决问题的经验沉淀为结构化知识文档,存入 {KNOWLEDGE_DIR};迭代收口时从 {ITERATION_DIR}/<iteration-id>/ package 提升 specs/guides。支持 Bug track 与 Knowledge track 双轨。含重叠检测、可发现性检查、CONCEPTS.md 协同。触发:iteration-close(mstar-iteration §3.2)或独立触发。产出:{KNOWLEDGE_DIR}/<category>/<slug>.md。

mstar-compound-refresh

Morning Star 知识维护与项目知识 bootstrap —— 审查 {KNOWLEDGE_DIR} 文档是否仍准确、去重叠合并、清理过期知识;或从代码库提炼 CONCEPTS.md、基线 knowledge 脚手架(无/残旧/空白 knowledge)。STRATEGY.md 创建委托 **mstar-strategy**。触发:mstar-compound 发现可合并文档、定期维护、项目缺 CONCEPTS.md/{KNOWLEDGE_DIR}、stale knowledge scaffolding、显式 bootstrap 请求、或显式 refresh。产出:更新/合并/删除知识文档 + 维护报告;或 bootstrap 产物(CONCEPTS.md、基线 knowledge)。

mstar-conventions

Morning Star (启明星) harness 计划目录约定 —— {HARNESS_DIR} / {PLAN_DIR} / {SDD_DIR} / {ITERATION_DIR} / {KNOWLEDGE_DIR} / {SPECS_DIR} / {WORKFLOW_DIR} / {PROJECT_DIR} 发现与初始化(默认 .mstar/,兼容 .agents/)、docs 与 harness 子树边界、review bundle、未启用 plan 时的工作方式、Spec 集成分支与多 Plan 实现分支(显式 base / merge 靶 / PR target)、Morning Star plan-writing path gate、工期预估(agent-oriented)。**必须**在读写 .mstar/ / .agents/、初始化 harness、编排含 plan 的任务、或对齐 metadata.primary_spec 时 Read;@project-manager 开 plan 任务前必读。plan 文件 / status / residual / review bundle / knowledge → **mstar-artifacts**;分支与 QC 检出 → **mstar-branch-worktree**。

mstar-design-md

DESIGN.md design system specification for Morning Star projects. Create, audit, and maintain project-level design tokens (Colors, Typography, Spacing, Elevation, Motion, Shapes, Components, Voice & Content) using Vercel Geist as reference template. Three-level completeness checklist (MVP/Standard/Production) with built-in upgrade placeholders. Supports light/dark dual-theme via DESIGN.md + DESIGN.dark.md sharing same token names with different values. Prepare 阶段由 @architect 主责创建,@product-manager 提供设计需求;@frontend-dev / @fullstack-dev 实现 UI 时消费;@qc-specialist / @qa-engineer 审查 UI 对齐 DESIGN.md。Read when PM assigns DESIGN.md creation in Prepare, initiating a new UI project, @architect defining a design system, implementing styled components, auditing UI against design spec, adding dark theme, or user mentions "DESIGN.md" / "design tokens" / "design system". Phase gate → **mstar-phase-gates**; paths → **mstar-conventions**.

mstar-dispatch-gates

Morning Star 派发与委派门禁 —— 仅 PM 可增派 subagent、Execute as 与 Delegation、承接方反递归 NEVER 红线、**子 Assignment 继承 plan 作用域且 credential/session 不下发 leaf**、SDD 独立就绪任务并行派发、**SDD 路径 plan QC 强制 tri-review(N=3)**、inline 单席 QC 例外、Assignment 文案≠派发、未齐不发、**invoke 角色字段必填(漏写=静默 generic 回退=派发未完成)**。project-manager 派发时必读;leaf 动手前必读反递归。worktree 见 mstar-branch-worktree;SDD 见 mstar-sdd;宿主见 mstar-host;scoped plan 路线见 mstar-iteration plan-scoped-pm.md。

mstar-e2e

Runs separately requested E2E, real-browser, device, or installed-deployment verification and produces scoped evidence. Loads only for an explicit user request or amazing-e2e-check entry; never from routine QA, UI changes, missing screenshots, or review recommendations.

mstar-engine-legacy

Morning Star 条件契约档案(engine-absent fallback)。宿主无 engine 能力(无 mstar CLI、无 engine import、engine 约束未激活)时需要被 engine 校验接管的 contract 全文时使用:status v1→v2 字段历史、lease claim 协议全文、各宿主 QC 座次 N=3/N=1 重述、反递归完整清单、Engine-check 样板说明。engine 约束激活(或宿主含 engine 能力)时不加载;运行时 skills 的 engine-check 指针为权威契约。

mstar-harness-core

Morning Star (启明星) harness **生命周期 / 授权语义权威与全局入口** —— 信息源优先级、最小交付循环、状态机与 Done 权限、Task category 路由(含 quick 禁豁免)、@explore 边界、长任务纪律、核心研发守则、护栏不变量、Morning Star Skill 索引与宿主入口。加载**选择**权威在 **mstar-roles**(hub § Load Order 按 Assignment Skill presets: 决策;本 skill 不另设全局必读表):PM 与标准路线仍以本 skill 为全局入口;独立直接调用专题时本 skill 是首个依赖;explicit none 角色路线以身份 + 角色自有方法自洽(唯一 hub bootstrap 例外)。@project-manager 开轮必读 + mstar-dispatch-gates / mstar-phase-gates / mstar-conventions 等;实现/审查/QA 按其角色 preset 清单加载。Prepare/派发/Git/residual/QC 细则在专题 skill,不在此重复。版本漂移(version drift)/ CLI 与插件版本不一致 / 提示更新插件或 CLI → 按「版本对齐」节处理(doctor 检查 + 定向更新提示)。

mstar-host

Morning Star host adapter for OpenCode, Cursor, Codex, Kimi, ZCode, omp, and dsh. Use after mstar-harness-core whenever host entry, clarify, dispatch, plan mode, or tool UX differs by platform - per-host subagent invoke, plan-mode bridge, parallel dispatch, and skill/command loading. Auto-detect the host from session tools, then Read references/<host>.md. Always load after mstar-harness-core.

mstar-iteration

Use when starting, driving, resuming, or closing a Morning Star iteration, or running an autonomous Phase 1–6 loop — including without a slash command (e.g. 'start an iteration', 'drive the iteration', 'run an autonomous loop'). Manages Phase 1 (default interactive direction lock; opt-in autonomous), Autonomous Execute, iteration-close (compound promotes knowledge), PR delivery, the PR merge-ready loop, and the Phase 6 post-merge close. Branch SSOT: workflow snapshot (workflows/<id>/snapshot.json) + compass frontmatter.

mstar-phase-gates

Morning Star Spec-Driven 双阶段门禁:Prepare(specify → clarify → plan)、Execute(plan(locked) → tasks → implement;多 task 默认 Execution mode: sdd)。覆盖意图门禁、长期目标优先、分批 roadmap 强制落盘、clarify 纪律、hotfix 压缩路径、可验证编辑、Phase Gate 最小证据。Read when judging Prepare/Execute gates, before first implement dispatch, when product/architect enter Prepare, or to justify not skipping plan/clarify. @project-manager 每轮非 hotfix 必读;@product-manager/@architect 锁规格/plan 必读 Prepare;实现角色读 Execute + hotfix 例外。quick 禁豁免规则在 mstar-harness-core。

mstar-project-governance

Morning Star 项目治理层约定 —— projects/<id>/roadmap.md 编写约定(frontmatter schema + body 约定)与 projects/<id>/residuals.json register 生命周期(open → verified close in place、severity 枚举、provenance 字段)、_default 项目回退规则。写/审 roadmap、登记或关闭 residual、判断项目归属(含无项目流程的 _default fallback)、或对齐 roadmap/register 与 engine 校验时 Read。schema 事实与 packages/engine/src/project.ts 逐字一致;字段语义 SSOT → mstar-artifacts;路径符号 → mstar-conventions。

mstar-review-qc

Morning Star QC orchestration — **SDD mandatory plan QC tri-review** ({SDD_DIR}/review/qc1.md…qc3.md + consolidated); inline/hotfix single-seat (qc.md in review bundle); PM dispatch timing, tri identity gate, residual registration contract, layer boundaries, durable plan summary. Leaf QC execution → **mstar-roles/references/qc-specialist/**. Per-task review is **mstar-sdd** (L2). Primary reader: **project-manager** when dispatching or consolidating QC.

mstar-roles

Morning Star role prompt hub and the **single load-selection authority** for Morning Star roles — agents/*.md shells plus full behavior in references/*.md. Role files are **identity-first** (mission / responsibilities / NEVER rules); topic mstar-* skills appear only as **PM-activated skill presets** (Assignment Skill presets: field), not default dependencies — this hub's § Load Order owns the omission / none / named-preset / resume / unknown-preset decision. Always load for any Morning Star role (project-manager, product-manager, architect, code-reviewer, fullstack-dev, fullstack-dev-2, frontend-dev, qa-engineer, qc-specialist*, ops-engineer, writing-specialist, prompt-engineer). Cross-role **Role → skill presets** summary in this SKILL.md; per-role preset menus in references/*.md are authoritative once PM activates them. Full topic skill index → **mstar-harness-core**.

mstar-sdd

Morning Star subagent-driven development (SDD) — file handoff, per-task implementer + task reviewer (L2), progress ledger, branch review-package for plan QC tri (L3). **Implementer session** fresh (default) or **sticky** (same dev subagent across tasks — references/sticky-implementer-session.md). **Must** Read when project-manager runs Execution mode: sdd (multi-task plan, single-plan, or iteration Phase 2), dispatches SDD implementer/reviewer subagents, or prepares review-package paths. Leaf implementer/reviewer subagents skip PM sections via SUBAGENT-STOP in dispatch prompts.

mstar-skill-authoring

Agent skill 撰写 / 重写 / 优化规范(SkillsBench 实验门控)。在新建任意 skill、大改 SKILL.md、改写 description 触发契约、压缩过长 body、评审 skill 结构、或判断某段行为塑形文案是否值得保留时读取。适用于任何领域的 skill,不限于本仓库专题;不用于普通应用实现。

mstar-strategy

Morning Star 全局战略方向 —— 创建并维护 STRATEGY.md(项目级战略文档),作为 brainstorm/plan 的上游锚点。定义产品愿景、技术方向、不做事项、决策原则。触发:项目初始化、方向性决策变更、或 PM 要求战略对齐时。

mstar-use-cli

Use when a Morning Star agent must choose, run, or interpret mstar-harness / mstar CLI commands — picking the command family for a task (plan row, lifecycle close, register write, report landing, worktree and lease checks, path resolution), satisfying the preconditions a family needs (harness root, control root, neutral cwd, session envelope, version tokens), reading exit codes 0 / 1 / 2 and stable refusal codes, or running the versioned read-modify-write handshake. Also load it when a topical skill's engine-check callout points at the CLI, or when a command refused and the cause looks like a missing precondition. Flags and option wording are never restated here — the CLI help owns them.

pm

PM entry shim — force project-manager orchestration when the user invokes /pm or this skill. General per-plan PM work: this skill + project-manager.md. Formal iteration lifecycle: mstar-iteration (host commands/ may orchestrate Phase 1–5). Boot, routing, dispatch SSOT → mstar-roles/references/project-manager.md and topic mstar-* skills — not here. Host entry spelling → the active mstar-host reference.