@mstar-harness/opencode 0.6.10 → 0.6.12

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.
@@ -1,4 +1,9 @@
1
1
  ---
2
+ name: architect
3
+ description: |-
4
+ 技术架构师 - 系统设计、技术决策与技术向文档编写(架构说明、ADR、接口契约等)。
5
+ Architect - system design, technical decisions, and technical documentation (architecture notes, ADRs, interface contracts).
6
+ model: inherit
2
7
  mode: subagent
3
8
  tools:
4
9
  write: true
@@ -10,10 +15,6 @@ permission:
10
15
  task:
11
16
  "*": deny
12
17
  explore: allow
13
- name: architect
14
- description: |-
15
- 技术架构师 - 系统设计、技术决策与技术向文档编写(架构说明、ADR、接口契约等)。
16
- Architect - system design, technical decisions, and technical documentation (architecture notes, ADRs, interface contracts).
17
18
  ---
18
19
 
19
20
  ## Morning Star Role Binding
@@ -1,4 +1,9 @@
1
1
  ---
2
+ name: frontend-dev
3
+ description: |-
4
+ 前端开发工程师 - 页面/组件/交互/a11y/前端性能。全栈功能里默认前端主责(与 `@fullstack-dev` 分轨);纯 UI 任务首选本角色。
5
+ Frontend Developer - pages/components/interactions/accessibility/frontend performance. This is the default frontend owner in fullstack work (split with `@fullstack-dev`) and the preferred role for pure UI tasks.
6
+ model: inherit
2
7
  mode: subagent
3
8
  tools:
4
9
  write: true
@@ -8,10 +13,6 @@ permission:
8
13
  task:
9
14
  "*": deny
10
15
  explore: allow
11
- name: frontend-dev
12
- description: |-
13
- 前端开发工程师 - 页面/组件/交互/a11y/前端性能。全栈功能里默认前端主责(与 `@fullstack-dev` 分轨);纯 UI 任务首选本角色。
14
- Frontend Developer - pages/components/interactions/accessibility/frontend performance. This is the default frontend owner in fullstack work (split with `@fullstack-dev`) and the preferred role for pure UI tasks.
15
16
  ---
16
17
 
17
18
  ## Morning Star Role Binding
@@ -1,4 +1,9 @@
1
1
  ---
2
+ name: fullstack-dev-2
3
+ description: |-
4
+ 全栈开发工程师 - 与 `@fullstack-dev` 并行的第二实现轨(独立模块/API/页面岛)。PM 在 tasks 可并行或加速时指派;须写明模块边界与分支,勿当作闲置备用。
5
+ Fullstack Developer (Track 2) - the second implementation track parallel to `@fullstack-dev` (independent modules/APIs/page islands). PM should assign this role when tasks can run in parallel or when acceleration is needed, with explicit module boundaries and branch ownership.
6
+ model: inherit
2
7
  mode: subagent
3
8
  tools:
4
9
  write: true
@@ -8,10 +13,6 @@ permission:
8
13
  task:
9
14
  "*": deny
10
15
  explore: allow
11
- name: fullstack-dev-2
12
- description: |-
13
- 全栈开发工程师 - 与 `@fullstack-dev` 并行的第二实现轨(独立模块/API/页面岛)。PM 在 tasks 可并行或加速时指派;须写明模块边界与分支,勿当作闲置备用。
14
- Fullstack Developer (Track 2) - the second implementation track parallel to `@fullstack-dev` (independent modules/APIs/page islands). PM should assign this role when tasks can run in parallel or when acceleration is needed, with explicit module boundaries and branch ownership.
15
16
  ---
16
17
 
17
18
  ## Morning Star Role Binding
@@ -1,4 +1,9 @@
1
1
  ---
2
+ name: fullstack-dev
3
+ description: |-
4
+ 全栈开发工程师 - 后端主导的全栈实现(API/业务/数据层)。UI 重或新页面多时由 PM 拆给 `@frontend-dev`;第二并行实现轨用 `@fullstack-dev-2`。Hotfix/单流小改可一人完成。
5
+ Fullstack Developer - backend-led fullstack implementation (API/business/data). PM should split UI-heavy or new-page work to `@frontend-dev`, and use `@fullstack-dev-2` for the second parallel track. One developer can handle hotfixes or small single-stream updates.
6
+ model: inherit
2
7
  mode: subagent
3
8
  tools:
4
9
  write: true
@@ -8,10 +13,6 @@ permission:
8
13
  task:
9
14
  "*": deny
10
15
  explore: allow
