speccore 8.3.250 → 8.3.251
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.
|
@@ -25,7 +25,8 @@ disable-model-invocation: false
|
|
|
25
25
|
先识别用户给了什么,按入口执行预处理,再统一做范围确认:
|
|
26
26
|
|
|
27
27
|
**入口 A:已切分好的功能单元**(用户指定了单元名或说「全部」)
|
|
28
|
-
-
|
|
28
|
+
- 无需预处理,直接进入下方「范围确认」
|
|
29
|
+
- 用户只给单元名(如「features/ 下的 v3-service-01-门禁授权同步」)时:先 `speccore status` 探测活跃迭代(.speccore/local/context.json 的 currentIteration);探不到或单元不在该迭代,向用户确认迭代名,不要猜
|
|
29
30
|
|
|
30
31
|
**入口 B:一个文档地址**(.md / .docx / .pdf,多个文档可批量)
|
|
31
32
|
- `.md` → 执行 `speccore unitize -f "<路径>"`(多文档可 `--files "a.md=端1,b.md"`,端名须与 CONSTITUTION.md 一致)
|
|
@@ -44,7 +45,7 @@ disable-model-invocation: false
|
|
|
44
45
|
5. 目录/任务命名由 CLI 确定性生成(单元目录 {文档slug}-{序号}-{标题}、Task-{编号}-{slug}、子任务 Task-{父任务}-{端名}),不要自己改
|
|
45
46
|
|
|
46
47
|
### Step 1 澄清与分析
|
|
47
|
-
1. 执行 `speccore analyze --prompt -I <迭代> --with-code`(--with-code 使 Prompt 携带各端工程路径表与源码上下文;指定范围用 `--unit M-01,M-03
|
|
48
|
+
1. 执行 `speccore analyze --prompt -I <迭代> --with-code`(--with-code 使 Prompt 携带各端工程路径表与源码上下文;指定范围用 `--unit`,直接写切分出的目录名即可——如 `--unit "v3-service-01-门禁授权同步"` 或 `--unit M-01,M-03` 均可(v8.3.250+ 目录名与 M-ID 双匹配);不要用 --feature——那是确定性局部分析,不出 Prompt)
|
|
48
49
|
2. stdout 出现 `[SPECCORE_PROMPT]` → 将 Prompt 内容作为你的工作指令执行(不要改写、不要略过);多单元时按 Prompt 内的「逐个单元」指示处理,每个单元用 `analyze --unit <id> --apply '<内容>'` 提交
|
|
49
50
|
3. 分析中发现需求模糊点 → **向用户提问澄清**,不要自行脑补
|
|
50
51
|
4. 分析完成后按 Prompt 中的写入格式执行 `speccore analyze --apply '{json}' -I <迭代>` 落盘
|
|
@@ -5,7 +5,7 @@ description: >
|
|
|
5
5
|
或明确要求通过 speccore 命令行工具执行操作,且意图涉及以下概念时使用:
|
|
6
6
|
迭代管理、需求文档导入(doc2spec)、需求切分(unitize)、Spec 分析生成(analyze --prompt)、
|
|
7
7
|
任务拆分(taskify)、执行计划(plan --prompt)、代码执行(execute --prompt)、
|
|
8
|
-
任务归档(done)、PR 提交(pr)、状态查看(status/dashboard/doctor
|
|
8
|
+
任务归档(done)、PR 提交(pr)、状态查看(status/dashboard/doctor)、智能级联/端到端流水线(run)。
|
|
9
9
|
将用户意图映射为 speccore CLI 命令,通过 execute_command 执行。
|
|
10
10
|
核心原则:必须直接执行,决不输出命令文本。唯一下例外:"只看不跑"。
|
|
11
11
|
以下情况明确不处理:解释代码逻辑、审查代码片段、讨论需求合理性、
|
|
@@ -312,8 +312,8 @@ allowed-tools: ["Bash", "Read", "Write", "Edit"]
|
|
|
312
312
|
### 智能级联 / 端到端流水线
|
|
313
313
|
| 用户说法 | 提取参数 | CLI 命令 |
|
|
314
314
|
| :--- | :--- | :--- |
|
|
315
|
-
| 智能级联/全流程推进 | - | `speccore
|
|
316
|
-
| 推进项目/继续开发 | - | `speccore
|
|
315
|
+
| 智能级联/全流程推进 | - | `speccore run` |
|
|
316
|
+
| 推进项目/继续开发 | - | `speccore run --auto` |
|
|
317
317
|
| 全自动推进/跑流水线 | - | `speccore run` |
|
|
318
318
|
| 端到端/一键开发/自动开发 | demand? | `speccore run "{demand}"` |
|
|
319
319
|
| {一句话需求描述}(如"做积分功能") | demand | `speccore run "{demand}"` |
|