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.
Files changed (118) hide show
  1. package/CHANGELOG.md +56 -1
  2. package/README.md +94 -12
  3. package/README.zh-CN.md +94 -12
  4. package/dist/index.js +43 -39
  5. package/dist/templates/en/briefs/_base.md +44 -11
  6. package/dist/templates/en/briefs/_modules.md +31 -4
  7. package/dist/templates/en/docs/global/api_snapshot.json +24 -0
  8. package/dist/templates/en/docs/global/command_api.json +26 -0
  9. package/dist/templates/en/docs/global/env_registry.json +12 -0
  10. package/dist/templates/en/docs/global/map.json +5 -0
  11. package/dist/templates/en/docs/global/public_api.json +12 -0
  12. package/dist/templates/en/docs/prompts/audit.md +80 -94
  13. package/dist/templates/en/docs/prompts/code.md +100 -109
  14. package/dist/templates/en/docs/prompts/edit.md +52 -47
  15. package/dist/templates/en/docs/prompts/fix.md +49 -42
  16. package/dist/templates/en/docs/prompts/help.md +23 -31
  17. package/dist/templates/en/docs/prompts/inherit.md +110 -116
  18. package/dist/templates/en/docs/prompts/map.md +47 -69
  19. package/dist/templates/en/docs/prompts/plan.md +160 -171
  20. package/dist/templates/en/docs/prompts/recover.md +48 -0
  21. package/dist/templates/en/docs/prompts/ref.md +163 -0
  22. package/dist/templates/en/docs/prompts/remove.md +55 -107
  23. package/dist/templates/en/docs/prompts/revise.md +63 -106
  24. package/dist/templates/en/docs/prompts/scope.md +77 -117
  25. package/dist/templates/en/docs/prompts/start.md +93 -139
  26. package/dist/templates/en/docs/shared/verify-result-handling.md +6 -0
  27. package/dist/templates/en/docs/templates/design.template.md +77 -0
  28. package/dist/templates/en/docs/templates/spec.template.md +60 -25
  29. package/dist/templates/en/rules/00_system.md +36 -79
  30. package/dist/templates/en/rules/01_workflow.md +59 -57
  31. package/dist/templates/en/rules/03_data_governance.md +46 -42
  32. package/dist/templates/en/skills/archi-data-sync/SKILL.md +83 -0
  33. package/dist/templates/en/skills/archi-decompose-roadmap/SKILL.md +166 -151
  34. package/dist/templates/en/skills/archi-design-patterns/SKILL.md +140 -0
  35. package/dist/templates/en/skills/archi-feature-relations/SKILL.md +118 -0
  36. package/dist/templates/en/skills/archi-interview-protocol/SKILL.md +2 -1
  37. package/dist/templates/en/skills/archi-plan-options/SKILL.md +4 -3
  38. package/dist/templates/en/skills/archi-silent-audit/SKILL.md +118 -0
  39. package/dist/templates/en/skills/archi-ui-wireframe/SKILL.md +315 -270
  40. package/dist/templates/zh/briefs/_base.md +46 -14
  41. package/dist/templates/zh/briefs/_modules.md +29 -2
  42. package/dist/templates/zh/docs/global/api_snapshot.json +24 -0
  43. package/dist/templates/zh/docs/global/command_api.json +26 -0
  44. package/dist/templates/zh/docs/global/data_snapshot.json +0 -1
  45. package/dist/templates/zh/docs/global/design_tokens.json +0 -1
  46. package/dist/templates/zh/docs/global/dictionary.json +1 -1
  47. package/dist/templates/zh/docs/global/env_registry.json +12 -0
  48. package/dist/templates/zh/docs/global/error_codes.json +0 -8
  49. package/dist/templates/zh/docs/global/map.json +28 -3
  50. package/dist/templates/zh/docs/global/public_api.json +12 -0
  51. package/dist/templates/zh/docs/global/vision.md +1 -1
  52. package/dist/templates/zh/docs/prompts/audit.md +43 -57
  53. package/dist/templates/zh/docs/prompts/code.md +68 -77
  54. package/dist/templates/zh/docs/prompts/edit.md +44 -39
  55. package/dist/templates/zh/docs/prompts/fix.md +33 -26
  56. package/dist/templates/zh/docs/prompts/help.md +13 -21
  57. package/dist/templates/zh/docs/prompts/inherit.md +81 -87
  58. package/dist/templates/zh/docs/prompts/map.md +23 -45
  59. package/dist/templates/zh/docs/prompts/plan.md +134 -146
  60. package/dist/templates/zh/docs/prompts/recover.md +48 -0
  61. package/dist/templates/zh/docs/prompts/ref.md +163 -0
  62. package/dist/templates/zh/docs/prompts/remove.md +31 -83
  63. package/dist/templates/zh/docs/prompts/revise.md +43 -84
  64. package/dist/templates/zh/docs/prompts/scope.md +53 -93
  65. package/dist/templates/zh/docs/prompts/start.md +75 -121
  66. package/dist/templates/zh/docs/shared/verify-result-handling.md +6 -0
  67. package/dist/templates/zh/docs/templates/design.template.md +77 -0
  68. package/dist/templates/zh/docs/templates/spec.template.md +60 -25
  69. package/dist/templates/zh/rules/00_system.md +37 -80
  70. package/dist/templates/zh/rules/01_workflow.md +60 -58
  71. package/dist/templates/zh/rules/02_tech_stack.md +7 -6
  72. package/dist/templates/zh/rules/03_data_governance.md +43 -39
  73. package/dist/templates/zh/rules/99_context_glue.md +2 -2
  74. package/dist/templates/zh/skills/archi-data-sync/SKILL.md +83 -0
  75. package/dist/templates/zh/skills/archi-decompose-roadmap/SKILL.md +70 -56
  76. package/dist/templates/zh/skills/archi-design-patterns/SKILL.md +140 -0
  77. package/dist/templates/zh/skills/archi-feature-relations/SKILL.md +118 -0
  78. package/dist/templates/zh/skills/archi-interview-protocol/SKILL.md +2 -1
  79. package/dist/templates/zh/skills/archi-plan-options/SKILL.md +26 -25
  80. package/dist/templates/zh/skills/archi-silent-audit/SKILL.md +118 -0
  81. package/dist/templates/zh/skills/archi-ui-wireframe/SKILL.md +317 -269
  82. package/package.json +1 -1
  83. package/dist/templates/zh-Hant/briefs/_base.md +0 -115
  84. package/dist/templates/zh-Hant/briefs/_modules.md +0 -173
  85. package/dist/templates/zh-Hant/docs/global/data_snapshot.json +0 -31
  86. package/dist/templates/zh-Hant/docs/global/design_tokens.json +0 -135
  87. package/dist/templates/zh-Hant/docs/global/dictionary.json +0 -35
  88. package/dist/templates/zh-Hant/docs/global/error_codes.json +0 -19
  89. package/dist/templates/zh-Hant/docs/global/map.json +0 -94
  90. package/dist/templates/zh-Hant/docs/global/roadmap.json +0 -39
  91. package/dist/templates/zh-Hant/docs/global/vision.md +0 -82
  92. package/dist/templates/zh-Hant/docs/prompts/audit.md +0 -150
  93. package/dist/templates/zh-Hant/docs/prompts/code.md +0 -160
  94. package/dist/templates/zh-Hant/docs/prompts/edit.md +0 -87
  95. package/dist/templates/zh-Hant/docs/prompts/fix.md +0 -86
  96. package/dist/templates/zh-Hant/docs/prompts/help.md +0 -69
  97. package/dist/templates/zh-Hant/docs/prompts/inherit.md +0 -270
  98. package/dist/templates/zh-Hant/docs/prompts/map.md +0 -131
  99. package/dist/templates/zh-Hant/docs/prompts/plan.md +0 -252
  100. package/dist/templates/zh-Hant/docs/prompts/remove.md +0 -162
  101. package/dist/templates/zh-Hant/docs/prompts/revise.md +0 -160
  102. package/dist/templates/zh-Hant/docs/prompts/scope.md +0 -198
  103. package/dist/templates/zh-Hant/docs/prompts/start.md +0 -258
  104. package/dist/templates/zh-Hant/docs/templates/plan.template.json +0 -88
  105. package/dist/templates/zh-Hant/docs/templates/scope-brief.template.md +0 -58
  106. package/dist/templates/zh-Hant/docs/templates/spec.template.md +0 -51
  107. package/dist/templates/zh-Hant/docs/templates/ui.template.md +0 -51
  108. package/dist/templates/zh-Hant/rules/00_system.md +0 -123
  109. package/dist/templates/zh-Hant/rules/01_workflow.md +0 -93
  110. package/dist/templates/zh-Hant/rules/02_tech_stack.md +0 -192
  111. package/dist/templates/zh-Hant/rules/03_data_governance.md +0 -102
  112. package/dist/templates/zh-Hant/rules/04_cli_tools.md +0 -50
  113. package/dist/templates/zh-Hant/rules/90_custom_rules.md +0 -21
  114. package/dist/templates/zh-Hant/rules/99_context_glue.md +0 -53
  115. package/dist/templates/zh-Hant/skills/archi-decompose-roadmap/SKILL.md +0 -293
  116. package/dist/templates/zh-Hant/skills/archi-interview-protocol/SKILL.md +0 -86
  117. package/dist/templates/zh-Hant/skills/archi-plan-options/SKILL.md +0 -364
  118. 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 multiple Roadmap tasks with dependency relationships.
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**: Use user-provided Scope Brief as primary input; never brainstorm tasks from scratch.
11
- 2. **Incremental**: Append to existing Roadmap; never rewrite existing tasks.
12
- 3. **User Agency First**: Adopt user-specified choices from Brief as-is; never question or replace.
13
- 4. **Minimal Questions**: Only ask about information gaps; skip questioning if Brief is sufficient.
14
- 5. **Option Z Everywhere**: All supplementary questions must include `[Z] Custom`.
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 command:
22
+ 1. Parse `[file_path]` from trigger:
22
23
  - If path provided → read that file