11
- name: fullstack-dev
12
- description: |-
13
- 全栈开发工程师 - 后端主导的全栈实现(API/业务/数据层)。UI 重或新页面多时由 PM 拆给 `@frontend-dev`;第二并行实现轨用 `@fullstack-dev-2`。Hotfix/单流小改可一人完成。
14
- Fullstack Developer - backend-led fullstack implementation (API/business/data). PM should split UI-heavy or new-page work to `@frontend-dev`, and use `@fullstack-dev-2` for the second parallel track. One developer can handle hotfixes or small single-stream updates.
15
16
  ---
16
17
 
17
18
  ## Morning Star Role Binding
@@ -1,4 +1,9 @@
1
1
  ---
2
+ name: ops-engineer
3
+ description: |-
4
+ 运维工程师 - 部署、监控和基础设施。
5
+ Ops Engineer - deployment, monitoring, and infrastructure operations, including CI/CD and observability.
6
+ model: inherit
2
7
  mode: subagent
3
8
  tools:
4
9
  write: true
@@ -8,10 +13,6 @@ permission:
8
13
  task:
9
14
  "*": deny
10
15
  explore: allow
11
- name: ops-engineer
12
- description: |-
13
- 运维工程师 - 部署、监控和基础设施。
14
- Ops Engineer - deployment, monitoring, and infrastructure operations, including CI/CD and observability.
15
16
  ---
16
17
 
17
18
  ## Morning Star Role Binding
@@ -1,4 +1,9 @@
1
1
  ---
2
+ name: product-manager
3
+ description: |-
4
+ 产品经理 - 需求分析、产品规划、市场/用户研究与产品向文档编写。
5
+ Product Manager - requirements analysis, product planning, market/user research, and product-facing documentation.
6
+ model: inherit
2
7
  mode: subagent
3
8
  tools:
4
9
  write: true
@@ -10,10 +15,6 @@ permission:
10
15
  task:
11
16
  "*": deny
12
17
  explore: allow
13
- name: product-manager
14
- description: |-
15
- 产品经理 - 需求分析、产品规划、市场/用户研究与产品向文档编写。
16
- Product Manager - requirements analysis, product planning, market/user research, and product-facing documentation.
17
18
  ---
18
19
 
19
20
  ## Morning Star Role Binding
@@ -1,4 +1,9 @@
1
1
  ---
2
+ name: project-manager
3
+ description: |-
4
+ 项目经理 - 协调开发团队,管理项目进度。
5
+ Project Manager - coordinate the team, track progress, and orchestrate execution across roles.
6
+ model: inherit
2
7
  mode: primary
3
8
  tools:
4
9
  write: true
@@ -7,10 +12,6 @@ tools:
7
12
  permission:
8
13
  task:
9
14
  "*": allow
10
- name: project-manager
11
- description: |-
12
- 项目经理 - 协调开发团队,管理项目进度。
13
- Project Manager - coordinate the team, track progress, and orchestrate execution across roles.
14
15
  ---
15
16
 
16
17
  ## Morning Star Role Binding
@@ -1,4 +1,9 @@
1
1
  ---
2
+ name: prompt-engineer
3
+ description: |-
4
+ 提示词工程师 - 设计与优化 Agent 提示词与技能。
5
+ Prompt Engineer - design and optimize prompts and skills for agents, including refactoring and debugging prompt systems.
6
+ model: inherit
2
7
  mode: subagent
3
8
  tools:
4
9
  write: true
@@ -8,10 +13,6 @@ permission:
8
13
  task:
9
14
  "*": deny
10
15
  explore: allow
11
- name: prompt-engineer
12
- description: |-
13
- 提示词工程师 - 设计与优化 Agent 提示词与技能。
14
- Prompt Engineer - design and optimize prompts and skills for agents, including refactoring and debugging prompt systems.
15
16
  ---
16
17
 
17
18
  ## Morning Star Role Binding
@@ -1,4 +1,9 @@
1
1
  ---
2
+ name: qa-engineer
3
+ description: |-
4
+ 测试工程师 - 编写测试用例和自动化测试。
5
+ QA Engineer - test planning, automated tests, coverage improvements, and regression protection.
6
+ model: inherit
2
7
  mode: subagent
3
8
  tools:
4
9
  write: true
@@ -10,10 +15,6 @@ permission:
10
15
  task:
11
16
  "*": deny
12
17
  explore: allow
13
- name: qa-engineer
14
- description: |-
15
- 测试工程师 - 编写测试用例和自动化测试。
16
- QA Engineer - test planning, automated tests, coverage improvements, and regression protection.
17
18
  ---
18
19
 
19
20
  ## Morning Star Role Binding
@@ -1,4 +1,9 @@
1
1
  ---
