@mstar-harness/omp 3.6.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +63 -0
- package/agents/architect.md +35 -0
- package/agents/code-reviewer.md +90 -0
- package/agents/frontend-dev.md +33 -0
- package/agents/fullstack-dev-2.md +33 -0
- package/agents/fullstack-dev.md +33 -0
- package/agents/ops-engineer.md +33 -0
- package/agents/product-manager.md +35 -0
- package/agents/project-manager.md +32 -0
- package/agents/prompt-engineer.md +33 -0
- package/agents/qa-engineer.md +35 -0
- package/agents/qc-specialist-2.md +62 -0
- package/agents/qc-specialist-3.md +62 -0
- package/agents/qc-specialist.md +62 -0
- package/agents/writing-specialist.md +35 -0
- package/assets/icon.png +0 -0
- package/assets/logo-dark.png +0 -0
- package/assets/logo-dark.svg +6 -0
- package/assets/logo.png +0 -0
- package/assets/logo.svg +6 -0
- package/commands/amazing-pr-review.md +31 -0
- package/commands/codebase-audit.md +40 -0
- package/commands/iteration-drive.md +48 -0
- package/commands/iteration-loop.md +99 -0
- package/commands/iteration-start.md +122 -0
- package/dist/hooks/pre/mstar-gates.js +6579 -0
- package/dist/tools/mstar_dispatch_validate/index.js +6291 -0
- package/dist/tools/mstar_iteration_gate/index.js +6321 -0
- package/dist/tools/mstar_lease_verify/index.js +6343 -0
- package/dist/tools/mstar_path_resolve/index.js +6297 -0
- package/dist/tools/mstar_status_validate/index.js +6402 -0
- package/dist/tools/mstar_worktree_check/index.js +6343 -0
- package/harness-agents/architect.md +35 -0
- package/harness-agents/code-reviewer.md +90 -0
- package/harness-agents/frontend-dev.md +33 -0
- package/harness-agents/fullstack-dev-2.md +33 -0
- package/harness-agents/fullstack-dev.md +33 -0
- package/harness-agents/ops-engineer.md +33 -0
- package/harness-agents/product-manager.md +35 -0
- package/harness-agents/project-manager.md +32 -0
- package/harness-agents/prompt-engineer.md +33 -0
- package/harness-agents/qa-engineer.md +35 -0
- package/harness-agents/qc-specialist-2.md +62 -0
- package/harness-agents/qc-specialist-3.md +62 -0
- package/harness-agents/qc-specialist.md +62 -0
- package/harness-agents/writing-specialist.md +35 -0
- package/harness-commands/amazing-pr-review.md +31 -0
- package/harness-commands/codebase-audit.md +40 -0
- package/harness-commands/iteration-drive.md +48 -0
- package/harness-commands/iteration-loop.md +99 -0
- package/harness-commands/iteration-start.md +122 -0
- package/harness-skills/grill-me/SKILL.md +10 -0
- package/harness-skills/mstar-artifacts/SKILL.md +66 -0
- package/harness-skills/mstar-artifacts/references/knowledge-and-designs.md +110 -0
- package/harness-skills/mstar-artifacts/references/plan-files-and-reports.md +98 -0
- package/harness-skills/mstar-artifacts/references/plan-quality-bar.md +99 -0
- package/harness-skills/mstar-artifacts/references/status-and-residuals.md +472 -0
- package/harness-skills/mstar-artifacts/templates/README.md +7 -0
- package/harness-skills/mstar-artifacts/templates/plan.main.md +54 -0
- package/harness-skills/mstar-artifacts/templates/status.empty.json +5 -0
- package/harness-skills/mstar-audit/SKILL.md +151 -0
- package/harness-skills/mstar-audit/references/audit-playbook.md +175 -0
- package/harness-skills/mstar-audit/references/codebase-audit.md +103 -0
- package/harness-skills/mstar-audit/references/finding-format.md +69 -0
- package/harness-skills/mstar-audit/references/pr-review-seat-evidence.md +28 -0
- package/harness-skills/mstar-audit/references/pr-review.md +475 -0
- package/harness-skills/mstar-audit/references/security-review.md +219 -0
- package/harness-skills/mstar-branch-worktree/SKILL.md +236 -0
- package/harness-skills/mstar-branch-worktree/references/parallel-writable-pre-dispatch.md +68 -0
- package/harness-skills/mstar-coding-behavior/SKILL.md +167 -0
- package/harness-skills/mstar-compound/SKILL.md +109 -0
- package/harness-skills/mstar-compound/assets/resolution-template.md +94 -0
- package/harness-skills/mstar-compound/references/category-mapping.md +37 -0
- package/harness-skills/mstar-compound/references/compound-workflow.md +171 -0
- package/harness-skills/mstar-compound/references/concepts-vocabulary.md +44 -0
- package/harness-skills/mstar-compound/references/schema.yaml +122 -0
- package/harness-skills/mstar-compound-refresh/SKILL.md +154 -0
- package/harness-skills/mstar-compound-refresh/references/project-knowledge-bootstrap.md +164 -0
- package/harness-skills/mstar-conventions/SKILL.md +215 -0
- package/harness-skills/mstar-conventions/references/artifact-storage-paths.md +53 -0
- package/harness-skills/mstar-conventions/references/effort-estimation.md +38 -0
- package/harness-skills/mstar-conventions/references/harness-bootstrap-and-agents-layering.md +96 -0
- package/harness-skills/mstar-design-md/SKILL.md +142 -0
- package/harness-skills/mstar-design-md/references/completeness-checklist.md +181 -0
- package/harness-skills/mstar-design-md/references/design-md-spec.md +508 -0
- package/harness-skills/mstar-design-md/references/vercel-example.md +200 -0
- package/harness-skills/mstar-design-md/templates/DESIGN.dark.md.template +354 -0
- package/harness-skills/mstar-design-md/templates/DESIGN.md.template +474 -0
- package/harness-skills/mstar-dispatch-gates/SKILL.md +134 -0
- package/harness-skills/mstar-dispatch-gates/references/leaf-executor-checklist.md +23 -0
- package/harness-skills/mstar-engine-legacy/SKILL.md +53 -0
- package/harness-skills/mstar-engine-legacy/references/anti-recursion-checklists.md +58 -0
- package/harness-skills/mstar-engine-legacy/references/engine-check-boilerplate.md +26 -0
- package/harness-skills/mstar-engine-legacy/references/lease-protocol.md +92 -0
- package/harness-skills/mstar-engine-legacy/references/qc-seat-n-restatements.md +57 -0
- package/harness-skills/mstar-engine-legacy/references/status-field-history.md +186 -0
- package/harness-skills/mstar-harness-core/SKILL.md +196 -0
- package/harness-skills/mstar-host/SKILL.md +96 -0
- package/harness-skills/mstar-host/references/_shared/host-role-binding-core.md +51 -0
- package/harness-skills/mstar-host/references/_shared/plan-mode-bridge-core.md +91 -0
- package/harness-skills/mstar-host/references/codex.md +61 -0
- package/harness-skills/mstar-host/references/cursor-plan-mode-bridge.md +170 -0
- package/harness-skills/mstar-host/references/cursor.md +183 -0
- package/harness-skills/mstar-host/references/dsh.md +507 -0
- package/harness-skills/mstar-host/references/kimi-plan-mode-bridge.md +36 -0
- package/harness-skills/mstar-host/references/kimi.md +136 -0
- package/harness-skills/mstar-host/references/omp-plan-mode-bridge.md +32 -0
- package/harness-skills/mstar-host/references/omp.md +245 -0
- package/harness-skills/mstar-host/references/opencode.md +76 -0
- package/harness-skills/mstar-host/references/parallel-dispatch.md +68 -0
- package/harness-skills/mstar-host/references/zcode-plan-mode-bridge.md +36 -0
- package/harness-skills/mstar-host/references/zcode.md +129 -0
- package/harness-skills/mstar-iteration/SKILL.md +408 -0
- package/harness-skills/mstar-iteration/references/autonomous-direction-lock.md +90 -0
- package/harness-skills/mstar-iteration/references/command-shared-invariants.md +62 -0
- package/harness-skills/mstar-iteration/references/iteration-artifact-boundaries.md +103 -0
- package/harness-skills/mstar-iteration/references/iteration-compass-template.md +142 -0
- package/harness-skills/mstar-iteration/references/iteration-corpus-hygiene.md +45 -0
- package/harness-skills/mstar-iteration/references/iteration-workspace-readme-template.md +27 -0
- package/harness-skills/mstar-iteration/references/phase-2-worktree-lease.md +205 -0
- package/harness-skills/mstar-iteration/references/phase-3-iteration-close.md +105 -0
- package/harness-skills/mstar-iteration/references/phase-4-5-pr-delivery.md +85 -0
- package/harness-skills/mstar-iteration/references/phase5-helper-discovery.md +24 -0
- package/harness-skills/mstar-phase-gates/SKILL.md +118 -0
- package/harness-skills/mstar-project-governance/SKILL.md +119 -0
- package/harness-skills/mstar-review-qc/SKILL.md +76 -0
- package/harness-skills/mstar-review-qc/references/review-responsibility-boundaries.md +54 -0
- package/harness-skills/mstar-roles/SKILL.md +103 -0
- package/harness-skills/mstar-roles/references/_shared/leaf-executor-core.md +65 -0
- package/harness-skills/mstar-roles/references/architect.md +109 -0
- package/harness-skills/mstar-roles/references/code-reviewer.md +118 -0
- package/harness-skills/mstar-roles/references/frontend-dev.md +70 -0
- package/harness-skills/mstar-roles/references/fullstack-dev-shared.md +89 -0
- package/harness-skills/mstar-roles/references/ops-engineer.md +72 -0
- package/harness-skills/mstar-roles/references/product-manager.md +102 -0
- package/harness-skills/mstar-roles/references/project-manager/dispatch-and-assignment.md +200 -0
- package/harness-skills/mstar-roles/references/project-manager/plan-management.md +59 -0
- package/harness-skills/mstar-roles/references/project-manager/qa-trigger-matrix.md +56 -0
- package/harness-skills/mstar-roles/references/project-manager/qc-and-residuals.md +99 -0
- package/harness-skills/mstar-roles/references/project-manager/routing-and-dev-allocation.md +99 -0
- package/harness-skills/mstar-roles/references/project-manager.md +310 -0
- package/harness-skills/mstar-roles/references/prompt-engineer.md +65 -0
- package/harness-skills/mstar-roles/references/qa-engineer/acceptance-gate.md +62 -0
- package/harness-skills/mstar-roles/references/qa-engineer.md +71 -0
- package/harness-skills/mstar-roles/references/qc-specialist/deep-review-lenses.md +104 -0
- package/harness-skills/mstar-roles/references/qc-specialist/report-template.md +88 -0
- package/harness-skills/mstar-roles/references/qc-specialist/reviewer-checklist.md +44 -0
- package/harness-skills/mstar-roles/references/qc-specialist/reviewer-workflow.md +57 -0
- package/harness-skills/mstar-roles/references/qc-specialist-shared.md +120 -0
- package/harness-skills/mstar-roles/references/writing-specialist.md +88 -0
- package/harness-skills/mstar-sdd/SKILL.md +137 -0
- package/harness-skills/mstar-sdd/references/file-handoffs.md +85 -0
- package/harness-skills/mstar-sdd/references/implementer-continuation-prompt.md +44 -0
- package/harness-skills/mstar-sdd/references/implementer-prompt.md +56 -0
- package/harness-skills/mstar-sdd/references/sticky-implementer-session.md +103 -0
- package/harness-skills/mstar-sdd/references/task-reviewer-prompt.md +53 -0
- package/harness-skills/mstar-skill-authoring/SKILL.md +182 -0
- package/harness-skills/mstar-skill-authoring/references/regression-fixation.md +46 -0
- package/harness-skills/mstar-skill-authoring/references/skillsbench-authoring.md +154 -0
- package/harness-skills/mstar-strategy/SKILL.md +114 -0
- package/harness-skills/pm/SKILL.md +40 -0
- package/hooks/pre/mstar-gates.js +6579 -0
- package/package.json +45 -0
- package/plugin.json +49 -0
- package/skills/grill-me/SKILL.md +10 -0
- package/skills/mstar-artifacts/SKILL.md +66 -0
- package/skills/mstar-artifacts/references/knowledge-and-designs.md +110 -0
- package/skills/mstar-artifacts/references/plan-files-and-reports.md +98 -0
- package/skills/mstar-artifacts/references/plan-quality-bar.md +99 -0
- package/skills/mstar-artifacts/references/status-and-residuals.md +472 -0
- package/skills/mstar-artifacts/templates/README.md +7 -0
- package/skills/mstar-artifacts/templates/plan.main.md +54 -0
- package/skills/mstar-artifacts/templates/status.empty.json +5 -0
- package/skills/mstar-audit/SKILL.md +151 -0
- package/skills/mstar-audit/references/audit-playbook.md +175 -0
- package/skills/mstar-audit/references/codebase-audit.md +103 -0
- package/skills/mstar-audit/references/finding-format.md +69 -0
- package/skills/mstar-audit/references/pr-review-seat-evidence.md +28 -0
- package/skills/mstar-audit/references/pr-review.md +475 -0
- package/skills/mstar-audit/references/security-review.md +219 -0
- package/skills/mstar-branch-worktree/SKILL.md +236 -0
- package/skills/mstar-branch-worktree/references/parallel-writable-pre-dispatch.md +68 -0
- package/skills/mstar-coding-behavior/SKILL.md +167 -0
- package/skills/mstar-compound/SKILL.md +109 -0
- package/skills/mstar-compound/assets/resolution-template.md +94 -0
- package/skills/mstar-compound/references/category-mapping.md +37 -0
- package/skills/mstar-compound/references/compound-workflow.md +171 -0
- package/skills/mstar-compound/references/concepts-vocabulary.md +44 -0
- package/skills/mstar-compound/references/schema.yaml +122 -0
- package/skills/mstar-compound-refresh/SKILL.md +154 -0
- package/skills/mstar-compound-refresh/references/project-knowledge-bootstrap.md +164 -0
- package/skills/mstar-conventions/SKILL.md +215 -0
- package/skills/mstar-conventions/references/artifact-storage-paths.md +53 -0
- package/skills/mstar-conventions/references/effort-estimation.md +38 -0
- package/skills/mstar-conventions/references/harness-bootstrap-and-agents-layering.md +96 -0
- package/skills/mstar-design-md/SKILL.md +142 -0
- package/skills/mstar-design-md/references/completeness-checklist.md +181 -0
- package/skills/mstar-design-md/references/design-md-spec.md +508 -0
- package/skills/mstar-design-md/references/vercel-example.md +200 -0
- package/skills/mstar-design-md/templates/DESIGN.dark.md.template +354 -0
- package/skills/mstar-design-md/templates/DESIGN.md.template +474 -0
- package/skills/mstar-dispatch-gates/SKILL.md +134 -0
- package/skills/mstar-dispatch-gates/references/leaf-executor-checklist.md +23 -0
- package/skills/mstar-engine-legacy/SKILL.md +53 -0
- package/skills/mstar-engine-legacy/references/anti-recursion-checklists.md +58 -0
- package/skills/mstar-engine-legacy/references/engine-check-boilerplate.md +26 -0
- package/skills/mstar-engine-legacy/references/lease-protocol.md +92 -0
- package/skills/mstar-engine-legacy/references/qc-seat-n-restatements.md +57 -0
- package/skills/mstar-engine-legacy/references/status-field-history.md +186 -0
- package/skills/mstar-harness-core/SKILL.md +196 -0
- package/skills/mstar-host/SKILL.md +96 -0
- package/skills/mstar-host/references/_shared/host-role-binding-core.md +51 -0
- package/skills/mstar-host/references/_shared/plan-mode-bridge-core.md +91 -0
- package/skills/mstar-host/references/codex.md +61 -0
- package/skills/mstar-host/references/cursor-plan-mode-bridge.md +170 -0
- package/skills/mstar-host/references/cursor.md +183 -0
- package/skills/mstar-host/references/dsh.md +507 -0
- package/skills/mstar-host/references/kimi-plan-mode-bridge.md +36 -0
- package/skills/mstar-host/references/kimi.md +136 -0
- package/skills/mstar-host/references/omp-plan-mode-bridge.md +32 -0
- package/skills/mstar-host/references/omp.md +245 -0
- package/skills/mstar-host/references/opencode.md +76 -0
- package/skills/mstar-host/references/parallel-dispatch.md +68 -0
- package/skills/mstar-host/references/zcode-plan-mode-bridge.md +36 -0
- package/skills/mstar-host/references/zcode.md +129 -0
- package/skills/mstar-iteration/SKILL.md +408 -0
- package/skills/mstar-iteration/references/autonomous-direction-lock.md +90 -0
- package/skills/mstar-iteration/references/command-shared-invariants.md +62 -0
- package/skills/mstar-iteration/references/iteration-artifact-boundaries.md +103 -0
- package/skills/mstar-iteration/references/iteration-compass-template.md +142 -0
- package/skills/mstar-iteration/references/iteration-corpus-hygiene.md +45 -0
- package/skills/mstar-iteration/references/iteration-workspace-readme-template.md +27 -0
- package/skills/mstar-iteration/references/phase-2-worktree-lease.md +205 -0
- package/skills/mstar-iteration/references/phase-3-iteration-close.md +105 -0
- package/skills/mstar-iteration/references/phase-4-5-pr-delivery.md +85 -0
- package/skills/mstar-iteration/references/phase5-helper-discovery.md +24 -0
- package/skills/mstar-phase-gates/SKILL.md +118 -0
- package/skills/mstar-project-governance/SKILL.md +119 -0
- package/skills/mstar-review-qc/SKILL.md +76 -0
- package/skills/mstar-review-qc/references/review-responsibility-boundaries.md +54 -0
- package/skills/mstar-roles/SKILL.md +103 -0
- package/skills/mstar-roles/references/_shared/leaf-executor-core.md +65 -0
- package/skills/mstar-roles/references/architect.md +109 -0
- package/skills/mstar-roles/references/code-reviewer.md +118 -0
- package/skills/mstar-roles/references/frontend-dev.md +70 -0
- package/skills/mstar-roles/references/fullstack-dev-shared.md +89 -0
- package/skills/mstar-roles/references/ops-engineer.md +72 -0
- package/skills/mstar-roles/references/product-manager.md +102 -0
- package/skills/mstar-roles/references/project-manager/dispatch-and-assignment.md +200 -0
- package/skills/mstar-roles/references/project-manager/plan-management.md +59 -0
- package/skills/mstar-roles/references/project-manager/qa-trigger-matrix.md +56 -0
- package/skills/mstar-roles/references/project-manager/qc-and-residuals.md +99 -0
- package/skills/mstar-roles/references/project-manager/routing-and-dev-allocation.md +99 -0
- package/skills/mstar-roles/references/project-manager.md +310 -0
- package/skills/mstar-roles/references/prompt-engineer.md +65 -0
- package/skills/mstar-roles/references/qa-engineer/acceptance-gate.md +62 -0
- package/skills/mstar-roles/references/qa-engineer.md +71 -0
- package/skills/mstar-roles/references/qc-specialist/deep-review-lenses.md +104 -0
- package/skills/mstar-roles/references/qc-specialist/report-template.md +88 -0
- package/skills/mstar-roles/references/qc-specialist/reviewer-checklist.md +44 -0
- package/skills/mstar-roles/references/qc-specialist/reviewer-workflow.md +57 -0
- package/skills/mstar-roles/references/qc-specialist-shared.md +120 -0
- package/skills/mstar-roles/references/writing-specialist.md +88 -0
- package/skills/mstar-sdd/SKILL.md +137 -0
- package/skills/mstar-sdd/references/file-handoffs.md +85 -0
- package/skills/mstar-sdd/references/implementer-continuation-prompt.md +44 -0
- package/skills/mstar-sdd/references/implementer-prompt.md +56 -0
- package/skills/mstar-sdd/references/sticky-implementer-session.md +103 -0
- package/skills/mstar-sdd/references/task-reviewer-prompt.md +53 -0
- package/skills/mstar-skill-authoring/SKILL.md +182 -0
- package/skills/mstar-skill-authoring/references/regression-fixation.md +46 -0
- package/skills/mstar-skill-authoring/references/skillsbench-authoring.md +154 -0
- package/skills/mstar-strategy/SKILL.md +114 -0
- package/skills/pm/SKILL.md +40 -0
- package/tools/mstar_dispatch_validate.js +6291 -0
- package/tools/mstar_iteration_gate.js +6321 -0
- package/tools/mstar_lease_verify.js +6343 -0
- package/tools/mstar_path_resolve.js +6297 -0
- package/tools/mstar_status_validate.js +6402 -0
- package/tools/mstar_worktree_check.js +6343 -0
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
# Cursor Plan Mode × Harness Dual-Write Bridge
|
|
2
|
+
|
|
3
|
+
> **Load order**: Read **`mstar-harness-core`** first, then **`mstar-host`** and **`references/cursor.md`**, then **`references/_shared/plan-mode-bridge-core.md`** (shared contract) + this bridge. When plan management is required, also read **`mstar-conventions`** and **`mstar-artifacts`** before the first **CreatePlan** in Plan mode. Path symbols `{HARNESS_DIR}`, `{PLAN_DIR}`, `{SPECS_DIR}` are defined in `mstar-conventions`. On conflict, **`mstar-harness-core`** wins.
|
|
4
|
+
|
|
5
|
+
**Shared contract** (dual-write SSOT rule + priority, bootstrap init, Build resume contract, bootstrap todos, implement done-gate, Phase 1 gate, shared anti-patterns) → **`references/_shared/plan-mode-bridge-core.md`**. This bridge covers Cursor **CreatePlan** / **SwitchMode** / Plan-mode specifics only.
|
|
6
|
+
|
|
7
|
+
## When this applies
|
|
8
|
+
|
|
9
|
+
- Cursor **Plan mode** is active (system guidance to use **CreatePlan** / **SwitchMode**).
|
|
10
|
+
- Morning Star plugin or `/pm` is in use (`mstar-host`, `pm` skill, or `rules/mstar-cursor-plan-mode.mdc`).
|
|
11
|
+
|
|
12
|
+
## Before the first CreatePlan
|
|
13
|
+
|
|
14
|
+
1. **Read** (minimum): `mstar-conventions`, `mstar-artifacts` (SKILL.md); Prepare gates from `mstar-phase-gates` if not hotfix.
|
|
15
|
+
2. **Discover** `{HARNESS_DIR}` / `{PLAN_DIR}` per `mstar-conventions` (prefer `.mstar/` + `.mstar/plans/`; reuse legacy `.agents/` only when already present and `.mstar/` is absent).
|
|
16
|
+
3. **Initialize** if absent — checklist in core; full PM checklist (incl. process-artifact gitignore set): `mstar-roles/references/project-manager/plan-management.md` (canonical gitignore snippet → `mstar-conventions` SKILL.md「Git 跟踪策略」).
|
|
17
|
+
|
|
18
|
+
## CreatePlan specifics
|
|
19
|
+
|
|
20
|
+
Bootstrap todos `harness-init` / `spec-register` / `mirror-plan` (emit first, in order, before any implement todos) → core.
|
|
21
|
+
|
|
22
|
+
### `spec-register` minimum fields
|
|
23
|
+
|
|
24
|
+
Add a root `workflows[]` entry to `status.json` (v2) + one `plans[]` object to the workflow snapshot:
|
|
25
|
+
|
|
26
|
+
```json
|
|
27
|
+
// {HARNESS_DIR}/status.json (v2 root) — active lifecycle entry
|
|
28
|
+
{
|
|
29
|
+
"id": "<plan-id>",
|
|
30
|
+
"type": "plan",
|
|
31
|
+
"started_at": "YYYY-MM-DD",
|
|
32
|
+
"dir": "workflows/<plan-id>"
|
|
33
|
+
}
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
```json
|
|
37
|
+
// {WORKFLOW_DIR}/<plan-id>/snapshot.json — plan row (schema_version 1)
|
|
38
|
+
{
|
|
39
|
+
"id": "<plan-id>",
|
|
40
|
+
"status": "Todo",
|
|
41
|
+
"file": ".mstar/plans/<plan-id>-<short-name>.md",
|
|
42
|
+
"metadata": {
|
|
43
|
+
"primary_spec": "<spec-id or path if known>",
|
|
44
|
+
"description": "<one-line summary>"
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
Set `updated_at` on `status.json` / the snapshot to today (`YYYY-MM-DD`). Commit **tracked results** in the business repo when applicable: `{HARNESS_DIR}/AGENTS.md`, `{KNOWLEDGE_DIR}/`, `{SPECS_DIR}/` (default git policy — see `mstar-conventions`). Do **not** default `git add` for `status.json`, `workflows/`, `projects/`, `plans/`, or `iterations/`.
|
|
50
|
+
|
|
51
|
+
### `mirror-plan` minimum content
|
|
52
|
+
|
|
53
|
+
- YAML or markdown frontmatter with `plan_id`, title, status (`Todo` / `InProgress` — not `Done` unless PM/QA authority).
|
|
54
|
+
- **Task list** as markdown checkboxes (`- [ ]` / `- [x]`) matching CreatePlan implement todos.
|
|
55
|
+
- **Roadmap / deferred scope** section when delivery is staged, partial, or uses a temporary workaround.
|
|
56
|
+
- Link: “SSOT status: `{HARNESS_DIR}/status.json` (v2 `workflows[]`) → `{WORKFLOW_DIR}/<id>/snapshot.json` `plans[]`; open residuals → `{PROJECT_DIR}/<id>/residuals.json`.”
|
|
57
|
+
|
|
58
|
+
After **CreatePlan**, keep CreatePlan body and mirror file **in sync** when scope changes (update both in the same coordination round).
|
|
59
|
+
|
|
60
|
+
### CreatePlan body template (copyable)
|
|
61
|
+
|
|
62
|
+
Use this structure in CreatePlan `plan` markdown; mirror the same sections into `{PLAN_DIR}/<plan-id>-<name>.md`.
|
|
63
|
+
|
|
64
|
+
```markdown
|
|
65
|
+
# Plan: <title>
|
|
66
|
+
|
|
67
|
+
**plan_id**: <plan-id>
|
|
68
|
+
**HARNESS_DIR**: .mstar/
|
|
69
|
+
**Plan file (SSOT)**: .mstar/plans/<plan-id>-<short-name>.md
|
|
70
|
+
**status.json**: .mstar/status.json
|
|
71
|
+
|
|
72
|
+
## Prepare gates
|
|
73
|
+
|
|
74
|
+
- specify: [done|n/a]
|
|
75
|
+
- clarify: [done|n/a]
|
|
76
|
+
- plan: [done|in progress]
|
|
77
|
+
|
|
78
|
+
## Roadmap / deferred scope
|
|
79
|
+
|
|
80
|
+
- Target state: <complete outcome>
|
|
81
|
+
- Current slice: <what this plan/batch delivers>
|
|
82
|
+
- Later slices: <batch/order/owner or trigger>
|
|
83
|
+
- Deferred scope / temporary workaround removal: <tracking location or N/A>
|
|
84
|
+
- Final Done definition: <condition for full completion>
|
|
85
|
+
|
|
86
|
+
## Tasks (mirror as checkboxes in SSOT plan file)
|
|
87
|
+
|
|
88
|
+
### Bootstrap (fixed prefix — complete before implement)
|
|
89
|
+
|
|
90
|
+
1. harness-init — init .mstar/, status.json (v2), process-artifact gitignore set
|
|
91
|
+
2. spec-register — register the root `workflows[]` entry + snapshot plan row; spec stub if applicable
|
|
92
|
+
3. mirror-plan — write .mstar/plans/<plan-id>-<short-name>.md
|
|
93
|
+
|
|
94
|
+
### Implement
|
|
95
|
+
|
|
96
|
+
- [ ] <task-id-1>: <description>
|
|
97
|
+
- Done when: git commit on Working branch + checkbox [x] in SSOT plan + evidence below
|
|
98
|
+
- [ ] <task-id-2>: ...
|
|
99
|
+
|
|
100
|
+
## Working branch
|
|
101
|
+
|
|
102
|
+
<branch-name or "PM to assign before implement">
|
|
103
|
+
|
|
104
|
+
## Verification
|
|
105
|
+
|
|
106
|
+
- Commands / tests required before InReview
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
## Implement todo completion gate (every code todo)
|
|
110
|
+
|
|
111
|
+
Commit → SSOT checkbox → `status.json` sync → `git log -1 --oneline` evidence; NEVER list → core. Dev-role NEVER rules also apply when executing as implementer: `mstar-roles/references/fullstack-dev-shared.md` (Git NEVER).
|
|
112
|
+
|
|
113
|
+
## SwitchMode → Agent (pre-flight)
|
|
114
|
+
|
|
115
|
+
Before switching from Plan to Agent for implementation (or declaring Plan phase complete):
|
|
116
|
+
|
|
117
|
+
- [ ] `{PLAN_DIR}/<plan-id>-<name>.md` exists on disk
|
|
118
|
+
- [ ] Root `status.json` `workflows[]` contains the entry and `{WORKFLOW_DIR}/<id>/snapshot.json` contains the `plans[]` row with matching `id` and `file`
|
|
119
|
+
- [ ] Bootstrap todos `harness-init`, `spec-register`, `mirror-plan` are **done**
|
|
120
|
+
- [ ] CreatePlan implement todos reference **task ids** traceable to SSOT plan checkboxes
|
|
121
|
+
- [ ] If staged/partial/temporary, CreatePlan and SSOT plan both contain `Roadmap / deferred scope`
|
|
122
|
+
- [ ] **Plan Path** for any Assignment uses the SSOT path, not the Cursor plan URI
|
|
123
|
+
|
|
124
|
+
If any item fails → **Blocked**; finish harness sync before implement.
|
|
125
|
+
|
|
126
|
+
## Build resume contract
|
|
127
|
+
|
|
128
|
+
→ core. Cursor delta: **Build** resumes the current plan in Agent mode; do not assume it replays `/pm` or re-enters a role skill automatically.
|
|
129
|
+
|
|
130
|
+
## PM in Plan mode (`/pm`)
|
|
131
|
+
|
|
132
|
+
When `/pm` runs under Plan mode:
|
|
133
|
+
|
|
134
|
+
- Load this reference via **`mstar-host`** (Cursor detection) after `mstar-harness-core`.
|
|
135
|
+
- **CreatePlan** todos **must** include the three bootstrap prefix items.
|
|
136
|
+
- Prepare phase (`specify → clarify → plan`) still applies; `mirror-plan` is the harness **`plan`** artifact, not a substitute for clarify.
|
|
137
|
+
- Before QC dispatch, read **`mstar-review-qc`** (unchanged).
|
|
138
|
+
|
|
139
|
+
## `mstar-iteration` Phase 1 in Plan mode
|
|
140
|
+
|
|
141
|
+
When starting a **new iteration** under Cursor Plan mode (host command may orchestrate Phase 1):
|
|
142
|
+
|
|
143
|
+
| Phase | Behavior | Forbidden |
|
|
144
|
+
|-------|----------|-----------|
|
|
145
|
+
| Early CreatePlan | After read-only research, **CreatePlan once** with blank Phase 1 scaffold + Build-bound todos; **record the returned plan file path** | Wait until direction lock finishes; call CreatePlan again later |
|
|
146
|
+
| Feedback loop | User gives **direction / opinions only** (no questionnaire). Agent explores, recommends, and **edits that same plan file in place** (+ SSOT drafts). Absorb feedback → update again | Routine one-question-at-a-time interview; gate plan updates on user answers; write a second `*.plan.md`; open interview helpers before feedback-close |
|
|
147
|
+
| Feedback-close | When user signals feedback done (e.g. 反馈结束 / 总结 / 准备 Build): if blocking gaps remain → **minimal** deferred interview on gaps only, still editing the **same** plan file; else ready for Build | Start the interview helper as the main Plan-session loop |
|
|
148
|
+
| Pre-Build | Maintain documents only | Execute Review chain, commit, or create `spec_integration_branch` |
|
|
149
|
+
| Build | Finalize SSOT from the **same** CreatePlan body → sequential Review & Edit → PM lock → integration branch | Replay feedback/interview; finalize from a different plan URI than View Plan |
|
|
150
|
+
|
|
151
|
+
**Single CreatePlan URI (HARD)**: one CreatePlan per Phase 1 Plan session. Updates use file edit tools on that path. If a duplicate plan file was created by mistake: merge into the original, delete the duplicate, keep View Plan on the original.
|
|
152
|
+
|
|
153
|
+
**Bootstrap relationship**: ordinary per-plan work still uses `harness-init` / `spec-register` / `mirror-plan`. Phase 1 CreatePlan uses Phase 1 todos (`harness-init` → `finalize-compass-plans` → review-edit seats → `pm-lock` → `integration-branch`). Snapshot `plans[]` rows should exist as drafts before Build when direction has converged.
|
|
154
|
+
|
|
155
|
+
**Helpers**: third-party interview helpers are **not** named here; host **command** layer may use them only after feedback-close when gaps remain.
|
|
156
|
+
|
|
157
|
+
## Anti-patterns (Cursor-specific)
|
|
158
|
+
|
|
159
|
+
| Anti-pattern | Fix |
|
|
160
|
+
|--------------|-----|
|
|
161
|
+
| Follow-up only in chat / no roadmap section | Add `Roadmap / deferred scope` to CreatePlan and SSOT plan before implement |
|
|
162
|
+
| Phase 1 Plan mode: second CreatePlan / stale open plan | Edit the original plan file only; merge+delete duplicates |
|
|
163
|
+
| Phase 1 Plan mode: interview loop before feedback-close | Feedback-driven autonomous plan updates; deferred interview only after close signal if gaps remain |
|
|
164
|
+
|
|
165
|
+
## Related skills
|
|
166
|
+
|
|
167
|
+
- `mstar-conventions` — discovery, init, plan-writing path gate
|
|
168
|
+
- `mstar-artifacts` — `status.json`, review bundle summaries, checkboxes, residual
|
|
169
|
+
- `mstar-phase-gates` — Prepare / Execute order
|
|
170
|
+
- `mstar-roles/references/project-manager/dispatch-and-assignment.md` — Checkpoint: commit → Completion Report → Status Update
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
# Cursor host reference
|
|
2
|
+
|
|
3
|
+
Load when **`mstar-host`** detection resolves **cursor** (CreatePlan / SwitchMode, Task + `subagent_type`, or Cursor `/pm` flow).
|
|
4
|
+
|
|
5
|
+
Parallel PM dispatch: **`parallel-dispatch.md`** (Task tool uses same turn model).
|
|
6
|
+
|
|
7
|
+
## Cursor-only context
|
|
8
|
+
|
|
9
|
+
- Skill root: load by skill **name**; filesystem fallback → `mstar-host` § Resolve loaded skill root (`~/.cursor/plugins/local/morning-star-harness/skills/<name>/` or project `.cursor/plugins/morning-star-harness/skills/<name>/`). Never app-cwd `skills/<name>/`.
|
|
10
|
+
- Role prompts: `mstar-roles`; **`/pm`** or **`pm` skill** → general PM orchestration (per-plan dispatch, gates, QC) without an iteration command. Host **`commands/`** for formal iteration Phase 1–5 (semantics → **`mstar-iteration`**).
|
|
11
|
+
- Routing-eval: `.cursor/skills/mstar-routing-eval/` — regression tooling only; not runtime load order.
|
|
12
|
+
|
|
13
|
+
## Plan mode × harness dual-write
|
|
14
|
+
|
|
15
|
+
When **Plan mode** is active, **CreatePlan is session UX**; SSOT is **`{HARNESS_DIR}`** (default `.mstar/`, legacy `.agents/`) — `{PLAN_DIR}/<plan-id>-<name>.md`, `{HARNESS_DIR}/status.json` (v2 root `workflows[]`) + `{WORKFLOW_DIR}/<id>/snapshot.json` (`plans[]` rows).
|
|
16
|
+
|
|
17
|
+
Before first **CreatePlan**: Read `mstar-conventions`, `mstar-artifacts`, Prepare gates from `mstar-phase-gates` when not hotfix. Full procedure: **`cursor-plan-mode-bridge.md`**.
|
|
18
|
+
|
|
19
|
+
**Bootstrap CreatePlan todos (prefix, before implement):**
|
|
20
|
+
|
|
21
|
+
| Todo ID | Purpose |
|
|
22
|
+
|---------|---------|
|
|
23
|
+
| `harness-init` | Init `{HARNESS_DIR}`, `{PLAN_DIR}`, process-artifact gitignore set (`plans/`, `iterations/`, `sdd/`, `status.json`, `workflows/`, `projects/`, …), `status.json` (v2 template) |
|
|
24
|
+
| `spec-register` | Register the root `workflows[]` entry + snapshot plan row (`{WORKFLOW_DIR}/<id>/snapshot.json` → `plans[]`) + spec stub if applicable |
|
|
25
|
+
| `mirror-plan` | Write SSOT main plan under `{PLAN_DIR}/` |
|
|
26
|
+
|
|
27
|
+
Each **implement todo**: per–task-ID **git commit** on Working branch → SSOT `- [x]` → optional snapshot sync → `git log -1 --oneline` evidence.
|
|
28
|
+
|
|
29
|
+
Before **SwitchMode → Agent**: mirror plan exists; snapshot lists `plan_id` + root `workflows[]` entry; bootstrap todos done. **Never** use only the Cursor plan URI as **Plan Path**.
|
|
30
|
+
|
|
31
|
+
After **Build**: treat the run as plan resume, not `/pm` replay. Reload `mstar-harness-core` + this Cursor reference, resume Morning Star plans as `project-manager` orchestration, and dispatch implementation through Task unless the user explicitly overrides the harness.
|
|
32
|
+
|
|
33
|
+
**`mstar-iteration` Phase 1 in Plan mode**: CreatePlan **once** (blank scaffold); then **feedback-driven** in-place updates on that same plan file; deferred interview only after user signals feedback-close **and** gaps remain; **do not** run Review & Edit / commit / integration branch until **Build**. Detail → **`cursor-plan-mode-bridge.md`** § `mstar-iteration` Phase 1 in Plan mode.
|
|
34
|
+
|
|
35
|
+
Enforcement: `rules/mstar-cursor-plan-mode.mdc` when plugin active.
|
|
36
|
+
|
|
37
|
+
## `/pm` precedence
|
|
38
|
+
|
|
39
|
+
1. User explicit instructions
|
|
40
|
+
2. Project `AGENTS.md` / `CLAUDE.md`
|
|
41
|
+
3. `mstar-harness-core` and `mstar-*` skills
|
|
42
|
+
4. `mstar-host` + this reference
|
|
43
|
+
|
|
44
|
+
## Task tool (QC: SDD → N=3)
|
|
45
|
+
|
|
46
|
+
- **`Execution mode: sdd`**: **N=3** Tasks (`qc-specialist`, `qc-specialist-2`, `qc-specialist-3`) + branch review-package path (N rules → `parallel-dispatch.md`).
|
|
47
|
+
- **`inline`**: **N=1** per `parallel-dispatch.md`.
|
|
48
|
+
- SDD implement/reviewer: **serial** — implementer Task per task id with `subagent_type` matching the implementer role when listed; task reviewer = new Task with `subagent_type: "code-reviewer"` (Cursor L2 review; not qc-specialist*) when listed, else generic fallback per C5 — no `resume` for reviewers. See **`mstar-sdd`**.
|
|
49
|
+
|
|
50
|
+
## SDD sticky implementer (Cursor Task resume)
|
|
51
|
+
|
|
52
|
+
When Assignment has **`SDD implementer session: sticky`** (`mstar-sdd/references/sticky-implementer-session.md`):
|
|
53
|
+
|
|
54
|
+
| Turn | Task tool |
|
|
55
|
+
|------|-----------|
|
|
56
|
+
| **First task** (or after `fresh` reset) | `subagent_type: <Execute as>` + `implementer-prompt.md` body; capture returned **agent id** → `{SDD_DIR}/implementer-session.json` → `host_agent_id` |
|
|
57
|
+
| **Task 2+** | `resume: <host_agent_id>` + `implementer-continuation-prompt.md` body (new brief path + report path only) |
|
|
58
|
+
|
|
59
|
+
**Rules:**
|
|
60
|
+
|
|
61
|
+
- **1 implement dispatch ⇒ 1 Task** per task id (resume counts as the implement dispatch for that task).
|
|
62
|
+
- **Task reviewer**: always **new** Task — **no** `resume` for reviewers.
|
|
63
|
+
- After each task reviewer passes, PM updates `progress.md` and `implementer-session.json` `last_task`.
|
|
64
|
+
- If `resume` fails or agent id missing → reset to **`fresh`** for that task; log reason in Status Update.
|
|
65
|
+
|
|
66
|
+
## Dispatch execution(canonical)
|
|
67
|
+
|
|
68
|
+
Cursor PM dispatch = **`Task`** with `subagent_type` matching the Assignment `Execute as` role. Flat JSON field shape → **Task invoke schema (Cursor)** below.
|
|
69
|
+
|
|
70
|
+
- **1 Assignment ⇒ 1 Task**; parallel batches ⇒ **N Tasks in one message** → **`parallel-dispatch.md`** (`mstar-dispatch-gates`).
|
|
71
|
+
- Paste-only: Assignment Markdown **does not** start work; PM thread **must not** implement, review, or edit specialist deliverables by loading another role reference in the same session (`Acting as role: …` is **not** dispatch) → **`parallel-dispatch.md`** § Paste-only failure.
|
|
72
|
+
- No callable `Task` / subagent for required work → **`Blocked`** — report to user; do not substitute in-thread execution.
|
|
73
|
+
- **Only exception:** user explicitly overrides harness dispatch for this turn (document the override).
|
|
74
|
+
- Concurrent writers / QC cwd alignment → **`mstar-branch-worktree`** (not a separate “mode”).
|
|
75
|
+
- Implement subagents: recipient is already `Execute as`; **no** recursive Task with same `subagent_type`. Assignment wins (`Delegation: forbidden` unless stated).
|
|
76
|
+
|
|
77
|
+
## Task invoke schema (Cursor)
|
|
78
|
+
|
|
79
|
+
Cursor’s live **Task** tool expects a **flat** JSON argument object. `prompt` and `subagent_type` are **sibling fields** — not nested, not stringified. Official behavior docs cover subagents/parallel/resume; the flat field shape below is Morning Star’s operational SSOT for Cursor (live-tool contract).
|
|
80
|
+
|
|
81
|
+
### Canonical flat shape
|
|
82
|
+
|
|
83
|
+
```json
|
|
84
|
+
{
|
|
85
|
+
"description": "3-5 word UI title",
|
|
86
|
+
"prompt": "<full Assignment Markdown body>",
|
|
87
|
+
"subagent_type": "<Execute as role id or built-in>",
|
|
88
|
+
"model": "<optional host slug>",
|
|
89
|
+
"run_in_background": false
|
|
90
|
+
}
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
### Required vs optional fields
|
|
94
|
+
|
|
95
|
+
| Field | Required | Notes |
|
|
96
|
+
|-------|----------|-------|
|
|
97
|
+
| `prompt` | yes | Full Assignment Markdown string (IDENTITY, gates, Plan Path, Working branch, …) |
|
|
98
|
+
| `subagent_type` | yes | Must equal Assignment `Execute as` (Morning Star role id when using custom agents) |
|
|
99
|
+
| `description` | recommended | Short UI title only (3–5 words); never the Assignment body |
|
|
100
|
+
| `model` | optional | Host slug from Assignment **Model tier** mapping |
|
|
101
|
+
| `run_in_background` | optional | Default false unless PM intentionally backgrounds |
|
|
102
|
+
| `resume` | sticky continue only | Omit on fresh dispatch; see sticky section |
|
|
103
|
+
|
|
104
|
+
### Must-have example (single dispatch)
|
|
105
|
+
|
|
106
|
+
```text
|
|
107
|
+
Task(
|
|
108
|
+
description: "Implement auth middleware",
|
|
109
|
+
prompt: "<full Assignment body>",
|
|
110
|
+
subagent_type: "fullstack-dev",
|
|
111
|
+
model: "<optional>",
|
|
112
|
+
run_in_background: false
|
|
113
|
+
)
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
Rules:
|
|
117
|
+
|
|
118
|
+
- `subagent_type` **=** Assignment `Execute as` — never OpenCode’s `subagent` key.
|
|
119
|
+
- `prompt` = plain Markdown Assignment text, **not** a JSON object string of the whole call.
|
|
120
|
+
- `description` = UI title only; do not put the Assignment there.
|
|
121
|
+
|
|
122
|
+
### Parallel batch (N Tasks, one message)
|
|
123
|
+
|
|
124
|
+
When `N ≥ 2`, emit **N** separate Task tool calls in **one** assistant message (`parallel-dispatch.md`). Each call is still a flat object with its own `prompt` + `subagent_type`.
|
|
125
|
+
|
|
126
|
+
### Anti-patterns (do not send)
|
|
127
|
+
|
|
128
|
+
| Anti-pattern | Correct |
|
|
129
|
+
|--------------|---------|
|
|
130
|
+
| Args as one stringified JSON blob | Flat sibling fields on the Task tool |
|
|
131
|
+
| Field name `subagent` (OpenCode) | `subagent_type` |
|
|
132
|
+
| `CallMcpTool` / MCP wrap for Task | Native Task tool only |
|
|
133
|
+
| Missing `subagent_type` | Always set; match `Execute as` |
|
|
134
|
+
| Assignment JSON stuffed only into `prompt`, no top-level `subagent_type` | Both `prompt` and `subagent_type` present |
|
|
135
|
+
| Nested `{ "arguments": { ... } }` Task payload | Flat object at tool-call top level |
|
|
136
|
+
| Treating paste-only `## Assignment` as dispatch | Must emit Task call(s) |
|
|
137
|
+
|
|
138
|
+
### Self-check before send
|
|
139
|
+
|
|
140
|
+
1. Tool name is **Task** (not MCP, not OpenCode `task`+`subagent`).
|
|
141
|
+
2. Top-level keys include **`prompt`** and **`subagent_type`** (siblings).
|
|
142
|
+
3. `subagent_type` equals Assignment `Execute as`.
|
|
143
|
+
4. `prompt` is Markdown Assignment text, not stringified JSON of the whole call.
|
|
144
|
+
5. If sticky continue: `resume` + continuation prompt per sticky section; else omit `resume`.
|
|
145
|
+
6. If `N ≥ 2`: this message contains **exactly N** Task calls (`parallel-dispatch.md`).
|
|
146
|
+
|
|
147
|
+
### Sticky / resume (pointer)
|
|
148
|
+
|
|
149
|
+
First vs resume field set → **SDD sticky implementer (Cursor Task resume)** above. Do not restate those tables here.
|
|
150
|
+
|
|
151
|
+
- Fresh: `subagent_type` + full implementer prompt; capture agent id.
|
|
152
|
+
- Continue: `resume: <host_agent_id>` + continuation prompt; still flat sibling fields.
|
|
153
|
+
- Reviewers: never `resume`.
|
|
154
|
+
|
|
155
|
+
## Clarify
|
|
156
|
+
|
|
157
|
+
- No `question` tool: structured Markdown or Cursor UI.
|
|
158
|
+
- “Question asked” ≠ clarify done; high-impact ambiguity → `Blocked` or escalation.
|
|
159
|
+
|
|
160
|
+
## Execution Discipline
|
|
161
|
+
|
|
162
|
+
Implementation roles use `mstar-coding-behavior` for RCA, test-first checks, review feedback, and completion evidence. Plan checkpoints remain in `mstar-phase-gates`; external skill plugins are not required.
|
|
163
|
+
|
|
164
|
+
## Gotchas
|
|
165
|
+
|
|
166
|
+
- Single-seat and tri-review need identical `plan_id` and review scope fields.
|
|
167
|
+
- Task parallelism does not relax branch/worktree isolation.
|
|
168
|
+
|
|
169
|
+
## Model tier (SDD + QC)
|
|
170
|
+
|
|
171
|
+
Map Assignment **`Model tier`** to Task `model` (host-specific slugs):
|
|
172
|
+
|
|
173
|
+
| Tier | Typical use |
|
|
174
|
+
|------|-------------|
|
|
175
|
+
| `fast` | Transcription tasks; 1–2 file mechanical edits |
|
|
176
|
+
| `standard` | SDD prose implementer; task reviewer floor; plan QC tri seats |
|
|
177
|
+
| `capable` | Large branch QC diff; integration judgment |
|
|
178
|
+
|
|
179
|
+
**Turn count beats token price** — reviewers and prose implementers use `standard` floor minimum. See `mstar-sdd` SKILL.
|
|
180
|
+
|
|
181
|
+
## Project rules
|
|
182
|
+
|
|
183
|
+
Project `AGENTS.md` / `CLAUDE.md` upward from cwd override global harness defaults when they conflict with Cursor-side rules; user instructions win.
|