x-ipe 1.0.23__py3-none-any.whl → 1.0.25__py3-none-any.whl

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 (146) hide show
  1. x_ipe/app.py +32 -1
  2. x_ipe/handlers/terminal_handlers.py +6 -0
  3. x_ipe/handlers/voice_handlers.py +5 -0
  4. x_ipe/resources/copilot-instructions.md +19 -6
  5. x_ipe/resources/skills/lesson-learned/SKILL.md +208 -0
  6. x_ipe/resources/skills/lesson-learned/references/examples.md +238 -0
  7. x_ipe/resources/skills/project-quality-board-management/SKILL.md +135 -298
  8. x_ipe/resources/skills/project-quality-board-management/references/evaluation-principles.md +213 -0
  9. x_ipe/resources/skills/project-quality-board-management/references/evaluation-procedures.md +214 -0
  10. x_ipe/resources/skills/project-quality-board-management/templates/quality-report.md +70 -18
  11. x_ipe/resources/skills/task-execution-guideline/SKILL.md +2 -2
  12. x_ipe/resources/skills/task-execution-guideline/templates/task-record.yaml +1 -1
  13. x_ipe/resources/skills/task-type-code-implementation/SKILL.md +72 -270
  14. x_ipe/resources/skills/task-type-code-implementation/references/implementation-guidelines.md +432 -0
  15. x_ipe/resources/skills/task-type-code-refactor-v2/SKILL.md +127 -353
  16. x_ipe/resources/skills/task-type-code-refactor-v2/references/refactoring-techniques.md +373 -0
  17. x_ipe/resources/skills/task-type-feature-breakdown/SKILL.md +31 -243
  18. x_ipe/resources/skills/task-type-feature-breakdown/references/breakdown-guidelines.md +330 -0
  19. x_ipe/resources/skills/task-type-feature-refinement/SKILL.md +27 -180
  20. x_ipe/resources/skills/task-type-feature-refinement/references/specification-writing-guide.md +267 -0
  21. x_ipe/resources/skills/task-type-idea-mockup/SKILL.md +38 -276
  22. x_ipe/resources/skills/task-type-idea-mockup/references/mockup-guidelines.md +299 -0
  23. x_ipe/resources/skills/task-type-idea-to-architecture/SKILL.md +20 -218
  24. x_ipe/resources/skills/task-type-idea-to-architecture/references/architecture-patterns.md +342 -0
  25. x_ipe/resources/skills/task-type-ideation/SKILL.md +10 -266
  26. x_ipe/resources/skills/task-type-ideation/references/folder-naming-guide.md +55 -0
  27. x_ipe/resources/skills/task-type-ideation/references/tool-usage-guide.md +236 -0
  28. x_ipe/resources/skills/task-type-ideation-v2/SKILL.md +488 -0
  29. x_ipe/resources/skills/task-type-ideation-v2/references/examples.md +377 -0
  30. x_ipe/resources/skills/task-type-ideation-v2/references/folder-naming-guide.md +74 -0
  31. x_ipe/resources/skills/task-type-ideation-v2/references/tool-usage-guide.md +145 -0
  32. x_ipe/resources/skills/task-type-ideation-v2/references/visualization-guide.md +160 -0
  33. x_ipe/resources/skills/task-type-ideation-v2/templates/idea-summary.md +86 -0
  34. x_ipe/resources/skills/task-type-refactoring-analysis/SKILL.md +83 -145
  35. x_ipe/resources/skills/task-type-refactoring-analysis/references/output-schema.md +172 -0
  36. x_ipe/resources/skills/task-type-technical-design/SKILL.md +28 -214
  37. x_ipe/resources/skills/task-type-technical-design/references/design-templates.md +422 -0
  38. x_ipe/resources/skills/task-type-test-generation/SKILL.md +47 -332
  39. x_ipe/resources/skills/task-type-test-generation/references/test-patterns.md +368 -0
  40. x_ipe/resources/skills/tool-tracing-creator/SKILL.md +312 -0
  41. x_ipe/resources/skills/tool-tracing-creator/references/examples.md +324 -0
  42. x_ipe/resources/skills/tool-tracing-instrumentation/SKILL.md +373 -0
  43. x_ipe/resources/skills/tool-tracing-instrumentation/references/examples.md +264 -0
  44. x_ipe/resources/skills/x-ipe-skill-creator-v3/SKILL.md +486 -0
  45. x_ipe/resources/skills/x-ipe-skill-creator-v3/references/10. example-gate-conditions.md +73 -0
  46. x_ipe/resources/skills/x-ipe-skill-creator-v3/references/11. reference-quality-standards.md +127 -0
  47. x_ipe/resources/skills/x-ipe-skill-creator-v3/references/2. reference-section-order.md +127 -0
  48. x_ipe/resources/skills/x-ipe-skill-creator-v3/references/3. example-step-based-code-review.md +84 -0
  49. x_ipe/resources/skills/x-ipe-skill-creator-v3/references/4. example-step-based-feature-implementation.md +113 -0
  50. x_ipe/resources/skills/x-ipe-skill-creator-v3/references/5. example-function-based-validation.md +73 -0
  51. x_ipe/resources/skills/x-ipe-skill-creator-v3/references/6. example-function-based-analysis.md +94 -0
  52. x_ipe/resources/skills/x-ipe-skill-creator-v3/references/7. example-task-io-code-implementation.md +36 -0
  53. x_ipe/resources/skills/x-ipe-skill-creator-v3/references/8. example-structured-summary.md +43 -0
  54. x_ipe/resources/skills/x-ipe-skill-creator-v3/references/9. example-dor-dod.md +77 -0
  55. x_ipe/resources/skills/x-ipe-skill-creator-v3/references/examples.md +429 -0
  56. x_ipe/resources/skills/x-ipe-skill-creator-v3/references/skill-general-guidelines-v2.md +611 -0
  57. x_ipe/resources/skills/x-ipe-skill-creator-v3/templates/skill-meta-x-ipe-meta.md +153 -0
  58. x_ipe/resources/skills/x-ipe-skill-creator-v3/templates/skill-meta-x-ipe-task-based.md +324 -0
  59. x_ipe/resources/skills/x-ipe-skill-creator-v3/templates/skill-meta-x-ipe-task-category.md +109 -0
  60. x_ipe/resources/skills/x-ipe-skill-creator-v3/templates/skill-meta-x-ipe-tool.md +205 -0
  61. x_ipe/resources/skills/x-ipe-skill-creator-v3/templates/x-ipe-meta.md +334 -0
  62. x_ipe/resources/skills/x-ipe-skill-creator-v3/templates/x-ipe-task-based.md +279 -0
  63. x_ipe/resources/skills/x-ipe-skill-creator-v3/templates/x-ipe-tool.md +175 -0
  64. x_ipe/resources/skills/x-ipe-skill-creator-v3/templates/x-ipe-workflow-orchestration.md +329 -0
  65. x_ipe/resources/skills/x-ipe-task-based-ideation/SKILL.md +487 -0
  66. x_ipe/resources/skills/x-ipe-task-based-ideation/references/examples.md +377 -0
  67. x_ipe/resources/skills/x-ipe-task-based-ideation/references/folder-naming-guide.md +74 -0
  68. x_ipe/resources/skills/x-ipe-task-based-ideation/references/tool-usage-guide.md +145 -0
  69. x_ipe/resources/skills/x-ipe-task-based-ideation/references/visualization-guide.md +160 -0
  70. x_ipe/resources/skills/x-ipe-task-based-ideation/templates/idea-summary.md +86 -0
  71. x_ipe/routes/__init__.py +2 -0
  72. x_ipe/routes/ideas_routes.py +289 -0
  73. x_ipe/routes/kb_routes.py +80 -0
  74. x_ipe/routes/main_routes.py +18 -0
  75. x_ipe/routes/project_routes.py +7 -0
  76. x_ipe/routes/proxy_routes.py +10 -2
  77. x_ipe/routes/quality_evaluation_routes.py +193 -0
  78. x_ipe/routes/settings_routes.py +6 -0
  79. x_ipe/routes/tools_routes.py +6 -0
  80. x_ipe/routes/tracing_routes.py +232 -0
  81. x_ipe/routes/uiux_feedback_routes.py +50 -0
  82. x_ipe/services/__init__.py +5 -0
  83. x_ipe/services/config_service.py +6 -0
  84. x_ipe/services/file_service.py +20 -0
  85. x_ipe/services/homepage_service.py +160 -0
  86. x_ipe/services/ideas_service.py +535 -2
  87. x_ipe/services/kb_service.py +378 -0
  88. x_ipe/services/proxy_service.py +37 -7
  89. x_ipe/services/settings_service.py +13 -0
  90. x_ipe/services/skills_service.py +4 -0
  91. x_ipe/services/terminal_service.py +24 -0
  92. x_ipe/services/themes_service.py +4 -0
  93. x_ipe/services/tools_config_service.py +4 -0
  94. x_ipe/services/tracing_service.py +333 -0
  95. x_ipe/services/uiux_feedback_service.py +148 -1
  96. x_ipe/services/voice_input_service_v2.py +11 -0
  97. x_ipe/static/css/base.css +7 -0
  98. x_ipe/static/css/homepage-infinity.css +330 -0
  99. x_ipe/static/css/kb-core.css +301 -0
  100. x_ipe/static/css/quality-evaluation.css +345 -0
  101. x_ipe/static/css/sidebar.css +14 -4
  102. x_ipe/static/css/terminal.css +23 -0
  103. x_ipe/static/css/tracing-dashboard.css +796 -0
  104. x_ipe/static/css/uiux-feedback.css +7 -1
  105. x_ipe/static/css/workplace.css +636 -0
  106. x_ipe/static/img/homepage-infinity-loop.png +0 -0
  107. x_ipe/static/js/features/confirm-dialog.js +169 -0
  108. x_ipe/static/js/features/folder-view.js +742 -0
  109. x_ipe/static/js/features/homepage-infinity.js +314 -0
  110. x_ipe/static/js/features/kb-core.js +371 -0
  111. x_ipe/static/js/features/quality-evaluation.js +387 -0
  112. x_ipe/static/js/features/sidebar.js +255 -12
  113. x_ipe/static/js/features/tracing-dashboard.js +855 -0
  114. x_ipe/static/js/features/tracing-graph.js +1031 -0
  115. x_ipe/static/js/features/tree-drag.js +227 -0
  116. x_ipe/static/js/features/tree-search.js +228 -0
  117. x_ipe/static/js/features/workplace.js +661 -33
  118. x_ipe/static/js/init.js +76 -0
  119. x_ipe/static/js/terminal-v2.js +45 -14
  120. x_ipe/static/js/terminal.js +50 -49
  121. x_ipe/static/js/uiux-feedback.js +75 -16
  122. x_ipe/templates/base.html +24 -0
  123. x_ipe/templates/index.html +10 -1
  124. x_ipe/templates/knowledge-base.html +110 -0
  125. x_ipe/templates/workplace.html +4 -0
  126. x_ipe/tracing/__init__.py +37 -0
  127. x_ipe/tracing/buffer.py +135 -0
  128. x_ipe/tracing/context.py +125 -0
  129. x_ipe/tracing/decorator.py +288 -0
  130. x_ipe/tracing/middleware.py +197 -0
  131. x_ipe/tracing/parser.py +235 -0
  132. x_ipe/tracing/redactor.py +111 -0
  133. x_ipe/tracing/writer.py +122 -0
  134. {x_ipe-1.0.23.dist-info → x_ipe-1.0.25.dist-info}/METADATA +2 -2
  135. {x_ipe-1.0.23.dist-info → x_ipe-1.0.25.dist-info}/RECORD +138 -65
  136. x_ipe/app.py.bak +0 -1333
  137. x_ipe/resources/skills/x-ipe-skill-creator/SKILL.md +0 -329
  138. x_ipe/resources/skills/x-ipe-skill-creator/references/output-patterns.md +0 -169
  139. x_ipe/resources/skills/x-ipe-skill-creator/references/skill-structure.md +0 -162
  140. x_ipe/resources/skills/x-ipe-skill-creator/references/workflows.md +0 -110
  141. x_ipe/resources/skills/x-ipe-skill-creator/templates/references/examples.md +0 -113
  142. x_ipe/resources/skills/x-ipe-skill-creator/templates/skill-category-skill.md +0 -296
  143. x_ipe/resources/skills/x-ipe-skill-creator/templates/task-type-skill.md +0 -269
  144. {x_ipe-1.0.23.dist-info → x_ipe-1.0.25.dist-info}/WHEEL +0 -0
  145. {x_ipe-1.0.23.dist-info → x_ipe-1.0.25.dist-info}/entry_points.txt +0 -0
  146. {x_ipe-1.0.23.dist-info → x_ipe-1.0.25.dist-info}/licenses/LICENSE +0 -0
