ai-flow-dev 2.1.6 → 2.1.8
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/README.md +26 -19
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
- package/prompts/backend/flow-build-phase-1.md +185 -16
- package/prompts/backend/flow-build.md +58 -54
- package/prompts/backend/flow-dev-commit.md +27 -23
- package/prompts/backend/flow-dev-feature.md +60 -56
- package/prompts/backend/flow-dev-fix.md +29 -25
- package/prompts/backend/flow-dev-refactor.md +28 -24
- package/prompts/backend/flow-dev-review.md +26 -22
- package/prompts/backend/flow-dev-work.md +57 -53
- package/prompts/backend/flow-docs-sync.md +17 -13
- package/prompts/frontend/flow-build-phase-1.md +187 -53
- package/prompts/frontend/flow-build.md +33 -29
- package/prompts/frontend/flow-docs-sync.md +16 -12
- package/prompts/mobile/flow-build-phase-1.md +196 -62
- package/prompts/mobile/flow-build.md +33 -29
- package/prompts/mobile/flow-docs-sync.md +15 -11
- package/templates/AGENT.template.md +1 -1
|
@@ -1,15 +1,19 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Documentation Sync & Update Flow
|
|
3
|
+
---
|
|
4
|
+
|
|
1
5
|
# AI Flow - Documentation Update Command
|
|
2
6
|
|
|
3
7
|
**YOU ARE AN EXPERT TECHNICAL ARCHITECT AND DOCUMENTATION SPECIALIST.**
|
|
4
8
|
|
|
5
9
|
Your mission is to detect changes in the codebase and update the project documentation automatically when the user executes `/flow-docs-sync`.
|
|
6
|
-
---
|
|
10
|
+
---
|
|
7
11
|
## Command: `/flow-docs-sync`
|
|
8
12
|
|
|
9
13
|
### Objective
|
|
10
14
|
|
|
11
15
|
Detect changes in the codebase compared to the last documented state (stored in `.ai-flow/cache/docs-analysis.json`) and update all affected documentation files automatically.
|
|
12
|
-
---
|
|
16
|
+
---
|
|
13
17
|
## Execution Flow
|
|
14
18
|
|
|
15
19
|
### Step 1: Check for Analysis File
|
|
@@ -78,7 +82,7 @@ First, check if `.ai-flow/cache/docs-analysis.json` exists:
|
|
|
78
82
|
|
|
79
83
|
No se requiere ninguna actualización.
|
|
80
84
|
```
|
|
81
|
-
---
|
|
85
|
+
---
|
|
82
86
|
## 📊 MERMAID DIAGRAM REGENERATION GUIDELINES
|
|
83
87
|
|
|
84
88
|
> 📎 **Reference:** See [prompts/shared/mermaid-guidelines.md](../shared/mermaid-guidelines.md) for all Mermaid diagram formatting rules (ER, Architecture, Flow).
|
|
@@ -86,20 +90,20 @@ No se requiere ninguna actualización.
|
|
|
86
90
|
### ER Diagrams (data-model.md)
|
|
87
91
|
|
|
88
92
|
> 📎 **Reference:** See [prompts/shared/mermaid-guidelines.md](../shared/mermaid-guidelines.md) for ER diagram syntax, relationship notation, and common mistakes.
|
|
89
|
-
---
|
|
93
|
+
---
|
|
90
94
|
### Architecture Diagrams (architecture.md)
|
|
91
95
|
|
|
92
96
|
> 📎 **Reference:** See [prompts/shared/mermaid-guidelines.md](../shared/mermaid-guidelines.md) for architecture diagram syntax, node shapes, and styling.
|
|
93
|
-
---
|
|
94
|
-
---
|
|
97
|
+
---
|
|
98
|
+
---
|
|
95
99
|
### Business Flow Diagrams (project-brief.md)
|
|
96
100
|
|
|
97
101
|
> 📎 **Reference:** See [prompts/shared/mermaid-guidelines.md](../shared/mermaid-guidelines.md) for business flow syntax, decision points, and styling.
|
|
98
|
-
---
|
|
102
|
+
---
|
|
99
103
|
### Common Formatting Rules (ALL Diagrams)
|
|
100
104
|
|
|
101
105
|
> 📎 **Reference:** See [prompts/shared/mermaid-guidelines.md](../shared/mermaid-guidelines.md) for critical code fence syntax and indentation rules.
|
|
102
|
-
---
|
|
106
|
+
---
|
|
103
107
|
- Do NOT indent the entire code block
|
|
104
108
|
|
|
105
109
|
**Validation Steps:**
|
|
@@ -118,7 +122,7 @@ No se requiere ninguna actualización.
|
|
|
118
122
|
4. Add new elements in logical positions
|
|
119
123
|
5. Preserve comments or notes if present
|
|
120
124
|
6. Verify the entire diagram still renders after changes
|
|
121
|
-
---
|
|
125
|
+
---
|
|
122
126
|
### Step 4: Update Documents (If User Confirms)
|
|
123
127
|
|
|
124
128
|
**If user responds "Y", "Yes", "y", "yes", or similar:**
|
|
@@ -201,7 +205,7 @@ No se requiere ninguna actualización.
|
|
|
201
205
|
```
|
|
202
206
|
Actualización cancelada. Ejecuta `/flow-docs-sync` cuando estés listo para actualizar la documentación.
|
|
203
207
|
```
|
|
204
|
-
---
|
|
208
|
+
---
|
|
205
209
|
## Change Detection Rules
|
|
206
210
|
|
|
207
211
|
### Endpoints Detection
|
|
@@ -280,7 +284,7 @@ Actualización cancelada. Ejecuta `/flow-docs-sync` cuando estés listo para act
|
|
|
280
284
|
- Add new variables to configuration spec
|
|
281
285
|
- Add examples to `.env.example`
|
|
282
286
|
- Maintain existing variables
|
|
283
|
-
---
|
|
287
|
+
---
|
|
284
288
|
## Important Rules
|
|
285
289
|
|
|
286
290
|
1. **Incremental Updates Only:**
|
|
@@ -307,7 +311,7 @@ Actualización cancelada. Ejecuta `/flow-docs-sync` cuando estés listo para act
|
|
|
307
311
|
- If document doesn't exist, create it following template
|
|
308
312
|
- If docs-analysis.json is corrupted, regenerate it
|
|
309
313
|
- If comparison fails, show error and suggest full Phase 0 re-run
|
|
310
|
-
---
|
|
314
|
+
---
|
|
311
315
|
## Example Execution
|
|
312
316
|
|
|
313
317
|
```
|
|
@@ -341,7 +345,7 @@ AI:
|
|
|
341
345
|
|
|
342
346
|
Documentación sincronizada exitosamente.
|
|
343
347
|
```
|
|
344
|
-
---
|
|
348
|
+
---
|
|
345
349
|
**BEGIN EXECUTION when user runs `/flow-docs-sync`**
|
|
346
350
|
|
|
347
351
|
|
|
@@ -1,22 +1,131 @@
|
|
|
1
1
|
# Phase 1: Discovery & UX Requirements
|
|
2
2
|
|
|
3
3
|
**Duration:** 15-20 minutes
|
|
4
|
-
**Questions:** ~
|
|
4
|
+
**Questions:** ~11 questions
|
|
5
5
|
**Output:** project-brief.md, parts of AGENT.md
|
|
6
|
-
---
|
|
6
|
+
---
|
|
7
7
|
## 🎯 Objective
|
|
8
8
|
|
|
9
|
-
Understand the **user-facing aspects** of the application:
|
|
9
|
+
Understand the **user-facing aspects** and core goal of the application:
|
|
10
10
|
|
|
11
|
-
1. What
|
|
12
|
-
2.
|
|
13
|
-
3.
|
|
14
|
-
4. What
|
|
15
|
-
5. What
|
|
16
|
-
|
|
11
|
+
1. What is the core goal and purpose of the project?
|
|
12
|
+
2. What type of application is being built?
|
|
13
|
+
3. Who are the target users?
|
|
14
|
+
4. What are the key user journeys?
|
|
15
|
+
5. What devices and browsers must be supported?
|
|
16
|
+
6. What are the UX priorities?
|
|
17
|
+
---
|
|
17
18
|
## 📋 Questions
|
|
18
19
|
|
|
19
|
-
### Question 1.1:
|
|
20
|
+
### Question 1.1: Project Name & Description (with Smart Refinement)
|
|
21
|
+
|
|
22
|
+
> **🧠 Intelligent Refinement System**: This question detects vague descriptions and guides the developer to enrich them. It only asks what's missing and responds in the developer's language.
|
|
23
|
+
|
|
24
|
+
```
|
|
25
|
+
What is the project name?
|
|
26
|
+
|
|
27
|
+
Provide an initial description of your project.
|
|
28
|
+
(Don't worry about perfection - we'll refine it together if needed!)
|
|
29
|
+
|
|
30
|
+
Example: "A frontend dashboard for managing inventory in real-time"
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
**🔍 AI Internal: Ambiguity Analysis**
|
|
34
|
+
|
|
35
|
+
After receiving the description, silently analyze for these criteria:
|
|
36
|
+
|
|
37
|
+
| Criterion | Check For | Score +1 if present |
|
|
38
|
+
|-----------|-----------|---------------------|
|
|
39
|
+
| **WHO** | Specific user type mentioned (not just "users") | "store managers", "traders", "students" |
|
|
40
|
+
| **WHAT** | Specific action/function (not just "view", "show") | "compare prices", "edit profiles", "visualize data" |
|
|
41
|
+
| **WHY** | Purpose or value mentioned | "to increase conversion", "to save time", "to improve UX" |
|
|
42
|
+
| **DOMAIN** | Industry/vertical indicated | "fintech", "e-commerce", "social media" |
|
|
43
|
+
| **DETAIL** | Description has 10+ meaningful words | Not counting articles |
|
|
44
|
+
|
|
45
|
+
**Scoring Rules:**
|
|
46
|
+
- Score 4-5: ✅ Accept immediately → Proceed to 1.2
|
|
47
|
+
- Score 0-3: ⚠️ Enter refinement loop → Ask ONLY missing criteria
|
|
48
|
+
|
|
49
|
+
---
|
|
50
|
+
|
|
51
|
+
**🔄 Conditional Refinement Loop (only if score < 4)**
|
|
52
|
+
|
|
53
|
+
> **CRITICAL**: Only ask about criteria that are MISSING. Do NOT repeat questions already answered. Respond in the SAME LANGUAGE the developer used.
|
|
54
|
+
|
|
55
|
+
```
|
|
56
|
+
[LANGUAGE: Match the developer's language]
|
|
57
|
+
|
|
58
|
+
🔍 I'd like to understand your project better.
|
|
59
|
+
|
|
60
|
+
Your description: "[original description]"
|
|
61
|
+
|
|
62
|
+
[ONLY show questions for MISSING criteria:]
|
|
63
|
+
|
|
64
|
+
[If WHO is missing:]
|
|
65
|
+
1️⃣ WHO will use this application?
|
|
66
|
+
A) End consumers (B2C)
|
|
67
|
+
B) Business users (B2B)
|
|
68
|
+
C) Internal team / Admin
|
|
69
|
+
D) Other: __
|
|
70
|
+
|
|
71
|
+
[If WHAT is missing:]
|
|
72
|
+
2️⃣ WHAT is the core UX action users will perform?
|
|
73
|
+
A) Browse & Shop
|
|
74
|
+
B) Manage & Configure
|
|
75
|
+
C) Read & Consume
|
|
76
|
+
D) Create & Publish
|
|
77
|
+
E) Analyze & Visualize
|
|
78
|
+
F) Other: __
|
|
79
|
+
|
|
80
|
+
[If WHY is missing:]
|
|
81
|
+
3️⃣ WHY is this project needed?
|
|
82
|
+
A) Launch new product
|
|
83
|
+
B) Replace legacy UI
|
|
84
|
+
C) Better mobile experience
|
|
85
|
+
D) Specific new feature
|
|
86
|
+
E) Other: __
|
|
87
|
+
|
|
88
|
+
[If DOMAIN is missing:]
|
|
89
|
+
4️⃣ What INDUSTRY/DOMAIN is this for?
|
|
90
|
+
A) E-commerce/Retail
|
|
91
|
+
B) Fitness/Health
|
|
92
|
+
C) Finance/Payments
|
|
93
|
+
D) Education
|
|
94
|
+
E) Social/Community
|
|
95
|
+
F) Business tools (CRM, ERP)
|
|
96
|
+
G) Other: __
|
|
97
|
+
|
|
98
|
+
Your answers: __
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
---
|
|
102
|
+
|
|
103
|
+
**✨ Generate Professional Description Options**
|
|
104
|
+
|
|
105
|
+
After gathering missing info, generate 3 polished versions:
|
|
106
|
+
|
|
107
|
+
```
|
|
108
|
+
[LANGUAGE: Match the developer's language]
|
|
109
|
+
|
|
110
|
+
✨ Based on your input, here are 3 professional descriptions:
|
|
111
|
+
|
|
112
|
+
A) Concise (for package.json):
|
|
113
|
+
"[Generated 1-line description]"
|
|
114
|
+
|
|
115
|
+
B) Descriptive (for README.md):
|
|
116
|
+
"[Generated 2-3 line description with UX focus]"
|
|
117
|
+
|
|
118
|
+
C) Creative (for Marketing/Landing):
|
|
119
|
+
"[Generated catchy description]"
|
|
120
|
+
|
|
121
|
+
Which do you prefer? (1-3, or 4 to edit, 5 to start over)
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
**Your choice:**
|
|
125
|
+
|
|
126
|
+
---
|
|
127
|
+
|
|
128
|
+
### Question 1.2: Application Type
|
|
20
129
|
|
|
21
130
|
**What type of frontend application are you building?**
|
|
22
131
|
|
|
@@ -51,10 +160,26 @@ E) **Static Site (SSG)**
|
|
|
51
160
|
- Best for: Blogs, documentation, landing pages
|
|
52
161
|
|
|
53
162
|
**Your answer:**
|
|
54
|
-
---
|
|
55
|
-
### Question 1.
|
|
163
|
+
---
|
|
164
|
+
### Question 1.3: Target Users (Confirmation + Expansion)
|
|
165
|
+
|
|
166
|
+
```
|
|
167
|
+
[If WHO was captured in 1.1, show:]
|
|
168
|
+
|
|
169
|
+
✅ Based on your description, your target users are: [WHO from 1.1]
|
|
170
|
+
|
|
171
|
+
Describe your user personas more deeply (3-5 bullet points):
|
|
172
|
+
|
|
173
|
+
- Demographics (age, tech-savviness, etc.)
|
|
174
|
+
- Use cases / goals
|
|
175
|
+
- Device preferences
|
|
176
|
+
- Accessibility needs
|
|
56
177
|
|
|
57
|
-
|
|
178
|
+
---
|
|
179
|
+
|
|
180
|
+
[If WHO was NOT captured in 1.1, ask normally:]
|
|
181
|
+
|
|
182
|
+
Who are your primary target users?
|
|
58
183
|
|
|
59
184
|
Describe your user personas (3-5 bullet points):
|
|
60
185
|
|
|
@@ -62,6 +187,7 @@ Describe your user personas (3-5 bullet points):
|
|
|
62
187
|
- Use cases / goals
|
|
63
188
|
- Device preferences
|
|
64
189
|
- Accessibility needs
|
|
190
|
+
```
|
|
65
191
|
|
|
66
192
|
**Example:**
|
|
67
193
|
|
|
@@ -73,12 +199,22 @@ Describe your user personas (3-5 bullet points):
|
|
|
73
199
|
```
|
|
74
200
|
|
|
75
201
|
**Your answer:**
|
|
76
|
-
---
|
|
77
|
-
### Question 1.
|
|
202
|
+
---
|
|
203
|
+
### Question 1.4: Key User Journeys (Confirmation + Expansion)
|
|
204
|
+
|
|
205
|
+
```
|
|
206
|
+
[If WHAT was captured in 1.1, show:]
|
|
207
|
+
|
|
208
|
+
✅ Based on your description, a core journey is: [WHAT from 1.1]
|
|
209
|
+
|
|
210
|
+
What are the 3-5 most critical user flows?
|
|
78
211
|
|
|
79
|
-
|
|
212
|
+
---
|
|
80
213
|
|
|
81
|
-
|
|
214
|
+
[If WHAT was NOT captured in 1.1, ask normally:]
|
|
215
|
+
|
|
216
|
+
What are the 3-5 most critical user flows?
|
|
217
|
+
```
|
|
82
218
|
|
|
83
219
|
**Example:**
|
|
84
220
|
|
|
@@ -90,8 +226,8 @@ List the core journeys users will take through your app.
|
|
|
90
226
|
```
|
|
91
227
|
|
|
92
228
|
**Your answer:**
|
|
93
|
-
---
|
|
94
|
-
### Question 1.
|
|
229
|
+
---
|
|
230
|
+
### Question 1.5: Device & Browser Support
|
|
95
231
|
|
|
96
232
|
**What devices and browsers must you support?**
|
|
97
233
|
|
|
@@ -122,8 +258,8 @@ D) **Desktop-First**
|
|
|
122
258
|
- Best for: Admin panels, dashboards, B2B tools
|
|
123
259
|
|
|
124
260
|
**Your answer:**
|
|
125
|
-
---
|
|
126
|
-
### Question 1.
|
|
261
|
+
---
|
|
262
|
+
### Question 1.6: Responsive Strategy
|
|
127
263
|
|
|
128
264
|
**How will you handle different screen sizes?**
|
|
129
265
|
|
|
@@ -150,8 +286,8 @@ D) **Fixed Width (Desktop Only)**
|
|
|
150
286
|
- Best for: Internal tools, admin panels (desktop-only users)
|
|
151
287
|
|
|
152
288
|
**Your answer:**
|
|
153
|
-
---
|
|
154
|
-
### Question 1.
|
|
289
|
+
---
|
|
290
|
+
### Question 1.7: Internationalization (i18n)
|
|
155
291
|
|
|
156
292
|
**Do you need multi-language support?**
|
|
157
293
|
|
|
@@ -180,8 +316,8 @@ D) **Right-to-Left (RTL) Support**
|
|
|
180
316
|
**Your answer:**
|
|
181
317
|
|
|
182
318
|
**If multi-language selected, list target languages:**
|
|
183
|
-
---
|
|
184
|
-
### Question 1.
|
|
319
|
+
---
|
|
320
|
+
### Question 1.8: Authentication Requirements
|
|
185
321
|
|
|
186
322
|
**What authentication method will you use?**
|
|
187
323
|
|
|
@@ -219,8 +355,8 @@ F) **No Authentication**
|
|
|
219
355
|
- Best for: Marketing sites, public tools
|
|
220
356
|
|
|
221
357
|
**Your answer:**
|
|
222
|
-
---
|
|
223
|
-
### Question 1.
|
|
358
|
+
---
|
|
359
|
+
### Question 1.9: Data Privacy & Compliance
|
|
224
360
|
|
|
225
361
|
**What data privacy requirements do you have?**
|
|
226
362
|
|
|
@@ -257,8 +393,8 @@ F) **Multiple Regulations**
|
|
|
257
393
|
- Most restrictive controls apply
|
|
258
394
|
|
|
259
395
|
**Your answer:**
|
|
260
|
-
---
|
|
261
|
-
### Question 1.
|
|
396
|
+
---
|
|
397
|
+
### Question 1.10: Offline Support
|
|
262
398
|
|
|
263
399
|
**Do users need offline access?**
|
|
264
400
|
|
|
@@ -287,8 +423,8 @@ D) **Offline-First**
|
|
|
287
423
|
- Best for: Mobile apps, unreliable networks
|
|
288
424
|
|
|
289
425
|
**Your answer:**
|
|
290
|
-
---
|
|
291
|
-
### Question 1.
|
|
426
|
+
---
|
|
427
|
+
### Question 1.11: Performance Priorities
|
|
292
428
|
|
|
293
429
|
**What are your performance priorities?** (Select top 3)
|
|
294
430
|
|
|
@@ -327,25 +463,27 @@ F) **Perceived Performance**
|
|
|
327
463
|
- Best for: User experience
|
|
328
464
|
|
|
329
465
|
**Your answer (top 3):**
|
|
330
|
-
---
|
|
466
|
+
---
|
|
331
467
|
## 📊 Phase 1 Summary
|
|
332
468
|
|
|
333
469
|
Before proceeding to Phase 2, confirm the following:
|
|
334
470
|
|
|
335
471
|
```
|
|
336
|
-
---
|
|
472
|
+
---
|
|
337
473
|
📋 PHASE 1 SUMMARY: DISCOVERY & UX
|
|
338
|
-
---
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
474
|
+
---
|
|
475
|
+
Project Name: [Answer from 1.1]
|
|
476
|
+
Project Description: [Answer from 1.1]
|
|
477
|
+
Application Type: [Answer from 1.2]
|
|
478
|
+
Target Users: [Answer from 1.3]
|
|
479
|
+
Key User Journeys: [Answer from 1.4]
|
|
480
|
+
Device/Browser Support: [Answer from 1.5]
|
|
481
|
+
Responsive Strategy: [Answer from 1.6]
|
|
482
|
+
Internationalization: [Answer from 1.7]
|
|
483
|
+
Authentication: [Answer from 1.8]
|
|
484
|
+
Data Privacy: [Answer from 1.9]
|
|
485
|
+
Offline Support: [Answer from 1.10]
|
|
486
|
+
Performance Priorities: [Answer from 1.11]
|
|
349
487
|
|
|
350
488
|
Is this correct? (Y/n)
|
|
351
489
|
```
|
|
@@ -353,7 +491,7 @@ Is this correct? (Y/n)
|
|
|
353
491
|
If **Yes:** Proceed to Phase 2
|
|
354
492
|
|
|
355
493
|
If **No:** Allow user to correct specific answers
|
|
356
|
-
---
|
|
494
|
+
---
|
|
357
495
|
## 📝 Document Generation (Partial)
|
|
358
496
|
|
|
359
497
|
At the end of Phase 1, generate or update:
|
|
@@ -439,7 +577,7 @@ At the end of Phase 1, generate or update:
|
|
|
439
577
|
- Authentication: {{AUTH_METHOD}}
|
|
440
578
|
- Compliance: {{DATA_PRIVACY_COMPLIANCE}}
|
|
441
579
|
```
|
|
442
|
-
---
|
|
580
|
+
---
|
|
443
581
|
## 🚀 Next Steps
|
|
444
582
|
|
|
445
583
|
```
|
|
@@ -453,11 +591,7 @@ Next: Phase 2 - Components & Framework
|
|
|
453
591
|
|
|
454
592
|
Read: .ai-flow/prompts/frontend/flow-build-phase-2-components.md
|
|
455
593
|
```
|
|
456
|
-
---
|
|
457
|
-
**Last Updated:** 2025-
|
|
458
|
-
|
|
459
|
-
**Version:** 1.2.0
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
594
|
+
---
|
|
595
|
+
**Last Updated:** 2025-12-XX
|
|
463
596
|
|
|
597
|
+
**Version:** 1.3.0
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Frontend Master Prompt - Discovery, Architecture & Setup
|
|
3
|
+
---
|
|
4
|
+
|
|
1
5
|
# AI Flow - Frontend Master Prompt
|
|
2
6
|
|
|
3
7
|
**YOU ARE AN EXPERT FRONTEND ARCHITECT AND DOCUMENTATION SPECIALIST.**
|
|
4
8
|
|
|
5
9
|
Your mission is to guide the user through creating **comprehensive, production-ready documentation** for their frontend project through an interactive questionnaire that follows the dependency-aware order specified below.
|
|
6
|
-
---
|
|
10
|
+
---
|
|
7
11
|
## 🎯 Ejecución de Fase Específica
|
|
8
12
|
|
|
9
13
|
**IMPORTANTE:** Detectar si el usuario especificó una fase para ejecutar.
|
|
@@ -54,9 +58,9 @@ Si el usuario especifica una fase inválida, mostrar:
|
|
|
54
58
|
|
|
55
59
|
```
|
|
56
60
|
❌ Fase inválida. Las fases válidas para frontend son:
|
|
57
|
-
---
|
|
61
|
+
---
|
|
58
62
|
📋 Fases Disponibles - Frontend
|
|
59
|
-
---
|
|
63
|
+
---
|
|
60
64
|
/flow-build fase 0 - Context Discovery (solo proyectos existentes)
|
|
61
65
|
/flow-build fase 1 - Discovery & UX (tipo de app, usuarios, journeys)
|
|
62
66
|
/flow-build fase 2 - Components & Framework (React/Vue/Angular, estructura)
|
|
@@ -66,10 +70,10 @@ Si el usuario especifica una fase inválida, mostrar:
|
|
|
66
70
|
/flow-build fase 6 - Testing Strategy (tipos de tests, coverage, CI)
|
|
67
71
|
/flow-build fase 7 - Performance & Deployment (optimización, deployment)
|
|
68
72
|
/flow-build fase 8 - Project Setup & Final Documentation (inicializar proyecto)
|
|
69
|
-
---
|
|
73
|
+
---
|
|
70
74
|
💡 Tip: Usa /flow-build sin argumentos para ejecutar todas las fases en orden.
|
|
71
75
|
```
|
|
72
|
-
---
|
|
76
|
+
---
|
|
73
77
|
## Important Instructions
|
|
74
78
|
|
|
75
79
|
1. **Ask for Project Scope FIRST** - Before Phase 1, ask the user to select: MVP, Production-Ready, or Enterprise
|
|
@@ -78,15 +82,15 @@ Si el usuario especifica una fase inválida, mostrar:
|
|
|
78
82
|
4. **Ask questions ONE BY ONE** - Do not present multiple questions at once. Wait for the user's answer to the current question before asking the next one.
|
|
79
83
|
5. **Show progress indicator before EVERY question** - Use this format:
|
|
80
84
|
```
|
|
81
|
-
---
|
|
85
|
+
---
|
|
82
86
|
📋 Phase [N]: [Phase Name] | Question [X]/[Total] | Phase Progress: [%]%
|
|
83
|
-
---
|
|
87
|
+
---
|
|
84
88
|
```
|
|
85
89
|
Example for Phase 2, Question 5 of 12:
|
|
86
90
|
```
|
|
87
|
-
---
|
|
91
|
+
---
|
|
88
92
|
📋 Phase 2: Components & Framework | Question 5/12 | Phase Progress: 42%
|
|
89
|
-
---
|
|
93
|
+
---
|
|
90
94
|
```
|
|
91
95
|
6. **Provide recommendations** using these markers:
|
|
92
96
|
- ⭐ **Recommended** - Best choice for most projects
|
|
@@ -96,7 +100,7 @@ Si el usuario especifica una fase inválida, mostrar:
|
|
|
96
100
|
7. **Use multiple choice when possible** - Give 3-5 options (A, B, C, D, E)
|
|
97
101
|
8. **Validate completeness** - Ensure all critical information is gathered
|
|
98
102
|
9. **Generate documents incrementally** - After each phase, generate corresponding documents with validation
|
|
99
|
-
---
|
|
103
|
+
---
|
|
100
104
|
## 📚 How to Use This Guide
|
|
101
105
|
|
|
102
106
|
This documentation is **modularized** for better maintainability and performance. Each phase is in a separate file.
|
|
@@ -122,7 +126,7 @@ You can execute any phase independently by reading its file. For example:
|
|
|
122
126
|
```
|
|
123
127
|
Read .ai-flow/prompts/frontend/flow-build-phase-3-state.md and execute only Phase 3
|
|
124
128
|
```
|
|
125
|
-
---
|
|
129
|
+
---
|
|
126
130
|
## 🎯 Phase Overview
|
|
127
131
|
|
|
128
132
|
### Phase 0: Context Discovery (Optional)
|
|
@@ -142,7 +146,7 @@ Read .ai-flow/prompts/frontend/flow-build-phase-3-state.md and execute only Phas
|
|
|
142
146
|
**Supports:** React, Vue, Angular, Svelte, Solid + meta-frameworks (Next.js, Nuxt, SvelteKit, etc.)
|
|
143
147
|
|
|
144
148
|
**Skip if:** Starting a completely new project from scratch
|
|
145
|
-
---
|
|
149
|
+
---
|
|
146
150
|
### Phase 1: Discovery & UX Requirements
|
|
147
151
|
|
|
148
152
|
**File:** `frontend/flow-build-phase-1-discovery.md`
|
|
@@ -158,7 +162,7 @@ Read .ai-flow/prompts/frontend/flow-build-phase-3-state.md and execute only Phas
|
|
|
158
162
|
|
|
159
163
|
- `project-brief.md`
|
|
160
164
|
- Parts of `AGENT.md`
|
|
161
|
-
---
|
|
165
|
+
---
|
|
162
166
|
### Phase 2: Components & Framework
|
|
163
167
|
|
|
164
168
|
**File:** `frontend/flow-build-phase-2-components.md`
|
|
@@ -175,7 +179,7 @@ Read .ai-flow/prompts/frontend/flow-build-phase-3-state.md and execute only Phas
|
|
|
175
179
|
- `docs/components.md`
|
|
176
180
|
- `docs/architecture.md`
|
|
177
181
|
- Parts of `ai-instructions.md`
|
|
178
|
-
---
|
|
182
|
+
---
|
|
179
183
|
### Phase 3: State Management
|
|
180
184
|
|
|
181
185
|
**File:** `frontend/flow-build-phase-3-state.md`
|
|
@@ -191,7 +195,7 @@ Read .ai-flow/prompts/frontend/flow-build-phase-3-state.md and execute only Phas
|
|
|
191
195
|
|
|
192
196
|
- `docs/state-management.md`
|
|
193
197
|
- Parts of `ai-instructions.md`
|
|
194
|
-
---
|
|
198
|
+
---
|
|
195
199
|
### Phase 4: Styling & Design System
|
|
196
200
|
|
|
197
201
|
**File:** `frontend/flow-build-phase-4-styling.md`
|
|
@@ -207,7 +211,7 @@ Read .ai-flow/prompts/frontend/flow-build-phase-3-state.md and execute only Phas
|
|
|
207
211
|
|
|
208
212
|
- `docs/styling.md`
|
|
209
213
|
- Parts of `ai-instructions.md`
|
|
210
|
-
---
|
|
214
|
+
---
|
|
211
215
|
### Phase 5: Code Standards & Best Practices
|
|
212
216
|
|
|
213
217
|
**File:** `frontend/flow-build-phase-5-standards.md`
|
|
@@ -223,7 +227,7 @@ Read .ai-flow/prompts/frontend/flow-build-phase-3-state.md and execute only Phas
|
|
|
223
227
|
|
|
224
228
|
- `docs/code-standards.md`
|
|
225
229
|
- Parts of `ai-instructions.md`
|
|
226
|
-
---
|
|
230
|
+
---
|
|
227
231
|
### Phase 6: Testing Strategy
|
|
228
232
|
|
|
229
233
|
**File:** `frontend/flow-build-phase-6-testing.md`
|
|
@@ -239,7 +243,7 @@ Read .ai-flow/prompts/frontend/flow-build-phase-3-state.md and execute only Phas
|
|
|
239
243
|
|
|
240
244
|
- `docs/testing.md`
|
|
241
245
|
- Parts of `ai-instructions.md`
|
|
242
|
-
---
|
|
246
|
+
---
|
|
243
247
|
### Phase 7: Performance & Deployment
|
|
244
248
|
|
|
245
249
|
**File:** `frontend/flow-build-phase-7-deployment.md`
|
|
@@ -259,7 +263,7 @@ Read .ai-flow/prompts/frontend/flow-build-phase-3-state.md and execute only Phas
|
|
|
259
263
|
- `.env.example`
|
|
260
264
|
|
|
261
265
|
**Next:** Transitions to Phase 8 for project setup and final documentation
|
|
262
|
-
---
|
|
266
|
+
---
|
|
263
267
|
### Phase 8: Project Setup & Final Documentation
|
|
264
268
|
|
|
265
269
|
**File:** `frontend/flow-build-phase-8.md`
|
|
@@ -280,7 +284,7 @@ Read .ai-flow/prompts/frontend/flow-build-phase-3-state.md and execute only Phas
|
|
|
280
284
|
- `AGENT.md` (master index)
|
|
281
285
|
- `README.md`
|
|
282
286
|
- Tool-specific configs (`.clauderules`, `.cursorrules`, `.github/copilot-instructions.md`)
|
|
283
|
-
---
|
|
287
|
+
---
|
|
284
288
|
## 📊 Scope-Based Question Filtering
|
|
285
289
|
|
|
286
290
|
### MVP Scope (50-70 minutes)
|
|
@@ -296,7 +300,7 @@ Read .ai-flow/prompts/frontend/flow-build-phase-3-state.md and execute only Phas
|
|
|
296
300
|
- Basic testing (smoke tests only)
|
|
297
301
|
|
|
298
302
|
**Best for:** Proof of concept, prototypes, MVPs
|
|
299
|
-
---
|
|
303
|
+
---
|
|
300
304
|
### Production-Ready Scope (90-120 minutes)
|
|
301
305
|
|
|
302
306
|
**Phases included:** All (1-7)
|
|
@@ -311,7 +315,7 @@ Read .ai-flow/prompts/frontend/flow-build-phase-3-state.md and execute only Phas
|
|
|
311
315
|
- Deployment pipeline
|
|
312
316
|
|
|
313
317
|
**Best for:** Production applications, SaaS products, client projects
|
|
314
|
-
---
|
|
318
|
+
---
|
|
315
319
|
### Enterprise Scope (120-150 minutes)
|
|
316
320
|
|
|
317
321
|
**Phases included:** All (1-7) with extended questions
|
|
@@ -327,7 +331,7 @@ Read .ai-flow/prompts/frontend/flow-build-phase-3-state.md and execute only Phas
|
|
|
327
331
|
- Advanced monitoring and observability
|
|
328
332
|
|
|
329
333
|
**Best for:** Large-scale applications, enterprise platforms, mission-critical systems
|
|
330
|
-
---
|
|
334
|
+
---
|
|
331
335
|
## 🎯 Execution Workflow
|
|
332
336
|
|
|
333
337
|
### Step 1: Scope Selection
|
|
@@ -335,9 +339,9 @@ Read .ai-flow/prompts/frontend/flow-build-phase-3-state.md and execute only Phas
|
|
|
335
339
|
**Before Phase 1**, ask:
|
|
336
340
|
|
|
337
341
|
```
|
|
338
|
-
---
|
|
342
|
+
---
|
|
339
343
|
🎯 Project Scope Selection
|
|
340
|
-
---
|
|
344
|
+
---
|
|
341
345
|
## 📋 Scope Selection
|
|
342
346
|
|
|
343
347
|
Before starting Phase 1, you'll select a scope level:
|
|
@@ -396,7 +400,7 @@ Before finalizing, validate:
|
|
|
396
400
|
3. ✅ No contradictions between documents
|
|
397
401
|
4. ✅ Framework-specific examples match selected framework
|
|
398
402
|
5. ✅ Cross-references between documents are correct
|
|
399
|
-
---
|
|
403
|
+
---
|
|
400
404
|
## 🔄 Iterative Updates
|
|
401
405
|
|
|
402
406
|
Users can re-run individual phases to update documentation:
|
|
@@ -406,7 +410,7 @@ Users can re-run individual phases to update documentation:
|
|
|
406
410
|
→ Re-execute Phase 3 only
|
|
407
411
|
→ Regenerate docs/state-management.md and parts of ai-instructions.md
|
|
408
412
|
```
|
|
409
|
-
---
|
|
413
|
+
---
|
|
410
414
|
## 🎨 Framework-Specific Adaptations
|
|
411
415
|
|
|
412
416
|
The questionnaire adapts based on the UI framework selected in Phase 2:
|
|
@@ -445,7 +449,7 @@ The questionnaire adapts based on the UI framework selected in Phase 2:
|
|
|
445
449
|
- Forms: Modular Forms
|
|
446
450
|
- Styling: Tailwind, Solid Styled
|
|
447
451
|
- Testing: Solid Testing Library
|
|
448
|
-
---
|
|
452
|
+
---
|
|
449
453
|
## 🚀 Getting Started
|
|
450
454
|
|
|
451
455
|
To begin the complete frontend build process:
|
|
@@ -467,7 +471,7 @@ Or if you have existing code, start with Phase 0 for automatic detection:
|
|
|
467
471
|
```
|
|
468
472
|
.ai-flow/prompts/frontend/flow-build-phase-0-context.md
|
|
469
473
|
```
|
|
470
|
-
---
|
|
474
|
+
---
|
|
471
475
|
**Last Updated:** 2025-01-XX
|
|
472
476
|
|
|
473
477
|
**Version:** 1.2.0 (Frontend MVP)
|