ai-flow-dev 2.1.8 → 2.1.9
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 +8 -7
- package/dist/cli.js +9 -8
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
- package/prompts/backend/flow-build-phase-0.md +57 -39
- package/prompts/backend/flow-build-phase-1.md +24 -2
- package/prompts/backend/flow-build-phase-10.md +25 -9
- package/prompts/backend/flow-build-phase-2.md +20 -2
- package/prompts/backend/flow-build-phase-3.md +19 -0
- package/prompts/backend/flow-build-phase-4.md +26 -3
- package/prompts/backend/flow-build-phase-5.md +20 -1
- package/prompts/backend/flow-build-phase-6.md +22 -2
- package/prompts/backend/flow-build-phase-7.md +24 -263
- package/prompts/backend/flow-build-phase-8.md +106 -47
- package/prompts/backend/flow-build-phase-9.md +61 -12
- package/prompts/backend/flow-build.md +34 -7
- package/templates/AGENT.template.md +1 -1
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
## PHASE 8: Project Setup & Final Documentation (10-15 min)
|
|
2
2
|
|
|
3
|
-
**
|
|
3
|
+
> **Order for this phase:** MUST be executed after Phase 7.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
> **📌 Scope-based behavior:**
|
|
6
|
+
> - **All Scopes:** Detect project state, initialize optional framework, and generate final documentation.
|
|
6
7
|
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
### Objective
|
|
9
|
+
Initialize the project structure (if starting from scratch) and consolidate all collected information into comprehensive documentation (README, API specs, contributing guides).
|
|
9
10
|
## 📋 Phase 8 Overview
|
|
10
11
|
|
|
11
12
|
This final phase will:
|
|
@@ -16,7 +17,7 @@ This final phase will:
|
|
|
16
17
|
4. **Generate master index** (AGENT.md)
|
|
17
18
|
5. **Generate README.md** (with intelligent merge if needed)
|
|
18
19
|
6. **Create tool-specific configs** (based on AI tool selection)
|
|
19
|
-
---
|
|
20
|
+
---
|
|
20
21
|
## 8.1: Project State Detection
|
|
21
22
|
|
|
22
23
|
> ⚠️ **PRE-REQUISITE CHECK:** Before proceeding, verify that README.md does NOT exist yet (unless it's a framework-generated one from previous initialization). If README.md exists and was NOT generated by a framework, this indicates an error in previous phases.
|
|
@@ -25,18 +26,26 @@ This final phase will:
|
|
|
25
26
|
🔍 Detecting current project state...
|
|
26
27
|
```
|
|
27
28
|
|
|
28
|
-
|
|
29
|
+
**⚠️ CRITICAL: Ignore AI Flow documentation files during detection:**
|
|
30
|
+
- Files: `project-brief.md`, `ai-instructions.md`, `.env.example`
|
|
31
|
+
- Directories: `.ai-flow/`, `docs/`, `specs/`
|
|
29
32
|
|
|
30
|
-
-
|
|
31
|
-
- [ ] Check for framework files (`nest-cli.json`, `manage.py`, `go.mod`, etc.)
|
|
32
|
-
- [ ] Check for package managers (`package.json`, `requirements.txt`, `go.mod`, etc.)
|
|
33
|
-
- [ ] Check for existing README.md (framework-generated or custom)
|
|
33
|
+
**Auto-detect Checklist:**
|
|
34
34
|
|
|
35
|
-
**
|
|
35
|
+
- [ ] **Functional Source Code:** Check for business logic files (`.ts`, `.py`, `.go`, `.js`, etc.) in `src/`, `app/`, `internal/` or root.
|
|
36
|
+
- [ ] **Framework Configuration:** Check for `nest-cli.json`, `manage.py`, `go.mod`, `pom.xml`, `package.json`, etc.
|
|
37
|
+
- [ ] **Package Manager Lockfiles:** Check for `package-lock.json`, `pnpm-lock.yaml`, `poetry.lock`, etc.
|
|
38
|
+
- [ ] **Existing README.md:** Is there a README.md that was NOT created by AI Flow?
|
|
36
39
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
+
**Classification Rules (Strict Order):**
|
|
41
|
+
|
|
42
|
+
1. **New Project** (Offer Initialization):
|
|
43
|
+
- root contains ONLY AI Flow docs and/or hidden folders like `.git`, `.github`, `.vscode`.
|
|
44
|
+
- NO `package.json`, NO `src/`, NO functional code files.
|
|
45
|
+
2. **Initialized Framework** (Skip Initialization):
|
|
46
|
+
- Root contains framework configs (`package.json`, `go.mod`, etc.) but `src/` is empty or only contains framework boilerplate.
|
|
47
|
+
3. **Existing Project** (Skip Initialization):
|
|
48
|
+
- Substantial functional source code already exists in the project.
|
|
40
49
|
|
|
41
50
|
**Present Detection Results:**
|
|
42
51
|
|
|
@@ -46,14 +55,14 @@ This final phase will:
|
|
|
46
55
|
Type: [New Project | Initialized Framework | Existing Project]
|
|
47
56
|
|
|
48
57
|
Found:
|
|
49
|
-
-
|
|
58
|
+
- Functional code: [list non-AI Flow source files or none]
|
|
50
59
|
- Framework files: [list or none]
|
|
51
60
|
- Package manager: [npm/pip/go/etc. or none]
|
|
52
61
|
- README.md: [exists: yes/no]
|
|
53
62
|
|
|
54
63
|
Recommendation: [Next action based on state]
|
|
55
64
|
```
|
|
56
|
-
---
|
|
65
|
+
---
|
|
57
66
|
## 8.2: Framework Initialization (Optional)
|
|
58
67
|
|
|
59
68
|
**Only if:** Project state = "New Project"
|
|
@@ -465,7 +474,7 @@ Next steps:
|
|
|
465
474
|
- ✅ **ONLY** create .env.example, .gitignore, docker-compose (optional), ORM init
|
|
466
475
|
- ✅ **LET** framework CLI handle structure, configs, dependencies
|
|
467
476
|
- ✅ **REFER** to official docs for starter code when needed
|
|
468
|
-
---
|
|
477
|
+
---
|
|
469
478
|
## 8.2.7: Generate .gitignore (Always)
|
|
470
479
|
|
|
471
480
|
**IMPORTANT:** This step runs for ALL projects, regardless of framework initialization choice.
|
|
@@ -619,7 +628,7 @@ docker-compose.override.yml
|
|
|
619
628
|
✅ Generated: .gitignore
|
|
620
629
|
Patterns included: [Node.js | Python | Go] + [Prisma] + [Docker]
|
|
621
630
|
```
|
|
622
|
-
---
|
|
631
|
+
---
|
|
623
632
|
## 8.3: Generate Final Documentation
|
|
624
633
|
|
|
625
634
|
```
|
|
@@ -686,7 +695,7 @@ Generating...
|
|
|
686
695
|
```
|
|
687
696
|
✅ Generated: docs/business-flows.md
|
|
688
697
|
```
|
|
689
|
-
---
|
|
698
|
+
---
|
|
690
699
|
### 8.3.2: Generate docs/api.md
|
|
691
700
|
|
|
692
701
|
- **Template:** `.ai-flow/templates/docs/api.template.md`
|
|
@@ -768,7 +777,7 @@ We use [workflow from Phase 5]
|
|
|
768
777
|
```
|
|
769
778
|
✅ Generated: docs/contributing.md
|
|
770
779
|
```
|
|
771
|
-
---
|
|
780
|
+
---
|
|
772
781
|
## 8.4: Generate AGENT.md (Master Index)
|
|
773
782
|
|
|
774
783
|
- **Template:** `.ai-flow/templates/AGENT.template.md`
|
|
@@ -829,7 +838,7 @@ We use [workflow from Phase 5]
|
|
|
829
838
|
|
|
830
839
|
[From operations.md and contributing.md]
|
|
831
840
|
```
|
|
832
|
-
---
|
|
841
|
+
---
|
|
833
842
|
## 8.5: Generate README.md (Intelligent Merge)
|
|
834
843
|
|
|
835
844
|
- **Template:** `.ai-flow/templates/README.template.md`
|
|
@@ -916,13 +925,13 @@ The API will be available at `http://localhost:3000`
|
|
|
916
925
|
|
|
917
926
|
````
|
|
918
927
|
|
|
919
|
-
**📝 Action:** Write the complete file to
|
|
928
|
+
**📝 Action:** Write the complete file to `README.md` (project root)
|
|
920
929
|
|
|
921
930
|
```
|
|
922
|
-
✅ Generated:
|
|
931
|
+
✅ Generated: README.md
|
|
923
932
|
[If merged] Merged with framework's setup instructions
|
|
924
933
|
```
|
|
925
|
-
---
|
|
934
|
+
---
|
|
926
935
|
## 8.6: Generate AGENT.md (Master Index)
|
|
927
936
|
|
|
928
937
|
**CRITICAL:** Before generating AGENT.md, re-read ALL previously generated documents to have complete context.
|
|
@@ -955,7 +964,7 @@ Now generate AGENT.md with complete information from all documents.
|
|
|
955
964
|
```
|
|
956
965
|
✅ Generated: .ai-flow/AGENT.md (Master Index)
|
|
957
966
|
```
|
|
958
|
-
---
|
|
967
|
+
---
|
|
959
968
|
## 8.7: Create Tool-Specific Configs
|
|
960
969
|
|
|
961
970
|
**Based on AI tool selection from Phase 3 (question 3.8):**
|
|
@@ -1062,18 +1071,55 @@ Master index: `.ai-flow/AGENT.md`
|
|
|
1062
1071
|
[Extract from code-standards.md]
|
|
1063
1072
|
```
|
|
1064
1073
|
|
|
1074
|
+
### If Antigravity selected:
|
|
1075
|
+
|
|
1076
|
+
**Create `.antigravityrules`:**
|
|
1077
|
+
|
|
1078
|
+
```markdown
|
|
1079
|
+
# Antigravity AI Configuration
|
|
1080
|
+
|
|
1081
|
+
Project uses AI Flow documentation in `.ai-flow/` directory.
|
|
1082
|
+
|
|
1083
|
+
## Documentation Index
|
|
1084
|
+
|
|
1085
|
+
See `.ai-flow/AGENT.md` for complete document list.
|
|
1086
|
+
|
|
1087
|
+
## Quick Reference
|
|
1088
|
+
|
|
1089
|
+
- Tech Stack: [from Phase 3]
|
|
1090
|
+
- Architecture: `docs/architecture.md`
|
|
1091
|
+
- Code Standards: `docs/code-standards.md`
|
|
1092
|
+
- API Conventions: `docs/api.md`
|
|
1093
|
+
|
|
1094
|
+
## Workflow Commands
|
|
1095
|
+
|
|
1096
|
+
- `/flow-build` - Generate documentation
|
|
1097
|
+
- `/flow-dev-feature` - Create new features
|
|
1098
|
+
- `/flow-dev-fix` - Fix bugs
|
|
1099
|
+
- `/flow-dev-commit` - Automate commits
|
|
1100
|
+
|
|
1101
|
+
## Code Generation Rules
|
|
1102
|
+
|
|
1103
|
+
[Extract key rules from ai-instructions.md]
|
|
1104
|
+
|
|
1105
|
+
## Testing Requirements
|
|
1106
|
+
|
|
1107
|
+
[Extract from docs/testing.md]
|
|
1108
|
+
```
|
|
1109
|
+
|
|
1065
1110
|
**📝 Action:** Generate the tool-specific config files based on selection:
|
|
1066
1111
|
|
|
1067
1112
|
- If Claude → Write `.clauderules`
|
|
1068
1113
|
- If Cursor → Write `.cursorrules`
|
|
1069
1114
|
- If Copilot → Write `.github/copilot-instructions.md`
|
|
1070
|
-
- If
|
|
1115
|
+
- If Antigravity → Write `.antigravityrules`
|
|
1116
|
+
- If "All" → Write all four files
|
|
1071
1117
|
|
|
1072
1118
|
```
|
|
1073
1119
|
✅ Generated tool-specific configs:
|
|
1074
1120
|
[List generated files based on selection]
|
|
1075
1121
|
```
|
|
1076
|
-
---
|
|
1122
|
+
---
|
|
1077
1123
|
## 8.8: Final Validation & Success Message
|
|
1078
1124
|
|
|
1079
1125
|
```
|
|
@@ -1133,8 +1179,8 @@ Phase 8:
|
|
|
1133
1179
|
✅ README.md merged with framework's setup instructions
|
|
1134
1180
|
|
|
1135
1181
|
Tool-specific configs:
|
|
1136
|
-
✅ [List generated configs: .clauderules, .cursorrules, .github/copilot-instructions.md]
|
|
1137
|
-
---
|
|
1182
|
+
✅ [List generated configs: .clauderules, .cursorrules, .github/copilot-instructions.md, .antigravityrules]
|
|
1183
|
+
---
|
|
1138
1184
|
📁 Project Structure:
|
|
1139
1185
|
```
|
|
1140
1186
|
|
|
@@ -1163,7 +1209,7 @@ your-project/
|
|
|
1163
1209
|
└── [tool configs] # .clauderules, .cursorrules, etc.
|
|
1164
1210
|
|
|
1165
1211
|
````
|
|
1166
|
-
---
|
|
1212
|
+
---
|
|
1167
1213
|
Next steps:
|
|
1168
1214
|
|
|
1169
1215
|
1. ⭐ **Read `.ai-flow/AGENT.md`** - Master index of all documentation
|
|
@@ -1175,7 +1221,7 @@ Next steps:
|
|
|
1175
1221
|
5. 🚀 **Install dependencies** - Run: `[show command from Phase 7]`
|
|
1176
1222
|
6. 💾 **Initialize git** (if not done) - `git init && git add . && git commit -m "Initial commit with AI Flow docs"`
|
|
1177
1223
|
7. 🧪 **Start building!** - Your AI assistant now has complete project context
|
|
1178
|
-
---
|
|
1224
|
+
---
|
|
1179
1225
|
💡 **Remember:**
|
|
1180
1226
|
|
|
1181
1227
|
- Documents are **living artifacts** - update them as project evolves
|
|
@@ -1183,7 +1229,7 @@ Next steps:
|
|
|
1183
1229
|
- AGENT.md is the **single source of truth** for AI context
|
|
1184
1230
|
|
|
1185
1231
|
🤖 **AI Assistant Usage:**
|
|
1186
|
-
Your AI assistant (Claude, Cursor, Copilot) will now:
|
|
1232
|
+
Your AI assistant (Claude, Cursor, Copilot, Antigravity) will now:
|
|
1187
1233
|
|
|
1188
1234
|
- ✅ Understand complete project context
|
|
1189
1235
|
- ✅ Follow your architecture patterns
|
|
@@ -1195,7 +1241,7 @@ Your AI assistant (Claude, Cursor, Copilot) will now:
|
|
|
1195
1241
|
Happy building! 🎉
|
|
1196
1242
|
|
|
1197
1243
|
```
|
|
1198
|
-
---
|
|
1244
|
+
---
|
|
1199
1245
|
## EXECUTION CHECKLIST FOR AI ASSISTANT
|
|
1200
1246
|
|
|
1201
1247
|
When executing Phase 8:
|
|
@@ -1248,7 +1294,8 @@ When executing Phase 8:
|
|
|
1248
1294
|
- [ ] Create .clauderules (if Claude)
|
|
1249
1295
|
- [ ] Create .cursorrules (if Cursor)
|
|
1250
1296
|
- [ ] Create .github/copilot-instructions.md (if Copilot)
|
|
1251
|
-
- [ ] Create
|
|
1297
|
+
- [ ] Create .antigravityrules (if Antigravity)
|
|
1298
|
+
- [ ] Create all four (if "All")
|
|
1252
1299
|
|
|
1253
1300
|
**8.7 Final Validation:**
|
|
1254
1301
|
|
|
@@ -1278,20 +1325,20 @@ When executing Phase 8:
|
|
|
1278
1325
|
- 8.6: Tool configs - 1 min
|
|
1279
1326
|
- 8.7: Validation - 1 min
|
|
1280
1327
|
- **Total: 10-15 minutes**
|
|
1281
|
-
---
|
|
1328
|
+
---
|
|
1282
1329
|
**FINAL STEP: Offer Phase 9 (Implementation Roadmap)**
|
|
1283
1330
|
|
|
1284
1331
|
```
|
|
1285
|
-
---
|
|
1332
|
+
---
|
|
1286
1333
|
✅ PHASE 8 COMPLETE: PROJECT READY FOR DEVELOPMENT
|
|
1287
|
-
---
|
|
1334
|
+
---
|
|
1288
1335
|
🎯 All documentation generated and validated!
|
|
1289
1336
|
📁 Project initialized and ready
|
|
1290
1337
|
📖 AGENT.md and README.md created
|
|
1291
1338
|
⚙️ AI tool configurations in place
|
|
1292
|
-
---
|
|
1339
|
+
---
|
|
1293
1340
|
🗺️ Optional: Generate Implementation Roadmap?
|
|
1294
|
-
---
|
|
1341
|
+
---
|
|
1295
1342
|
Phase 9 will analyze all your documentation and generate a complete
|
|
1296
1343
|
implementation roadmap with:
|
|
1297
1344
|
|
|
@@ -1324,9 +1371,9 @@ Your choice (A/B): \_\_
|
|
|
1324
1371
|
**If choice B:** Show completion message:
|
|
1325
1372
|
|
|
1326
1373
|
```
|
|
1327
|
-
---
|
|
1374
|
+
---
|
|
1328
1375
|
✅ DOCUMENTATION COMPLETE - READY TO BUILD
|
|
1329
|
-
---
|
|
1376
|
+
---
|
|
1330
1377
|
Your project is fully documented and initialized! 🎉
|
|
1331
1378
|
|
|
1332
1379
|
📖 Next steps:
|
|
@@ -1336,14 +1383,26 @@ Your project is fully documented and initialized! 🎉
|
|
|
1336
1383
|
3. Generate roadmap anytime by asking "Continue to Phase 9"
|
|
1337
1384
|
|
|
1338
1385
|
Happy coding! 🚀
|
|
1339
|
-
---
|
|
1386
|
+
---
|
|
1340
1387
|
```
|
|
1341
|
-
---
|
|
1342
|
-
**CONTINUE TO:** Phase 9 (optional) or End
|
|
1388
|
+
---
|
|
1343
1389
|
|
|
1344
|
-
|
|
1345
|
-
|
|
1390
|
+
## 📝 Generated Documents
|
|
1391
|
+
|
|
1392
|
+
After Phase 8, generate/update:
|
|
1393
|
+
|
|
1394
|
+
- `README.md` - Main project documentation
|
|
1395
|
+
- `docs/api.md` - API reference
|
|
1396
|
+
- `docs/contributing.md` - Contribution guidelines
|
|
1397
|
+
- `docs/business-flows.md` - Visualized business logic
|
|
1398
|
+
|
|
1399
|
+
---
|
|
1346
1400
|
|
|
1401
|
+
**Next Phase:** Phase 9 - Project Roadmap (Post-Documentation)
|
|
1347
1402
|
|
|
1403
|
+
Read: `.ai-flow/prompts/backend/flow-build-phase-9.md`
|
|
1348
1404
|
|
|
1405
|
+
---
|
|
1349
1406
|
|
|
1407
|
+
**Last Updated:** 2025-12-20
|
|
1408
|
+
**Version:** 2.1.8
|
|
@@ -1,17 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
## PHASE 9: Implementation Roadmap (5-10 min)
|
|
2
2
|
|
|
3
|
-
**
|
|
3
|
+
> **Order for this phase:** OPTIONAL. Executed after Phase 8 or on demand.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
> **📌 Scope-based behavior:**
|
|
6
|
+
> - **All Scopes:** Generate a complete Implementation Roadmap with atomic tasks.
|
|
6
7
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
- Phase 8 completed (all documentation generated)
|
|
10
|
-
- Files exist: `docs/data-model.md`, `docs/api.md`, `docs/architecture.md`, `specs/security.md`
|
|
11
|
-
|
|
12
|
-
## Duration: 60-90 minutes
|
|
13
|
-
|
|
14
|
-
---
|
|
8
|
+
### Objective
|
|
9
|
+
Translate all architectural and business specifications into a prioritized, actionable implementation plan (Roadmap) with clear milestones and tasks.
|
|
15
10
|
|
|
16
11
|
## Context Variables (Extract from docs)
|
|
17
12
|
|
|
@@ -409,5 +404,59 @@ PHASE 9 COMPLETE
|
|
|
409
404
|
├── Coverage: 100% (all components have [E][R][S][C][T][D])
|
|
410
405
|
└── Ready for: /flow-dev-feature
|
|
411
406
|
|
|
412
|
-
Next: Open docs/roadmap.md and start with EP-000
|
|
407
|
+
Next: Open docs/roadmap.md and start with EP-000, or continue to Phase 10 for detailed User Stories.
|
|
408
|
+
|
|
409
|
+
**OFFER PHASE 10:**
|
|
410
|
+
|
|
411
|
+
```
|
|
412
|
+
---
|
|
413
|
+
✅ PHASE 9 COMPLETE: IMPLEMENTATION ROADMAP GENERATED
|
|
414
|
+
---
|
|
415
|
+
🎯 Roadmap created in docs/roadmap.md
|
|
416
|
+
📊 Total Story Points: {{SP}}
|
|
417
|
+
🏗️ Epics defined: {{EPICS_COUNT}}
|
|
418
|
+
---
|
|
419
|
+
🚀 Optional: Generate Detailed User Stories?
|
|
420
|
+
---
|
|
421
|
+
Phase 10 will convert your roadmap features into detailed User Stories with:
|
|
422
|
+
|
|
423
|
+
✅ Gherkin-style Acceptance Criteria (Given/When/Then)
|
|
424
|
+
✅ Functional, Error, Edge, and Security scenarios
|
|
425
|
+
✅ Technical details inherited from patterns
|
|
426
|
+
✅ Ready-to-use QA Test Cases with data
|
|
427
|
+
✅ Definition of Done (DoD) checklist
|
|
428
|
+
|
|
429
|
+
⏱️ Estimated time: 30-60 minutes
|
|
430
|
+
|
|
431
|
+
Would you like to continue to Phase 10?
|
|
432
|
+
|
|
433
|
+
A) ✅ Yes, generate User Stories now (recommended)
|
|
434
|
+
→ Best for Sprint planning and QA alignment
|
|
435
|
+
→ Will generate {{FEATURES_COUNT}} User Stories
|
|
436
|
+
|
|
437
|
+
B) ⏭️ Skip for now (you can run Phase 10 later)
|
|
438
|
+
→ You can start coding directly from roadmap
|
|
439
|
+
→ Run Phase 10 anytime: /flow-build fase 10
|
|
440
|
+
|
|
441
|
+
Your choice (A/B): __
|
|
413
442
|
```
|
|
443
|
+
|
|
444
|
+
---
|
|
445
|
+
|
|
446
|
+
## 📝 Generated Documents
|
|
447
|
+
|
|
448
|
+
After Phase 9, generate/update:
|
|
449
|
+
|
|
450
|
+
- `docs/roadmap.md` - Technical implementation plan
|
|
451
|
+
|
|
452
|
+
---
|
|
453
|
+
|
|
454
|
+
**Next Phase:** Phase 10 - Agile Planning (User Stories)
|
|
455
|
+
|
|
456
|
+
Read: `.ai-flow/prompts/backend/flow-build-phase-10.md`
|
|
457
|
+
|
|
458
|
+
---
|
|
459
|
+
|
|
460
|
+
**Last Updated:** 2025-12-20
|
|
461
|
+
**Version:** 2.1.8
|
|
462
|
+
|
|
@@ -16,14 +16,14 @@ Your mission is to guide the user through creating **comprehensive, production-r
|
|
|
16
16
|
|
|
17
17
|
Buscar en el mensaje del usuario patrones como:
|
|
18
18
|
|
|
19
|
-
- "fase 0", "fase 1", "fase 2", ..., "fase
|
|
19
|
+
- "fase 0", "fase 1", "fase 2", ..., "fase 10"
|
|
20
20
|
- "phase 0", "phase 1", etc.
|
|
21
21
|
- "ejecutar fase N"
|
|
22
22
|
- "run phase N"
|
|
23
23
|
|
|
24
24
|
### Comportamiento
|
|
25
25
|
|
|
26
|
-
**Si se detecta "fase N" (donde N = 0-
|
|
26
|
+
**Si se detecta "fase N" (donde N = 0-10):**
|
|
27
27
|
|
|
28
28
|
1. **Validar que la fase existe para backend:**
|
|
29
29
|
- Fase 0: Context Discovery (opcional, solo proyectos existentes)
|
|
@@ -36,6 +36,7 @@ Buscar en el mensaje del usuario patrones como:
|
|
|
36
36
|
- Fase 7: Operations & Deployment
|
|
37
37
|
- Fase 8: Project Setup & Final Documentation
|
|
38
38
|
- Fase 9: Implementation Roadmap (opcional)
|
|
39
|
+
- Fase 10: User Stories Generation (opcional)
|
|
39
40
|
|
|
40
41
|
2. **Si la fase es válida:**
|
|
41
42
|
- Leer el archivo: `.ai-flow/prompts/backend/flow-build-phase-N.md`
|
|
@@ -45,14 +46,14 @@ Buscar en el mensaje del usuario patrones como:
|
|
|
45
46
|
|
|
46
47
|
3. **Si la fase es inválida:**
|
|
47
48
|
- Mostrar mensaje de error amigable
|
|
48
|
-
- Listar las fases válidas (0-
|
|
49
|
+
- Listar las fases válidas (0-10) con descripción de una línea
|
|
49
50
|
|
|
50
51
|
**Si NO se detecta "fase N":**
|
|
51
52
|
|
|
52
53
|
- Ejecutar el flujo completo normal (todas las fases en orden)
|
|
53
54
|
- Comenzar con Mode Selection (Interactive vs Smart Auto-Suggest)
|
|
54
55
|
- Continuar con Scope Selection (MVP/Production-Ready/Enterprise)
|
|
55
|
-
- Ejecutar Phases 0-
|
|
56
|
+
- Ejecutar Phases 0-10 según corresponda
|
|
56
57
|
|
|
57
58
|
### Ejemplo de Lista de Fases Válidas
|
|
58
59
|
|
|
@@ -73,6 +74,7 @@ Si el usuario especifica una fase inválida, mostrar:
|
|
|
73
74
|
/flow-build fase 7 - Operations & Deployment (deployment, monitoreo, logging)
|
|
74
75
|
/flow-build fase 8 - Project Setup & Final Documentation (inicializar proyecto)
|
|
75
76
|
/flow-build fase 9 - Implementation Roadmap (plan con Story Points - opcional)
|
|
77
|
+
/flow-build fase 10 - User Stories Generation (Gherkin AC & Test Cases - opcional)
|
|
76
78
|
---
|
|
77
79
|
💡 Tip: Usa /flow-build sin argumentos para ejecutar todas las fases en orden.
|
|
78
80
|
```
|
|
@@ -368,6 +370,8 @@ Execute phases sequentially by reading each file in order:
|
|
|
368
370
|
7. **Phase 6 (Testing Strategy):** Read `.ai-flow/prompts/backend/flow-build-phase-6-testing.md`
|
|
369
371
|
8. **Phase 7 (Operations & Deployment):** Read `.ai-flow/prompts/backend/flow-build-phase-7-operations.md`
|
|
370
372
|
9. **Phase 8 (Project Setup & Final Documentation):** Read `.ai-flow/prompts/backend/flow-build-phase-8.md`
|
|
373
|
+
10. **Phase 9 (Implementation Roadmap):** Read `.ai-flow/prompts/backend/flow-build-phase-9.md`
|
|
374
|
+
11. **Phase 10 (User Stories Generation):** Read `.ai-flow/prompts/backend/flow-build-phase-10.md`
|
|
371
375
|
|
|
372
376
|
### For Individual Phases
|
|
373
377
|
|
|
@@ -565,6 +569,26 @@ Read .ai-flow/prompts/backend/flow-build-phase-4-security.md and execute only Ph
|
|
|
565
569
|
|
|
566
570
|
**Skip if:** You prefer to start coding immediately without a detailed roadmap
|
|
567
571
|
---
|
|
572
|
+
### Phase 10: User Stories Generation (Optional)
|
|
573
|
+
|
|
574
|
+
**File:** `backend/flow-build-phase-10.md`
|
|
575
|
+
**Duration:** 30-60 minutes
|
|
576
|
+
**Key Steps:**
|
|
577
|
+
|
|
578
|
+
- Load context from Phase 9 roadmap
|
|
579
|
+
- Generate detailed User Stories for selected Epics/Features
|
|
580
|
+
- Create Gherkin-style Acceptance Criteria (Given/When/Then)
|
|
581
|
+
- Inherit technical tasks from roadmap
|
|
582
|
+
- Generate QA Test Cases with specific data
|
|
583
|
+
- Update roadmap with links to User Stories
|
|
584
|
+
|
|
585
|
+
**Generates:**
|
|
586
|
+
|
|
587
|
+
- `docs/user-stories/EP-XXX/HU-XXX-YYY.md` (User Story)
|
|
588
|
+
- `docs/user-stories/EP-XXX/tests/TC-XXX-YYY.md` (Test Cases)
|
|
589
|
+
|
|
590
|
+
**Skip if:** You don't need detailed user stories or Gherkin AC for your workflow
|
|
591
|
+
---
|
|
568
592
|
## 🚀 Quick Start Guide
|
|
569
593
|
|
|
570
594
|
### For New Projects
|
|
@@ -842,7 +866,7 @@ Continue with Phase 8?
|
|
|
842
866
|
|
|
843
867
|
A) ✅ Yes, continue to Phase 8 (recommended) - 10-15 min
|
|
844
868
|
→ Initialize project + Generate final docs
|
|
845
|
-
→ Then option to continue to Phase 9 (roadmap)
|
|
869
|
+
→ Then option to continue to Phase 9 (roadmap) and Phase 10 (user stories)
|
|
846
870
|
|
|
847
871
|
B) No, I'll review documentation first
|
|
848
872
|
|
|
@@ -868,15 +892,18 @@ Your choice (A): __
|
|
|
868
892
|
3. (Optional) Continue to Phase 9: Implementation Roadmap (15-30 min)
|
|
869
893
|
→ Generates complete implementation plan with Story Points
|
|
870
894
|
→ Includes Epics, Features, Tasks, and execution order
|
|
871
|
-
4.
|
|
895
|
+
4. (Optional) Continue to Phase 10: User Stories Generation (30-60 min)
|
|
896
|
+
→ Generates Gherkin AC, technical details, and QA test cases
|
|
897
|
+
5. Start implementing: /feature <feature-name>
|
|
872
898
|
→ Implements features following your architecture
|
|
873
899
|
|
|
874
900
|
💡 Tip: All phases are independent and re-executable.
|
|
875
901
|
---
|
|
876
902
|
```
|
|
877
903
|
---
|
|
904
|
+
_Version: 4.1 (Phase 10 integrated - User Stories Generation with Gherkin AC)_
|
|
905
|
+
_Last Updated: 2025-12-20_
|
|
878
906
|
_Version: 4.0 (Phase 9 integrated - Implementation Roadmap with Story Points)_
|
|
879
|
-
_Last Updated: 2025-12-09_
|
|
880
907
|
_Version: 3.0 (Unified workflow: Phase 8 integrates project setup + final docs generation)_
|
|
881
908
|
_AI Flow - Transform your idea into production-ready code in minutes_
|
|
882
909
|
|