@gordon.gan/specflow 1.8.5-beta → 1.9.0-beta

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.
Files changed (57) hide show
  1. package/README.md +29 -3
  2. package/dist/core/document/engine.js +65 -5
  3. package/dist/core/document/gates.js +23 -1
  4. package/dist/core/document/lint.d.ts +61 -0
  5. package/dist/core/document/lint.js +480 -1
  6. package/dist/core/document/render.js +11 -0
  7. package/dist/core/document/review.d.ts +2 -0
  8. package/dist/core/document/review.js +10 -0
  9. package/package.json +2 -2
  10. package/prompts/apply/phase-a-plan.md +25 -13
  11. package/prompts/apply/phase-b-execute.md +43 -14
  12. package/prompts/apply/phase-b-review.md +20 -2
  13. package/prompts/apply/phase-b-worktree.md +25 -17
  14. package/prompts/document/map/acceptance.md +2 -6
  15. package/prompts/document/map/api-design.md +2 -6
  16. package/prompts/document/map/architecture.md +2 -6
  17. package/prompts/document/map/benchmark.md +2 -5
  18. package/prompts/document/map/closed-loop.md +2 -6
  19. package/prompts/document/map/compat-migration.md +2 -6
  20. package/prompts/document/map/component-design.md +2 -5
  21. package/prompts/document/map/config-runtime.md +2 -6
  22. package/prompts/document/map/core-flow.md +2 -5
  23. package/prompts/document/map/core-logic.md +2 -5
  24. package/prompts/document/map/data-model.md +9 -12
  25. package/prompts/document/map/deploy.md +2 -5
  26. package/prompts/document/map/fix.md +2 -6
  27. package/prompts/document/map/frontend-architecture.md +2 -5
  28. package/prompts/document/map/goal.md +2 -6
  29. package/prompts/document/map/impact.md +2 -6
  30. package/prompts/document/map/implementability.md +2 -6
  31. package/prompts/document/map/migration-guide.md +2 -5
  32. package/prompts/document/map/mvp-boundary.md +2 -6
  33. package/prompts/document/map/non-goals.md +2 -6
  34. package/prompts/document/map/ops.md +2 -5
  35. package/prompts/document/map/performance.md +2 -5
  36. package/prompts/document/map/poc-demo.md +2 -5
  37. package/prompts/document/map/regression.md +2 -6
  38. package/prompts/document/map/reproduce.md +2 -6
  39. package/prompts/document/map/requirement.md +2 -6
  40. package/prompts/document/map/research.md +2 -5
  41. package/prompts/document/map/root-cause.md +2 -6
  42. package/prompts/document/map/signoff.md +2 -6
  43. package/prompts/document/map/state-management.md +2 -5
  44. package/prompts/document/map/tech-selection.md +2 -6
  45. package/prompts/document/map/test-strategy.md +2 -6
  46. package/prompts/document/map/ui-design.md +2 -6
  47. package/prompts/document/outline/general.md +2 -5
  48. package/prompts/document/review/ai-review.md +4 -5
  49. package/prompts/document/shared/grounding.md +21 -27
  50. package/prompts/shared/artifact-language.md +5 -0
  51. package/prompts/shared/code-reviewer-prompt.md +2 -0
  52. package/prompts/shared/implementer-prompt.md +12 -2
  53. package/prompts/shared/spec-reviewer-prompt.md +2 -0
  54. package/skills/specflow-apply/SKILL.md +35 -13
  55. package/skills/specflow-techdoc/SKILL.md +23 -46
  56. package/skills/specflow-techdoc-synth/SKILL.md +20 -41
  57. package/templates/document/chapters/data-model.yaml +3 -0
@@ -1,4 +1,5 @@
1
- > **HARD GATE**: User must confirm the rewritten propose before Phase B execution begins. Do NOT proceed to implementation until the user has reviewed and approved the rewritten tasks.md.
1
+ > **HARD GATE (default / yes-after-plan)**: User must confirm the rewritten propose before Phase B execution begins. Do NOT proceed to implementation until the user has reviewed and approved the rewritten tasks.md.
2
+ > **Yes mode**: A successful rewrite may be auto-accepted, but gaps and reorganization choices still stop the run. Never proceed on a missing design decision.
2
3
 
3
4
  <!-- SOURCE: skills/writing-plans/SKILL.md (with build Phase A rewrite semantics) -->
4
5
 
@@ -16,6 +17,14 @@
16
17
  **Plan location (input and output):** `specflow/changes/<change-name>/tasks.md`
17
18
  - (User preferences for propose location override this default)
18
19
 
20
+ ## Confirmation Mode (inherited from SKILL.md)
21
+
22
+ - `default`: Gate A waits for user confirmation; Gate B waits after each task.
23
+ - `yes`: Gate A auto-accepts a successful rewrite; Gate B auto-continues after `Approve`/`Warning`.
24
+ - `yes-after-plan`: Gate A waits for one confirmation; after confirmation, Gate B auto-continues.
25
+
26
+ In every mode, stop on a design gap, reorganization choice, review `Block`, failing baseline/tests, verify `FAIL`, unresolved `BLOCKED`/`NEEDS_CONTEXT`, unexplained out-of-scope file changes, or a sensitive-area change without explicit approval.
27
+
19
28
  ## Artifact Language
20
29
 
21
30
  Before rewriting, resolve `artifacts.language` from the active planning root's `specflow/config.yaml` (see shared `artifact-language.md`). Rewrite **group titles and task description prose** in that language (`zh-CN` → Simplified Chinese; `en` → English). Keep file paths, commands, code blocks, symbols, and Verify command text unchanged. Do not switch business narrative to English when `zh-CN` is configured. zh-CN: 叙述简要;怎么做用 1. 2. 3.。
@@ -50,6 +59,7 @@ This is the standard path. When design.md is finalized and existing groups are w
50
59
  - Full code block or exact diff instructions (no "similar to above")
51
60
  - `Verify:` line with the command to run AND the expected output or exit condition
52
61
  - Produce the rewritten tasks.md in place (overwrite the coarse version).
62
+ - If tasks.md is already rewritten and contains `[x]` progress, preserve those checked tasks and continue from the first `[ ]`; do not reset completed work.
53
63
  - Proceed to the Before/After Audit (see later section).
54
64
 
55
65
  ---
@@ -271,22 +281,24 @@ Rewrite summary:
271
281
 
272
282
  This audit lets the user spot structural surprises (e.g., a group that exploded from 2 to 20 atomic tasks suggests it should have been split).
273
283
 
274
- ## Execution Handoff
284
+ ## Gate A Contract Summary
275
285
 
276
- After the rewrite is complete and the Before/After audit has been presented:
286
+ Before Gate A confirmation, present:
277
287
 