@@ -0,0 +1,299 @@
1
+ # Mockup Guidelines Reference
2
+
3
+ This document contains detailed mockup creation techniques, tool-specific examples, and design principles.
4
+
5
+ ---
6
+
7
+ ## UI/UX Focus Guidelines
8
+
9
+ ### What to Focus On vs. Ignore
10
+
11
+ | Focus On | Ignore |
12
+ |----------|--------|
13
+ | Visual layout and composition | Backend tech stack (Python, Node.js, etc.) |
14
+ | User interaction patterns | Database choices (PostgreSQL, MongoDB, etc.) |
15
+ | Navigation and flow | API implementation details |
16
+ | Color schemes and typography | Framework specifics (React, Vue, Django, etc.) |
17
+ | Responsive design | Infrastructure and deployment |
18
+ | Component placement | Authentication mechanisms |
19
+ | User experience | Server architecture |
20
+
21
+ **Rationale:** Mockups visualize the user experience, not technical implementation. Tech stack decisions come later during Technical Design.
22
+
23
+ ### Example Application
24
+
25
+ ```
26
+ Idea mentions: "Build with React and Node.js, use PostgreSQL"
27
+
28
+ Mockup should show:
29
+ ✓ How the dashboard looks
30
+ ✓ Where buttons and inputs are placed
31
+ ✓ User flow between screens
32
+
33
+ Mockup should NOT include:
34
+ ✗ React component structure
35
+ ✗ API endpoint labels
36
+ ✗ Database schema hints
37
+ ```
38
+
39
+ ---
40
+
41
+ ## Extra Instructions Handling
42
+
43
+ ### Purpose
44
+ Provides additional context or requirements for mockup creation.
45
+
46
+ ### Source Priority
47
+ 1. Human input (explicit instructions provided)
48
+ 2. `x-ipe-docs/config/tools.json` → `stages.ideation.mockup._extra_instruction` field
49
+ 3. Default: N/A (no extra instructions)
50
+
51
+ ### Loading Logic
52
+
53
+ ```
54
+ 1. IF human provides explicit Extra Instructions:
55
+ → Use human-provided value
56
+
57
+ 2. ELSE IF x-ipe-docs/config/tools.json exists:
58
+ a. Read stages.ideation.mockup._extra_instruction field
59
+ b. IF field exists AND is not empty:
60
+ → Use value from config
61
+ c. ELSE:
62
+ → Use default: N/A
63
+
64
+ 3. IF Extra Instructions != N/A:
65
+ → Apply these instructions when identifying mockup needs
66
+ → Consider them when invoking mockup tools
67
+ → Factor them into design preferences
68
+ → Reference them during human review
69
+ ```
70
+
71
+ **Usage:** When Extra Instructions are provided, incorporate them into the mockup creation workflow, particularly when designing UI elements and choosing visual styles.
72
+
73
+ ---
74
+
75
+ ## Current Idea Folder Handling
76
+
77
+ ### Validation Procedure
78
+
79
+ ```
80
+ 1. IF Current Idea Folder == N/A:
81
+ → Ask human: "Which idea folder should I create mockups for?"
82
+ → List available folders under x-ipe-docs/ideas/
83
+ → Wait for human selection
84
+
85
+ 2. IF Current Idea Folder provided:
86
+ → Validate folder exists
87
+ → Verify idea-summary-vN.md exists in folder
88
+ → Proceed with mockup creation
89
+ ```
90
+
91
+ ### Usage
92
+ - All mockups saved to `{Current Idea Folder}/mockups/`
93
+ - Idea summary updates reference `{Current Idea Folder}/idea-summary-vN.md`
94
+ - Output links use `{Current Idea Folder}` as base path
95
+
96
+ ---
97
+
98
+ ## Tool Configuration Details
99
+
100
+ ### Relevant Config Section
101
+
102
+ ```json
103
+ {
104
+ "version": "2.0",
105
+ "stages": {
106
+ "ideation": {
107
+ "mockup": {
108
+ "tool-frontend-design": true
109
+ }
110
+ }
111
+ }
112
+ }
113
+ ```
114
+
115
+ ### Tool Loading Rules
116
+
117
+ 1. **File exists:** Load and parse the JSON configuration
118
+ 2. **File missing:** Inform user mockup tools not configured, proceed with manual description
119
+ 3. **Tool enabled (`true`):** Invoke corresponding skill/capability
120
+ 4. **Tool disabled (`false`):** Skip the tool
121
+ 5. **Tool unavailable:** Log limitation and provide alternative
122
+
123
+ ### Mockup Tool Mapping
124
+
125
+ | Config Key | Skill/Capability | What It Creates |
126
+ |------------|------------------|-----------------|
127
+ | `stages.ideation.mockup.tool-frontend-design` | `tool-frontend-design` skill | HTML/CSS mockups, interactive prototypes |
128
+ | `stages.ideation.mockup.figma-mcp` | Figma MCP server | Figma design files |
129
+ | `stages.ideation.mockup.excalidraw` | Excalidraw integration | Sketch-style wireframes |
130
+
131
+ ---
132
+
133
+ ## Mockup Analysis Guidelines
134
+
135
+ ### Analysis Questions
136
+
137
+ ```
138
+ 1. Does the idea describe a user interface?
139
+ → If yes, identify screens/pages needed
140
+
141
+ 2. Does the idea mention user interactions?
142
+ → If yes, identify interactive elements
143
+
144
+ 3. Does the idea describe a workflow?
145
+ → If yes, identify flow visualization needs
146
+
147
+ 4. What is the primary user-facing component?
148
+ → Prioritize mockup for this component
149
+ ```
150
+
151
+ ### Mockup Types by Idea Content
152
+
153
+ | Idea Contains | Mockup Type | Priority |
154
+ |---------------|-------------|----------|
155
+ | Dashboard description | Dashboard layout | High |
156
+ | Form/input mentions | Form mockup | High |
157
+ | List/table data | Data display mockup | Medium |
158
+ | Navigation mentions | Nav structure | Medium |
159
+ | Charts/graphs | Data visualization | Medium |
160
+ | Mobile mentions | Mobile-responsive mockup | High |
161
+
162
+ ---
163
+
164
+ ## Tool Invocation Details
165
+
166
+ ### Tool-Frontend-Design Invocation
167
+
168
+ **IF `stages.ideation.mockup.tool-frontend-design: true`:**
169
+ ```
170
+ 1. Invoke `tool-frontend-design` skill
171
+ 2. Pass context:
172
+ - Current Idea Folder path
173
+ - Idea summary content (UI/UX elements only)
174
+ - Identified mockup needs
175
+ - Design preferences (if mentioned in idea)
176
+ - NOTE: Do NOT pass tech stack information
177
+ 3. Request HTML/CSS mockup generation
178
+ 4. Skill will create interactive prototype
179
+ ```
180
+
181
+ **Skill Invocation Format:**
182
+ ```yaml
183
+ skill: tool-frontend-design
184
+ context:
185
+ type: idea-mockup
186
+ idea_folder: {Current Idea Folder}
187
+ idea_summary: {parsed summary - UI/UX content only}
188
+ mockup_needs:
189
+ - type: dashboard
190
+ description: "Main analytics dashboard with charts"
191
+ - type: form
192
+ description: "User registration form"
193
+ design_preferences:
194
+ style: modern | minimal | professional
195
+ colors: {from idea or default}
196
+ ```
197
+
198
+ ### Figma MCP Invocation
199
+
200
+ **IF `mockup.figma-mcp: true`:**
201
+ ```
202
+ 1. Check Figma MCP server connection
203
+ 2. Create new Figma file or use template
204
+ 3. Generate basic layout based on idea
205
+ 4. Return Figma file link
206
+ ```
207
+
208
+ ### Manual Mode
209
+
210
+ **IF no tools enabled:**
211
+ ```
212
+ 1. Create detailed mockup description in markdown
213
+ 2. Include ASCII art or text-based layout
214
+ 3. Document component specifications
215
+ 4. Save as mockup-description.md in {Current Idea Folder}/mockups/
216
+ ```
217
+
218
+ ---
219
+
220
+ ## Artifact Management
221
+
222
+ ### Directory Structure
223
+
224
+ ```
225
+ {Current Idea Folder}/
226
+ ├── idea-summary-vN.md
227
+ ├── mockups/
228
+ │ ├── dashboard-v1.html (if tool-frontend-design used)
229
+ │ ├── dashboard-v1.css (if tool-frontend-design used)
230
+ │ ├── form-v1.html (if tool-frontend-design used)
231
+ │ ├── mockup-description.md (if manual mode)
232
+ │ └── figma-link.md (if figma-mcp used)
233
+ └── files/
234
+ └── (original idea files)
235
+ ```
236
+
237
+ ### Naming Convention
238
+
239
+ ```
240
+ {mockup-type}-v{version}.{extension}
241
+
242
+ Examples:
243
+ - dashboard-v1.html
244
+ - user-form-v1.html
245
+ - mobile-home-v1.html
246
+ ```
247
+
248
+ ---
249
+
250
+ ## Summary Update Template
251
+
252
+ **Add to new summary version:**
253
+ ```markdown
254
+ ## Mockups & Prototypes
255
+
256
+ | Mockup | Type | Path | Tool Used |
257
+ |--------|------|------|-----------|
258
+ | Dashboard | HTML | mockups/dashboard-v1.html | tool-frontend-design |
259
+ | User Form | HTML | mockups/user-form-v1.html | tool-frontend-design |
260
+
261
+ ### Preview Instructions
262
+ - Open HTML files in browser to view interactive mockups
263
+ - Figma link: {link if figma-mcp used}
264
+ ```
265
+
266
+ ---
267
+
268
+ ## Completion Output Format
269
+
270
+ ```yaml
271
+ category: ideation-stage
272
+ task_type: Idea Mockup
273
+ auto_proceed: {from input Auto Proceed}
274
+ idea_id: IDEA-XXX
275
+ current_idea_folder: {Current Idea Folder}
276
+ mockup_tools_used:
277
+ - tool-frontend-design
278
+ mockups_created:
279
+ - type: dashboard
280
+ path: {Current Idea Folder}/mockups/dashboard-v1.html
281
+ - type: form
282
+ path: {Current Idea Folder}/mockups/user-form-v1.html
283
+ mockup_list:
284
+ - {Current Idea Folder}/mockups/dashboard-v1.html
285
+ - {Current Idea Folder}/mockups/user-form-v1.html
286
+ idea_summary_version: vN+1
287
+ next_task_type: Requirement Gathering
288
+ require_human_review: true
289
+ task_output_links:
290
+ - {Current Idea Folder}/mockups/dashboard-v1.html
291
+ - {Current Idea Folder}/mockups/user-form-v1.html
292
+ - {Current Idea Folder}/idea-summary-v{N+1}.md
293
+ ```
294
+
295
+ **Mockup List Flow:**
296
+ ```
297
+ Idea Mockup → Requirement Gathering → Feature Breakdown → Feature Refinement → Technical Design
298
+ ```
299
+ Each subsequent task receives and passes the mockup_list to ensure mockups are referenced throughout the development lifecycle.
@@ -311,100 +311,23 @@ Execute Idea to Architecture by following these steps in order:
311
311
 