23
- - If no pathlook for `scope-brief.md` (project root), then `[[__DOCS_DIR__]]/scope-brief.md`
24
- - If none found or emptyjump to `<fallback_interview>`
24
+ - If not providedsearch `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 extract:
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 it after processing.
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. **Read Vision**: `[[__DOCS_DIR__]]/global/vision.md` — read North Star Metric and Boundaries sections only; skip remaining chapters.
43
- 2. **Read Roadmap**: `[[__DOCS_DIR__]]/global/roadmap.json`extract only `id/title/status/deps/tag` fields per task (skip `goal/notes`; requirement decomposition does not need these); read current max ID watermark for new task numbering.
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 parsing result + Step 1 project context.
45
+ **Input**: Step 0 Brief parse result + Step 1 project context.
54
46
 
55
47
  **Action**:
56
48
 
57
- 1. **Vision Alignment Check**: Does the Brief align with vision.md north star metrics? If deviation → flag `[Vision Deviation Warning]`.
58
- 2. **Task List Completeness**: Does the task list sufficiently support the initiative goal?
59
- 3. **Impact Assessment**: Brief "Affected Existing Tasks" → verify against roadmap/tasks for existence and status.
60
- 4. **Gap Identification**: Check Brief for critical missing information.
61
- 5. **Linkage Check**: Read `map.json.featureRelations`; semantically compare the new task's description against each `sources` field to determine if it falls within any aggregator's coverage. Surface a linkage reminder in the summary if matched.
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 Levels**:
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**: Display Brief analysis summary to user:
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
- <step_2_5_supplementary>
101
- **Role**: Product Consultant
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: Follow `archi-interview-protocol` Skill's core rules and standard output format.]][[NO-SKILL: (Skill not installed: read `[[__DOCS_DIR__]]/skills/archi-interview-protocol/SKILL.md` and follow its rules)]]
106
- </step_2_5_supplementary>
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
- <step_3_decompose>
69
+ <step_4_decompose>
109
70
  **Role**: Chief Architect
110
- **Input**: Full Brief + project context + supplementary answers (if any).
71
+ **Input**: Full Brief + project context + supplement answers (if any).
111
72
 
112
- **Action**: [[SKILL: Follow the `archi-decompose-roadmap` Skill protocol to generate incremental task data from the Scope Brief task list]][[NO-SKILL: (Skill not installed: read `[[__DOCS_DIR__]]/skills/archi-decompose-roadmap/SKILL.md` and follow its protocol)]]
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 into the following format, present to user and await confirmation):
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 (Parallel Groups)
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 Cross-Cutting Concerns (merged, not in Roadmap)
129
- (From Skill's NFR merge list)
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**: Proceed to step_4 only after user replies **OK**. Do not write to Roadmap without confirmation. User may refine the plan before confirming (merge/split/adjust deps).
134
- </step_3_decompose>
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
- <step_3_5_refinement>
137
- **Role**: Consultant
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
- </step_3_5_refinement>
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 `[[__DOCS_DIR__]]/global/roadmap.json`.
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` field.
150
- 4. [?New modules] Update `directoryMapping` in `[[__DOCS_DIR__]]/global/map.json`: pre-register inferred module paths for new tasks (based on tech_stack architecture pattern and task descriptions; directory-level only — details to be filled during `/archi.plan`).
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** (Do not skip; must complete before output summary):
153
- | Step | Command | Pass Condition |
154
- |:---|:---|:---|
155
- | 1 | `npx archi task --check` | No ERROR-level issues |
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
- **Output**: Write confirmation.
159
- </step_4_roadmap_update>
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
- <step_5_signoff>
162
- **Action** (Gate must complete in step_4):
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 Source Confirmation**: Initiative name and core objective
168
- - **New Tasks**: Count and phase distribution
169
- - **Impact on Existing Tasks**: Impact list (if any)
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 | Description |
133
+ | Priority | Action | Notes |
173
134
  |:---|:---|:---|
174
- | [?UI] Recommended | Run `archi-ui-wireframe` Skill (append mode) | Append screens for new tasks to `ui_concept.html`, sync `ui_context.md` |
175
- | 1 | `/archi.plan <first pending task ID>` | Deep planning for the first actionable task |
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 does not exist or is empty.
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 `scope-brief.md` was not found. Suggest:
185
- - Run `npx archi template scope-brief` to fetch template to project root
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 to provide information via interview
188
- 2. If user chooses to continue conversation, guide in this order:
189
- a. What do you want to build? (Initiative name, one-line description, motivation)
190
- b. What tasks does it include? (Specific task list)
191
- c. What constraints exist? (Out of scope, dependencies, technical limits)
192
- d. Which existing tasks will be affected?
193
- 3. After collection, write information to `scope-brief.md` (project root), then jump to `<step_1_load>`.
194
-
195
- > This mode is for backward compatibility; core flow remains Brief-driven.
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>