278
- **"Rewrite complete and saved to `specflow/changes/<change-name>/tasks.md`. Two execution options:**
288
+ - **Scope:** task groups, task count, files/directories to modify.
289
+ - **Non-goals:** what this run will not change.
290
+ - **Risk:** migrations, auth/security, payments, public API/schema, dependency manifests, CI/deploy config, secrets, and any files that would widen the declared scope.
291
+ - **Budget:** task count from `tasks.md`, declared file/directory scope, and per-task retry cap (default: 3 implement → review rounds). If design or tasks specify a stricter budget, use it.
292
+ - **Stop conditions:** the hard stops and sensitive areas in this contract.
279
293
 
280
- **1. Subagent-Driven (recommended)** - I dispatch a fresh subagent per task, review between tasks, fast iteration
294
+ Gate A confirmation approves only the sensitive areas explicitly named in this summary. A newly discovered sensitive area or an unexplained out-of-scope file change is a hard stop in every mode.
281
295
 
282
- **2. Inline Execution** - Execute tasks in this session, batch execution with checkpoints
296
+ ## Execution Handoff
283
297
 
284
- **Which approach?"**
298
+ After the rewrite and audit, the default execution mode is **Subagent-Driven**. Do not ask "Which approach?" unless the user explicitly requested inline execution.
285
299
 
286
- **If Subagent-Driven chosen:**
287
- - **REQUIRED SUB-SKILL:** Use specflow:apply Phase B
288
- - Fresh subagent per task + two-stage review (spec + code)
300
+ - **default:** present the plan/audit + contract summary and wait for Gate A confirmation.
301
+ - **yes-after-plan:** present the plan/audit + contract summary and wait for one confirmation; after confirmation, continue to Phase B in auto mode.
302
+ - **yes:** record the audit as automatically accepted and continue to Phase B.
289
303
 
290
- **If Inline Execution chosen:**
291
- - **REQUIRED SUB-SKILL:** Use specflow:apply Phase B (inline mode)
292
- - Batch execution with checkpoints for review
304
+ Phase B uses `specflow:apply` Phase B (subagent-driven). Inline execution is only used when the user explicitly asks for it.
@@ -1,4 +1,4 @@
1
- > **HARD GATE**: Wait for user confirmation after each task's review. Do NOT proceed to the next task until both spec compliance and code quality reviews pass and the user confirms.
1
+ > **HARD GATE**: Review gates are mandatory in every mode. In `default`, wait for user confirmation after each task. In `yes`/`yes-after-plan`, auto-continue only after spec review passes and code review returns `Approve`/`Warning`; never continue on `Block` or another hard stop.
2
2
 
3
3
  <!-- SOURCE: skills/subagent-driven-development/SKILL.md -->
4
4
 
@@ -10,6 +10,30 @@ Execute propose by dispatching fresh subagent per task, with two-stage review af
10
10
 
11
11
  **Core principle:** Fresh subagent per task + two-stage review (spec then quality) = high quality, fast iteration
12
12
 
13
+ ## Confirmation Mode and Continuous Execution
14
+
15
+ Inherit `ApplyMode` from SKILL.md.
16
+
17
+ - `default`: after each task's reviews pass, present the task and wait for user confirmation.
18
+ - `yes` / `yes-after-plan`: after both reviews pass with `Approve`, or `Warning` with only non-sensitive MEDIUM findings, mark the task `[x]` in `tasks.md`, record the verdicts, report at most one compact progress line, and start the next task immediately. Do not end the turn for acknowledgement, present a menu, or ask "continue?".
19
+ - All modes: stop on review `Block`, design gap, failing baseline/tests, verify `FAIL`, unresolved `BLOCKED`/`NEEDS_CONTEXT`, unexplained out-of-scope file changes, sensitive-area change without explicit approval, or budget/retry limit.
20
+
21
+ ## Progress
22
+
23
+ Mark a task `[x]` in `tasks.md` only after both reviews pass. On resume, start from the first unchecked task. Preserve existing `[x]` progress; never reset it.
24
+
25
+ Before marking a task complete, compare its changed files with the Gate A scope. If a file is outside the declared scope and the task does not explain why it is required, stop and report the scope drift.
26
+
27
+ ## Codex Dispatch
28
+
29
+ Map Claude's `Task tool (general-purpose)` to Codex subagent tools:
30
+
31
+ - `spawn_agent` for the implementer or reviewer
32
+ - `wait_agent` for the result
33
+ - `send_input` for fixes to the same agent
34
+
35
+ If those tools are unavailable, run the prompt inline and state `subagent tools unavailable; running inline`.
36
+
13
37
  ## When to Use
14
38
 
15
39
  ```dot
@@ -54,15 +78,15 @@ digraph process {
54
78
  "Dispatch code quality reviewer subagent\n(Read .claude/specflow/prompts/shared/code-reviewer-prompt.md)" [shape=box];
55
79
  "Code quality reviewer subagent approves?" [shape=diamond];
56
80
  "Implementer subagent fixes quality issues" [shape=box];
57
- "Mark task complete in TodoWrite" [shape=box];
81
+ "Mark task complete in tasks.md [x]" [shape=box];
58
82
  }
59
83
 
60
- "Read plan, extract all tasks with full text, note context, create TodoWrite" [shape=box];
84
+ "Read plan, extract all tasks with full text, note context, create a progress checklist" [shape=box];
61
85
  "More tasks remain?" [shape=diamond];
62
86
  "Dispatch final code reviewer subagent for entire implementation" [shape=box];
63
- "Use specflow:archive" [shape=box style=filled fillcolor=lightgreen];
87
+ "Return to SKILL.md Stage B3 (do not archive)" [shape=box style=filled fillcolor=lightgreen];
64
88
 
65
- "Read plan, extract all tasks with full text, note context, create TodoWrite" -> "Dispatch implementer subagent\n(Read .claude/specflow/prompts/shared/implementer-prompt.md)";
89
+ "Read plan, extract all tasks with full text, note context, create a progress checklist" -> "Dispatch implementer subagent\n(Read .claude/specflow/prompts/shared/implementer-prompt.md)";
66
90
  "Dispatch implementer subagent\n(Read .claude/specflow/prompts/shared/implementer-prompt.md)" -> "Implementer subagent asks questions?";
67
91
  "Implementer subagent asks questions?" -> "Answer questions, provide context" [label="yes"];
68
92
  "Answer questions, provide context" -> "Dispatch implementer subagent\n(Read .claude/specflow/prompts/shared/implementer-prompt.md)";
@@ -75,11 +99,11 @@ digraph process {
75
99
  "Dispatch code quality reviewer subagent\n(Read .claude/specflow/prompts/shared/code-reviewer-prompt.md)" -> "Code quality reviewer subagent approves?";
76
100
  "Code quality reviewer subagent approves?" -> "Implementer subagent fixes quality issues" [label="no"];
77
101
  "Implementer subagent fixes quality issues" -> "Dispatch code quality reviewer subagent\n(Read .claude/specflow/prompts/shared/code-reviewer-prompt.md)" [label="re-review"];
78
- "Code quality reviewer subagent approves?" -> "Mark task complete in TodoWrite" [label="yes"];
79
- "Mark task complete in TodoWrite" -> "More tasks remain?";
102
+ "Code quality reviewer subagent approves?" -> "Mark task complete in tasks.md [x]" [label="yes"];
103
+ "Mark task complete in tasks.md [x]" -> "More tasks remain?";
80
104
  "More tasks remain?" -> "Dispatch implementer subagent\n(Read .claude/specflow/prompts/shared/implementer-prompt.md)" [label="yes"];
81
105
  "More tasks remain?" -> "Dispatch final code reviewer subagent for entire implementation" [label="no"];
82
- "Dispatch final code reviewer subagent for entire implementation" -> "Use specflow:archive";
106
+ "Dispatch final code reviewer subagent for entire implementation" -> "Return to SKILL.md Stage B3 (do not archive)";
83
107
  }
84
108
  ```
