architext 0.0.3 → 0.0.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.
- package/CHANGELOG.md +56 -1
- package/README.md +94 -12
- package/README.zh-CN.md +94 -12
- package/dist/index.js +43 -39
- package/dist/templates/en/briefs/_base.md +44 -11
- package/dist/templates/en/briefs/_modules.md +31 -4
- package/dist/templates/en/docs/global/api_snapshot.json +24 -0
- package/dist/templates/en/docs/global/command_api.json +26 -0
- package/dist/templates/en/docs/global/env_registry.json +12 -0
- package/dist/templates/en/docs/global/map.json +5 -0
- package/dist/templates/en/docs/global/public_api.json +12 -0
- package/dist/templates/en/docs/prompts/audit.md +80 -94
- package/dist/templates/en/docs/prompts/code.md +100 -109
- package/dist/templates/en/docs/prompts/edit.md +52 -47
- package/dist/templates/en/docs/prompts/fix.md +49 -42
- package/dist/templates/en/docs/prompts/help.md +23 -31
- package/dist/templates/en/docs/prompts/inherit.md +110 -116
- package/dist/templates/en/docs/prompts/map.md +47 -69
- package/dist/templates/en/docs/prompts/plan.md +160 -171
- package/dist/templates/en/docs/prompts/recover.md +48 -0
- package/dist/templates/en/docs/prompts/ref.md +163 -0
- package/dist/templates/en/docs/prompts/remove.md +55 -107
- package/dist/templates/en/docs/prompts/revise.md +63 -106
- package/dist/templates/en/docs/prompts/scope.md +77 -117
- package/dist/templates/en/docs/prompts/start.md +93 -139
- package/dist/templates/en/docs/shared/verify-result-handling.md +6 -0
- package/dist/templates/en/docs/templates/design.template.md +77 -0
- package/dist/templates/en/docs/templates/spec.template.md +60 -25
- package/dist/templates/en/rules/00_system.md +36 -79
- package/dist/templates/en/rules/01_workflow.md +59 -57
- package/dist/templates/en/rules/03_data_governance.md +46 -42
- package/dist/templates/en/skills/archi-data-sync/SKILL.md +83 -0
- package/dist/templates/en/skills/archi-decompose-roadmap/SKILL.md +166 -151
- package/dist/templates/en/skills/archi-design-patterns/SKILL.md +140 -0
- package/dist/templates/en/skills/archi-feature-relations/SKILL.md +118 -0
- package/dist/templates/en/skills/archi-interview-protocol/SKILL.md +2 -1
- package/dist/templates/en/skills/archi-plan-options/SKILL.md +4 -3
- package/dist/templates/en/skills/archi-silent-audit/SKILL.md +118 -0
- package/dist/templates/en/skills/archi-ui-wireframe/SKILL.md +315 -270
- package/dist/templates/zh/briefs/_base.md +46 -14
- package/dist/templates/zh/briefs/_modules.md +29 -2
- package/dist/templates/zh/docs/global/api_snapshot.json +24 -0
- package/dist/templates/zh/docs/global/command_api.json +26 -0
- package/dist/templates/zh/docs/global/data_snapshot.json +0 -1
- package/dist/templates/zh/docs/global/design_tokens.json +0 -1
- package/dist/templates/zh/docs/global/dictionary.json +1 -1
- package/dist/templates/zh/docs/global/env_registry.json +12 -0
- package/dist/templates/zh/docs/global/error_codes.json +0 -8
- package/dist/templates/zh/docs/global/map.json +28 -3
- package/dist/templates/zh/docs/global/public_api.json +12 -0
- package/dist/templates/zh/docs/global/vision.md +1 -1
- package/dist/templates/zh/docs/prompts/audit.md +43 -57
- package/dist/templates/zh/docs/prompts/code.md +68 -77
- package/dist/templates/zh/docs/prompts/edit.md +44 -39
- package/dist/templates/zh/docs/prompts/fix.md +33 -26
- package/dist/templates/zh/docs/prompts/help.md +13 -21
- package/dist/templates/zh/docs/prompts/inherit.md +81 -87
- package/dist/templates/zh/docs/prompts/map.md +23 -45
- package/dist/templates/zh/docs/prompts/plan.md +134 -146
- package/dist/templates/zh/docs/prompts/recover.md +48 -0
- package/dist/templates/zh/docs/prompts/ref.md +163 -0
- package/dist/templates/zh/docs/prompts/remove.md +31 -83
- package/dist/templates/zh/docs/prompts/revise.md +43 -84
- package/dist/templates/zh/docs/prompts/scope.md +53 -93
- package/dist/templates/zh/docs/prompts/start.md +75 -121
- package/dist/templates/zh/docs/shared/verify-result-handling.md +6 -0
- package/dist/templates/zh/docs/templates/design.template.md +77 -0
- package/dist/templates/zh/docs/templates/spec.template.md +60 -25
- package/dist/templates/zh/rules/00_system.md +37 -80
- package/dist/templates/zh/rules/01_workflow.md +60 -58
- package/dist/templates/zh/rules/02_tech_stack.md +7 -6
- package/dist/templates/zh/rules/03_data_governance.md +43 -39
- package/dist/templates/zh/rules/99_context_glue.md +2 -2
- package/dist/templates/zh/skills/archi-data-sync/SKILL.md +83 -0
- package/dist/templates/zh/skills/archi-decompose-roadmap/SKILL.md +70 -56
- package/dist/templates/zh/skills/archi-design-patterns/SKILL.md +140 -0
- package/dist/templates/zh/skills/archi-feature-relations/SKILL.md +118 -0
- package/dist/templates/zh/skills/archi-interview-protocol/SKILL.md +2 -1
- package/dist/templates/zh/skills/archi-plan-options/SKILL.md +26 -25
- package/dist/templates/zh/skills/archi-silent-audit/SKILL.md +118 -0
- package/dist/templates/zh/skills/archi-ui-wireframe/SKILL.md +317 -269
- package/package.json +1 -1
- package/dist/templates/zh-Hant/briefs/_base.md +0 -115
- package/dist/templates/zh-Hant/briefs/_modules.md +0 -173
- package/dist/templates/zh-Hant/docs/global/data_snapshot.json +0 -31
- package/dist/templates/zh-Hant/docs/global/design_tokens.json +0 -135
- package/dist/templates/zh-Hant/docs/global/dictionary.json +0 -35
- package/dist/templates/zh-Hant/docs/global/error_codes.json +0 -19
- package/dist/templates/zh-Hant/docs/global/map.json +0 -94
- package/dist/templates/zh-Hant/docs/global/roadmap.json +0 -39
- package/dist/templates/zh-Hant/docs/global/vision.md +0 -82
- package/dist/templates/zh-Hant/docs/prompts/audit.md +0 -150
- package/dist/templates/zh-Hant/docs/prompts/code.md +0 -160
- package/dist/templates/zh-Hant/docs/prompts/edit.md +0 -87
- package/dist/templates/zh-Hant/docs/prompts/fix.md +0 -86
- package/dist/templates/zh-Hant/docs/prompts/help.md +0 -69
- package/dist/templates/zh-Hant/docs/prompts/inherit.md +0 -270
- package/dist/templates/zh-Hant/docs/prompts/map.md +0 -131
- package/dist/templates/zh-Hant/docs/prompts/plan.md +0 -252
- package/dist/templates/zh-Hant/docs/prompts/remove.md +0 -162
- package/dist/templates/zh-Hant/docs/prompts/revise.md +0 -160
- package/dist/templates/zh-Hant/docs/prompts/scope.md +0 -198
- package/dist/templates/zh-Hant/docs/prompts/start.md +0 -258
- package/dist/templates/zh-Hant/docs/templates/plan.template.json +0 -88
- package/dist/templates/zh-Hant/docs/templates/scope-brief.template.md +0 -58
- package/dist/templates/zh-Hant/docs/templates/spec.template.md +0 -51
- package/dist/templates/zh-Hant/docs/templates/ui.template.md +0 -51
- package/dist/templates/zh-Hant/rules/00_system.md +0 -123
- package/dist/templates/zh-Hant/rules/01_workflow.md +0 -93
- package/dist/templates/zh-Hant/rules/02_tech_stack.md +0 -192
- package/dist/templates/zh-Hant/rules/03_data_governance.md +0 -102
- package/dist/templates/zh-Hant/rules/04_cli_tools.md +0 -50
- package/dist/templates/zh-Hant/rules/90_custom_rules.md +0 -21
- package/dist/templates/zh-Hant/rules/99_context_glue.md +0 -53
- package/dist/templates/zh-Hant/skills/archi-decompose-roadmap/SKILL.md +0 -293
- package/dist/templates/zh-Hant/skills/archi-interview-protocol/SKILL.md +0 -86
- package/dist/templates/zh-Hant/skills/archi-plan-options/SKILL.md +0 -364
- package/dist/templates/zh-Hant/skills/archi-ui-wireframe/SKILL.md +0 -337
|
@@ -1,117 +1,78 @@
|
|
|
1
1
|
<protocol_scope>
|
|
2
|
-
**Trigger**: `/archi.scope [file_path]`
|
|
2
|
+
**Trigger**: `/archi.scope [file_path]` | Auto-loaded by Workflow Dispatch on natural language trigger
|
|
3
3
|
**Phase**: Requirement Decomposition
|
|
4
|
-
**Goal**: Read Scope Brief, decompose large requirements into
|
|
4
|
+
**Goal**: Read Scope Brief, decompose large requirements into Roadmap tasks with dependencies.
|
|
5
5
|
|
|
6
6
|
<meta>
|
|
7
7
|
<style>Strategic, Analytical, Structured</style>
|
|
8
8
|
<language>English</language>
|
|
9
9
|
<principles>
|
|
10
|
-
1. **Brief-Driven**:
|
|
11
|
-
2. **Incremental**: Append to existing Roadmap;
|
|
12
|
-
3. **User Agency First**:
|
|
13
|
-
4. **Minimal Questions**:
|
|
14
|
-
5. **Option Z Everywhere**:
|
|
10
|
+
1. **Brief-Driven**: User-provided Scope Brief is the core input; no task brainstorming from thin air.
|
|
11
|
+
2. **Incremental**: Append to existing Roadmap; do not rewrite existing tasks.
|
|
12
|
+
3. **User Agency First**: User-filled choices in Brief must be adopted directly; do not question or replace.
|
|
13
|
+
4. **Minimal Questions**: Ask only for information gaps; skip when Brief is sufficient.
|
|
14
|
+
5. **Option Z Everywhere**: Supplementary questions must include `[Z] Custom`.
|
|
15
|
+
6. **IDE-Native First**: Leverage IDE native capabilities to drive execution rhythm; this protocol defines quality standards and checkpoints, not fight IDE planning/execution mechanisms.
|
|
15
16
|
</principles>
|
|
16
17
|
</meta>
|
|
17
18
|
|
|
18
19
|
<step_0_ingest>
|
|
19
20
|
**Role**: Intelligence Analyst
|
|
20
21
|
**Action**:
|
|
21
|
-
1. Parse `[file_path]` from trigger
|
|
22
|
+
1. Parse `[file_path]` from trigger:
|
|
22
23
|
- If path provided → read that file
|
|
23
|
-
- If
|
|
24
|
-
- If
|
|
24
|
+
- If not provided → search `scope-brief.md` (project root), then `[[__DOCS_DIR__]]/scope-brief.md`
|
|
25
|
+
- If user entered via natural language description (no file_path param) and above files not found → goto `<fallback_interview>`
|
|
26
|
+
- If neither exists or empty → goto `<fallback_interview>`
|
|
25
27
|
|
|
26
|
-
2. Parse Brief sections and
|
|
27
|
-
- Initiative name and description
|
|
28
|
-
- Task list
|
|
29
|
-
- Existing design decisions
|
|
30
|
-
- Boundaries & constraints (out of scope, timeline, dependencies, technical limits)
|
|
31
|
-
- Affected existing tasks
|
|
32
|
-
- References
|
|
28
|
+
2. Parse Brief sections, extract: initiative name and description, task list, pre-defined design decisions, boundaries and constraints, affected existing tasks, references.
|
|
33
29
|
|
|
34
|
-
> Brief is a one-time input file; user may delete
|
|
30
|
+
> Brief is a one-time input file; user may delete after processing.
|
|
35
31
|
|
|
36
32
|
**Output**: Internal summary (not shown to user), proceed to `<step_1_load>`.
|
|
37
33
|
</step_0_ingest>
|
|
38
34
|
|
|
39
35
|
<step_1_load>
|
|
40
|
-
**Role**: System Analyst
|
|
41
36
|
**Action**:
|
|
42
|
-
1. **
|
|
43
|
-
2. **
|
|
44
|
-
3. **Read Tech Stack**: `02_tech_stack.md` — technical constraints.
|
|
45
|
-
4. **Read Map**: `[[__DOCS_DIR__]]/global/map.json` — read `directoryMapping` and `featureRelations` only; skip `logicalTopology` and `criticalUserJourneys`.
|
|
46
|
-
5. **Scan Tasks**: Scan `[[__DOCS_DIR__]]/tasks/` directory — understand existing task summaries (title + key flows, no full read needed).
|
|
37
|
+
1. **Load**: vision.md (North Star + Boundaries only), roadmap.json (id/title/status/deps/tag + max ID watermark only), 02_tech_stack.md, map.json (directoryMapping + featureRelations only).
|
|
38
|
+
2. **Scan Tasks**: Scan tasks/ — understand existing task summaries (title + key flows; full read not needed).
|
|
47
39
|
|
|
48
40
|
**Output**: Internal context summary, proceed to `<step_2_analysis>`.
|
|
49
41
|
</step_1_load>
|
|
50
42
|
|
|
51
43
|
<step_2_analysis>
|
|
52
44
|
**Role**: Chief Product Strategist (CPO)
|
|
53
|
-
**Input**: Step 0 Brief
|
|
45
|
+
**Input**: Step 0 Brief parse result + Step 1 project context.
|
|
54
46
|
|
|
55
47
|
**Action**:
|
|
56
48
|
|
|
57
|
-
1. **Vision
|
|
58
|
-
2. **Task
|
|
59
|
-
3. **Impact
|
|
60
|
-
4. **Gap
|
|
61
|
-
5. **Linkage
|
|
49
|
+
1. **Vision alignment check**: Does Brief align with vision.md North Star? If deviation → mark `[Vision Deviation Warning]`.
|
|
50
|
+
2. **Task list completeness**: Sufficient to support initiative goal?
|
|
51
|
+
3. **Impact assessment**: Brief "affected existing tasks" → verify against roadmap/tasks.
|
|
52
|
+
4. **Gap identification**: Key info missing in Brief?
|
|
53
|
+
5. **Linkage check**: [[SUBAGENT: archi-feature-relations|mode: check, context: Compare new task descriptions with featureRelations sources; output linkage reminder if matched]][[NO-SKILL: (Skill not installed: read `[[__DOCS_DIR__]]/skills/archi-feature-relations/SKILL.md`, follow mode: check logic)]]
|
|
62
54
|
|
|
63
|
-
**Gap
|
|
64
|
-
- **Required**: Missing prevents reasonable decomposition (e.g., empty task list)
|
|
65
|
-
- **Recommended**: AI can infer but should confirm (e.g., unclear dependencies)
|
|
66
|
-
- **Optional**: AI can decide autonomously (e.g., task grouping approach)
|
|
55
|
+
**Gap levels**: Required → cannot decompose | Can supplement → AI can derive, suggest confirm | Suggested → AI decides
|
|
67
56
|
|
|
68
|
-
**Decision**:
|
|
69
|
-
- No "Required" or "Recommended" gaps → skip Step 2.5, proceed to Step 3
|
|
70
|
-
- Has gaps → proceed to Step 2.5
|
|
57
|
+
**Decision**: No "Required" + "Can supplement" gaps → skip Step 3 | Has gaps → enter Step 3
|
|
71
58
|
|
|
72
|
-
**Output**:
|
|
73
|
-
```
|
|
74
|
-
### SCOPE BRIEF Analysis Report
|
|
75
|
-
> **Initiative**: [Name] | **Scale**: Estimated [N] tasks
|
|
76
|
-
|
|
77
|
-
**Vision Alignment**: [Aligned / ⚠️ Deviation — reason]
|
|
78
|
-
|
|
79
|
-
**Confirmed Information**:
|
|
80
|
-
- [list]
|
|
81
|
-
|
|
82
|
-
**Affected Existing Tasks**:
|
|
83
|
-
| Task | Status | Estimated Impact |
|
|
84
|
-
|:---|:---|:---|
|
|
85
|
-
| [ID: Name] | [done/active/stub] | [needs modification/extension/no impact] |
|
|
86
|
-
|
|
87
|
-
**[?matched] Linkage Reminder**:
|
|
88
|
-
| Aggregator | checkNote |
|
|
89
|
-
|:---|:---|
|
|
90
|
-
| [aggregator ID/path] | [checkNote content] |
|
|
91
|
-
|
|
92
|
-
**Information Gaps** (to be addressed):
|
|
93
|
-
- [gap list]
|
|
94
|
-
|
|
95
|
-
**AI Will Auto-Decide** (no action needed):
|
|
96
|
-
- [list]
|
|
97
|
-
```
|
|
59
|
+
**Output**: Output SCOPE BRIEF analysis report to user — include initiative name/estimated scale, Vision alignment, confirmed info, affected existing tasks table (task/status/estimated impact), (if matched) linkage reminder table, information gaps, AI auto-decide items. Enter step_3_supplementary (has gaps) or step_4_decompose (no gaps).
|
|
98
60
|
</step_2_analysis>
|
|
99
61
|
|
|
100
|
-
<
|
|
101
|
-
**
|
|
102
|
-
**Trigger**: Only when Step 2 identifies "Required" or "Recommended" gaps.
|
|
62
|
+
<step_3_supplementary>
|
|
63
|
+
**Trigger**: Only when Step 2 finds "Required" or "Can supplement" gaps.
|
|
103
64
|
**Input**: Step 2 gap list. Max 3 questions.
|
|
104
65
|
|
|
105
|
-
[[SKILL:
|
|
106
|
-
</
|
|
66
|
+
[[SKILL: archi-interview-protocol|Follow the skill's core rules and standard output format for questioning.]][[NO-SKILL: (Skill not installed: read `[[__DOCS_DIR__]]/skills/archi-interview-protocol/SKILL.md` and follow its rules)]]
|
|
67
|
+
</step_3_supplementary>
|
|
107
68
|
|
|
108
|
-
<
|
|
69
|
+
<step_4_decompose>
|
|
109
70
|
**Role**: Chief Architect
|
|
110
|
-
**Input**: Full Brief + project context +
|
|
71
|
+
**Input**: Full Brief + project context + supplement answers (if any).
|
|
111
72
|
|
|
112
|
-
**Action**: [[SKILL:
|
|
73
|
+
**Action**: [[SKILL: archi-decompose-roadmap|Follow the skill protocol to generate incremental task data from Scope Brief task list.]][[NO-SKILL: (Skill not installed: read `[[__DOCS_DIR__]]/skills/archi-decompose-roadmap/SKILL.md` and follow its protocol)]]
|
|
113
74
|
|
|
114
|
-
**Display format** (convert Skill output
|
|
75
|
+
**Display format** (convert Skill output to the following format, present to user, await confirmation):
|
|
115
76
|
|
|
116
77
|
```
|
|
117
78
|
#### Phase 1: Infrastructure
|
|
@@ -120,79 +81,78 @@
|
|
|
120
81
|
#### Phase 2: Core Features
|
|
121
82
|
| ID | Title | Description Summary | Deps | Tag |
|
|
122
83
|
|
|
123
|
-
#### Execution Batches (
|
|
124
|
-
(Derived from deps via topological sort)
|
|
84
|
+
#### Execution Batches (parallel execution groups)
|
|
125
85
|
Batch 1 (ready immediately): ...
|
|
126
|
-
Batch 2 (after Batch 1): ...
|
|
86
|
+
Batch 2 (after Batch 1 complete): ...
|
|
127
87
|
|
|
128
|
-
#### NFR
|
|
129
|
-
|
|
130
|
-
- [NFR name] → injected into [task ID] | affects: [other task IDs]
|
|
88
|
+
#### NFR cross-cutting concerns (merged, not in Roadmap)
|
|
89
|
+
- [NFR name] → inject [task ID] | affects: [other task IDs]
|
|
131
90
|
```
|
|
132
91
|
|
|
133
|
-
**Gate**:
|
|
134
|
-
</
|
|
92
|
+
**Gate**: User replies **OK** to enter step_5_roadmap_update; do not write to Roadmap without confirmation.
|
|
93
|
+
</step_4_decompose>
|
|
135
94
|
|
|
136
|
-
<
|
|
137
|
-
**
|
|
138
|
-
**Trigger**: User replies non-OK, with merge/split/add/remove/dependency adjustments.
|
|
95
|
+
<step_4_5_refinement>
|
|
96
|
+
**Trigger**: User reply is not OK — contains merge/split/add/remove/dependency adjustments.
|
|
139
97
|
**Action**: Incorporate user feedback, refresh decomposition plan and re-output, await re-confirmation.
|
|
140
|
-
|
|
98
|
+
|
|
99
|
+
User replies OK → enter step_5_roadmap_update.
|
|
100
|
+
</step_4_5_refinement>
|
|
141
101
|
|
|
142
102
|
<step_4_roadmap_update>
|
|
143
|
-
**Role**: System Administrator
|
|
144
103
|
**Input**: User-confirmed decomposition plan.
|
|
145
104
|
|
|
146
105
|
**Action**:
|
|
147
|
-
1. Append new tasks to corresponding Phase's `tasks` array in
|
|
106
|
+
1. Append new tasks to corresponding Phase's `tasks` array in roadmap.json.
|
|
148
107
|
2. If new Phase needed → append to `phases` array.
|
|
149
|
-
3. Update `lastUpdated
|
|
150
|
-
4.
|
|
108
|
+
3. Update `lastUpdated`.
|
|
109
|
+
4. (New modules) Update map.json `directoryMapping`: pre-register inferred module paths for new tasks.
|
|
151
110
|
|
|
152
|
-
**Terminal Gate** (
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
| 2 | `npx archi render` | `.md` views generated |
|
|
111
|
+
**Terminal Gate** (do not skip): Standard check (task --check + render).
|
|
112
|
+
|
|
113
|
+
**Output**: Write confirmation. Enter step_6_signoff.
|
|
114
|
+
</step_5_roadmap_update>
|
|
157
115
|
|
|
158
|
-
|
|
159
|
-
|
|
116
|
+
<step_6_signoff>
|
|
117
|
+
**Pre-signoff Checklist** (confirm each item before Output):
|
|
118
|
+
□ Decomposition proposal confirmed by user (replied OK before writing to roadmap — step_4 Gate)
|
|
119
|
+
□ roadmap.json — tasks appended (not overwritten), lastUpdated updated
|
|
120
|
+
□ (new modules) map.json directoryMapping — new task module paths pre-registered
|
|
121
|
+
□ step_5 Terminal Gate — task --check + render passed
|
|
160
122
|
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
1. Run `npx archi task` to display task progress overview.
|
|
123
|
+
**Action** (Gate must complete in step_5):
|
|
124
|
+
1. Run `npx archi task` to output task progress overview.
|
|
164
125
|
2. Output summary.
|
|
165
126
|
|
|
166
127
|
**Output**: Requirement decomposition summary, including:
|
|
167
|
-
- **Brief
|
|
168
|
-
- **New
|
|
169
|
-
- **Impact on
|
|
128
|
+
- **Brief source confirmation**: Initiative name and core goal
|
|
129
|
+
- **New tasks**: Count and phase distribution
|
|
130
|
+
- **Impact on existing tasks**: Impact list (if any)
|
|
170
131
|
- **Next Steps**:
|
|
171
132
|
|
|
172
|
-
| Priority | Action |
|
|
133
|
+
| Priority | Action | Notes |
|
|
173
134
|
|:---|:---|:---|
|
|
174
|
-
|
|
|
175
|
-
| 1 | `/archi.plan <first pending task ID>` | Deep
|
|
135
|
+
| (UI projects only) Recommended | [[SKILL: archi-ui-wireframe|Run skill (append mode)]][[NO-SKILL: (Skill not installed: read `[[__DOCS_DIR__]]/skills/archi-ui-wireframe/SKILL.md` and follow its protocol)]] | Append screens for new tasks to `ui_concept.html` |
|
|
136
|
+
| 1 | `/archi.plan <first pending task ID>` | Deep-plan the first executable task |
|
|
176
137
|
| 2 | Review roadmap | Confirm dependency relationships and priorities |
|
|
177
138
|
</step_5_signoff>
|
|
178
139
|
|
|
179
140
|
<fallback_interview>
|
|
180
|
-
**Trigger**: Brief file
|
|
181
|
-
**Role**: Product Consultant
|
|
141
|
+
**Trigger**: Brief file not found or empty, or user entered via natural language description.
|
|
182
142
|
|
|
183
143
|
**Action**:
|
|
184
|
-
1. Inform user that
|
|
185
|
-
- Run `npx archi template scope-brief` to
|
|
144
|
+
1. Inform user that requirements will be gathered via conversation. Suggest:
|
|
145
|
+
- Run `npx archi template scope-brief` to get template to project root
|
|
186
146
|
- Fill in and re-run `/archi.scope scope-brief.md`
|
|
187
|
-
- Or continue conversation
|
|
188
|
-
2. If user chooses to continue
|
|
189
|
-
a.
|
|
190
|
-
b.
|
|
191
|
-
c.
|
|
192
|
-
d.
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
147
|
+
- Or continue conversation and provide info via interview
|
|
148
|
+
2. If user chooses to continue, guide by the following dimensions (skip if already known, 1-2 questions each):
|
|
149
|
+
a. **Motivation & Goals**: Why build this? What problem does it solve? What outcome is expected?
|
|
150
|
+
b. **Scope**: Which features/modules are included? What's excluded?
|
|
151
|
+
c. **Task Breakdown**: Do you have a rough task split in mind? (If not, AI will decompose in step_3)
|
|
152
|
+
d. **Constraints**: Technical limits, time constraints, dependencies?
|
|
153
|
+
e. **Impact**: Which existing features will be affected?
|
|
154
|
+
3. After collection, write to `scope-brief.md` (project root), following scope-brief template structure.
|
|
155
|
+
4. Inform user brief is generated, then goto `<step_1_load>` to continue.
|
|
196
156
|
</fallback_interview>
|
|
197
157
|
|
|
198
158
|
</protocol_scope>
|