312
312
  **Action:** Generate diagrams using enabled architecture tools
313
313
 
314
- **IF `stages.ideation.architecture.mermaid: true`:**
314
+ | Tool Config | Action |
315
+ |-------------|--------|
316
+ | `mermaid: true` | Generate C4 Context/Container diagrams in markdown |
317
+ | `excalidraw: true` | Create hand-drawn style diagrams, export as .excalidraw |
318
+ | No tools enabled | Create manual architecture-description.md |
315
319
 
316
- Generate Mermaid diagrams embedded in markdown files:
317
-
318
- ```markdown
319
- # System Architecture
320
-
321
- ## Context Diagram (C4 Level 1)
322
-
323
- ```mermaid
324
- C4Context
325
- title System Context Diagram
326
- Person(user, "User", "End user of the system")
327
- System(system, "Our System", "Main application")
328
- System_Ext(external, "External Service", "Third-party integration")
329
-
330
- Rel(user, system, "Uses")
331
- Rel(system, external, "Integrates with")
332
- ```
333
-
334
- ## Container Diagram (C4 Level 2)
335
-
336
- ```mermaid
337
- C4Container
338
- title Container Diagram
339
- Person(user, "User")
340
-
341
- Container_Boundary(system, "System") {
342
- Container(web, "Web App", "React", "User interface")
343
- Container(api, "API", "Node.js", "Business logic")
344
- ContainerDb(db, "Database", "PostgreSQL", "Data storage")
345
- }
346
-
347
- Rel(user, web, "Uses", "HTTPS")
348
- Rel(web, api, "Calls", "REST/JSON")
349
- Rel(api, db, "Reads/Writes", "SQL")
350
- ```
351
-
352
- ## Data Flow
353
-
354
- ```mermaid
355
- flowchart LR
356
- A[Input] --> B[Processing]
357
- B --> C[Output]
358
- B --> D[(Storage)]
359
- ```
360
- ```
361
-
362
- **IF `stages.ideation.architecture.excalidraw: true`:**
363
- ```
364
- 1. Check Excalidraw integration availability
365
- 2. Create architecture diagram using Excalidraw
366
- 3. Export as .excalidraw file and/or PNG
367
- 4. Save to architecture folder
368
- ```
369
-
370
- **IF no tools enabled (Manual Mode):**
371
- ```
372
- 1. Create detailed architecture description in markdown
373
- 2. Include text-based component listing
374
- 3. Document relationships and data flow
375
- 4. Save as architecture-description.md in {Current Idea Folder}/architecture/
376
- ```
320
+ **Templates & Examples:** See [references/architecture-patterns.md](references/architecture-patterns.md#mermaid-diagram-templates)
377
321
 
378
322
  **Output:** Generated diagram files
379
323
 
380
324
  ### Step 6: Save Artifacts
381
325
 
382
- **Action:** Store all architecture artifacts in the Current Idea Folder
383
-
384
- **Directory Structure:**
385
- ```
386
- {Current Idea Folder}/
387
- ├── idea-summary-vN.md
388
- ├── architecture/
389
- │ ├── system-architecture-v1.md (mermaid diagrams in markdown)
390
- │ ├── data-flow-v1.md (data flow diagrams)
391
- │ ├── sequence-v1.md (sequence diagrams)
392
- │ ├── architecture.excalidraw (if excalidraw used)
393
- │ └── architecture-description.md (if manual mode)
394
- └── files/
395
- └── (original idea files)
396
- ```
326
+ **Action:** Store all architecture artifacts in `{Current Idea Folder}/architecture/`
397
327
 
398
- **Naming Convention:**
399
- ```
400
- {diagram-type}-v{version}.{extension}
328
+ **Naming:** `{diagram-type}-v{version}.{extension}` (e.g., `system-architecture-v1.md`)
401
329
 
402
- Examples:
403
- - system-architecture-v1.md
404
- - data-flow-v1.md
405
- - sequence-v1.md
406
- - integration-v1.md
407
- ```
330
+ **Directory Structure:** See [references/architecture-patterns.md](references/architecture-patterns.md#output-artifact-structure)
408
331
 
409
332
  **Output:** List of saved artifact paths (relative to Current Idea Folder)
410
333
 
@@ -415,19 +338,7 @@ Examples:
415
338
  **DO NOT modify existing idea-summary files.**
416
339
  Instead, create a new version: `{Current Idea Folder}/idea-summary-v{N+1}.md`
417
340
 
418
- **Add to Summary:**
419
- ```markdown
420
- ## Architecture Diagrams
421
-
422
- | Diagram | Type | Path | Tool Used |
423
- |---------|------|------|-----------|
424
- | System Architecture | C4 Context/Container | architecture/system-architecture-v1.md | mermaid |
425
- | Data Flow | Flowchart | architecture/data-flow-v1.md | mermaid |
426
-
427
- ### Viewing Instructions
428
- - Open .md files to view mermaid diagrams (renders in most markdown viewers)
429
- - Excalidraw files can be opened at excalidraw.com
430
- ```
341
+ **Template:** See [references/architecture-patterns.md](references/architecture-patterns.md#summary-update-template)
431
342
 
432
343
  **Output:** Updated idea summary version
433
344
 
@@ -483,130 +394,21 @@ task_output_links:
483
394
 
484
395
  ## Mermaid Diagram Templates
485
396
 
486
- ### System Architecture (C4 Context)
487
-
488
- ```mermaid
489
- C4Context
490
- title System Context Diagram - {System Name}
491
-
492
- Person(user, "User", "Description of user")
493
- System(system, "System Name", "What the system does")
494
- System_Ext(ext1, "External System", "What it provides")
495
-
496
- Rel(user, system, "Uses")
497
- Rel(system, ext1, "Integrates with")
498
- ```
499
-
500
- ### Container Diagram (C4 Container)
501
-
502
- ```mermaid
503
- C4Container
504
- title Container Diagram - {System Name}
505
-
506
- Person(user, "User")
507
-
508
- Container_Boundary(system, "System Name") {
509
- Container(frontend, "Frontend", "Technology", "Description")
510
- Container(backend, "Backend", "Technology", "Description")
511
- ContainerDb(db, "Database", "Technology", "Description")
512
- }
513
-
514
- Rel(user, frontend, "Uses")
515
- Rel(frontend, backend, "API calls")
516
- Rel(backend, db, "Reads/Writes")
517
- ```
518
-
519
- ### Data Flow Diagram
520
-
521
- ```mermaid
522
- flowchart TD
523
- subgraph Input
524
- A[Data Source 1]
525
- B[Data Source 2]
526
- end
527
-
528
- subgraph Processing
529
- C[Processor]
530
- D[Transformer]
531
- end
532
-
533
- subgraph Output
534
- E[Result]
535
- F[(Storage)]
536
- end
537
-
538
- A --> C
539
- B --> C
540
- C --> D
541
- D --> E
542
- D --> F
543
- ```
544
-
545
- ### Sequence Diagram
546
-
547
- ```mermaid
548
- sequenceDiagram
549
- participant U as User
550
- participant F as Frontend
551
- participant B as Backend
552
- participant D as Database
553
-
554
- U->>F: Action
555
- F->>B: API Request
556
- B->>D: Query
557
- D-->>B: Data
558
- B-->>F: Response
559
- F-->>U: Display
560
- ```
397
+ See [references/architecture-patterns.md](references/architecture-patterns.md#mermaid-diagram-templates) for:
398
+ - System Architecture (C4 Context)
399
+ - Container Diagram (C4 Container)
400
+ - Data Flow Diagram
401
+ - Sequence Diagram
561
402
 
562
403
  ---
563
404
 
564
405
  ## Patterns
565
406
 
566
- ### Pattern: Microservices Architecture
567
-
568
- **When:** Idea describes multiple independent services
569
- **Then:**
570
- ```
571
- 1. Create C4 Context showing all services
572
- 2. Create Container diagram for each service
573
- 3. Show inter-service communication
574
- 4. Document API boundaries
575
- 5. Include message queue if async communication mentioned
576
- ```
577
-
578
- ### Pattern: Simple Web Application
579
-
580
- **When:** Idea is a straightforward web app
581
- **Then:**
582
- ```
583
- 1. Create simple 3-tier architecture (Frontend, Backend, Database)
584
- 2. Add external integrations if mentioned
585
- 3. Keep diagram minimal and clear
586
- 4. Focus on main data flows
587
- ```
588
-
589
- ### Pattern: Data Pipeline
590
-
591
- **When:** Idea focuses on data processing
592
- **Then:**
593
- ```
594
- 1. Create data flow diagram as primary
595
- 2. Show data sources, transformations, and destinations
596
- 3. Include storage components
597
- 4. Document data formats at each stage
598
- ```
599
-
600
- ### Pattern: No Technical Details in Idea
601
-
602
- **When:** Idea summary lacks technical information
603
- **Then:**
604
- ```
605
- 1. Ask clarifying questions about system needs
606
- 2. Suggest common architecture patterns
607
- 3. Create minimal viable architecture
608
- 4. Request feedback before expanding
609
- ```
407
+ See [references/architecture-patterns.md](references/architecture-patterns.md#architecture-patterns) for:
408
+ - Microservices Architecture
409
+ - Simple Web Application
410
+ - Data Pipeline
411
+ - No Technical Details in Idea
610
412
 
611
413
  ---
612
414