@mingfuyun/star-allinone 0.4.17 → 0.4.19
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/docs/skills/dev-flow/plan-template.md +2 -0
- package/docs/skills/dev-flow/session-protocol.md +2 -2
- package/docs/skills/overview.md +2 -2
- package/package.json +1 -1
- package/skills/shared/api-to-service/SKILL.md +1 -1
- package/skills/shared/design-to-page/SKILL.md +1 -1
- package/skills/shared/dev-flow/SKILL.md +17 -7
- package/skills/shared/dev-flow/references/plan-template.md +2 -0
- package/skills/shared/dev-flow/references/session-protocol.md +2 -2
- package/skills/shared/i-have-adhd/i-have-adhd.md +7 -0
- package/skills/shared/i-have-adhd/reply-layout.md +121 -0
- package/skills/shared/prism-mock/SKILL.md +1 -1
- package/skills/shared/publish-test/SKILL.md +1 -1
- package/skills/shared/review-and-submit/SKILL.md +9 -1
- package/skills/shared/tracking/SKILL.md +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# 会话协议(编排输出字段)
|
|
2
2
|
|
|
3
3
|
> 维护源:能力包 `docs/skills/dev-flow/session-protocol.md`
|
|
4
|
-
> 整单 /
|
|
4
|
+
> 整单 / 长会话的字段含义。是否出现、出现在回复的哪一段,以 `shared-i-have-adhd/reply-layout.md` 的「流程停住」为准。不要每轮都输出。
|
|
5
5
|
|
|
6
6
|
---
|
|
7
7
|
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
| `await_publish` | 等待测发确认词 |
|
|
31
31
|
| `done` | 本单目标已完成(或用户终止) |
|
|
32
32
|
|
|
33
|
-
|
|
33
|
+
单点 skill 不输出这些字段。只有 `reply-layout.md` 的「流程停住」才输出。
|
|
34
34
|
|
|
35
35
|
---
|
|
36
36
|
|
package/docs/skills/overview.md
CHANGED
|
@@ -10,14 +10,14 @@
|
|
|
10
10
|
| --- | --- | --- |
|
|
11
11
|
| 话术 | 「按星系流程…」「按流程做完 / 按流程改…」 | 「提交代码」「生成某接口」「发布测试环境」…(无串联话术) |
|
|
12
12
|
| 入口 | 先 `$custom-entry`(或「按星系标准 / 规范 / 流程」),再委托 internal `shared-dev-flow` | 先同一入口,再按 intents 单点委托 |
|
|
13
|
-
| 先出方案 | 仅需求或接口调整等 `确认方案`。`按照星系流程 提交代码`、`按照星系流程 发布流水线`
|
|
13
|
+
| 先出方案 | 仅需求或接口调整等 `确认方案`。`按照星系流程 提交代码`、`按照星系流程 发布流水线` 的用户可见回复与单点「提交代码」「发布测试环境」相同。排版都用 `reply-layout.md`,不附加 phase 或方案摘要 | 否(submit/publish 自带提案/确认) |
|
|
14
14
|
| 口径文档 | [dev-flow/](dev-flow/)(方案模板、SwaggerGate、Verify、会话字段、[gates.md](dev-flow/gates.md)) | 仍守各 skill 自身门禁 |
|
|
15
15
|
|
|
16
16
|
「按星系标准 / 按星系规范」只表示入 entry;不含「按流程」或「按星系流程」时仍走单点。是否串联不看改动大小。
|
|
17
17
|
|
|
18
18
|
口令:`确认方案` ≠ `确认提交` ≠ `确认推送流水线`(详见 [dev-flow/gates.md](dev-flow/gates.md))。`确认方案` 只用于需求和接口调整。校验失败后只有 `豁免校验继续提交` 可进入提交门,且仍须 `确认提交`。
|
|
19
19
|
|
|
20
|
-
业务仓每一轮对用户的回复都 Read 并遵守 `shared-i-have-adhd
|
|
20
|
+
业务仓每一轮对用户的回复都 Read 并遵守 `shared-i-have-adhd`。排版只认同目录 `reply-layout.md`,单点和整单相同,不按仓分版式。
|
|
21
21
|
|
|
22
22
|
## 用户入口
|
|
23
23
|
|
package/package.json
CHANGED
|
@@ -60,4 +60,4 @@ Parse changed JSON files. Search generated names, operationId, and exact API pat
|
|
|
60
60
|
|
|
61
61
|
## User-facing output
|
|
62
62
|
|
|
63
|
-
Read
|
|
63
|
+
Read `.agents/skills/shared-i-have-adhd/i-have-adhd.md` and `reply-layout.md`. The user-visible reply is only that file's 通用结果 block. Do not invent another layout.
|
|
@@ -94,4 +94,4 @@ When tracking is configured, scan changed page files: toolbar `track`, action `t
|
|
|
94
94
|
|
|
95
95
|
## User-facing output
|
|
96
96
|
|
|
97
|
-
Read
|
|
97
|
+
Read `.agents/skills/shared-i-have-adhd/i-have-adhd.md` and `reply-layout.md`. The user-visible reply is only that file's 通用结果 block. Do not invent another layout.
|
|
@@ -19,7 +19,7 @@ disable-model-invocation: true
|
|
|
19
19
|
|
|
20
20
|
- 提交、发布:不要打开本 skill 的 references。直接执行对应 skill,用户可见回复与单点相同。
|
|
21
21
|
- 需求或接口调整:只在出方案时读 `plan-template.md`。`确认方案` 之后按清单连续执行原 skill。
|
|
22
|
-
- **禁止**为了填 `phase` / `done` / `blocked` / `next_action` 单独停一轮,也禁止在两个 skill
|
|
22
|
+
- **禁止**为了填 `phase` / `done` / `blocked` / `next_action` 单独停一轮,也禁止在两个 skill 之间另插「进入某阶段」的旁白。`await_commit` 的用户可见正文是 `shared-review-and-submit` 的审查报告(影响面、审查、修改范围),这不是插入的分析轮,禁止摘要掉。
|
|
23
23
|
- 契约分支能从用户原话或已有 diff 看出来时,不要读 `swagger-gate.md` 再分析一遍;只有不确定时才问一句。
|
|
24
24
|
- `session-protocol.md`、`gates.md` 不必每轮 Read。口令以本文件和被委托 skill 为准。
|
|
25
25
|
|
|
@@ -45,9 +45,13 @@ disable-model-invocation: true
|
|
|
45
45
|
|
|
46
46
|
## 每轮输出
|
|
47
47
|
|
|
48
|
-
|
|
48
|
+
排版只认 `.agents/skills/shared-i-have-adhd/reply-layout.md`。不要在本 skill 里另写一套。
|
|
49
49
|
|
|
50
|
-
|
|
50
|
+
测发结果用该文件的「测发结果」,不附流程停住,包括本单因此进入 `done` 的那一条。
|
|
51
|
+
|
|
52
|
+
需求或接口调整停下来等用户时,正文用该文件点名的章节,再按「流程停住」附在最后一句之后。先决分流和 skill 执行过程中不要附,也不要为此再读文件。
|
|
53
|
+
|
|
54
|
+
需要停住等用户、且这条不是测发结果时,流程停住写成:
|
|
51
55
|
|
|
52
56
|
```text
|
|
53
57
|
phase: <intake|plan|await_plan|swagger_gate|implement|verify|await_commit|await_publish|done>
|
|
@@ -58,7 +62,7 @@ next_action: …
|
|
|
58
62
|
|
|
59
63
|
需求或接口调整进入 `await_plan` / `await_commit` / `await_publish` 时,附上当前方案摘要。先决分流的提交或发布不附。
|
|
60
64
|
|
|
61
|
-
需求或接口调整的每一轮回复都先 Read 并遵守 `.agents/skills/shared-i-have-adhd/i-have-adhd.md`。
|
|
65
|
+
需求或接口调整的每一轮回复都先 Read 并遵守 `.agents/skills/shared-i-have-adhd/i-have-adhd.md` 和 `reply-layout.md`。
|
|
62
66
|
|
|
63
67
|
可选:把 phase、方案摘要、门禁状态写入仓库 `.agents/dev-flow-session.md`。续跑时若该文件存在,优先读它。
|
|
64
68
|
|
|
@@ -111,7 +115,7 @@ next_action: …
|
|
|
111
115
|
|
|
112
116
|
### implement
|
|
113
117
|
|
|
114
|
-
按方案里的有序清单连续执行原来的 skill。禁止跳步、禁止扩大清单外范围。每个原子 skill 完整 Read
|
|
118
|
+
按方案里的有序清单连续执行原来的 skill。禁止跳步、禁止扩大清单外范围。每个原子 skill 完整 Read 后原样执行。实现和校验的中间过程不要另写分析汇报。进入 `await_commit` 后,下一条用户可见回复就是审查报告。
|
|
115
119
|
|
|
116
120
|
### verify
|
|
117
121
|
|
|
@@ -123,7 +127,13 @@ next_action: …
|
|
|
123
127
|
|
|
124
128
|
### await_commit
|
|
125
129
|
|
|
126
|
-
Read 并原样执行 `.agents/skills/shared-review-and-submit/SKILL.md
|
|
130
|
+
Read 并原样执行 `.agents/skills/shared-review-and-submit/SKILL.md`。停住前的那条用户可见回复必须带齐该 skill 的三节,不要另写清单,也不要收成摘要:
|
|
131
|
+
|
|
132
|
+
1. **影响面**:`references/impact-analysis.md`
|
|
133
|
+
2. **审查**:`references/verify.md` 与 `references/ai-review.md`
|
|
134
|
+
3. **修改范围**:`references/commit.md`
|
|
135
|
+
|
|
136
|
+
改动只有一行也要写全。然后停住,等待 `确认提交` 或 `确认提交并推送`。口令以该 skill 与 [references/gates.md](references/gates.md) 为准。不在这条回复里执行 git 写入。
|
|
127
137
|
|
|
128
138
|
提交完成后:
|
|
129
139
|
|
|
@@ -137,7 +147,7 @@ Read 并原样执行 `.agents/skills/shared-review-and-submit/SKILL.md`。停住
|
|
|
137
147
|
|
|
138
148
|
### await_publish
|
|
139
149
|
|
|
140
|
-
仅当用户明确要测发(例如「发布测试环境」「要」)后进入本阶段。再等待 `确认推送流水线` 或 `发布测试环境`,然后 Read 并原样执行 `.agents/skills/shared-publish-test/SKILL.md`。
|
|
150
|
+
仅当用户明确要测发(例如「发布测试环境」「要」)后进入本阶段。再等待 `确认推送流水线` 或 `发布测试环境`,然后 Read 并原样执行 `.agents/skills/shared-publish-test/SKILL.md`。跑完后的用户可见回复只有 `reply-layout.md` 的「测发结果」,不附 `phase`。
|
|
141
151
|
|
|
142
152
|
用户说不测发 → `done`,不跑 publish。
|
|
143
153
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
# 会话协议(编排输出字段)
|
|
4
4
|
|
|
5
5
|
> 维护源:能力包 `docs/skills/dev-flow/session-protocol.md`
|
|
6
|
-
> 整单 /
|
|
6
|
+
> 整单 / 长会话的字段含义。是否出现、出现在回复的哪一段,以 `shared-i-have-adhd/reply-layout.md` 的「流程停住」为准。不要每轮都输出。
|
|
7
7
|
|
|
8
8
|
---
|
|
9
9
|
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
| `await_publish` | 等待测发确认词 |
|
|
33
33
|
| `done` | 本单目标已完成(或用户终止) |
|
|
34
34
|
|
|
35
|
-
|
|
35
|
+
单点 skill 不输出这些字段。只有 `reply-layout.md` 的「流程停住」才输出。
|
|
36
36
|
|
|
37
37
|
---
|
|
38
38
|
|
|
@@ -8,6 +8,8 @@ These rules apply to every response for the rest of the session, not only this o
|
|
|
8
8
|
|
|
9
9
|
Turn them off only when the reader says "stop adhd mode" or "normal mode". Confirm in one line, then return to your default style.
|
|
10
10
|
|
|
11
|
+
The shape of every reply is `reply-layout.md` in this directory. Synced path: `.agents/skills/shared-i-have-adhd/reply-layout.md`. Single skills and dev-flow both use it. Project docs do not restyle it.
|
|
12
|
+
|
|
11
13
|
## What ADHD changes about reading
|
|
12
14
|
|
|
13
15
|
Five facts drive every rule below:
|
|
@@ -96,6 +98,8 @@ For long lists in the final response, group related items and rank the most rele
|
|
|
96
98
|
|
|
97
99
|
Never omit relevant items when completeness matters. This rule shapes presentation only; it must not limit analysis, search, tool results, candidate generation, or retained information.
|
|
98
100
|
|
|
101
|
+
The pre-submit review report is one of those cases. Keep the sections 影响面, 审查, and 修改范围 on screen. Do not hold them back under the five-item cap.
|
|
102
|
+
|
|
99
103
|
### 10. No preamble, no recap, no closing pleasantries
|
|
100
104
|
|
|
101
105
|
Forbidden openers: "Great question," "Let me...", "I'll...", "Sure!", "Looking at your...", "To answer your question..."
|
|
@@ -106,6 +110,8 @@ Forbidden closers: "Let me know if you need anything else," "Hope this helps," "
|
|
|
106
110
|
|
|
107
111
|
Start with the answer. End when the answer is done.
|
|
108
112
|
|
|
113
|
+
The review report is the answer for a commit wait. It is not a recap of the implementation, so do not delete it in the pre-send check.
|
|
114
|
+
|
|
109
115
|
## When to break the rules
|
|
110
116
|
|
|
111
117
|
Override the defaults when:
|
|
@@ -116,6 +122,7 @@ Override the defaults when:
|
|
|
116
122
|
4. Real ambiguity in the request. One short clarifying question beats guessing and rewriting.
|
|
117
123
|
5. A rule fights the task. When a rule would delete the answer itself, the task wins; the shape stays. Example: "what are my options" gets 2 to 4 ranked options with one-line trade-offs, recommendation first, not one path. The options are the answer.
|
|
118
124
|
6. A rule fights the harness. Inside an agent harness, the system prompt outranks this skill: announce a tool call when the harness requires it, do the work instead of asking "want me to," point time estimates at whoever executes the steps. Same principle as 5: the constraint wins, the shape stays.
|
|
125
|
+
7. The message is a 提交等待, 测发结果, 实现方案, or 通用结果. Use the matching block in `reply-layout.md`. Do not collapse those sections, and do not restyle the field table.
|
|
119
126
|
|
|
120
127
|
## Pre-send check
|
|
121
128
|
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
# 对话排版
|
|
2
|
+
|
|
3
|
+
唯一排版。单点 skill 和 `shared-dev-flow` 都用这一份。所有业务仓相同。
|
|
4
|
+
|
|
5
|
+
`AGENTS.md`、`project-rules.md`、`conventions.md` 不规定排版。不能改第一句、表头、章节名或末句,也不能改成框线表或圆点。
|
|
6
|
+
|
|
7
|
+
## 骨架
|
|
8
|
+
|
|
9
|
+
给用户的每一条回复都是下面四段。没有内容的段整段删掉。
|
|
10
|
+
|
|
11
|
+
```markdown
|
|
12
|
+
<第一句:结果,或要用户现在做的一件事>
|
|
13
|
+
|
|
14
|
+
| 项 | 值 |
|
|
15
|
+
| --- | --- |
|
|
16
|
+
| <字段> | <值> |
|
|
17
|
+
|
|
18
|
+
<正文:只有本文件点名的章节>
|
|
19
|
+
|
|
20
|
+
<最后一句:下一步。第一句已经是下一步、且没有别的动作时,删掉本句>
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
禁止:
|
|
24
|
+
|
|
25
|
+
- 用框线表或圆点代替 `| 项 | 值 |`
|
|
26
|
+
- 用项目名、仓名、skill 名当开场
|
|
27
|
+
- 在表里写过的事实,正文再讲一遍
|
|
28
|
+
- 输出 `phase` / `done` / `blocked` / `next_action`,除下面的「流程停住」
|
|
29
|
+
|
|
30
|
+
## 通用结果
|
|
31
|
+
|
|
32
|
+
接口、页面、埋点、Prism、校验完成,用这张表。按事实删行,最多 5 行。
|
|
33
|
+
|
|
34
|
+
```markdown
|
|
35
|
+
<一句结果>
|
|
36
|
+
|
|
37
|
+
| 项 | 值 |
|
|
38
|
+
| --- | --- |
|
|
39
|
+
| 做了什么 | <一句话> |
|
|
40
|
+
| 改动 | <路径> |
|
|
41
|
+
| 校验 | <命令:通过或失败> |
|
|
42
|
+
| 未做 | <没有则删掉这一行> |
|
|
43
|
+
|
|
44
|
+
<下一步的那一句>
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
## 测发结果
|
|
48
|
+
|
|
49
|
+
整条回复只有这些。没有正文,没有流程停住。
|
|
50
|
+
|
|
51
|
+
```markdown
|
|
52
|
+
测试流水线已触发。
|
|
53
|
+
|
|
54
|
+
| 项 | 值 |
|
|
55
|
+
| --- | --- |
|
|
56
|
+
| 分支 | <branch> |
|
|
57
|
+
| 提交 | <commit subject> |
|
|
58
|
+
| Pipeline | <publishPipelineId> |
|
|
59
|
+
| Run | <run id> |
|
|
60
|
+
| 状态 | <status> |
|
|
61
|
+
| Commit 校验 | <已核对 \| unavailable(云效尚未回传,可接受)> |
|
|
62
|
+
|
|
63
|
+
去云效看 Run <run id> 即可。
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
失败时第一句写原因,六行保留,最后一句写一个修复动作。不要写「已触发」。`状态` 用脚本原文。提交只写 subject。云效还没回当前提交时,校验格用上面这句 unavailable,不要改写。
|
|
67
|
+
|
|
68
|
+
## 提交等待
|
|
69
|
+
|
|
70
|
+
```markdown
|
|
71
|
+
回复「确认提交」或「确认提交并推送」后才会写入 Git。
|
|
72
|
+
|
|
73
|
+
## 影响面
|
|
74
|
+
|
|
75
|
+
<shared-review-and-submit 规定的内容>
|
|
76
|
+
|
|
77
|
+
## 审查
|
|
78
|
+
|
|
79
|
+
<shared-review-and-submit 规定的内容>
|
|
80
|
+
|
|
81
|
+
## 修改范围
|
|
82
|
+
|
|
83
|
+
<shared-review-and-submit 规定的内容>
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
不要另写清单,不要收成「未发现阻断问题」。不要流程停住。
|
|
87
|
+
|
|
88
|
+
## 实现方案
|
|
89
|
+
|
|
90
|
+
```markdown
|
|
91
|
+
回复「确认方案」后才会改业务代码。
|
|
92
|
+
|
|
93
|
+
## 实现方案
|
|
94
|
+
|
|
95
|
+
<plan-template.md 的输出骨架>
|
|
96
|
+
|
|
97
|
+
回复「确认方案」继续。
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
然后按「流程停住」附在末句之后。
|
|
101
|
+
|
|
102
|
+
## 是否测发
|
|
103
|
+
|
|
104
|
+
```markdown
|
|
105
|
+
是否发布测试环境?
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
然后按「流程停住」附上,`phase` 为 `await_publish`。
|
|
109
|
+
|
|
110
|
+
## 流程停住
|
|
111
|
+
|
|
112
|
+
只有需求或接口调整停下来等用户时,加在最后一句之后:
|
|
113
|
+
|
|
114
|
+
```text
|
|
115
|
+
phase: <intake|plan|await_plan|swagger_gate|implement|verify|await_commit|await_publish|done>
|
|
116
|
+
done: <本轮已完成的动作>
|
|
117
|
+
blocked: 无 | <原因>
|
|
118
|
+
next_action: <谁做、做什么>
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
测发结果、只提交、只发布、以及 skill 执行过程中,都不要这一块。
|
|
@@ -33,4 +33,4 @@ disable-model-invocation: true
|
|
|
33
33
|
|
|
34
34
|
## User-facing output
|
|
35
35
|
|
|
36
|
-
Read
|
|
36
|
+
Read `.agents/skills/shared-i-have-adhd/i-have-adhd.md` and `reply-layout.md`. The user-visible reply is only that file's 通用结果 block. Do not invent another layout.
|
|
@@ -70,4 +70,4 @@ The dashboard comment is `BUILD_REMARK` and contains branch, commit subject, and
|
|
|
70
70
|
|
|
71
71
|
## User-facing output
|
|
72
72
|
|
|
73
|
-
Read
|
|
73
|
+
Read `.agents/skills/shared-i-have-adhd/i-have-adhd.md` and `reply-layout.md`. The user-visible reply is only that file's 测发结果 block. Fill every cell from the script result. Do not invent another layout.
|
|
@@ -72,4 +72,12 @@ If the user says `提交代码` before a review proposal exists, run the three s
|
|
|
72
72
|
|
|
73
73
|
## User-facing output
|
|
74
74
|
|
|
75
|
-
Read
|
|
75
|
+
Read `.agents/skills/shared-i-have-adhd/i-have-adhd.md` and `reply-layout.md`. The message that waits for confirmation is only that file's 提交等待 block. Fill the three sections from this skill. Do not invent another layout.
|
|
76
|
+
|
|
77
|
+
The message that waits for `确认提交` or `确认提交并推送` is the review report. Reuse the three workflow steps above. Do not write a second checklist, and do not replace the report with `未发现阻断问题` plus a commit subject. A one-line diff does not shorten it. ADHD mode may put the confirmation phrase on the first line. It must not delete these sections:
|
|
78
|
+
|
|
79
|
+
1. **影响面** — from [references/impact-analysis.md](references/impact-analysis.md): what changed, callers and pages, related APIs / types / permissions / routes, shared-component blast radius, and how to regress.
|
|
80
|
+
2. **审查** — from [references/verify.md](references/verify.md) and [references/ai-review.md](references/ai-review.md): P0–P2, tracking / permission / async / empty states, command results, uncovered risks, plus hooks, API contract, permission, and forms.
|
|
81
|
+
3. **修改范围** — from [references/commit.md](references/commit.md): findings, validation, branch and remote, exact file paths, and the commit message.
|
|
82
|
+
|
|
83
|
+
Then stop. Do not run Git writes in that message.
|
|
@@ -418,4 +418,4 @@ antd `Tabs`、`Segmented`、`Radio.Group` 以及业务页签容器,切换时
|
|
|
418
418
|
|
|
419
419
|
## User-facing output
|
|
420
420
|
|
|
421
|
-
Read
|
|
421
|
+
Read `.agents/skills/shared-i-have-adhd/i-have-adhd.md` and `reply-layout.md`. The user-visible reply is only that file's 通用结果 block. Do not invent another layout.
|