spec-agent 2.0.5 → 2.0.7

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.
@@ -29,12 +29,23 @@ When user intent is about running `spec-agent`, apply this workflow:
29
29
 
30
30
  4. Keep responses action-oriented:
31
31
  - Provide exact commands.
32
- - Explain expected output paths (`output/handoff`, `output/execution`).
32
+ - Explain expected output paths (`output/handoff`, `output/execution`, `output/prototypes`, `output/prototype_index.json`).
33
33
  - Avoid claiming completion without command evidence.
34
34
  - Prefer invoking `spec-agent-product-dev-agent` when user asks requirement-to-development end-to-end.
35
35
 
36
36
  5. Command execution policy (important):
37
37
  - Auto-run short safe commands in chat: `spec-agent --version`, `spec-agent status --workspace ./output`, read-only listing/check commands.
38
- - For long steps (`pipeline`, `handoff`, `execute`, `round`), do NOT run automatically in chat.
39
- - For long steps, output exact command and ask manual run with: "请在终端执行上面命令,执行完成后回复:继续".
38
+ - Auto-run medium commands in chat when possible: `handoff`, `round`, and feedback updates (`--complete` / `--fail`).
39
+ - Keep `pipeline` as default manual step for large-doc stability.
40
+ - For manual steps, output exact command and ask: "请在终端执行上面命令,执行完成后回复:继续".
40
41
  - After user replies "继续", read artifacts/logs and provide next single command.
42
+
43
+ 6. Delivery scope policy (current phase):
44
+ - Frontend-only implementation by default.
45
+ - Prioritize pages, routes, UI states, forms, interactions, and mock data.
46
+ - Backend/API/database tasks are marked as "deferred" and not executed in current round unless user explicitly requests backend implementation.
47
+
48
+ 7. Prototype-aware implementation policy:
49
+ - If `output/prototype_index.json` exists, prioritize prototype-linked tasks.
50
+ - For task execution, first read `output/handoff/tasks/<TASK_ID>.md` and use "Prototype References" as primary UI evidence.
51
+ - Treat "Prototype Candidates" as optional references that need human confirmation.
@@ -14,6 +14,11 @@ Run the spec-agent execution loop with minimal manual steps:
14
14
  4. Apply completion/failure feedback
15
15
  5. Continue next round
16
16
 
17
+ Current execution scope:
18
+
19
+ - Frontend implementation tasks only (UI/pages/routes/state/interaction).
20
+ - Backend/API infra tasks are deferred unless explicitly requested by user.
21
+
17
22
  ## When To Use
18
23
 
19
24
  Use this skill when user asks:
@@ -29,10 +34,9 @@ Use this skill when user asks:
29
34
  Execution mode:
30
35
 
31
36
  - Auto-run short read-only checks in chat, such as `spec-agent status --workspace ./output`.
32
- - Never auto-run long commands from chat execution tools.
33
- - Always provide one terminal command at a time.
34
- - After each command, ask user to reply "继续" before next step.
35
- - This is mandatory for `handoff`, `execute`, `round`.
37
+ - Auto-run `handoff`, `execute`, `round` when possible.
38
+ - If environment confirmation becomes noisy, switch to one-command manual fallback.
39
+ - For fallback steps, ask user to reply "继续" before next step.
36
40
 
37
41
  Copy this checklist and keep it updated:
38
42
 
@@ -57,7 +61,7 @@ Run:
57
61
  spec-agent handoff --workspace ./output --target cursor --include-summaries
58
62
  ```
59
63
 
60
- Ask user to run it manually and reply "继续".
64
+ Prefer auto-run; if blocked by environment prompts, ask manual run and reply "继续".
61
65
 
62
66
  Skip this if `output/handoff/handoff_bundle.json` already exists and user did not request refresh.
63
67
 
@@ -69,7 +73,7 @@ Run:
69
73
  spec-agent round --workspace ./output --input ./docs --target cursor --max-parallel 4
70
74
  ```