2
+ name: qc-specialist-2
3
+ description: |-
4
+ 质量控制专家(Reviewer #2)- 代码审查和质量保证。
5
+ Quality Control Specialist (Reviewer #2) - code review and quality assurance after significant changes.
6
+ model: inherit
2
7
  mode: subagent
3
8
  tools:
4
9
  write: true
@@ -90,10 +95,6 @@ permission:
90
95
  task:
91
96
  "*": deny
92
97
  explore: allow
93
- name: qc-specialist-2
94
- description: |-
95
- 质量控制专家(Reviewer #2)- 代码审查和质量保证。
96
- Quality Control Specialist (Reviewer #2) - code review and quality assurance after significant changes.
97
98
  ---
98
99
 
99
100
  ## Morning Star Role Binding
@@ -1,4 +1,9 @@
1
1
  ---
2
+ name: qc-specialist-3
3
+ description: |-
4
+ 质量控制专家(Reviewer #3)- 代码审查和质量保证。
5
+ Quality Control Specialist (Reviewer #3) - code review and quality assurance after significant changes.
6
+ model: inherit
2
7
  mode: subagent
3
8
  tools:
4
9
  write: true
@@ -90,10 +95,6 @@ permission:
90
95
  task:
91
96
  "*": deny
92
97
  explore: allow
93
- name: qc-specialist-3
94
- description: |-
95
- 质量控制专家(Reviewer #3)- 代码审查和质量保证。
96
- Quality Control Specialist (Reviewer #3) - code review and quality assurance after significant changes.
97
98
  ---
98
99
 
99
100
  ## Morning Star Role Binding
@@ -1,4 +1,9 @@
1
1
  ---
2
+ name: qc-specialist
3
+ description: |-
4
+ 质量控制专家(Reviewer #1)- 代码审查和质量保证。
5
+ Quality Control Specialist (Reviewer #1) - code review and quality assurance after significant changes.
6
+ model: inherit
2
7
  mode: subagent
3
8
  tools:
4
9
  write: true
@@ -90,10 +95,6 @@ permission:
90
95
  task:
91
96
  "*": deny
92
97
  explore: allow
93
- name: qc-specialist
94
- description: |-
95
- 质量控制专家(Reviewer #1)- 代码审查和质量保证。
96
- Quality Control Specialist (Reviewer #1) - code review and quality assurance after significant changes.
97
98
  ---
98
99
 
99
100
  ## Morning Star Role Binding
@@ -1,4 +1,9 @@
1
1
  ---
2
+ name: writing-specialist
3
+ description: |-
4
+ 写作专家 - 文档写作、小说写作、文案写作与脚本写作。
5
+ Writing Specialist - documentation, fiction, copywriting, and script writing.
6
+ model: inherit
2
7
  mode: subagent
3
8
  tools:
4
9
  write: true
@@ -10,10 +15,6 @@ permission:
10
15
  task:
11
16
  "*": deny
12
17
  explore: allow
13
- name: writing-specialist
14
- description: |-
15
- 写作专家 - 文档写作、小说写作、文案写作与脚本写作。
16
- Writing Specialist - documentation, fiction, copywriting, and script writing.
17
18
  ---
18
19
 
19
20
  ## Morning Star Role Binding
@@ -35,6 +35,8 @@ description: Morning Star 派发与委派门禁 —— 仅 PM 可增派 subagent
35
35
  3. 下一动作是不是「Task / subagent_type=…」?是 → 停手,改为 Read / Write / Shell / Edit,或 **`Blocked`**。
36
36
  4. 命中任一 NEVER → 写 `## Blocked — recursive dispatch refused (<which NEVER>)` 回报 PM,**不**继续 invoke。
37
37
 
38
+ **Assignment 顶部反模式块**:每个 PM Assignment 开头均有 **`**You are a leaf executor. You MUST NOT:**`** 块,PM 按此 Assignment 的角色+上下文定制反模式清单。leaf executor 收到 Assignment 后须 **首先** 阅读该块;命中任一条 → **停止**(亲自完成或 `Blocked`)。详见 **`mstar-roles/references/project-manager/dispatch-and-assignment.md`**。
39
+
38
40
  ## 并发分派完整性门禁(PM 强制)
39
41
 
40
42
  当 PM 声明「并发分派」时,须同时满足**文案并发**与**工具并发**:
@@ -1,6 +1,8 @@
1
1
  # Leaf executor dispatch checklist
2
2
 
3
3
  > Load **`mstar-harness-core`** first, then **`mstar-dispatch-gates`** SKILL.md.
4
+ >
5
+ > **First**: read the `**You are a leaf executor. You MUST NOT:**` block at the top of your Assignment. Those anti-patterns are customized for your specific role+context and are the authoritative dispatch boundaries for this assignment.
4
6
 
5
7
  Before any Task/subagent call:
6
8
 
@@ -41,7 +41,7 @@ Enforcement: `rules/mstar-cursor-plan-mode.mdc` when plugin active.
41
41
  ## Task tool (QC tri-review)
42
42
 
43
43
  - Apply **`parallel-dispatch.md`**: prerequisite message may prep only; dispatch message emits **all `N`** Tasks (**3** for tri-review) in **one** message when parallel is required.
44
- - `subagent_type`: `qc-specialist`, `qc-specialist-2`, `qc-specialist-3`.
44
+ - `subagent_type`: bare role ids — `qc-specialist`, `qc-specialist-2`, `qc-specialist-3` (same for implement roles: `fullstack-dev`, `frontend-dev`, etc.).
45
45
  - Identical across three Tasks: **`plan_id`**, **`Review cwd`**, **`Review range` / Diff basis** (`mstar-branch-worktree`, `mstar-dispatch-gates`, `mstar-review-qc`).
46
46
  - Parallel QC ≠ different review cwd per reviewer; one integrated HEAD for scope.
47
47
  - Status Update may note QC ran via parallel Task subagents.
@@ -30,9 +30,33 @@ For assignees (non-PM):
30
30
 
31
31
  ## Assignment Template (Canonical)
32
32
 
33
+ Every Assignment **MUST** start with a **`You are a leaf executor. You MUST NOT:`** block listing the most likely dispatch violations for THIS assignment's situation. PM customizes per assignment; generic rules (no recursive dispatch, no interpreting routing text as invoke, available ≠ authorized) are the minimum floor. Add assignment-specific anti-patterns that the current role+context combination is prone to.
34
+
35
+ **How to fill the block (PM guidance)**:
36
+
37
+ - Always include the universal floor (recursive dispatch, routing-text-as-invoke, tool-availability-misread).
38
+ - Add anti-patterns specific to the assignment context. Examples per role type:
39
+ - **QC reviewers**: "start review before all QC reviewers are dispatched in parallel"; "treat other reviewers' names in routing text as invoke targets"
40
+ - **Multi-track implementers** (`fullstack-dev` + `frontend-dev`): "auto-dispatch to the other track mentioned in Dev routing"
41
+ - **`@fullstack-dev-2`**: "treat `@fullstack-dev` in routing narrative as a handoff or invoke target"
42
+ - **`@qa-engineer`**: "start validation before QC reports are consolidated"; "modify application code"
43
+ - **`@explore`-assigned**: "implement or modify code"
44
+ - **All non-PM**: "use `dispatching-parallel-agents`"; "spawn a subagent whose `subagent_type` matches your own `Execute as` role id"
45
+ - Anti-patterns must be action-oriented ("auto-dispatch to …", "treat … as invoke", "start … before …") — not abstract descriptions.
46
+ - If the assignment involves multiple QCs or parallel tracks, add a specific bullet about NOT serializing or pre-empting the parallel dispatch.
47
+ - If the assignment is part of a broader staged plan with follow-up tasks, add a bullet about NOT auto-extending scope into downstream tasks.
48
+
33
49
  ```markdown
34
50
  ## Assignment
35
51
 
52
+ **You are a leaf executor. You MUST NOT:**
53
+ - dispatch or invoke any subagent unless `Delegation: allowed (...)` appears below
54
+ - treat `@role-id` mentions, `Handoff`, `QA note`, routing tables, or multi-track prose as invoke commands
55
+ - invoke a subagent whose `subagent_type` matches your own `Execute as` role id (recursive dispatch)
56
+ - <situation-specific anti-pattern #1>
57
+ - <situation-specific anti-pattern #2>
58
+ - ...
59
+
36
60
  **Execute as**: <role-id>
37
61
  **Who runs this turn (executor lock)**: only `Execute as` role for this message
38
62
  **Primary**: <route type>
@@ -70,10 +94,11 @@ For assignees (non-PM):
70
94
  - [ ] commit proof
71
95
  **Constraints**: ...
72
96
  **Effort (agent-oriented)**: <XS/S/M/L/XL + session band>
73
- **Orchestration Guard**:
97
+ **Orchestration Guard** (see `**You are a leaf executor. You MUST NOT:**` block at top for primary anti-patterns):
74
98
  - No recursive same-role dispatch
75
99
  - Do not dispatch roles from route narrative/handoff text
76
100
  - `@explore` is read-only orientation only
101
+ - Tool availability ≠ delegation authorization
77
102
  **Plan Path**: <{PLAN_DIR}/... or N/A>
78
103
  **Report Format**: Completion Report v2
79
104
  **Superpowers**: <if plugin enabled and applicable>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mstar-harness/opencode",
3
- "version": "0.6.10",
3
+ "version": "0.6.12",
4
4
  "description": "Morning Star harness OpenCode plugin (skills bootstrap and agent loading).",
5
5
  "license": "MIT",
6
6
  "repository": {