sillyspec 3.11.4 → 3.11.5

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.
@@ -3,19 +3,39 @@ name: sillyspec:brainstorm
3
3
  description: 用于正式开始开发前的需求澄清和技术方案设计。适合用户提出新功能、新模块、架构调整、复杂改造,或说"先做需求分析、输出技术方案、创建变更前先梳理、帮我设计下"。产出结构化方案,但不直接写代码。
4
4
  ---
5
5
 
6
- ## 多变更说明
6
+ # SillySpec Brainstorm — 需求探索
7
7
 
8
- 如果项目有多个活跃变更(`.sillyspec/changes/` 下有多个目录),所有 `sillyspec run` 命令需要加 `--change <变更名>`。只有一个变更时可省略(CLI 自动检测)。
8
+ ## 用法
9
+ 用户触发此 skill 时,使用 `sillyspec run brainstorm` 逐步执行需求探索。
9
10
 
10
- ## 执行
11
+ **⚠️ 必须指定变更名!**
11
12
 
12
- **你必须使用 exec 工具(shell)执行以下命令,不要自己编造流程:**
13
+ ## 执行步骤
13
14
 
14
- 1. 运行 `sillyspec run brainstorm` — 读取输出的步骤 prompt
15
- 2. 按照输出的 prompt **严格执行**,不要跳过或自行添加步骤
16
- 3. 步骤完成后,运行 `sillyspec run brainstorm --done --output "你的摘要"`
17
- 4. 重复 2-3 直到阶段完成
18
- 5. **禁止**在没有运行 CLI 的情况下自行决定流程
15
+ 1. 确定变更名(格式:`YYYY-MM-DD-<简短描述>`,如 `2026-05-28-agent-log-streaming`)
16
+ 2. 运行 `sillyspec run brainstorm --change <变更名>` 获取当前步骤指令
17
+ 3. 按步骤指令执行(对话、分析需求、设计方案等)
18
+ 4. 完成步骤后运行 `sillyspec run brainstorm --done --change <变更名> --output "步骤摘要"`
19
+ 5. CLI 会自动输出下一步的指令,重复 3-4 直到阶段完成
19
20
 
20
- ## 用户指令
21
- $ARGUMENTS
21
+ ## 示例
22
+
23
+ ```bash
24
+ # 首次启动
25
+ sillyspec run brainstorm --change 2026-05-28-agent-log-streaming
26
+
27
+ # 完成当前步骤
28
+ sillyspec run brainstorm --done --change 2026-05-28-agent-log-streaming --output "需求已澄清"
29
+
30
+ # 查看进度
31
+ sillyspec run brainstorm --status --change 2026-05-28-agent-log-streaming
32
+
33
+ # 重置阶段
34
+ sillyspec run brainstorm --reset --change 2026-05-28-agent-log-streaming
35
+ ```
36
+
37
+ ## 注意
38
+ - **必须带 `--change <变更名>`**,否则会报错
39
+ - 步骤 prompt 由 CLI 管理,不需要手动读取
40
+ - 依赖 scan 阶段完成,CLI 会自动提醒
41
+ - brainstorm 完成后,运行 `sillyspec run propose --change <变更名>` 进入方案设计
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sillyspec",
3
- "version": "3.11.4",
3
+ "version": "3.11.5",
4
4
  "description": "SillySpec CLI — 流程状态机,让 AI 严格按步骤来",
5
5
  "icon": "logo.jpg",
6
6
  "homepage": "https://sillyspec.ppdmq.top/",
package/src/run.js CHANGED
@@ -233,6 +233,14 @@ export async function runCommand(args, cwd) {
233
233
  if (autoChange) {
234
234
  progress = pm.initChange(cwd, autoChange)
235
235
  } else if (!isAuxiliary) {
236
+ // brainstorm / propose 作为流程入口,可以自动创建变更
237
+ if (stageName === 'brainstorm' || stageName === 'propose') {
238
+ // 引导用户指定变更名
239
+ console.error('❌ 请指定变更名')
240
+ console.error(' 用法: sillyspec run brainstorm --change <变更名>')
241
+ console.error(' 示例: sillyspec run brainstorm --change 2026-05-28-agent-log-streaming')
242
+ process.exit(1)
243
+ }
236
244
  console.error('❌ 未找到 progress.json,请先运行 sillyspec init')
237
245
  console.error(' 提示:使用 --change <name> 指定变更名')
238
246
  process.exit(1)