71
75
 
72
- Ask user to run it manually and reply "继续".
76
+ Prefer auto-run; if blocked by environment prompts, ask manual run and reply "继续".
73
77
 
74
78
  If user asks reset:
75
79
 
@@ -83,12 +87,16 @@ Inspect:
83
87
 
84
88
  - `output/execution/inbox/*.md`
85
89
  - `output/execution/execution_report.json`
90
+ - `output/prototype_index.json` (if exists)
91
+ - `output/prototypes/*` (if exists)
86
92
 
87
93
  Return a concise batch summary:
88
94
 
89
95
  - scheduled task IDs
90
96
  - pending/running/succeeded/failed/blocked counts
91
97
  - which task to execute first
98
+ - frontend-only kept tasks vs deferred backend tasks
99
+ - high-confidence prototype references per task
92
100
 
93
101
  ### Step 4: Collect outcomes
94
102
 
@@ -108,7 +116,7 @@ Fail tasks:
108
116
  spec-agent execute --workspace ./output --fail T003 --error "compile failed"
109
117
  ```
110
118
 
111
- Both feedback commands are also manual terminal steps.
119
+ Feedback commands can be auto-run; manual fallback only when needed.
112
120
 
113
121
  ### Step 6: Continue next batch
114
122
 
@@ -140,7 +148,7 @@ Use this output template:
140
148
  - If inbox is empty but pending remains, check blocked dependencies and report them.
141
149
  - Prefer small rounds (2-6 tasks) to reduce rollback cost.
142
150
  - Use `orchestrator_context.json` as decision reference when available.
143
- - Do not chain multiple long commands in one auto-executed step.
151
+ - Avoid chaining multiple heavy commands in one step.
144
152
 
145
153
  ## Additional Reference
146
154
 
@@ -13,12 +13,17 @@ Turn spec-agent into a callable assistant workflow with minimal user friction:
13
13
  3. Guide first successful pipeline run
14
14
  4. Optionally bootstrap handoff + execute loop
15
15
 
16
+ Current rollout scope:
17
+
18
+ - Frontend-only requirement delivery for fast customer demos.
19
+ - Backend implementation is deferred by default.
20
+
16
21
  Execution mode:
17
22
 
18
23
  - Auto-run short checks in chat (`spec-agent --version`, `spec-agent status --workspace ./output`).
19
- - Do not auto-run long commands in chat.
20
- - Print command -> ask user terminal execution -> wait for "继续".
21
- - Apply to `pipeline`, `handoff`, `execute`, `round`.
24
+ - Auto-run `handoff`, `round`, and feedback updates when possible.
25
+ - Keep `pipeline` as manual-first for large documents.
26
+ - For manual fallback, print command -> ask user terminal execution -> wait for "继续".
22
27
 
23
28
  ## Step 1: Installation Check
24
29
 
@@ -48,7 +53,13 @@ spec-agent status --workspace ./output
48
53
  spec-agent round --workspace ./output --input ./docs --target cursor --max-parallel 4
49
54
  ```
50
55
 
51
- Ask user to run each command manually in terminal, and continue only after user replies "继续".
56
+ `pipeline` manual-first; `round` auto-run when possible.
57
+
58
+ If requirement docs include prototype images, verify these artifacts after `pipeline`:
59
+
60
+ - `output/prototypes/*`
61
+ - `output/prototype_index.json`
62
+ - `output/prototype_index.md`
52
63
 
53
64
  ## Step 3: Multi-Agent Execution Bootstrap (Optional)
54
65
 
@@ -84,4 +95,5 @@ spec-agent execute --workspace ./output --fail T003 --error "compile failed"
84
95
  - If user is on private registry, provide one-time `--registry` command variant.
85
96
  - Do not skip verification commands.
86
97
  - Use `spec-agent round` as the primary one-round action.
