@mstar-harness/dsh 2.1.1
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.i18n.yaml +7 -0
- package/README.md +448 -0
- package/README.zh.md +221 -0
- package/bundle/README.md +312 -0
- package/bundle/cordis.patch.yml +17 -0
- package/dist/client/index.d.ts +14 -0
- package/dist/client/panel/PanelView.d.ts +67 -0
- package/dist/client/panel/TabNav.d.ts +28 -0
- package/dist/client/panel/graph/event-log.d.ts +76 -0
- package/dist/client/panel/graph/project-graph.d.ts +499 -0
- package/dist/client/panel/graph/schema.d.ts +224 -0
- package/dist/client/panel/guards.d.ts +12 -0
- package/dist/client/panel/locale.d.ts +134 -0
- package/dist/client/panel/pages/AgentCanvasPage.d.ts +363 -0
- package/dist/client/panel/pages/EventLogPage.d.ts +48 -0
- package/dist/client/panel/pages/IterationInfoSection.d.ts +80 -0
- package/dist/client/panel/pages/IterationTaskPage.d.ts +37 -0
- package/dist/client/panel/panel-meta.d.ts +18 -0
- package/dist/client/panel/plan-sort.d.ts +54 -0
- package/dist/client/panel/sidebar.d.ts +17 -0
- package/dist/client/panel/state-section.d.ts +23 -0
- package/dist/client/panel/use-mstar-engine-status.d.ts +42 -0
- package/dist/client/panel/zones/Legend.d.ts +18 -0
- package/dist/client/panel/zones/TaskBoard.d.ts +40 -0
- package/dist/client.d.ts +1 -0
- package/dist/client.js +4486 -0
- package/dist/gates/_shared.d.ts +198 -0
- package/dist/gates/adapter.d.ts +131 -0
- package/dist/gates/agent-flow.d.ts +320 -0
- package/dist/gates/catalog.d.ts +118 -0
- package/dist/gates/dispatch.d.ts +152 -0
- package/dist/gates/seams.d.ts +152 -0
- package/dist/gates/skill-lint.d.ts +87 -0
- package/dist/gates/status.d.ts +81 -0
- package/dist/gates/tools.d.ts +37 -0
- package/dist/index.d.ts +107 -0
- package/dist/index.js +5748 -0
- package/dist/invariant.d.ts +15 -0
- package/dist/invariant.js +29 -0
- package/dist/service.d.ts +96 -0
- package/dist/types.d.ts +241 -0
- package/harness-commands/codebase-audit.md +40 -0
- package/harness-commands/iteration-drive.md +129 -0
- package/harness-commands/iteration-loop.md +139 -0
- package/harness-commands/iteration-start.md +179 -0
- package/harness-skills/grill-me/SKILL.md +10 -0
- package/harness-skills/mstar-audit/SKILL.md +183 -0
- package/harness-skills/mstar-audit/references/audit-playbook.md +130 -0
- package/harness-skills/mstar-audit/references/finding-format.md +65 -0
- package/harness-skills/mstar-branch-worktree/SKILL.md +219 -0
- package/harness-skills/mstar-branch-worktree/references/parallel-writable-pre-dispatch.md +68 -0
- package/harness-skills/mstar-coding-behavior/SKILL.md +147 -0
- package/harness-skills/mstar-compound/SKILL.md +105 -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 +155 -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 +140 -0
- package/harness-skills/mstar-compound-refresh/references/project-knowledge-bootstrap.md +164 -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 +128 -0
- package/harness-skills/mstar-dispatch-gates/references/leaf-executor-checklist.md +23 -0
- package/harness-skills/mstar-harness-core/SKILL.md +180 -0
- package/harness-skills/mstar-host/SKILL.md +78 -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 +159 -0
- package/harness-skills/mstar-host/references/cursor.md +183 -0
- package/harness-skills/mstar-host/references/dsh.md +502 -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 +244 -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 +393 -0
- package/harness-skills/mstar-iteration/references/autonomous-direction-lock.md +90 -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 +193 -0
- package/harness-skills/mstar-iteration/references/phase-3-iteration-close.md +95 -0
- package/harness-skills/mstar-iteration/references/phase-4-5-pr-delivery.md +84 -0
- package/harness-skills/mstar-iteration/references/phase5-helper-discovery.md +24 -0
- package/harness-skills/mstar-phase-gates/SKILL.md +112 -0
- package/harness-skills/mstar-plan-artifacts/SKILL.md +46 -0
- package/harness-skills/mstar-plan-artifacts/references/done-compaction.md +88 -0
- package/harness-skills/mstar-plan-artifacts/references/knowledge-and-designs.md +100 -0
- package/harness-skills/mstar-plan-artifacts/references/plan-files-and-reports.md +99 -0
- package/harness-skills/mstar-plan-artifacts/references/plan-quality-bar.md +99 -0
- package/harness-skills/mstar-plan-artifacts/references/status-and-residuals.md +570 -0
- package/harness-skills/mstar-plan-artifacts/templates/README.md +9 -0
- package/harness-skills/mstar-plan-artifacts/templates/notes.empty.json +5 -0
- package/harness-skills/mstar-plan-artifacts/templates/plan.main.md +54 -0
- package/harness-skills/mstar-plan-artifacts/templates/plans-done.empty.json +3 -0
- package/harness-skills/mstar-plan-artifacts/templates/status.empty.json +7 -0
- package/harness-skills/mstar-plan-conventions/SKILL.md +165 -0
- package/harness-skills/mstar-plan-conventions/references/artifact-storage-paths.md +50 -0
- package/harness-skills/mstar-plan-conventions/references/effort-estimation.md +38 -0
- package/harness-skills/mstar-plan-conventions/references/harness-bootstrap-and-agents-layering.md +93 -0
- package/harness-skills/mstar-review-qc/SKILL.md +60 -0
- package/harness-skills/mstar-review-qc/references/review-responsibility-boundaries.md +54 -0
- package/harness-skills/mstar-roles/SKILL.md +86 -0
- package/harness-skills/mstar-roles/references/_shared/leaf-executor-core.md +46 -0
- package/harness-skills/mstar-roles/references/architect.md +114 -0
- package/harness-skills/mstar-roles/references/code-reviewer.md +109 -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 +78 -0
- package/harness-skills/mstar-roles/references/product-manager.md +107 -0
- package/harness-skills/mstar-roles/references/project-manager/dispatch-and-assignment.md +198 -0
- package/harness-skills/mstar-roles/references/project-manager/plan-management.md +61 -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 +98 -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 +71 -0
- package/harness-skills/mstar-roles/references/qa-engineer/acceptance-gate.md +62 -0
- package/harness-skills/mstar-roles/references/qa-engineer.md +79 -0
- package/harness-skills/mstar-roles/references/qc-specialist/deep-review-lenses.md +95 -0
- package/harness-skills/mstar-roles/references/qc-specialist/report-template.md +72 -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 +128 -0
- package/harness-skills/mstar-roles/references/writing-specialist.md +59 -0
- package/harness-skills/mstar-sdd/SKILL.md +133 -0
- package/harness-skills/mstar-sdd/references/file-handoffs.md +83 -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 +162 -0
- package/harness-skills/mstar-skill-authoring/references/skillsbench-authoring.md +117 -0
- package/harness-skills/mstar-strategy/SKILL.md +130 -0
- package/harness-skills/pm/SKILL.md +40 -0
- package/package.json +92 -0
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# Implementer subagent prompt template
|
|
2
|
+
|
|
3
|
+
Use when PM dispatches an SDD implementer (`mstar-sdd`) — **first task** or **`SDD implementer session: fresh`**.
|
|
4
|
+
|
|
5
|
+
For **sticky** continuation (task 2+), use **`implementer-continuation-prompt.md`** instead.
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
Dispatch:
|
|
9
|
+
Role: <Execute as role-id> # omp agent / Cursor subagent_type / OpenCode subagent → mstar-host C5
|
|
10
|
+
Name: <CamelCaseId> # omp/Cursor name
|
|
11
|
+
Model: [REQUIRED — per Model tier in Assignment and mstar-sdd SKILL]
|
|
12
|
+
Prompt body:
|
|
13
|
+
<SUBAGENT-STOP> Skip PM orchestration skills. You are a leaf implementer.</SUBAGENT-STOP>
|
|
14
|
+
|
|
15
|
+
You are implementing Task N: <name>
|
|
16
|
+
|
|
17
|
+
## Scene
|
|
18
|
+
|
|
19
|
+
[One line: where this task fits in the plan]
|
|
20
|
+
|
|
21
|
+
## Requirements
|
|
22
|
+
|
|
23
|
+
Read first — this is your spec (verbatim values): [BRIEF_FILE]
|
|
24
|
+
|
|
25
|
+
## Context not in the brief
|
|
26
|
+
|
|
27
|
+
[Interfaces from earlier tasks, PM resolutions]
|
|
28
|
+
|
|
29
|
+
## Report file
|
|
30
|
+
|
|
31
|
+
Write your full report to: [REPORT_FILE]
|
|
32
|
+
|
|
33
|
+
## Before you begin
|
|
34
|
+
|
|
35
|
+
Ask questions now about requirements, approach, or dependencies.
|
|
36
|
+
|
|
37
|
+
## Your job
|
|
38
|
+
|
|
39
|
+
1. Implement exactly what the brief specifies
|
|
40
|
+
2. Run tests (TDD if brief requires)
|
|
41
|
+
3. Commit on Working branch
|
|
42
|
+
4. Self-review
|
|
43
|
+
5. Write report file; return short summary only
|
|
44
|
+
|
|
45
|
+
## When stuck
|
|
46
|
+
|
|
47
|
+
Report BLOCKED or NEEDS_CONTEXT — never guess.
|
|
48
|
+
|
|
49
|
+
## Report format (in file)
|
|
50
|
+
|
|
51
|
+
- Status: DONE | DONE_WITH_CONCERNS | NEEDS_CONTEXT | BLOCKED
|
|
52
|
+
- Implemented / attempted
|
|
53
|
+
- Tests: command, output, red/green evidence if TDD
|
|
54
|
+
- Files changed
|
|
55
|
+
- Self-review notes
|
|
56
|
+
```
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
# Sticky implementer session (SDD token optimization)
|
|
2
|
+
|
|
3
|
+
Reuse the **same implementer subagent** across multiple tasks in one plan when tasks are tightly coupled, same `Execute as` role, and same `Working branch`. **L2 task reviewers stay fresh per task** — do not sticky reviewers.
|
|
4
|
+
|
|
5
|
+
SSOT for mode selection and host resume → this file. Per-task artifacts → **`file-handoffs.md`**.
|
|
6
|
+
|
|
7
|
+
## When to use
|
|
8
|
+
|
|
9
|
+
| `SDD implementer session` | Use |
|
|
10
|
+
|---------------------------|-----|
|
|
11
|
+
| **`fresh`** (default) | Independent tasks, module boundaries, different dev tracks, or first task on a plan |
|
|
12
|
+
| **`sticky`** | Same `fullstack-dev` (or same role id), sequential tasks on one branch, strong file/context continuity (e.g. T3+T4 daemon stderr + DB reset) |
|
|
13
|
+
|
|
14
|
+
**Prefer `sticky`** on iteration Phase 2 Autonomous Execute when PM will dispatch many tasks to the same dev on one plan feature branch.
|
|
15
|
+
|
|
16
|
+
## Assignment fields (implement dispatch)
|
|
17
|
+
|
|
18
|
+
```markdown
|
|
19
|
+
**Execution mode**: sdd
|
|
20
|
+
**SDD implementer session**: sticky | fresh
|
|
21
|
+
**SDD dir**: `{HARNESS_DIR}/sdd/<plan-id>/`
|
|
22
|
+
**Model tier**: standard
|
|
23
|
+
**Execute as**: fullstack-dev
|
|
24
|
+
**Working branch**: <branch>
|
|
25
|
+
**Covers task**: N | N–M # single task id for this dispatch turn
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
- **Task 1** (or first task after `fresh` reset): `SDD implementer session: fresh` or `sticky` (starts sticky ledger).
|
|
29
|
+
- **Task 2+** with sticky: `SDD implementer session: sticky` + host **resume** (Cursor) or continuation prompt (fallback).
|
|
30
|
+
|
|
31
|
+
## Session ledger: `implementer-session.json`
|
|
32
|
+
|
|
33
|
+
PM writes/updates at `{SDD_DIR}/implementer-session.json` when starting or continuing sticky mode:
|
|
34
|
+
|
|
35
|
+
```json
|
|
36
|
+
{
|
|
37
|
+
"plan_id": "<plan-id>",
|
|
38
|
+
"execute_as": "fullstack-dev",
|
|
39
|
+
"session_mode": "sticky",
|
|
40
|
+
"host": "cursor",
|
|
41
|
+
"host_agent_id": "<agent-id from first Task return — required for resume>",
|
|
42
|
+
"working_branch": "feature/...",
|
|
43
|
+
"started_task": 1,
|
|
44
|
+
"last_task": 1,
|
|
45
|
+
"started_at": "2026-07-07T00:00:00Z"
|
|
46
|
+
}
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
After each completed task review, PM sets `last_task` to N. **Do not** resume if `host_agent_id` is missing — fall back to `fresh` for that task.
|
|
50
|
+
|
|
51
|
+
## Per-task loop (sticky implementer)
|
|
52
|
+
|
|
53
|
+
Same as default SDD for artifacts and L2 review; only implementer dispatch differs:
|
|
54
|
+
|
|
55
|
+
1. `mstar sdd task-brief` → `{SDD_DIR}/task-N-brief.md`
|
|
56
|
+
2. Record `BASE_SHA`
|
|
57
|
+
3. **Implementer dispatch**
|
|
58
|
+
- **First task** (`fresh` or sticky start): normal Task/subagent invoke → save `host_agent_id` to ledger
|
|
59
|
+
- **Next tasks** (`sticky`): host **resume** with same `host_agent_id` + continuation prompt (`implementer-prompt.md` § Continuation)
|
|
60
|
+
4. On `DONE` → `mstar sdd review-package` → **fresh** task reviewer (never resume reviewer)
|
|
61
|
+
5. Append `progress.md`; update ledger `last_task`
|
|
62
|
+
6. Next task
|
|
63
|
+
|
|
64
|
+
**Still required per task:** commit, `task-N-report.md`, task-level diff, task reviewer, `progress.md` line.
|
|
65
|
+
|
|
66
|
+
## When to reset to `fresh`
|
|
67
|
+
|
|
68
|
+
Start a **new** implementer session (`session_mode: fresh` or new ledger) when any:
|
|
69
|
+
|
|
70
|
+
- `BLOCKED` / `NEEDS_CONTEXT` not resolved in one continuation turn
|
|
71
|
+
- `Execute as` role changes (`fullstack-dev` → `fullstack-dev-2`)
|
|
72
|
+
- `Working branch` changes
|
|
73
|
+
- Host does not support resume (OpenCode without resume → use **micro-batch** or `fresh`)
|
|
74
|
+
- Context clearly degraded (implementer confuses prior tasks) — PM judgment
|
|
75
|
+
- Switching from another dev track mid-plan
|
|
76
|
+
|
|
77
|
+
Delete or archive `implementer-session.json` when resetting.
|
|
78
|
+
|
|
79
|
+
## Micro-batch fallback (no host resume)
|
|
80
|
+
|
|
81
|
+
When resume is unavailable, PM may dispatch **one** implementer for **2–3** tightly coupled tasks:
|
|
82
|
+
|
|
83
|
+
- Prompt lists `task-N-brief.md` … `task-M-brief.md` and matching report paths only
|
|
84
|
+
- Implementer completes tasks **in order** in one session
|
|
85
|
+
- PM still runs **per-task** `review-package` + **fresh** task reviewer after each task (or after batch if PM documents per-task SHAs in Assignment)
|
|
86
|
+
|
|
87
|
+
Max **3** tasks per micro-batch without user override. See `project-manager.md` batch sizing.
|
|
88
|
+
|
|
89
|
+
## Host mapping
|
|
90
|
+
|
|
91
|
+
| Host | Sticky implementer |
|
|
92
|
+
|------|-------------------|
|
|
93
|
+
| **Cursor** | `Task` with `resume: <host_agent_id>` — **`mstar-host/references/cursor.md`** § SDD sticky |
|
|
94
|
+
| **OpenCode** | Resume only if task tool supports it; else micro-batch or `fresh` per task |
|
|
95
|
+
| **Codex** | Thread resume only when callable multi-agent tool documents agent id; else micro-batch or `fresh` |
|
|
96
|
+
|
|
97
|
+
## PM NEVER (sticky)
|
|
98
|
+
|
|
99
|
+
- Resume task **reviewer** sessions — reviewers stay fresh per task
|
|
100
|
+
- Parallel sticky implementers on the same branch
|
|
101
|
+
- Resume without updating `implementer-session.json` / `progress.md`
|
|
102
|
+
- Skip per-task review because implementer "remembers" prior tasks
|
|
103
|
+
- Paste full plan into continuation prompt — only new brief path + report path
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# Task reviewer subagent prompt template
|
|
2
|
+
|
|
3
|
+
One reviewer per task: spec compliance + code quality (`mstar-sdd`).
|
|
4
|
+
|
|
5
|
+
```
|
|
6
|
+
Dispatch:
|
|
7
|
+
Role: code-reviewer # L2 SDD task reviewer; NOT qc-specialist*
|
|
8
|
+
# omp: agent = "code-reviewer" (when listed) or "reviewer"/"task" + C5b; Cursor: subagent_type = "generalPurpose" fallback → mstar-host C5
|
|
9
|
+
Name: <CamelCaseId> # omp/Cursor name
|
|
10
|
+
Model: [REQUIRED — standard tier default; capable if diff is large/subtle]
|
|
11
|
+
Prompt body:
|
|
12
|
+
<SUBAGENT-STOP> Skip PM orchestration. Read-only review.</SUBAGENT-STOP>
|
|
13
|
+
|
|
14
|
+
Review one task implementation: spec compliance first, then quality.
|
|
15
|
+
Task-scoped gate — plan-level QC comes later on the whole branch.
|
|
16
|
+
|
|
17
|
+
## What was requested
|
|
18
|
+
|
|
19
|
+
Brief: [BRIEF_FILE]
|
|
20
|
+
|
|
21
|
+
Global constraints (verbatim):
|
|
22
|
+
[GLOBAL_CONSTRAINTS]
|
|
23
|
+
|
|
24
|
+
## Implementer report
|
|
25
|
+
|
|
26
|
+
[REPORT_FILE] — treat claims as unverified until checked against diff.
|
|
27
|
+
|
|
28
|
+
## Diff
|
|
29
|
+
|
|
30
|
+
Base: [BASE_SHA]
|
|
31
|
+
Head: [HEAD_SHA]
|
|
32
|
+
Diff file: [DIFF_FILE]
|
|
33
|
+
|
|
34
|
+
Read the diff file once. Do not re-run git. Do not mutate checkout.
|
|
35
|
+
Do not re-run full test suite — trust implementer evidence unless a
|
|
36
|
+
specific doubt needs one focused test.
|
|
37
|
+
|
|
38
|
+
## Output
|
|
39
|
+
|
|
40
|
+
### Spec Compliance
|
|
41
|
+
- ✅ Spec compliant | ❌ Issues found (file:line)
|
|
42
|
+
- ⚠️ Cannot verify from diff: [items for PM to check]
|
|
43
|
+
|
|
44
|
+
### Strengths
|
|
45
|
+
|
|
46
|
+
### Issues
|
|
47
|
+
#### Critical | Important | Minor
|
|
48
|
+
|
|
49
|
+
### Assessment
|
|
50
|
+
**Task quality:** Approved | Needs fixes
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
Re-review after fixes covers both verdicts. PM resolves all ⚠️ items before marking task complete.
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: mstar-skill-authoring
|
|
3
|
+
description: Agent skill 撰写 / 重写 / 优化规范(SkillsBench 实验门控)。在新建任意 skill、大改 SKILL.md、改写 description 触发契约、压缩过长 body、评审 skill 结构、或判断某段行为塑形文案是否值得保留时读取。适用于任何领域的 skill,不限于本仓库专题;不用于普通应用实现。
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Skill Authoring
|
|
7
|
+
|
|
8
|
+
本 skill 约束如何编写、审查与验证 **任意** agent skill(`SKILL.md`)。面向 **skill 工作**,不是普通应用实现。
|
|
9
|
+
|
|
10
|
+
## Load Order
|
|
11
|
+
|
|
12
|
+
在本 harness 仓库内工作时:先 Read **`mstar-harness-core`**(加载 / 冲突裁决);仓库维护另遵根目录 `AGENTS.md`。
|
|
13
|
+
|
|
14
|
+
在其它仓库 / 宿主上使用本 skill 时:按当地入口文档加载;本文件的原则与门控仍然适用。
|
|
15
|
+
|
|
16
|
+
改现有 skill 时:读完被改 skill 及其 SSOT 引用;禁止仅为文风重写相邻 skill。
|
|
17
|
+
|
|
18
|
+
详细 writer 流程与输出模板 → `references/skillsbench-authoring.md`(需要完整循环时再读)。
|
|
19
|
+
|
|
20
|
+
## 6 条作者原则(必须遵守)
|
|
21
|
+
|
|
22
|
+
来源:SkillsBench 大规模实验。违反任一都会降低 agent 性能。
|
|
23
|
+
|
|
24
|
+
| # | 原则 | 强制动作 |
|
|
25
|
+
|---|------|----------|
|
|
26
|
+
| 1 | **专家流程优先** | 先提取真实操作步骤、决策标准、约束、API 坑与失败恢复;模型只做编辑器。禁止把一键生成稿当最终版。 |
|
|
27
|
+
| 2 | **紧凑程序性** | body 只答 5 问(见下);详例 / 长文档进 `references/`,按需加载。过长 body 几乎无提升甚至负提升。 |
|
|
28
|
+
| 3 | **路由最小化** | 任务真正需要时才加载;目标 **1–3** 个 skill。description 必须具体到可精准匹配,避免无关激活。 |
|
|
29
|
+
| 4 | **按 model+harness 实测** | 文件可移植 ≠ 行为可移植。在实际使用的模型与宿主(omp / Cursor / Codex / Claude Code 等)分别验证触发、执行、token、回归。 |
|
|
30
|
+
| 5 | **只补模型缺口** | 编码内部约定、受监管流程、脆弱 API、专业判断、反复失败模式。不写模型已会的通用知识。 |
|
|
31
|
+
| 6 | **每次改动=受控实验** | 必须有 paired 证据(with vs without,或 before/after + 可观察标准)。held-out / 压力场景未提升则拒绝合入。禁止“感觉更好”。 |
|
|
32
|
+
|
|
33
|
+
## Body 必须回答的 5 问
|
|
34
|
+
|
|
35
|
+
合格 `SKILL.md` **只**清晰回答:
|
|
36
|
+
|
|
37
|
+
1. **何时加载?**(触发 / 排除)
|
|
38
|
+
2. **按什么顺序与关键决策点执行?**
|
|
39
|
+
3. **哪些约束 / 不变量绝不可违反?**
|
|
40
|
+
4. **正确结果长什么样?**(成功标准 / 证据)
|
|
41
|
+
5. **主路径不够时打开哪些额外资源?**
|
|
42
|
+
|
|
43
|
+
答不进这 5 问的内容 → 删或移到 `references/`。
|
|
44
|
+
|
|
45
|
+
## Skill Purpose Test
|
|
46
|
+
|
|
47
|
+
仅当全部成立才新建 / 扩写 skill:
|
|
48
|
+
|
|
49
|
+
1. 行为应跨多项目、角色或任务复用。
|
|
50
|
+
2. 需要判断或排序,且不宜用代码强制。
|
|
51
|
+
3. 现有 skill 树尚未拥有同一规则(避免副本)。
|
|
52
|
+
4. 触发条件可写清,agent 知道何时读取。
|
|
53
|
+
|
|
54
|
+
不要为这些建 skill:一次性项目约定(放项目 `AGENTS.md` / 等价处)、可 lint/脚本化的机械规则、无复用手法的事故叙述、已有 skill 规则的副本。
|
|
55
|
+
|
|
56
|
+
## Frontmatter Contract
|
|
57
|
+
|
|
58
|
+
```yaml
|
|
59
|
+
---
|
|
60
|
+
name: example-skill
|
|
61
|
+
description: Use when...
|
|
62
|
+
---
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
- `name`:稳定、小写、连字符。
|
|
66
|
+
- `description`:**触发契约**,不是流程摘要。写清症状、上下文、角色、产物与排除条件。
|
|
67
|
+
- 第三人称;足够具体以避免无关加载(原则 3)。
|
|
68
|
+
- 禁止在 description 里总结整条 workflow(否则 agent 可能只跟摘要、跳过 body)。
|
|
69
|
+
|
|
70
|
+
Bad:`Explains how to write plans with steps, tests, commits, and review gates.`
|
|
71
|
+
Better:`Use when a non-trivial task has a spec or requirements and needs a written implementation plan before code changes.`
|
|
72
|
+
|
|
73
|
+
> **Engine check (when available):** run `mstar skill lint <skill-dir>` (or `import { lintFrontmatter, lintFiveQuestion } from "@mstar-harness/engine"` in a host hook) to lint the frontmatter contract and the five-question body contract above. On `fail` -> do not proceed; fix and re-run. Skill text below remains authoritative when the runtime is absent.
|
|
74
|
+
|
|
75
|
+
## 默认 Body 结构
|
|
76
|
+
|
|
77
|
+
```markdown
|
|
78
|
+
# Skill Title
|
|
79
|
+
|
|
80
|
+
## Load Order
|
|
81
|
+
## Scope
|
|
82
|
+
## Workflow
|
|
83
|
+
## Decision Rules
|
|
84
|
+
## Evidence
|
|
85
|
+
## References
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
Keep `SKILL.md` focused on the main execution path. Move long examples, templates, schemas, and detailed variants into `references/`, `templates/`, or `scripts/`.
|
|
89
|
+
|
|
90
|
+
## Skill-relative script and asset paths
|
|
91
|
+
|
|
92
|
+
When a skill ships executables or assets under `scripts/` / `templates/` / `references/`, name them as **skill → relative path**:
|
|
93
|
+
|
|
94
|
+
- Good: skill **`my-skill`** → `scripts/do-thing`
|
|
95
|
+
- Good: `<my-skill>/scripts/do-thing`(已加载 skill 根的占位写法)
|
|
96
|
+
- Bad:把 `skills/my-skill/scripts/do-thing` 写成消费仓库 cwd 下的字面路径
|
|
97
|
+
|
|
98
|
+
Agents 按 **skill 名** 发现 skill;文档若给出完整仓内相对路径,agent 常在应用仓库 cwd 下按字面搜索而找不到。先解析已加载 skill 根目录,再拼 `scripts/…` / `references/…`。
|
|
99
|
+
|
|
100
|
+
在本 harness:解析方式见 **`mstar-host`** § Resolve loaded skill root(omp `skill://`、各宿主插件挂载等)。其它环境按当地 skill 安装约定解析。
|
|
101
|
+
|
|
102
|
+
> **Engine check (when available):** import `resolveAssetPath` from `@mstar-harness/engine` in a host hook to resolve a skill-relative asset per the convention above (no CLI form yet). On `fail` -> do not proceed; fix and re-run. Skill text below remains authoritative when the runtime is absent.
|
|
103
|
+
|
|
104
|
+
## Progressive Disclosure
|
|
105
|
+
|
|
106
|
+
1. Frontmatter:仅触发
|
|
107
|
+
2. `SKILL.md`:主执行路径
|
|
108
|
+
3. `references/` / `templates/` / `scripts/`:变体细节,按需加载
|
|
109
|
+
|
|
110
|
+
多宿主 / 多域细节按文件拆分,并在 body 写明「何时打开哪份」。
|
|
111
|
+
|
|
112
|
+
## 验证门控(原则 4 + 6)
|
|
113
|
+
|
|
114
|
+
行为塑形改动必须留下证据,任选可观测形式:
|
|
115
|
+
|
|
116
|
+
- 2–3 个压力 prompt(无 skill 易失败;有 skill 应通过)
|
|
117
|
+
- before/after 期望 + 触发短语 + 一次具体校验(检索、链接、dry-run)
|
|
118
|
+
- 记录失败原因、token / 延迟回归;未提升则回滚文案
|
|
119
|
+
|
|
120
|
+
压力场景骨架:
|
|
121
|
+
|
|
122
|
+
```json
|
|
123
|
+
{
|
|
124
|
+
"skill_name": "example-skill",
|
|
125
|
+
"evals": [
|
|
126
|
+
{
|
|
127
|
+
"id": 1,
|
|
128
|
+
"prompt": "会诱使 agent 违反目标规则的真实任务",
|
|
129
|
+
"expected_output": "合规行为长什么样",
|
|
130
|
+
"files": []
|
|
131
|
+
}
|
|
132
|
+
]
|
|
133
|
+
}
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
## 完成时主动说明
|
|
137
|
+
|
|
138
|
+
写完 / 大改 skill 后必须交代:
|
|
139
|
+
|
|
140
|
+
1. **删了 / 压了什么**,以及如何满足原则 2 与 5
|
|
141
|
+
2. **如何验证原则 6**(paired 证据或压力场景)
|
|
142
|
+
3. **触发契约**是否仍足够窄(原则 3)
|
|
143
|
+
|
|
144
|
+
## Review Template
|
|
145
|
+
|
|
146
|
+
```markdown
|
|
147
|
+
## Skill Review
|
|
148
|
+
- Trigger contract:
|
|
149
|
+
- 5 questions covered:
|
|
150
|
+
- Principles 2/5 compactness:
|
|
151
|
+
- SSOT alignment:
|
|
152
|
+
- Progressive disclosure:
|
|
153
|
+
- Evidence for behavior change (P6):
|
|
154
|
+
- Stale references checked:
|
|
155
|
+
- Verdict: Approve | Request Changes | Needs Discussion
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
## References
|
|
159
|
+
|
|
160
|
+
| 何时 | 打开 |
|
|
161
|
+
|------|------|
|
|
162
|
+
| 需要完整 skill-writer 流程、原则细则、输出模板 | `references/skillsbench-authoring.md` |
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
# SkillsBench Skill-Writer Reference
|
|
2
|
+
|
|
3
|
+
Load this only when creating, rewriting, or optimizing a `SKILL.md` and you need the full writer loop. Runtime agents following an already-good skill should not need this file.
|
|
4
|
+
|
|
5
|
+
## Role
|
|
6
|
+
|
|
7
|
+
You are a strict AI Agent Skill engineer. When drafting, rewriting, or optimizing **any** `SKILL.md` (any domain, any repo), obey all six principles below. Any violation lowers agent performance.
|
|
8
|
+
|
|
9
|
+
## Six Principles (refined)
|
|
10
|
+
|
|
11
|
+
### 1. Start from real expert process, not model improvisation
|
|
12
|
+
|
|
13
|
+
- Extract the domain expert’s real steps, decision criteria, constraints, API pitfalls, and failure-recovery paths first.
|
|
14
|
+
- Treat the model as editor / implementer only.
|
|
15
|
+
- Accept candidate edits only after an evaluation gate (held-out prompts, pressure scenarios, or concrete before/after checks).
|
|
16
|
+
- Never ship a one-shot model-generated skill as the final version.
|
|
17
|
+
|
|
18
|
+
### 2. Keep the skill compact and procedural
|
|
19
|
+
|
|
20
|
+
`SKILL.md` body must stay short. Prefer compact / standard length; long docs rarely help and often hurt.
|
|
21
|
+
|
|
22
|
+
The body must answer **only** these five questions:
|
|
23
|
+
|
|
24
|
+
| # | Question | Typical section |
|
|
25
|
+
|---|----------|-----------------|
|
|
26
|
+
| a | When should this skill load? | description + Scope |
|
|
27
|
+
| b | In what order, with which decision points? | Workflow / Decision Rules |
|
|
28
|
+
| c | Which constraints / invariants must never be violated? | Scope / hard rules |
|
|
29
|
+
| d | What does correct look like? | Evidence / success criteria |
|
|
30
|
+
| e | Which extra resources to open when the main path is not enough? | References |
|
|
31
|
+
|
|
32
|
+
Use progressive disclosure: core path in body; examples, long tables, host variants, schemas → `references/` and load on demand.
|
|
33
|
+
|
|
34
|
+
Delete or relocate anything that does not serve a–e.
|
|
35
|
+
|
|
36
|
+
### 3. Load only the 1–3 skills the task truly needs
|
|
37
|
+
|
|
38
|
+
- Minimize routing. More than ~3 skills dilutes context and lowers pass rate.
|
|
39
|
+
- Write descriptions specific enough for precise matching; include exclusions when over-trigger risk is high.
|
|
40
|
+
- Do not activate unrelated skills “just in case”.
|
|
41
|
+
|
|
42
|
+
### 4. Test each model + harness combination independently
|
|
43
|
+
|
|
44
|
+
- File portability ≠ behavior portability.
|
|
45
|
+
- Validate on the actual model and host in use (direct chat / omp / Cursor / Codex / Claude Code / …):
|
|
46
|
+
- trigger accuracy
|
|
47
|
+
- execution correctness
|
|
48
|
+
- token cost
|
|
49
|
+
- regressions against prior wording
|
|
50
|
+
|
|
51
|
+
### 5. Encode only gaps the base model cannot reliably fill
|
|
52
|
+
|
|
53
|
+
Prefer encoding:
|
|
54
|
+
|
|
55
|
+
- internal conventions and SSOT ownership
|
|
56
|
+
- regulated or safety-critical procedures
|
|
57
|
+
- fragile APIs and host-specific resolution rules
|
|
58
|
+
- professional judgment and recurring failure modes
|
|
59
|
+
|
|
60
|
+
Do **not** restate generic knowledge the model already has — that wastes tokens and adds noise.
|
|
61
|
+
|
|
62
|
+
### 6. Treat every skill edit as a controlled experiment
|
|
63
|
+
|
|
64
|
+
- Require paired evaluation: with-skill vs without-skill, or before vs after with observable criteria.
|
|
65
|
+
- Accept only when success rate and trajectory quality improve on held-out / pressure cases.
|
|
66
|
+
- Record failure reasons, token cost, latency, and regressions.
|
|
67
|
+
- Reject “feels better” judgments.
|
|
68
|
+
|
|
69
|
+
## Writer workflow
|
|
70
|
+
|
|
71
|
+
1. **Collect expert path** — steps, branches, invariants, pitfalls, recovery (P1).
|
|
72
|
+
2. **Gap filter** — keep only what the base model misses or mis-orders (P5).
|
|
73
|
+
3. **Draft description** — third person; explicit trigger + exclusion; no workflow summary (P3).
|
|
74
|
+
4. **Draft compact body** — answer the five questions; move bulk to `references/` (P2).
|
|
75
|
+
5. **Wire progressive disclosure** — body names exactly which reference to open when.
|
|
76
|
+
6. **Pressure / paired check** — 2–3 prompts that fail without the skill; confirm improvement (P4, P6).
|
|
77
|
+
7. **Ship note** — list deletions/compressions (P2/P5) and how P6 was verified.
|
|
78
|
+
|
|
79
|
+
## Output template
|
|
80
|
+
|
|
81
|
+
```markdown
|
|
82
|
+
### Description
|
|
83
|
+
<third-person trigger + exclusions>
|
|
84
|
+
|
|
85
|
+
### Body
|
|
86
|
+
<compact SKILL.md answering the five questions>
|
|
87
|
+
|
|
88
|
+
### Changelog vs prior / draft
|
|
89
|
+
- Removed / compressed: ...
|
|
90
|
+
- Why this serves P2 and P5: ...
|
|
91
|
+
- How P6 was verified: ...
|
|
92
|
+
- Trigger narrowness (P3): ...
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
## Layout mapping (optional, this harness)
|
|
96
|
+
|
|
97
|
+
When authoring inside the Morning Star harness repo, map concerns as follows. Outside this repo, ignore this table and use the local project’s entry docs.
|
|
98
|
+
|
|
99
|
+
| Writer concern | Home in this harness |
|
|
100
|
+
|----------------|----------------------|
|
|
101
|
+
| Global load / conflict | `mstar-harness-core` |
|
|
102
|
+
| Skill authoring rules | this skill (`mstar-skill-authoring`) |
|
|
103
|
+
| Host path resolution | `mstar-host` |
|
|
104
|
+
| Repo maintenance (rename/index) | root `AGENTS.md` |
|
|
105
|
+
| Runtime vs maintenance split | runtime rules in skills; maintenance in `AGENTS.md` |
|
|
106
|
+
|
|
107
|
+
Default body skeleton and review checklist live in the parent `SKILL.md`; do not duplicate them here unless this reference is read in isolation.
|
|
108
|
+
|
|
109
|
+
## Anti-patterns
|
|
110
|
+
|
|
111
|
+
- Pasting a long tutorial into `SKILL.md` “for completeness”
|
|
112
|
+
- Description that narrates the whole procedure
|
|
113
|
+
- Encoding style preferences with no failure mode
|
|
114
|
+
- Copying another skill’s rule into a new skill instead of extending SSOT
|
|
115
|
+
- Accepting edits after a single cherry-picked happy-path demo
|
|
116
|
+
- Bundling multiple domains into one body instead of splitting references
|
|
117
|
+
- Framing a general authoring skill as if it only applied to one product’s skill tree
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: mstar-strategy
|
|
3
|
+
description: Morning Star 全局战略方向 —— 创建并维护 `STRATEGY.md`(项目级战略文档),作为 brainstorm/plan 的上游锚点。定义产品愿景、技术方向、不做事项、决策原则。触发:项目初始化、方向性决策变更、或 PM 要求战略对齐时。
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# mstar-strategy(全局战略方向)
|
|
7
|
+
|
|
8
|
+
## Load order
|
|
9
|
+
|
|
10
|
+
**Read `mstar-harness-core` first.** Path symbols → **`mstar-plan-conventions`**. On conflict, **`mstar-harness-core` wins**.
|
|
11
|
+
|
|
12
|
+
## Purpose
|
|
13
|
+
|
|
14
|
+
`STRATEGY.md` is the project's **upstream anchor** — a concise declaration of what the project is, where it's going, and what principles guide decisions. It is read as grounding by brainstorm, plan, and ideation phases so strategic choices flow into every feature.
|
|
15
|
+
|
|
16
|
+
Without a strategy document, decisions are made in isolation — each plan misses the larger context.
|
|
17
|
+
|
|
18
|
+
## 产物存储位置
|
|
19
|
+
|
|
20
|
+
**SSOT**: `mstar-plan-conventions/references/artifact-storage-paths.md`。STRATEGY.md → `<repo-root>/STRATEGY.md`(与 `.git/`、`AGENTS.md` 同级)。**禁止**放入 `{HARNESS_DIR}`、`docs/` 或任何子目录。
|
|
21
|
+
|
|
22
|
+
## When to use
|
|
23
|
+
|
|
24
|
+
| Trigger | Example |
|
|
25
|
+
|---------|---------|
|
|
26
|
+
| Project initialization | "Create STRATEGY.md for this new project" |
|
|
27
|
+
| Directional change | "We're pivoting from monolith to microservices" |
|
|
28
|
+
| PM requests alignment | "Check if this plan aligns with our strategy" |
|
|
29
|
+
| Periodic review | "Review and update STRATEGY.md" |
|
|
30
|
+
|
|
31
|
+
## STRATEGY.md structure
|
|
32
|
+
|
|
33
|
+
A good strategy document is opinionated and concise. It should fit in one screen of reading.
|
|
34
|
+
|
|
35
|
+
### Required sections
|
|
36
|
+
|
|
37
|
+
```markdown
|
|
38
|
+
# Strategy
|
|
39
|
+
|
|
40
|
+
## Vision
|
|
41
|
+
<1-2 sentences: what the project aims to become>
|
|
42
|
+
|
|
43
|
+
## What we build
|
|
44
|
+
<Core product/users/use cases>
|
|
45
|
+
|
|
46
|
+
## What we don't build
|
|
47
|
+
<Explicit non-goals — as important as goals>
|
|
48
|
+
|
|
49
|
+
## Guiding Principles
|
|
50
|
+
- <Principle 1>
|
|
51
|
+
- <Principle 2>
|
|
52
|
+
- <Principle 3>
|
|
53
|
+
|
|
54
|
+
## Technology Direction
|
|
55
|
+
<Key tech choices and rationale>
|
|
56
|
+
|
|
57
|
+
## Decision Log
|
|
58
|
+
<Major past decisions with context — why, not just what>
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
> **Engine check (when available):** run `mstar lint <STRATEGY.md>` (or `import { lintStrategySections } from "@mstar-harness/engine"` in a host hook) to check the six required sections above (Vision, What we build, What we don't build, Guiding Principles, Technology Direction, Decision Log). On `fail` -> do not proceed; fix and re-run. Skill text below remains authoritative when the runtime is absent.
|
|
62
|
+
|
|
63
|
+
### Optional sections
|
|
64
|
+
|
|
65
|
+
- **Current Focus** — what the team is working on now
|
|
66
|
+
- **Risks & Mitigations** — known strategic risks
|
|
67
|
+
- **Competitive Context** — what alternatives exist and how we differ
|
|
68
|
+
|
|
69
|
+
## Creating STRATEGY.md
|
|
70
|
+
|
|
71
|
+
### Phase 1: Gather context
|
|
72
|
+
|
|
73
|
+
1. Read existing project documentation (README, AGENTS.md, existing specs).
|
|
74
|
+
2. If `{KNOWLEDGE_DIR}` or `{ITERATION_DIR}` exist, scan for architectural decisions and patterns.
|
|
75
|
+
3. If `CONCEPTS.md` exists, use it to understand domain vocabulary.
|
|
76
|
+
|
|
77
|
+
### Phase 2: Interview
|
|
78
|
+
|
|
79
|
+
Ask PM these questions (one at a time):
|
|
80
|
+
|
|
81
|
+
1. "What is the one-sentence vision for this project?"
|
|
82
|
+
2. "Who are the primary users and what do they need most?"
|
|
83
|
+
3. "What are you explicitly NOT building? What's out of scope permanently?"
|
|
84
|
+
4. "What 2-3 principles should guide every technical decision?"
|
|
85
|
+
5. "What technology bets have you made, and why?"
|
|
86
|
+
|
|
87
|
+
### Phase 3: Draft
|
|
88
|
+
|
|
89
|
+
Write STRATEGY.md at the repo root. Keep it concise — each section should be 1-3 sentences or a short bullet list.
|
|
90
|
+
|
|
91
|
+
### Phase 4: Discoverability
|
|
92
|
+
|
|
93
|
+
Check if AGENTS.md references STRATEGY.md. If not, propose adding:
|
|
94
|
+
|
|
95
|
+
```markdown
|
|
96
|
+
- `STRATEGY.md` — project vision and guiding principles
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
Ask for consent before applying.
|
|
100
|
+
|
|
101
|
+
## Maintaining STRATEGY.md
|
|
102
|
+
|
|
103
|
+
### Review triggers
|
|
104
|
+
|
|
105
|
+
- After a major architectural decision
|
|
106
|
+
- When a plan introduces a new technology stack
|
|
107
|
+
- Quarterly review (scheduled by PM)
|
|
108
|
+
|
|
109
|
+
### Update rules
|
|
110
|
+
|
|
111
|
+
1. **Be decisive about direction changes.** Don't keep old strategy alongside new — replace it.
|
|
112
|
+
2. **Log decisions with context.** The Decision Log captures *why* a choice was made, not just what.
|
|
113
|
+
3. **Keep it current.** Stale strategy is worse than no strategy — it misdirects plans.
|
|
114
|
+
|
|
115
|
+
## STRATEGY.md vs other docs
|
|
116
|
+
|
|
117
|
+
| Document | Purpose | Audience |
|
|
118
|
+
|----------|---------|----------|
|
|
119
|
+
| `STRATEGY.md` | Product/technical direction, principles, decisions | PM, architect, all implementers |
|
|
120
|
+
| `AGENTS.md` | Repo maintenance policy, conventions | Contributors and agents |
|
|
121
|
+
| `CONCEPTS.md` | Domain vocabulary | Anyone reading/writing project docs |
|
|
122
|
+
| Plans in `{PLAN_DIR}/` | Feature-level implementation plan | Implementers, reviewers |
|
|
123
|
+
|
|
124
|
+
## NOT to do
|
|
125
|
+
|
|
126
|
+
- Do not write STRATEGY.md as a novel — it should be scannable
|
|
127
|
+
- Do not include implementation details or file paths
|
|
128
|
+
- Do not create without PM/architect input (ask the questions)
|
|
129
|
+
- Do not keep outdated strategy as "historical reference" — git preserves it
|
|
130
|
+
- Do not conflate strategy (direction) with conventions (how-to)
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: pm
|
|
3
|
+
description: "PM entry shim — force project-manager orchestration when user invokes /pm or this skill (Codex, Cursor, OpenCode, Kimi, ZCode, and omp). 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."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# PM (entry shim)
|
|
7
|
+
|
|
8
|
+
**Thin launcher only.** Boot lists, iteration phases, Assignment templates, and SDD loops are **not** maintained in this file.
|
|
9
|
+
|
|
10
|
+
## Host entry
|
|
11
|
+
|
|
12
|
+
| Host | Use |
|
|
13
|
+
|------|-----|
|
|
14
|
+
| **Codex** | **`/pm`** or this skill → **`project-manager`** for the session |
|
|
15
|
+
| **Cursor** | **`/pm`** or this skill → general PM orchestration (single-plan, hotfix, QC waves, dispatch) **without** starting an iteration. Formal iteration → host **`commands/`** + **`mstar-iteration`** |
|
|
16
|
+
| **OpenCode** | Same as Cursor when no command: **`project-manager`** via `mstar-roles` → `references/project-manager.md` |
|
|
17
|
+
| **Kimi** | **`/skill:pm`** or this skill → **`project-manager`**; iteration → plugin **`commands/`** (`/morning-star-harness:iteration-*`) |
|
|
18
|
+
| **ZCode** | **`/morning-star-harness:pm`** or **`/skill:pm`** → **`project-manager`** (no session auto-load) |
|
|
19
|
+
| **omp** | **`/skill:pm`** or this skill → **`project-manager`**; iteration → **`/iteration-start`** · **`/iteration-drive`** · **`/iteration-loop`** (filename commands) |
|
|
20
|
+
|
|
21
|
+
**Iteration lifecycle** (optional): host `commands/` may sequence Phase 1–5; semantics SSOT → **`mstar-iteration`**. Not required for ordinary PM work.
|
|
22
|
+
|
|
23
|
+
**Codebase audit** (optional): `/codebase-audit` command → **`mstar-audit`** — read-only codebase survey producing prioritized, self-contained improvement plans. Output feeds iteration-start §1 Research or normal Prepare → Execute. Dispatched by PM under `Task category: audit`.
|
|
24
|
+
|
|
25
|
+
Detect host → **`mstar-host`** → `references/codex.md` | `cursor.md` | `opencode.md` | `kimi.md` | `zcode.md` | `omp.md`.
|
|
26
|
+
|
|
27
|
+
## Read next (in order)
|
|
28
|
+
|
|
29
|
+
1. `mstar-harness-core`
|
|
30
|
+
2. `mstar-roles` → **`references/project-manager.md`** — required reading list, routing, dispatch-first, iteration branch policy
|
|
31
|
+
3. Topic skills **on demand** per that file and the active workflow (`mstar-dispatch-gates`, `mstar-iteration`, `mstar-sdd`, `mstar-review-qc`, …)
|
|
32
|
+
|
|
33
|
+
## Four rules (everything else is a pointer)
|
|
34
|
+
|
|
35
|
+
1. **Delegate** — PM does not implement, QC, or QA in-thread (`project-manager.md` Execution Boundary; hotfix → `mstar-phase-gates`).
|
|
36
|
+
2. **Dispatch** — when host has invoke/Task tools: **1 Assignment ⇒ 1 invoke** (`mstar-dispatch-gates`). Markdown alone is not dispatch.
|
|
37
|
+
3. **SSOT** — iteration lifecycle → **`mstar-iteration`**; Cursor Plan mode → **`mstar-host/references/cursor-plan-mode-bridge.md`**.
|
|
38
|
+
4. **Autonomous Execute push** — multi-plan iteration Phase 2–5: continuously dispatch implement → QC → QA → Done through merge-ready exit without routine yes/no prompts; **Blocked** only on true conflicts or metadata gaps → **`mstar-iteration` §2.6**.
|
|
39
|
+
|
|
40
|
+
Conflict: user instructions → project `AGENTS.md` / `CLAUDE.md` → `mstar-harness-core` → this file.
|