@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,44 @@
|
|
|
1
|
+
# Implementer continuation prompt (sticky session)
|
|
2
|
+
|
|
3
|
+
Use when PM continues **`SDD implementer session: sticky`** for Task N>1. Host: **resume** same agent when supported (`sticky-implementer-session.md`).
|
|
4
|
+
|
|
5
|
+
```
|
|
6
|
+
Dispatch:
|
|
7
|
+
Resume: [HOST_AGENT_ID from implementer-session.json]
|
|
8
|
+
Name: <CamelCaseId> # omp/Cursor name
|
|
9
|
+
Model: [same tier as session start unless PM upgrades]
|
|
10
|
+
Prompt body:
|
|
11
|
+
<SUBAGENT-STOP> Skip PM orchestration skills. You are a leaf implementer continuing a sticky SDD session.</SUBAGENT-STOP>
|
|
12
|
+
|
|
13
|
+
Continue as the same implementer on plan <plan-id>, Working branch: <branch>.
|
|
14
|
+
|
|
15
|
+
## Completed (do not redo)
|
|
16
|
+
|
|
17
|
+
Read: [SDD_DIR]/progress.md and [SDD_DIR]/implementer-session.json
|
|
18
|
+
|
|
19
|
+
## This task
|
|
20
|
+
|
|
21
|
+
Task N: <name>
|
|
22
|
+
|
|
23
|
+
Read first — your spec (verbatim): [BRIEF_FILE]
|
|
24
|
+
|
|
25
|
+
## Context not in the brief
|
|
26
|
+
|
|
27
|
+
[Interfaces from earlier tasks only if not already in your session]
|
|
28
|
+
|
|
29
|
+
## Report file
|
|
30
|
+
|
|
31
|
+
Write your full report to: [REPORT_FILE]
|
|
32
|
+
|
|
33
|
+
## Your job
|
|
34
|
+
|
|
35
|
+
1. Implement exactly what this brief specifies (prior tasks are done)
|
|
36
|
+
2. Run tests; commit on Working branch
|
|
37
|
+
3. Write report file; return short summary only
|
|
38
|
+
|
|
39
|
+
## When stuck
|
|
40
|
+
|
|
41
|
+
Report BLOCKED or NEEDS_CONTEXT — PM may reset session to fresh.
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
First task on a plan uses **`implementer-prompt.md`** (not this file).
|
|
@@ -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,182 @@
|
|
|
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
|
+
## Workflow
|
|
21
|
+
|
|
22
|
+
主链:按「Frontmatter Contract」先定触发契约(原则 3)→ 按「Body 必须回答的 5 问」写默认紧凑 body(原则 2)→ 变体细节按「Progressive Disclosure」进 `references/` / `templates/` / `scripts/` → 行为塑形改动按「验证门控(Evidence,原则 4 + 6)」留 paired 证据 → 按「Review Template」自审并完成「完成时主动说明」三问。
|
|
23
|
+
|
|
24
|
+
## 6 条作者原则(Decision Rules,必须遵守)
|
|
25
|
+
|
|
26
|
+
来源:SkillsBench 大规模实验。违反任一都会降低 agent 性能。
|
|
27
|
+
|
|
28
|
+
| # | 原则 | 强制动作 |
|
|
29
|
+
|---|------|----------|
|
|
30
|
+
| 1 | **专家流程优先** | 先提取真实操作步骤、决策标准、约束、API 坑与失败恢复;模型只做编辑器。禁止把一键生成稿当最终版。 |
|
|
31
|
+
| 2 | **紧凑程序性** | body 只答 5 问(见下);详例 / 长文档进 `references/`,按需加载。过长 body 几乎无提升甚至负提升。 |
|
|
32
|
+
| 3 | **路由最小化** | 任务真正需要时才加载;目标 **1–3** 个 skill。description 必须具体到可精准匹配,避免无关激活。 |
|
|
33
|
+
| 4 | **按 model+harness 实测** | 文件可移植 ≠ 行为可移植。在实际使用的模型与宿主(omp / Cursor / Codex / Claude Code 等)分别验证触发、执行、token、回归。 |
|
|
34
|
+
| 5 | **只补模型缺口** | 编码内部约定、受监管流程、脆弱 API、专业判断、反复失败模式。不写模型已会的通用知识。 |
|
|
35
|
+
| 6 | **每次改动=受控实验** | 必须有 paired 证据(with vs without,或 before/after + 可观察标准)。held-out / 压力场景未提升则拒绝合入。禁止“感觉更好”。 |
|
|
36
|
+
|
|
37
|
+
## Body 必须回答的 5 问
|
|
38
|
+
|
|
39
|
+
合格 `SKILL.md` **只**清晰回答:
|
|
40
|
+
|
|
41
|
+
1. **何时加载?**(触发 / 排除)
|
|
42
|
+
2. **按什么顺序与关键决策点执行?**
|
|
43
|
+
3. **哪些约束 / 不变量绝不可违反?**
|
|
44
|
+
4. **正确结果长什么样?**(成功标准 / 证据)
|
|
45
|
+
5. **主路径不够时打开哪些额外资源?**
|
|
46
|
+
|
|
47
|
+
答不进这 5 问的内容 → 删或移到 `references/`。
|
|
48
|
+
|
|
49
|
+
### 运行时别名(runtime alias map)
|
|
50
|
+
|
|
51
|
+
已发布的 `mstar-*` 专题 skill 允许**运行时模式**(`lintFiveQuestion(body, "runtime")`)用**锁定别名表**回答同一问题(引擎常量 `RUNTIME_HEADING_ALIASES`):
|
|
52
|
+
|
|
53
|
+
| 问题 | 运行时别名(标题子串,大小写不敏感) |
|
|
54
|
+
|------|------|
|
|
55
|
+
| Workflow | `process`、`playbook` |
|
|
56
|
+
| Decision Rules | `hard rules`、`core rules`、`rule`、`gate`、`not to do`、`red flags`、`反模式`、`红线`、`规则`、`门禁` |
|
|
57
|
+
| Evidence | `output format`、`证据` |
|
|
58
|
+
| References | `dependencies`、`关系` |
|
|
59
|
+
|
|
60
|
+
- 别名表是**锁定表**:改表必须同步引擎回归测试与 corpus。
|
|
61
|
+
- **新写 / greenfield skill(authoring / strict)仍要求 canonical 标题**;运行时别名只豁免已发布专题 skill 的机械 lint,**不豁免语义**——别名标题必须真实回答对应问题,正文不得因别名而缩水。
|
|
62
|
+
|
|
63
|
+
## Skill Purpose Test
|
|
64
|
+
|
|
65
|
+
仅当全部成立才新建 / 扩写 skill:
|
|
66
|
+
|
|
67
|
+
1. 行为应跨多项目、角色或任务复用。
|
|
68
|
+
2. 需要判断或排序,且不宜用代码强制。
|
|
69
|
+
3. 现有 skill 树尚未拥有同一规则(避免副本)。
|
|
70
|
+
4. 触发条件可写清,agent 知道何时读取。
|
|
71
|
+
|
|
72
|
+
不要为这些建 skill:一次性项目约定(放项目 `AGENTS.md` / 等价处)、可 lint/脚本化的机械规则、无复用手法的事故叙述、已有 skill 规则的副本。
|
|
73
|
+
|
|
74
|
+
## Frontmatter Contract
|
|
75
|
+
|
|
76
|
+
```yaml
|
|
77
|
+
---
|
|
78
|
+
name: example-skill
|
|
79
|
+
description: Use when...
|
|
80
|
+
---
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
- `name`:稳定、小写、连字符。
|
|
84
|
+
- `description`:**触发契约**,不是流程摘要。写清症状、上下文、角色、产物与排除条件。
|
|
85
|
+
- 第三人称;足够具体以避免无关加载(原则 3)。
|
|
86
|
+
- 禁止在 description 里总结整条 workflow(否则 agent 可能只跟摘要、跳过 body)。
|
|
87
|
+
|
|
88
|
+
Bad:`Explains how to write plans with steps, tests, commits, and review gates.`
|
|
89
|
+
Better:`Use when a non-trivial task has a spec or requirements and needs a written implementation plan before code changes.`
|
|
90
|
+
|
|
91
|
+
> **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.
|
|
92
|
+
|
|
93
|
+
## 默认 Body 结构
|
|
94
|
+
|
|
95
|
+
```markdown
|
|
96
|
+
# Skill Title
|
|
97
|
+
|
|
98
|
+
## Load Order
|
|
99
|
+
## Scope
|
|
100
|
+
## Workflow
|
|
101
|
+
## Decision Rules
|
|
102
|
+
## Evidence
|
|
103
|
+
## References
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
Keep `SKILL.md` focused on the main execution path. Move long examples, templates, schemas, and detailed variants into `references/`, `templates/`, or `scripts/`.
|
|
107
|
+
|
|
108
|
+
## Skill-relative script and asset paths
|
|
109
|
+
|
|
110
|
+
When a skill ships executables or assets under `scripts/` / `templates/` / `references/`, name them as **skill → relative path**:
|
|
111
|
+
|
|
112
|
+
- Good: skill **`my-skill`** → `scripts/do-thing`
|
|
113
|
+
- Good: `<my-skill>/scripts/do-thing`(已加载 skill 根的占位写法)
|
|
114
|
+
- Bad:把 `skills/my-skill/scripts/do-thing` 写成消费仓库 cwd 下的字面路径
|
|
115
|
+
|
|
116
|
+
Agents 按 **skill 名** 发现 skill;文档若给出完整仓内相对路径,agent 常在应用仓库 cwd 下按字面搜索而找不到。先解析已加载 skill 根目录,再拼 `scripts/…` / `references/…`。
|
|
117
|
+
|
|
118
|
+
在本 harness:解析方式见 **`mstar-host`** § Resolve loaded skill root(omp `skill://`、各宿主插件挂载等)。其它环境按当地 skill 安装约定解析。
|
|
119
|
+
|
|
120
|
+
> **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.
|
|
121
|
+
|
|
122
|
+
## Progressive Disclosure
|
|
123
|
+
|
|
124
|
+
1. Frontmatter:仅触发
|
|
125
|
+
2. `SKILL.md`:主执行路径
|
|
126
|
+
3. `references/` / `templates/` / `scripts/`:变体细节,按需加载
|
|
127
|
+
|
|
128
|
+
多宿主 / 多域细节按文件拆分,并在 body 写明「何时打开哪份」。
|
|
129
|
+
|
|
130
|
+
## 验证门控(Evidence,原则 4 + 6)
|
|
131
|
+
|
|
132
|
+
行为塑形改动必须留下证据,任选可观测形式:
|
|
133
|
+
|
|
134
|
+
- 2–3 个压力 prompt(无 skill 易失败;有 skill 应通过)
|
|
135
|
+
- before/after 期望 + 触发短语 + 一次具体校验(检索、链接、dry-run)
|
|
136
|
+
- 记录失败原因、token / 延迟回归;未提升则回滚文案
|
|
137
|
+
|
|
138
|
+
压力场景骨架:
|
|
139
|
+
|
|
140
|
+
```json
|
|
141
|
+
{
|
|
142
|
+
"skill_name": "example-skill",
|
|
143
|
+
"evals": [
|
|
144
|
+
{
|
|
145
|
+
"id": 1,
|
|
146
|
+
"prompt": "会诱使 agent 违反目标规则的真实任务",
|
|
147
|
+
"expected_output": "合规行为长什么样",
|
|
148
|
+
"files": []
|
|
149
|
+
}
|
|
150
|
+
]
|
|
151
|
+
}
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
## 完成时主动说明
|
|
155
|
+
|
|
156
|
+
写完 / 大改 skill 后必须交代:
|
|
157
|
+
|
|
158
|
+
1. **删了 / 压了什么**,以及如何满足原则 2 与 5
|
|
159
|
+
2. **如何验证原则 6**(paired 证据或压力场景)
|
|
160
|
+
3. **触发契约**是否仍足够窄(原则 3)
|
|
161
|
+
|
|
162
|
+
## Review Template
|
|
163
|
+
|
|
164
|
+
```markdown
|
|
165
|
+
## Skill Review
|
|
166
|
+
- Trigger contract:
|
|
167
|
+
- 5 questions covered:
|
|
168
|
+
- Principles 2/5 compactness:
|
|
169
|
+
- SSOT alignment:
|
|
170
|
+
- Progressive disclosure:
|
|
171
|
+
- Evidence for behavior change (P6):
|
|
172
|
+
- Stale references checked:
|
|
173
|
+
- Verdict: Approve | Request Changes | Needs Discussion | Unconfirmed
|
|
174
|
+
- Unconfirmed: paired evidence (P6) cannot be established or verified
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
## References
|
|
178
|
+
|
|
179
|
+
| 何时 | 打开 |
|
|
180
|
+
|------|------|
|
|
181
|
+
| 需要完整 skill-writer 流程、原则细则、输出模板 | `references/skillsbench-authoring.md` |
|
|
182
|
+
| 需要把「真实产物」固化为可重跑断言(P6 重武器选项) | `references/regression-fixation.md` |
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# 回归固化参考(Regression Fixation Reference)
|
|
2
|
+
|
|
3
|
+
行为塑形改动(skill 正文流程、命令序列、CLI 行为面)的 paired evidence 武器库之一(P6 **重武器选项**)。默认证据仍是 SKILL.md「验证门控」的 P6 before/after + 应用案例;仅当行为可脚本化、且该行为面值得长期固化时,用本手法。
|
|
4
|
+
|
|
5
|
+
## 何时用(When)
|
|
6
|
+
|
|
7
|
+
- 行为面有**可执行产物**:skill 正文里的流程脚本 / 命令序列 / CLI 调用链。
|
|
8
|
+
- 该面曾出过行为 bug,或改动触碰宿主边界(解析、打包、路径解析、子进程执行)。
|
|
9
|
+
- 例外:纯文案 / 无可观测行为的规则微调 → 走默认 P6,不加载本参考。
|
|
10
|
+
|
|
11
|
+
## 手法(Technique)
|
|
12
|
+
|
|
13
|
+
1. **真实产物当被测对象(real artifact as test subject)**
|
|
14
|
+
不 import 源码、不 mock 掉被测面本身——直接运行用户/agent 实际触达的产物(built bundle、命令序列、宿主钩子驱动的完整流程)。产物侧跑通,才能覆盖「源码 import 跑不到」的缺陷面(bundle 解码、产物路径解析、子进程环境)。
|
|
15
|
+
→ 本仓实例:`packages/cli/test/bundle-smoke.test.ts`(2026-08-16 落地)对 **built bundle** `dist/mstar-harness.js` 子进程执行 `dispatch validate` 并断言 exit code,而非 import `src/index.ts`。
|
|
16
|
+
|
|
17
|
+
2. **Mock 宿主钩子(mock host hooks)**
|
|
18
|
+
把宿主边界替换为受控桩:mstar 面对应 dispatch / file IO / CLI 调用。固定输入(fixture 文件、argv、环境变量),断言行为输出(exit code、stdout/stderr、副作用文件)。钩子命名沿用宿主自身词汇,不引入外部系统 hook 名。
|
|
19
|
+
|
|
20
|
+
3. **双路径断言一致(dual-path assertion)**
|
|
21
|
+
同一断言集对两条路径各跑一遍并断言一致:**真实模块路径**(import 产物 / 源码)与**被测路径**(vm 求值真实脚本 / 子进程 bundle)。任一路径偏离 → 立即暴露「实现与产物行为漂移」。
|
|
22
|
+
|
|
23
|
+
4. **修复固化(fix solidification)**
|
|
24
|
+
行为 bug 修复流程:先写复现用例见 FAIL → 修 → 用例见 PASS → 进回归集。此后每次改动重跑回归集,同类 bug 不再复发(回归集随修复轮增长)。
|
|
25
|
+
|
|
26
|
+
## 最小骨架(Skeleton,零外部依赖)
|
|
27
|
+
|
|
28
|
+
```js
|
|
29
|
+
// node:test + vm:求值「真实脚本文本」,不复制逻辑到测试
|
|
30
|
+
import test from "node:test";
|
|
31
|
+
import vm from "node:vm";
|
|
32
|
+
|
|
33
|
+
const script = readFileSync("flow.js", "utf8"); // 真实产物
|
|
34
|
+
const sandbox = { dispatch: mockDispatch, fileIO: mockFileIO }; // mock 宿主钩子
|
|
35
|
+
vm.runInNewContext(script, sandbox); // 被测路径
|
|
36
|
+
assert.deepEqual(sandbox.events, expected); // 断言行为输出
|
|
37
|
+
// 双路径:同一断言集对真实模块路径再跑一遍,assert 一致
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
bun test 同理:`Bun.spawnSync` 子进程跑 bundle + `expect` 断言(见本仓 bundle-smoke 实例)。
|
|
41
|
+
|
|
42
|
+
## 边界(Boundaries)
|
|
43
|
+
|
|
44
|
+
- **零外部依赖**:Node 内置 `vm` / `node:test`(或 bun test)即可,不引入第三方测试框架。
|
|
45
|
+
- **不强制**:默认仍是 P6 before/after + 应用案例;本参考是重武器选项。
|
|
46
|
+
- **只固化可观测行为**:模型判断、触发精确性等不可脚本化断言的面,仍走压力场景(SKILL.md「验证门控」)。
|
|
@@ -0,0 +1,154 @@
|
|
|
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
|
+
## Authoring devices
|
|
80
|
+
|
|
81
|
+
Small, composable techniques for specific authoring problems; each maps onto one or two
|
|
82
|
+
principles above. Pull one in when it fits — do not encode all six into every skill.
|
|
83
|
+
|
|
84
|
+
1. **Calibrated examples file** (serves P2/P5) — keep one small reference of real cases
|
|
85
|
+
distilled into annotated judgments; readers identify the governing principle, not text
|
|
86
|
+
templates, and it is written back when a new rule settles. In this harness: the Q1–Q8
|
|
87
|
+
worked judgments in `mstar-compound` `references/compound-workflow.md`; this iteration's
|
|
88
|
+
fold-B overcorrection checklist (device 3) is a softer second instance.
|
|
89
|
+
|
|
90
|
+
2. **Recall batteries** (serves P5) — for audit/hunt skills: over-matching probes that
|
|
91
|
+
force a semantic judgment, plus a documented list of known false-positive families; a
|
|
92
|
+
zero-hit pattern proves nothing until you have seen it match. In this harness: the recon
|
|
93
|
+
hints `mstar-audit` fans out to scout subagents — scoping facts, domain risk hints, and
|
|
94
|
+
decided-tradeoff "don't report" pointers.
|
|
95
|
+
|
|
96
|
+
3. **Overcorrection traps** (adjacent to P6) — a short section per skill naming the failure
|
|
97
|
+
modes of over-applying its own rules, so the skill guards its own bias. In this harness:
|
|
98
|
+
the overcorrection-traps row in `mstar-compound` `references/compound-workflow.md`
|
|
99
|
+
(obligation↛endorsement flips, hypotheticals stay marked, delete clauses, not sentences).
|
|
100
|
+
|
|
101
|
+
4. **Required-explicit-input** (adjacent to P3) — when the required scope or answers are
|
|
102
|
+
missing, report and stop; never infer a repo-wide default. In this harness: `mstar-audit`
|
|
103
|
+
asks which findings to turn into plans — "do not write 30 plans nobody asked for" —
|
|
104
|
+
instead of inferring the scope itself.
|
|
105
|
+
|
|
106
|
+
5. **Questions ≠ write authority** (serves P6) — interaction and calibration gates never
|
|
107
|
+
change edit authority; only the evaluation does. In this harness: `grill-me` interviews
|
|
108
|
+
without editing, and `mstar-sdd` keeps the per-task reviewer's report separate from the
|
|
109
|
+
implementer's application.
|
|
110
|
+
|
|
111
|
+
6. **Invocation boundary** (adjacent to P3) — declare expensive workflows user-invocable
|
|
112
|
+
only; never put them in a skill load order. In this harness: the `/iteration-*` lifecycle
|
|
113
|
+
lives in `commands/`; `mstar-harness-core` keeps command-layer references out of the
|
|
114
|
+
`mstar-*` load matrix.
|
|
115
|
+
|
|
116
|
+
## Output template
|
|
117
|
+
|
|
118
|
+
```markdown
|
|
119
|
+
### Description
|
|
120
|
+
<third-person trigger + exclusions>
|
|
121
|
+
|
|
122
|
+
### Body
|
|
123
|
+
<compact SKILL.md answering the five questions>
|
|
124
|
+
|
|
125
|
+
### Changelog vs prior / draft
|
|
126
|
+
- Removed / compressed: ...
|
|
127
|
+
- Why this serves P2 and P5: ...
|
|
128
|
+
- How P6 was verified: ...
|
|
129
|
+
- Trigger narrowness (P3): ...
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
## Layout mapping (optional, this harness)
|
|
133
|
+
|
|
134
|
+
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.
|
|
135
|
+
|
|
136
|
+
| Writer concern | Home in this harness |
|
|
137
|
+
|----------------|----------------------|
|
|
138
|
+
| Global load / conflict | `mstar-harness-core` |
|
|
139
|
+
| Skill authoring rules | this skill (`mstar-skill-authoring`) |
|
|
140
|
+
| Host path resolution | `mstar-host` |
|
|
141
|
+
| Repo maintenance (rename/index) | root `AGENTS.md` |
|
|
142
|
+
| Runtime vs maintenance split | runtime rules in skills; maintenance in `AGENTS.md` |
|
|
143
|
+
|
|
144
|
+
Default body skeleton and review checklist live in the parent `SKILL.md`; do not duplicate them here unless this reference is read in isolation.
|
|
145
|
+
|
|
146
|
+
## Anti-patterns
|
|
147
|
+
|
|
148
|
+
- Pasting a long tutorial into `SKILL.md` “for completeness”
|
|
149
|
+
- Description that narrates the whole procedure
|
|
150
|
+
- Encoding style preferences with no failure mode
|
|
151
|
+
- Copying another skill’s rule into a new skill instead of extending SSOT
|
|
152
|
+
- Accepting edits after a single cherry-picked happy-path demo
|
|
153
|
+
- Bundling multiple domains into one body instead of splitting references
|
|
154
|
+
- Framing a general authoring skill as if it only applied to one product’s skill tree
|