87
- - For long steps, always use manual terminal execution handoff.
98
+ - `handoff` / `round` can be auto-run; `pipeline` remains manual-first.
99
+ - When `prototype_index.json` exists, remind user to use task-level prototype references in `output/handoff/tasks/*.md`.
@@ -13,6 +13,12 @@ Turn requirement input into executable development workflow:
13
13
  3. Generate handoff and execution context
14
14
  4. Execute one round and guide task implementation
15
15
 
16
+ Current delivery scope: frontend-only MVP.
17
+
18
+ - Implement pages/routes/components/interactions first.
19
+ - Use mocked data contracts for API-dependent screens.
20
+ - Backend/API/database work is deferred unless user explicitly asks for backend.
21
+
16
22
  ## Trigger Scenarios
17
23
 
18
24
  Use this skill when user says:
@@ -26,10 +32,11 @@ Use this skill when user says:
26
32
  Execution mode for this skill:
27
33
 
28
34
  - Auto-run short checks in chat: `spec-agent --version`, `spec-agent status --workspace ./output`.
29
- - For long-running commands, do not auto-execute in chat.
30
- - Always print one long command at a time and ask user to run it in terminal.
35
+ - Auto-run medium commands in chat: `spec-agent handoff ...`, `spec-agent round ...`, and feedback `round --complete/--fail`.
36
+ - Keep `spec-agent pipeline ...` as default manual terminal step.
37
+ - For manual steps, print one command at a time and ask user to run it.
31
38
  - Wait for user confirmation ("继续") before giving next command.
32
- - Long-running commands include: `pipeline`, `handoff`, `execute`, `round`.
39
+ - Manual-by-default command: `pipeline`.
33
40
 
34
41
  ### Step 1: Ensure installation
35
42
 
@@ -69,7 +76,7 @@ spec-agent handoff --workspace ./output --target cursor --include-summaries
69
76
  spec-agent round --workspace ./output --input ./docs --target cursor --max-parallel 4
70
77
  ```
71
78
 
72
- Run as two separate manual steps and wait for "继续" after each command.
79
+ Prefer auto-run for both commands; if environment blocks execution, fall back to manual run and wait for "继续".
73
80
 
74
81
  ### Step 5: Development guidance
75
82
 
@@ -77,8 +84,21 @@ Read:
77
84
 
78
85
  - `output/execution/inbox/*.md`
79
86
  - `output/orchestrator_context.json`
87
+ - `output/prototype_index.json` (if exists)
88
+ - `output/prototypes/*` (if exists)
89
+
90
+ Then guide user to execute current inbox tasks in coding sessions, with frontend-first filtering.
91
+
92
+ Prototype-first task guidance:
93
+
94
+ - In each `output/handoff/tasks/<TASK_ID>.md`, use `Prototype References` as the main UI evidence.
95
+ - `Prototype Candidates (medium/low)` should be treated as optional, require human confirmation.
96
+ - If a task has no high-confidence prototype, ask for manual prototype confirmation before heavy UI coding.
97
+
98
+ Frontend-first task filter:
80
99
 
81
- Then guide user to execute current inbox tasks in coding sessions.
100
+ - Keep: 页面、路由、组件、表单、校验、状态管理、交互细节、UI 可用性。
101
+ - Defer: 后端接口实现、数据库结构、服务部署、鉴权网关等服务端任务。
82
102
 
83
103
  ### Step 6: Feedback loop
84
104
 
@@ -106,4 +126,4 @@ spec-agent round --workspace ./output --input ./docs --complete T001,T002 --fail
106
126
  - Do not skip pipeline if dispatch artifacts are missing.
107
127
  - Do not manually edit `run_state.json`; only update via CLI.
108
128
  - Always use `orchestrator_context.json` as current truth.
109
- - Do not auto-run long commands from chat execution tools.
129
+ - Do not auto-run `pipeline` when document is large or execution confirmation is frequent.