85
109
 
@@ -100,6 +124,8 @@ Use the least powerful model that can handle each role to conserve cost and incr
100
124
 
101
125
  ## Handling Implementer Status
102
126
 
127
+ In auto modes, do not forward non-blocking questions to the user and do not end the turn merely because the implementer asked one. Resolve questions from design/spec/tasks first; only stop and ask if the answer changes scope, behavior, or risk.
128
+
103
129
  Implementer subagents report one of four statuses. Handle each appropriately:
104
130
 
105
131
  **DONE:** Proceed to spec compliance review.
@@ -129,7 +155,7 @@ You: I'm using specflow:apply Phase B to execute this plan.
129
155
 
130
156
  [Read propose file once: specflow/changes/<change-name>/tasks.md]
131
157
  [Extract all 5 tasks with full text and context]
132
- [Create TodoWrite with all tasks]
158
+ [Create a progress checklist from tasks.md]
133
159
 
134
160
  Task 1: Hook installation script
135
161
 
@@ -204,7 +230,7 @@ Done!
204
230
  - Subagents follow TDD naturally
205
231
  - Fresh context per task (no confusion)
206
232
  - Parallel-safe (subagents don't interfere)
207
- - Subagent can ask questions (before AND during work)
233
+ - Subagent can ask questions in `default`; auto modes resolve non-blocking ambiguity and return `NEEDS_CONTEXT` only when blocked
208
234
 
209
235
  **vs. Inline Mode:**
210
236
  - Same session (no handoff)
@@ -245,11 +271,14 @@ Done!
245
271
  - Let implementer self-review replace actual review (both are needed)
246
272
  - **Start code quality review before spec compliance passes** (wrong order)
247
273
  - Move to next task while either review has open issues
274
+ - Ask "continue?" in `yes`/`yes-after-plan` mode after a successful review
275
+ - Auto-advance past a `Block` or another hard stop
276
+ - Reset `[x]` progress when resuming
248
277
 
249
278
  **If subagent asks questions:**
250
- - Answer clearly and completely
251
- - Provide additional context if needed
252
- - Don't rush them into implementation
279
+ - `default`: answer clearly and completely, then re-dispatch.
280
+ - `yes` / `yes-after-plan`: answer from design/spec/tasks and continue without user involvement unless the answer changes scope, behavior, or risk.
281
+ - Never treat a non-blocking question as a reason to end the auto run.
253
282
 
254
283
  **If reviewer finds issues:**
255
284
  - Implementer (same subagent) fixes them
@@ -267,7 +296,7 @@ Done!
267
296
  - **specflow:apply Phase B (worktree)** - REQUIRED: Set up isolated workspace before starting
268
297
  - **specflow:apply Phase A** - Creates the propose this skill executes
269
298
  - **specflow:review** - Code review template for reviewer subagents
270
- - **specflow:archive** - Complete development after all tasks
299
+ - **specflow:archive** - User-invoked after final acceptance; never automatic and never part of the apply loop
271
300
 
272
301
  **Subagents should use:**
273
302
  - **specflow:apply TDD** - Subagents follow TDD for each task
@@ -10,6 +10,22 @@ Two sequential review phases ensure that code both matches the specification and
10
10
 
11
11
  **Why this order:** Code quality review on spec-noncompliant code is wasted effort. Fix what's wrong before polishing how it's built.
12
12
 
13
+ ## Confirmation Mode
14
+
15
+ - `default`: after both phases pass, present the reports and wait for user confirmation.
16
+ - `yes` / `yes-after-plan`: after both phases pass, record the verdicts and continue without asking "continue?". A `Warning` with a sensitive-area or scope-drift finding is a stop, not an auto-approval.
17
+ - All modes: a `Block` returns the task to the implementer and requires a re-review; never skip the loop. Unexpected out-of-scope file changes are also a stop condition.
18
+
19
+ ## Codex Dispatch
20
+
21
+ Claude's `Task tool (general-purpose)` maps to Codex subagent tools:
22
+
23
+ - `spawn_agent` for the spec or code reviewer
24
+ - `wait_agent` for the result
25
+ - `send_input` for re-review or fix follow-ups
26
+
27
+ If those tools are unavailable, run the same reviewer prompt inline and state `subagent tools unavailable; running inline`.
28
+
13
29
  ## Phase 1: Spec Compliance Review
14
30
 
15
31
  **Prompt source:** Read `.claude/specflow/prompts/shared/spec-reviewer-prompt.md`
@@ -65,7 +81,7 @@ Task tool (general-purpose):
65
81
 
66
82
  **Verdict routing:**
67
83
  - `Block`: return task to implementer with specific findings; do not advance to Gate B until a subsequent review produces `Approve` or `Warning`
68
- - `Warning`: proceed to Gate B with MEDIUM findings visible in the task summary
84
+ - `Warning`: proceed to Gate B with MEDIUM findings visible in the task summary, unless a finding concerns a sensitive area or scope drift
69
85
  - `Approve`: proceed directly to Gate B
70
86
 
71
87
  **Diagnostic commands:**
@@ -111,9 +127,11 @@ digraph review_routing {
111
127
  - Skip the re-review loop after fixes
112
128
  - Accept "close enough" on spec compliance
113
129
  - Let the implementer self-review replace either formal review
130
+ - Treat an unexplained out-of-scope change as acceptable because tests pass
114
131
 
115
132
  **Always:**
116
133
  - Spec compliance first, code quality second
117
134
  - Loop until each phase passes
118
135
  - Provide full task context to each reviewer
119
- - Wait for user confirmation after both phases pass
136
+ - In `default`, wait for user confirmation after both phases pass
137
+ - In `yes`/`yes-after-plan`, record the verdicts and continue without asking
@@ -10,6 +10,12 @@ Git worktrees create isolated workspaces sharing the same repository, allowing w
10
10
 
11
11
  **Announce at start:** "I'm using the git-worktrees skill to set up an isolated workspace."
12
12
 
13
+ ## Confirmation Mode
14
+
15
+ - `default`: if no worktree location is configured, ask the user.
16
+ - `yes` / `yes-after-plan`: do not ask for a location. Default to `.worktrees`, ensure it is ignored, and continue.
17
+ - All modes: a failing baseline test is a hard stop; do not start implementation on a red baseline.
18
+
13
19
  ## Directory Selection Process
14
20
 
15
21
  Follow this priority order:
@@ -24,26 +30,28 @@ ls -d worktrees 2>/dev/null # Alternative
24
30
 
25
31
  **If found:** Use that directory. If both exist, `.worktrees` wins.
26
32
 
27
- ### 2. Check CLAUDE.md
33
+ ### 2. Check AGENTS.md / CLAUDE.md
28
34
 
29
35
  ```bash
30
- grep -i "worktree.*director" CLAUDE.md 2>/dev/null
36
+ grep -i "worktree.*director" AGENTS.md CLAUDE.md 2>/dev/null
31
37
  ```
32
38
 
33
39
  **If preference specified:** Use it without asking.
34
40
 
35
- ### 3. Ask User
41
+ ### 3. Choose a Location
36
42
 
37
- If no directory exists and no CLAUDE.md preference:
43
+ If no directory exists and no preference is configured:
38
44
 
39
- ```
40
- No worktree directory found. Where should I create worktrees?
45
+ - **default:** ask the user:
46
+ ```
47
+ No worktree directory found. Where should I create worktrees?
41
48
 
42
- 1. .worktrees/ (project-local, hidden)
43
- 2. ~/.config/specflow/worktrees/<project-name>/ (global location)
49
+ 1. .worktrees/ (project-local, hidden)
50
+ 2. ~/.config/specflow/worktrees/<project-name>/ (global location)
44
51
 
45
- Which would you prefer?
46
- ```
52
+ Which would you prefer?
53
+ ```
54
+ - **yes / yes-after-plan:** default to `.worktrees/`, add it to `.gitignore` if needed, and continue without asking.
47
55
 
48
56
  ## Safety Verification
49
57
 
@@ -126,7 +134,7 @@ pytest
126
134
  go test ./...
127
135
  ```
128
136
 
129
- **If tests fail:** Report failures, ask whether to proceed or investigate.
137
+ **If tests fail:** Report failures and stop in every mode. Do not start implementation on a failing baseline; fix the baseline or return to the user.
130
138
 
131
139
  **If tests pass:** Report ready.
132
140
 
@@ -145,9 +153,9 @@ Ready to implement <feature-name>
145
153
  | `.worktrees/` exists | Use it (verify ignored) |
146
154
  | `worktrees/` exists | Use it (verify ignored) |
147
155
  | Both exist | Use `.worktrees/` |
148
- | Neither exists | Check CLAUDE.md -> Ask user |
156
+ | Neither exists | Check `AGENTS.md` / `CLAUDE.md`; `default` asks, auto modes use `.worktrees/` |
149
157
  | Directory not ignored | Add to .gitignore + commit |
150
- | Tests fail during baseline | Report failures + ask |
158
+ | Tests fail during baseline | Hard stop in every mode |
151
159
  | No package.json/Cargo.toml | Skip dependency install |
152
160
 
153
161
  ## Common Mistakes
@@ -160,7 +168,7 @@ Ready to implement <feature-name>
160
168
  ### Assuming directory location
161
169
 
162
170
  - **Problem:** Creates inconsistency, violates project conventions
163
- - **Fix:** Follow priority: existing > CLAUDE.md > ask
171
+ - **Fix:** Follow priority: existing > `AGENTS.md` / `CLAUDE.md` > mode-specific default
164
172
 
165
173
  ### Proceeding with failing tests
166
174
 
@@ -193,12 +201,12 @@ Ready to implement auth feature
193
201
  **Never:**
194
202
  - Create worktree without verifying it's ignored (project-local)
195
203
  - Skip baseline test verification
196
- - Proceed with failing tests without asking
204
+ - Proceed with failing tests in any mode
197
205
  - Assume directory location when ambiguous
198
206
  - Skip CLAUDE.md check
199
207
 
200
208
  **Always:**
201
- - Follow directory priority: existing > CLAUDE.md > ask
209
+ - Follow directory priority: existing > `AGENTS.md` / `CLAUDE.md` > mode-specific default
202
210
  - Verify directory is ignored for project-local
203
211
  - Auto-detect and run project setup
204
212
  - Verify clean test baseline
@@ -212,4 +220,4 @@ Ready to implement auth feature
212
220
  - Any skill needing isolated workspace
213
221
 
214
222
  **Pairs with:**
215
- - **specflow:archive** - REQUIRED for cleanup after work complete
223
+ - **specflow:archive** - User-invoked after final acceptance; never automatic
@@ -1,9 +1,5 @@
1
1
  # 章节填充:acceptance
2
2
 
3
- 你是方案文档撰写员。按大纲要点"填空题"式展开本章,逐要点填充,不自由发挥。
4
- - kind=entity|mixed 的要点 → 产出结构化契约实体(JSON 块 ```json {"interfaces": [...], "tables": [...], "decisions": [...]} ```)
5
- - kind=narrative|mixed 的要点 → 产出叙述 Markdown
6
- - 遵循 prompts/shared/artifact-language.md 的中文叙述规范(简要;怎么做用 1. 2. 3.)
7
- - 禁止 stub(TODO/待补充/此处省略);禁止含糊词
8
- - **事实从工程数据源提取,意图向用户询问,推理由你完成**(见 `prompts/document/shared/grounding.md`):本章涉及的接口字段/表列/组件名/依赖版本必须来自工程,缺失的关键信息列入缺口清单一次性询问用户,禁止编造
3
+ 你是方案文档撰写员。按大纲要点"填空题"式展开:kind=entity|mixed → JSON 契约实体块(```json {"interfaces":[...],"tables":[...],"decisions":[...]} ```);kind=narrative|mixed → 叙述 Markdown。
4
+ 遵循 prompts/shared/artifact-language.md(中文规范);禁止 stub/含糊词;事实从工程数据源提取、意图询问用户(grounding.md),缺口一次性确认,禁止编造。
9
5
  - 涉及项目规约/DB/API/前端约束时,遵循「项目约定 > SpecFlow guidance > LLM」优先级
@@ -1,11 +1,7 @@
1
1
  # 章节填充:api-design(接口与数据设计 · 接口契约 + 前端对接)
2
2
 
3
- 你是方案文档撰写员。按大纲要点"填空题"式展开本章,逐要点填充,不自由发挥。
4
- - kind=entity|mixed 的要点 → 产出结构化契约实体(JSON 块 ```json {"interfaces": [...], "tables": [...], "decisions": [...]} ```)
5
- - kind=narrative|mixed 的要点 → 产出叙述 Markdown
6
- - 遵循 prompts/shared/artifact-language.md 的中文叙述规范(简要;怎么做用 1. 2. 3.;**正文中文化**;**叙述分条 + 图文结合**)
7
- - 禁止 stub(TODO/待补充/此处省略);禁止含糊词
8
- - **事实从工程数据源提取,意图向用户询问,推理由你完成**(见 `prompts/document/shared/grounding.md`):本章涉及的接口字段/表列/组件名/依赖版本必须来自工程,缺失的关键信息列入缺口清单一次性询问用户,禁止编造
3
+ 你是方案文档撰写员。按大纲要点"填空题"式展开:kind=entity|mixed → JSON 契约实体块(```json {"interfaces":[...],"tables":[...],"decisions":[...]} ```);kind=narrative|mixed → 叙述 Markdown。
4
+ 遵循 prompts/shared/artifact-language.md(正文中文化、叙述分条+图文结合);禁止 stub/含糊词;事实从工程数据源提取、意图询问用户(grounding.md),缺口一次性确认,禁止编造。
9
5
 
10
6
  ## 本章定位:接口契约承载(P11/P13)
11
7
 
@@ -1,11 +1,7 @@
1
1
  # 章节填充:architecture(架构设计 · C4 分层 + ADR)
2
2
 
3
- 你是方案文档撰写员。按大纲要点"填空题"式展开本章,逐要点填充,不自由发挥。
4
- - kind=entity|mixed 的要点 → 产出结构化契约实体(JSON 块 ```json {"interfaces": [...], "tables": [...], "decisions": [...]} ```)
5
- - kind=narrative|mixed 的要点 → 产出叙述 Markdown
6
- - 遵循 prompts/shared/artifact-language.md 的中文叙述规范(简要;怎么做用 1. 2. 3.)
7
- - 禁止 stub(TODO/待补充/此处省略);禁止含糊词
8
- - **事实从工程数据源提取,意图向用户询问,推理由你完成**(见 `prompts/document/shared/grounding.md`):本章涉及的接口字段/表列/组件名/依赖版本必须来自工程,缺失的关键信息列入缺口清单一次性询问用户,禁止编造
3
+ 你是方案文档撰写员。按大纲要点"填空题"式展开:kind=entity|mixed → JSON 契约实体块(```json {"interfaces":[...],"tables":[...],"decisions":[...]} ```);kind=narrative|mixed → 叙述 Markdown。
4
+ 遵循 prompts/shared/artifact-language.md(中文规范);禁止 stub/含糊词;事实从工程数据源提取、意图询问用户(grounding.md),缺口一次性确认,禁止编造。
9
5
 
10
6
  ## 架构章节硬规则(G1 + README §1.7 + C4/ADR,见 f1-0to1.md §2.7.4)
11
7
 
@@ -1,10 +1,7 @@
1
1
  # 章节填充:benchmark(Benchmark 数据)
2
2
 
3
- 你是方案文档撰写员。按大纲要点"填空题"式展开本章,逐要点填充,不自由发挥。
4
- - kind=narrative|mixed 的要点 → 产出叙述 Markdown(含测量数据表)
5
- - 遵循 prompts/shared/artifact-language.md 的中文叙述规范(简要;怎么做用 1. 2. 3.)
6
- - 禁止 stub(TODO/待补充/此处省略);禁止含糊词
7
- - **事实从工程数据源提取,意图向用户询问,推理由你完成**(见 `prompts/document/shared/grounding.md`):本章涉及的接口字段/表列/组件名/依赖版本必须来自工程,缺失的关键信息列入缺口清单一次性询问用户,禁止编造
3
+ 你是方案文档撰写员。按大纲要点"填空题"式展开:kind=narrative|mixed → 叙述 Markdown。
4
+ 遵循 prompts/shared/artifact-language.md(中文规范);禁止 stub/含糊词;事实从工程数据源提取、意图询问用户(grounding.md),缺口一次性确认,禁止编造。
8
5
 
9
6
  ## Benchmark 章节硬规则(F5 预研/选型 · 数据说话的严谨性)
10
7
 
@@ -1,9 +1,5 @@
1
1
  # 章节填充:closed-loop
2
2
 
3
- 你是方案文档撰写员。按大纲要点"填空题"式展开本章,逐要点填充,不自由发挥。
4
- - kind=entity|mixed 的要点 → 产出结构化契约实体(JSON 块 ```json {"interfaces": [...], "tables": [...], "decisions": [...]} ```)
5
- - kind=narrative|mixed 的要点 → 产出叙述 Markdown
6
- - 遵循 prompts/shared/artifact-language.md 的中文叙述规范(简要;怎么做用 1. 2. 3.)
7
- - 禁止 stub(TODO/待补充/此处省略);禁止含糊词
8
- - **事实从工程数据源提取,意图向用户询问,推理由你完成**(见 `prompts/document/shared/grounding.md`):本章涉及的接口字段/表列/组件名/依赖版本必须来自工程,缺失的关键信息列入缺口清单一次性询问用户,禁止编造
3
+ 你是方案文档撰写员。按大纲要点"填空题"式展开:kind=entity|mixed → JSON 契约实体块(```json {"interfaces":[...],"tables":[...],"decisions":[...]} ```);kind=narrative|mixed → 叙述 Markdown。
4
+ 遵循 prompts/shared/artifact-language.md(中文规范);禁止 stub/含糊词;事实从工程数据源提取、意图询问用户(grounding.md),缺口一次性确认,禁止编造。
9
5
  - 涉及项目规约/DB/API/前端约束时,遵循「项目约定 > SpecFlow guidance > LLM」优先级
@@ -1,11 +1,7 @@
1
1
  # 章节填充:compat-migration(兼容性与迁移 · 新旧 API 对照)
2
2
 
3
- 你是方案文档撰写员。按大纲要点"填空题"式展开本章,逐要点填充,不自由发挥。
4
- - kind=entity|mixed 的要点 → 产出结构化契约实体(JSON 块 ```json {"interfaces": [...], "tables": [...], "decisions": [...]} ```)
5
- - kind=narrative|mixed 的要点 → 产出叙述 Markdown
6
- - 遵循 prompts/shared/artifact-language.md 的中文叙述规范(简要;怎么做用 1. 2. 3.)
7
- - 禁止 stub(TODO/待补充/此处省略);禁止含糊词
8
- - **事实从工程数据源提取,意图向用户询问,推理由你完成**(见 `prompts/document/shared/grounding.md`):本章涉及的接口字段/表列/组件名/依赖版本必须来自工程,缺失的关键信息列入缺口清单一次性询问用户,禁止编造
3
+ 你是方案文档撰写员。按大纲要点"填空题"式展开:kind=entity|mixed → JSON 契约实体块(```json {"interfaces":[...],"tables":[...],"decisions":[...]} ```);kind=narrative|mixed → 叙述 Markdown。
4
+ 遵循 prompts/shared/artifact-language.md(中文规范);禁止 stub/含糊词;事实从工程数据源提取、意图询问用户(grounding.md),缺口一次性确认,禁止编造。
9
5
  - 涉及项目规约/DB/API/前端约束时,遵循「项目约定 > SpecFlow guidance > LLM」优先级
10
6
 
11
7
  ## 兼容迁移章节硬规则(G3/G4 + F4 迁移扩展)
@@ -1,10 +1,7 @@
1
1
  # 章节填充:component-design(组件设计)
2
2
 
3
- 你是方案文档撰写员。按大纲要点"填空题"式展开本章,逐要点填充,不自由发挥。
4
- - kind=narrative|mixed 的要点 → 产出叙述 Markdown(含组件树)
5
- - 遵循 prompts/shared/artifact-language.md 的中文叙述规范(简要;怎么做用 1. 2. 3.)
6
- - 禁止 stub(TODO/待补充/此处省略);禁止含糊词
7
- - **事实从工程数据源提取,意图向用户询问,推理由你完成**(见 `prompts/document/shared/grounding.md`):本章涉及的接口字段/表列/组件名/依赖版本必须来自工程,缺失的关键信息列入缺口清单一次性询问用户,禁止编造
3
+ 你是方案文档撰写员。按大纲要点"填空题"式展开:kind=narrative|mixed → 叙述 Markdown。
4
+ 遵循 prompts/shared/artifact-language.md(中文规范);禁止 stub/含糊词;事实从工程数据源提取、意图询问用户(grounding.md),缺口一次性确认,禁止编造。
8
5
 
9
6
  ## 组件设计章节硬规则(frontend-dev-guide 组件方法论 + README §1.1/§1.2)
10
7
 
@@ -1,9 +1,5 @@
1
1
  # 章节填充:config-runtime
2
2
 
3
- 你是方案文档撰写员。按大纲要点"填空题"式展开本章,逐要点填充,不自由发挥。
4
- - kind=entity|mixed 的要点 → 产出结构化契约实体(JSON 块 ```json {"interfaces": [...], "tables": [...], "decisions": [...]} ```)
5
- - kind=narrative|mixed 的要点 → 产出叙述 Markdown
6
- - 遵循 prompts/shared/artifact-language.md 的中文叙述规范(简要;怎么做用 1. 2. 3.)
7
- - 禁止 stub(TODO/待补充/此处省略);禁止含糊词
8
- - **事实从工程数据源提取,意图向用户询问,推理由你完成**(见 `prompts/document/shared/grounding.md`):本章涉及的接口字段/表列/组件名/依赖版本必须来自工程,缺失的关键信息列入缺口清单一次性询问用户,禁止编造
3
+ 你是方案文档撰写员。按大纲要点"填空题"式展开:kind=entity|mixed → JSON 契约实体块(```json {"interfaces":[...],"tables":[...],"decisions":[...]} ```);kind=narrative|mixed → 叙述 Markdown。
4
+ 遵循 prompts/shared/artifact-language.md(中文规范);禁止 stub/含糊词;事实从工程数据源提取、意图询问用户(grounding.md),缺口一次性确认,禁止编造。
9
5
  - 涉及项目规约/DB/API/前端约束时,遵循「项目约定 > SpecFlow guidance > LLM」优先级
@@ -1,10 +1,7 @@
1
1
  # 章节填充:core-flow(主业务流程时序)
2
2
 
3
- 你是方案文档撰写员。按大纲要点"填空题"式展开本章,逐要点填充,不自由发挥。
4
- - kind=narrative|mixed 的要点 → 产出叙述 Markdown(含 Mermaid 时序图)
5
- - 遵循 prompts/shared/artifact-language.md 的中文叙述规范(简要;怎么做用 1. 2. 3.)
6
- - 禁止 stub(TODO/待补充/此处省略);禁止含糊词
7
- - **事实从工程数据源提取,意图向用户询问,推理由你完成**(见 `prompts/document/shared/grounding.md`):本章涉及的接口字段/表列/组件名/依赖版本必须来自工程,缺失的关键信息列入缺口清单一次性询问用户,禁止编造
3
+ 你是方案文档撰写员。按大纲要点"填空题"式展开:kind=narrative|mixed → 叙述 Markdown(含 Mermaid 时序图)。
4
+ 遵循 prompts/shared/artifact-language.md(中文规范);禁止 stub/含糊词;事实从工程数据源提取、意图询问用户(grounding.md),缺口一次性确认,禁止编造。
8
5
 
9
6
  ## 时序图硬规则(README §1.7 架构图规范 + seqdiagram 精神)
10
7
 
@@ -1,10 +1,7 @@
1
1
  # 章节填充:core-logic(关键实现规则)
2
2
 
3
- 你是方案文档撰写员。按大纲要点"填空题"式展开本章,逐要点填充,不自由发挥。
4
- - kind=narrative|mixed 的要点 → 产出叙述 Markdown
5
- - 遵循 prompts/shared/artifact-language.md 的中文叙述规范(简要;怎么做用 1. 2. 3.;**正文中文化**)
6
- - 禁止 stub(TODO/待补充/此处省略);禁止含糊词
7
- - **事实从工程数据源提取,意图向用户询问,推理由你完成**(见 `prompts/document/shared/grounding.md`):本章涉及的接口字段/表列/组件名/依赖版本必须来自工程,缺失的关键信息列入缺口清单一次性询问用户,禁止编造
3
+ 你是方案文档撰写员。按大纲要点"填空题"式展开:kind=narrative|mixed → 叙述 Markdown。
4
+ 遵循 prompts/shared/artifact-language.md(正文中文化);禁止 stub/含糊词;事实从工程数据源提取、意图询问用户(grounding.md),缺口一次性确认,禁止编造。
8
5
  - 涉及项目规约/DB/API/前端约束时,遵循「项目约定 > SpecFlow guidance > LLM」优先级
9
6
 
10
7
  ## 关键实现规则章节硬规则(可读性整改:承接主流程、只写图中未覆盖的规则)
@@ -2,20 +2,17 @@
2
2
 
3
3
  > **分工说明(P11/P13)**:涉及数据库的表时本组件必选。表结构与 DDL、存量填充(G3)、回滚兼容(G4)、**契约-表映射**全部由本章承载;接口契约本体在「接口与数据设计」章(接口明细)。无论是否跨仓合成,**契约-表映射**(每接口 ↔ 读写表/列)都必须在本章给出,禁止接口讲接口、表讲表。
4
4
 
5
- 你是方案文档撰写员。按大纲要点"填空题"式展开本章,逐要点填充,不自由发挥。
6
- - kind=entity|mixed 的要点 → 产出结构化契约实体(JSON 块 ```json {"interfaces": [...], "tables": [...], "decisions": [...]} ```)
7
- - kind=narrative|mixed 的要点 → 产出叙述 Markdown
8
- - 遵循 prompts/shared/artifact-language.md 的中文叙述规范(简要;怎么做用 1. 2. 3.)
9
- - 禁止 stub(TODO/待补充/此处省略);禁止含糊词
10
- - **事实从工程数据源提取,意图向用户询问,推理由你完成**(见 `prompts/document/shared/grounding.md`):本章涉及的接口字段/表列/组件名/依赖版本必须来自工程,缺失的关键信息列入缺口清单一次性询问用户,禁止编造
5
+ 你是方案文档撰写员。按大纲要点"填空题"式展开:kind=entity|mixed → JSON 契约实体块(```json {"interfaces":[...],"tables":[...],"decisions":[...]} ```);kind=narrative|mixed → 叙述 Markdown。
6
+ 遵循 prompts/shared/artifact-language.md(中文规范);禁止 stub/含糊词;事实从工程数据源提取、意图询问用户(grounding.md),缺口一次性确认,禁止编造。
11
7
 
12
8
  ## 数据章节硬规则(借鉴 approval database-guidance)
13
9
 
14
10
  1. **先探测项目 DB 栈**:读项目规约 `conventions.database` + 现网 DDL/迁移文件,判断 MySQL/PostgreSQL/SQLite/Redis/ES 等。命中本地 guidance 则遵循,未命中 LLM fallback。
15
11
  2. **总则必须写明**:数据库迁移、新建表、增删列、新增索引、DDL 来源、项目约定(路径或「未发现」)。
16
- 3. **每张表必须**:完整 CREATE TABLE(含 ENGINE/CHARSET/索引)+ 字段说明(类型/本迭代用法)。
17
- 4. **G3 存量填充**:JSON 形状变更或新增列时必须写存量默认值填充策略(回填 SQL/读时默认值/禁止空读/上线顺序)。
18
- 5. **G4 回滚兼容**:回滚后旧版本能否安全跳过/忽略新数据?写明机制(omitempty/忽略未知键/version 分派)。禁止只写「回滚应用」。
19
- 6. **零 DDL 迭代**:仍须展示现网 DDL,禁止假装「不涉及数据库」。
20
- 7. **契约-表映射(强制)**:本章(或并入的接口与数据设计章)必须给出契约-表映射表——每个相关接口一行(契约 / 读写 / 表·列 / 关键说明),字段与列对齐。
21
- 8. **优先级**:项目约定 > SpecFlow guidance > LLM。项目禁令(如「本迭代禁止迁移」)不得被通用规则覆盖。
12
+ 3. **每张表必须**:完整 CREATE TABLE(含 ENGINE/CHARSET/索引,**全部列,禁止省略列/省略号**)+ **字段说明表(字段/类型/必填/本迭代用法,validate 以 `table_fields_missing` 拦截缺字段说明、`ddl_column_missing`/`ddl_truncated` 拦截 DDL 缺列/截断)**。
13
+ 4. **ER 图(强制)**:本章必须给出 ER 图(```mermaid erDiagram:表关系/主外键),validate 以 `er_diagram_missing` 拦截缺图;图必须有文字说明(逐表逐关系解释,禁只有图无文字)。
14
+ 5. **G3 存量填充**:JSON 形状变更或新增列时必须写存量默认值填充策略(回填 SQL/读时默认值/禁止空读/上线顺序)。
15
+ 6. **G4 回滚兼容**:回滚后旧版本能否安全跳过/忽略新数据?写明机制(omitempty/忽略未知键/version 分派)。禁止只写「回滚应用」。
16
+ 7. **零 DDL 迭代**:仍须展示现网 DDL,禁止假装「不涉及数据库」。
17
+ 8. **契约-表映射(强制)**:本章(或并入的接口与数据设计章)必须给出契约-表映射表——每个相关接口一行(契约 / 读写 / 表·列 / 关键说明),字段与列对齐。
18
+ 9. **优先级**:项目约定 > SpecFlow guidance > LLM。项目禁令(如「本迭代禁止迁移」)不得被通用规则覆盖。
@@ -1,10 +1,7 @@
1
1
  # 章节填充:deploy(部署交付方案 · 12-Factor)
2
2
 
3
- 你是方案文档撰写员。按大纲要点"填空题"式展开本章,逐要点填充,不自由发挥。
4
- - kind=narrative|mixed 的要点 → 产出叙述 Markdown
5
- - 遵循 prompts/shared/artifact-language.md 的中文叙述规范(简要;怎么做用 1. 2. 3.)
6
- - 禁止 stub(TODO/待补充/此处省略);禁止含糊词
7
- - **事实从工程数据源提取,意图向用户询问,推理由你完成**(见 `prompts/document/shared/grounding.md`):本章涉及的接口字段/表列/组件名/依赖版本必须来自工程,缺失的关键信息列入缺口清单一次性询问用户,禁止编造
3
+ 你是方案文档撰写员。按大纲要点"填空题"式展开:kind=narrative|mixed → 叙述 Markdown。
4
+ 遵循 prompts/shared/artifact-language.md(中文规范);禁止 stub/含糊词;事实从工程数据源提取、意图询问用户(grounding.md),缺口一次性确认,禁止编造。
8
5
  - 涉及项目规约/DB/API/前端约束时,遵循「项目约定 > SpecFlow guidance > LLM」优先级
9
6
 
10
7
  ## 部署交付章节硬规则(F1 §2.6.2 + Twelve-Factor App)
@@ -1,8 +1,4 @@
1
1
  # 章节填充:fix
2
2
 
3
- 你是方案文档撰写员。按大纲要点"填空题"式展开本章,逐要点填充,不自由发挥。
4
- - kind=entity|mixed 的要点 → 产出结构化契约实体(JSON 块 ```json {"interfaces": [...], "tables": [...], "decisions": [...]} ```)
5
- - kind=narrative|mixed 的要点 → 产出叙述 Markdown
6
- - 遵循 prompts/shared/artifact-language.md 的中文叙述规范(简要;怎么做用 1. 2. 3.)
7
- - 禁止 stub(TODO/待补充/此处省略);禁止含糊词
8
- - **事实从工程数据源提取,意图向用户询问,推理由你完成**(见 `prompts/document/shared/grounding.md`):本章涉及的接口字段/表列/组件名/依赖版本必须来自工程,缺失的关键信息列入缺口清单一次性询问用户,禁止编造
3
+ 你是方案文档撰写员。按大纲要点"填空题"式展开:kind=entity|mixed → JSON 契约实体块(```json {"interfaces":[...],"tables":[...],"decisions":[...]} ```);kind=narrative|mixed → 叙述 Markdown。
4
+ 遵循 prompts/shared/artifact-language.md(中文规范);禁止 stub/含糊词;事实从工程数据源提取、意图询问用户(grounding.md),缺口一次性确认,禁止编造。
@@ -1,10 +1,7 @@
1
1
  # 章节填充:frontend-architecture(前端架构设计)
2
2
 
3
- 你是方案文档撰写员。按大纲要点"填空题"式展开本章,逐要点填充,不自由发挥。
4
- - kind=narrative|mixed 的要点 → 产出叙述 Markdown(含 Mermaid 架构图)
5
- - 遵循 prompts/shared/artifact-language.md 的中文叙述规范(简要;怎么做用 1. 2. 3.)
6
- - 禁止 stub(TODO/待补充/此处省略);禁止含糊词
7
- - **事实从工程数据源提取,意图向用户询问,推理由你完成**(见 `prompts/document/shared/grounding.md`):本章涉及的接口字段/表列/组件名/依赖版本必须来自工程,缺失的关键信息列入缺口清单一次性询问用户,禁止编造
3
+ 你是方案文档撰写员。按大纲要点"填空题"式展开:kind=narrative|mixed → 叙述 Markdown(含 Mermaid 架构图)。
4
+ 遵循 prompts/shared/artifact-language.md(中文规范);禁止 stub/含糊词;事实从工程数据源提取、意图询问用户(grounding.md),缺口一次性确认,禁止编造。
8
5
 
9
6
  ## 前端架构章节硬规则(frontend-dev-guide 目录分层 + README §1.7 架构图规范)
10
7
 
@@ -1,8 +1,4 @@
1
1
  # 章节填充:goal
2
2
 
3
- 你是方案文档撰写员。按大纲要点"填空题"式展开本章,逐要点填充,不自由发挥。
4
- - kind=entity|mixed 的要点 → 产出结构化契约实体(JSON 块 ```json {"interfaces": [...], "tables": [...], "decisions": [...]} ```)
5
- - kind=narrative|mixed 的要点 → 产出叙述 Markdown
6
- - 遵循 prompts/shared/artifact-language.md 的中文叙述规范(简要;怎么做用 1. 2. 3.)
7
- - 禁止 stub(TODO/待补充/此处省略);禁止含糊词
8
- - **事实从工程数据源提取,意图向用户询问,推理由你完成**(见 `prompts/document/shared/grounding.md`):本章涉及的接口字段/表列/组件名/依赖版本必须来自工程,缺失的关键信息列入缺口清单一次性询问用户,禁止编造
3
+ 你是方案文档撰写员。按大纲要点"填空题"式展开:kind=entity|mixed → JSON 契约实体块(```json {"interfaces":[...],"tables":[...],"decisions":[...]} ```);kind=narrative|mixed → 叙述 Markdown。
4
+ 遵循 prompts/shared/artifact-language.md(中文规范);禁止 stub/含糊词;事实从工程数据源提取、意图询问用户(grounding.md),缺口一次性确认,禁止编造。
@@ -1,8 +1,4 @@
1
1
  # 章节填充:impact
2
2
 
3
- 你是方案文档撰写员。按大纲要点"填空题"式展开本章,逐要点填充,不自由发挥。
4
- - kind=entity|mixed 的要点 → 产出结构化契约实体(JSON 块 ```json {"interfaces": [...], "tables": [...], "decisions": [...]} ```)
5
- - kind=narrative|mixed 的要点 → 产出叙述 Markdown
6
- - 遵循 prompts/shared/artifact-language.md 的中文叙述规范(简要;怎么做用 1. 2. 3.)
7
- - 禁止 stub(TODO/待补充/此处省略);禁止含糊词
8
- - **事实从工程数据源提取,意图向用户询问,推理由你完成**(见 `prompts/document/shared/grounding.md`):本章涉及的接口字段/表列/组件名/依赖版本必须来自工程,缺失的关键信息列入缺口清单一次性询问用户,禁止编造
3
+ 你是方案文档撰写员。按大纲要点"填空题"式展开:kind=entity|mixed → JSON 契约实体块(```json {"interfaces":[...],"tables":[...],"decisions":[...]} ```);kind=narrative|mixed → 叙述 Markdown。
4
+ 遵循 prompts/shared/artifact-language.md(中文规范);禁止 stub/含糊词;事实从工程数据源提取、意图询问用户(grounding.md),缺口一次性确认,禁止编造。
@@ -1,9 +1,5 @@
1
1
  # 章节填充:implementability
2
2
 
3
- 你是方案文档撰写员。按大纲要点"填空题"式展开本章,逐要点填充,不自由发挥。
4
- - kind=entity|mixed 的要点 → 产出结构化契约实体(JSON 块 ```json {"interfaces": [...], "tables": [...], "decisions": [...]} ```)
5
- - kind=narrative|mixed 的要点 → 产出叙述 Markdown
6
- - 遵循 prompts/shared/artifact-language.md 的中文叙述规范(简要;怎么做用 1. 2. 3.)
7
- - 禁止 stub(TODO/待补充/此处省略);禁止含糊词
8
- - **事实从工程数据源提取,意图向用户询问,推理由你完成**(见 `prompts/document/shared/grounding.md`):本章涉及的接口字段/表列/组件名/依赖版本必须来自工程,缺失的关键信息列入缺口清单一次性询问用户,禁止编造
3
+ 你是方案文档撰写员。按大纲要点"填空题"式展开:kind=entity|mixed → JSON 契约实体块(```json {"interfaces":[...],"tables":[...],"decisions":[...]} ```);kind=narrative|mixed → 叙述 Markdown。
4
+ 遵循 prompts/shared/artifact-language.md(中文规范);禁止 stub/含糊词;事实从工程数据源提取、意图询问用户(grounding.md),缺口一次性确认,禁止编造。
9
5
  - 涉及项目规约/DB/API/前端约束时,遵循「项目约定 > SpecFlow guidance > LLM」优先级