ai-flow-dev 2.1.9 โ 2.2.0
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 +14 -13
- package/dist/cli.js +2 -2
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
- package/prompts/backend/flow-build-phase-0.md +68 -1810
- package/prompts/backend/flow-build-phase-10.md +1 -0
- package/prompts/backend/flow-build-phase-8.md +6 -7
- package/prompts/backend/flow-build-phase-9.md +1 -0
- package/prompts/backend/flow-build.md +59 -836
- package/prompts/frontend/flow-build-phase-0.md +46 -477
- package/prompts/frontend/flow-build-phase-10.md +33 -0
- package/prompts/frontend/flow-build-phase-8.md +27 -16
- package/prompts/frontend/flow-build-phase-9.md +80 -0
- package/prompts/frontend/flow-build.md +68 -414
- package/prompts/mobile/flow-build-phase-0.md +47 -360
- package/prompts/mobile/flow-build-phase-10.md +32 -0
- package/prompts/mobile/flow-build-phase-8.md +27 -16
- package/prompts/mobile/flow-build-phase-9.md +76 -0
- package/prompts/mobile/flow-build.md +67 -426
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
**Duration:** 10-15 minutes
|
|
6
6
|
|
|
7
7
|
**Goal:** Set up the project structure and create comprehensive documentation that consolidates all information from previous phases.
|
|
8
|
-
---
|
|
8
|
+
---
|
|
9
9
|
## ๐ Phase 8 Overview
|
|
10
10
|
|
|
11
11
|
This final phase will:
|
|
@@ -16,11 +16,16 @@ This final phase will:
|
|
|
16
16
|
4. **Generate master index** (AGENT.md)
|
|
17
17
|
5. **Generate README.md** (with intelligent merge if needed)
|
|
18
18
|
6. **Create tool-specific configs** (based on AI tool selection)
|
|
19
|
-
---
|
|
19
|
+
---
|
|
20
|
+
// turbo
|
|
20
21
|
## 8.1: Project State Detection
|
|
21
22
|
|
|
22
23
|
```
|
|
23
24
|
๐ Detecting current project state...
|
|
25
|
+
|
|
26
|
+
**โ ๏ธ CRITICAL: Ignore AI Flow documentation and Meta files during detection:**
|
|
27
|
+
- Files: project-brief.md, ai-instructions.md, AGENT.md, .env.example, .cursorrules, .clauderules, .geminirules
|
|
28
|
+
- Directories: .ai-flow/, .agent/, docs/, specs/
|
|
24
29
|
```
|
|
25
30
|
|
|
26
31
|
**Auto-detect:**
|
|
@@ -51,7 +56,7 @@ Found:
|
|
|
51
56
|
|
|
52
57
|
Recommendation: [Next action based on state]
|
|
53
58
|
```
|
|
54
|
-
---
|
|
59
|
+
---
|
|
55
60
|
## 8.2: Framework Initialization (Optional)
|
|
56
61
|
|
|
57
62
|
**Only if:** Project state = "New Project"
|
|
@@ -216,7 +221,7 @@ You can initialize manually later with:
|
|
|
216
221
|
|
|
217
222
|
Proceeding to documentation generation...
|
|
218
223
|
```
|
|
219
|
-
---
|
|
224
|
+
---
|
|
220
225
|
## 8.3: Generate Final Documentation
|
|
221
226
|
|
|
222
227
|
```
|
|
@@ -297,7 +302,7 @@ Generating...
|
|
|
297
302
|
```
|
|
298
303
|
โ
Generated: docs/contributing.md
|
|
299
304
|
```
|
|
300
|
-
---
|
|
305
|
+
---
|
|
301
306
|
## 8.3.4: Generate .gitignore
|
|
302
307
|
|
|
303
308
|
**IMPORTANT:** Generate a comprehensive `.gitignore` file based on the framework, bundler, and tools selected in previous phases.
|
|
@@ -444,7 +449,7 @@ dist/
|
|
|
444
449
|
โ
Generated: .gitignore
|
|
445
450
|
Patterns included: [Framework] + [Bundler] + Base JavaScript patterns
|
|
446
451
|
```
|
|
447
|
-
---
|
|
452
|
+
---
|
|
448
453
|
## 8.4: Generate AGENT.md (Master Index)
|
|
449
454
|
|
|
450
455
|
- **Template:** `.ai-flow/templates/AGENT.template.md`
|
|
@@ -529,7 +534,7 @@ dist/
|
|
|
529
534
|
```
|
|
530
535
|
โ
Generated: .ai-flow/AGENT.md (Master Index)
|
|
531
536
|
```
|
|
532
|
-
---
|
|
537
|
+
---
|
|
533
538
|
## 8.5: Generate README.md (Intelligent Merge)
|
|
534
539
|
|
|
535
540
|
- **Template:** `.ai-flow/templates/README.template.md`
|
|
@@ -569,7 +574,7 @@ dist/
|
|
|
569
574
|
โ
Generated: .ai-flow/README.md
|
|
570
575
|
[If merged] Merged with framework's setup instructions
|
|
571
576
|
```
|
|
572
|
-
---
|
|
577
|
+
---
|
|
573
578
|
## 8.6: Create Tool-Specific Configs
|
|
574
579
|
|
|
575
580
|
**Based on AI tool selection from Phase 3:**
|
|
@@ -682,7 +687,7 @@ Master index: `.ai-flow/AGENT.md`
|
|
|
682
687
|
โ
Generated tool-specific configs:
|
|
683
688
|
[List generated files based on selection]
|
|
684
689
|
```
|
|
685
|
-
---
|
|
690
|
+
---
|
|
686
691
|
## 8.7: Final Validation & Success Message
|
|
687
692
|
|
|
688
693
|
```
|
|
@@ -741,7 +746,7 @@ Phase 8:
|
|
|
741
746
|
|
|
742
747
|
Tool-specific configs:
|
|
743
748
|
โ
[List generated configs]
|
|
744
|
-
---
|
|
749
|
+
---
|
|
745
750
|
๐ Project Structure:
|
|
746
751
|
|
|
747
752
|
your-project/
|
|
@@ -767,7 +772,7 @@ your-project/
|
|
|
767
772
|
โโโ .env.example
|
|
768
773
|
โโโ .gitignore
|
|
769
774
|
โโโ [tool configs] # .clauderules, .cursorrules, etc.
|
|
770
|
-
---
|
|
775
|
+
---
|
|
771
776
|
Next steps:
|
|
772
777
|
|
|
773
778
|
1. โญ **Read `.ai-flow/AGENT.md`** - Master index of all documentation
|
|
@@ -779,7 +784,7 @@ Next steps:
|
|
|
779
784
|
4. ๐ **Install dependencies** - Run: `npm install` / `yarn install`
|
|
780
785
|
5. ๐พ **Initialize git** (if not done) - `git init && git add . && git commit -m "Initial commit with AI Flow docs"`
|
|
781
786
|
6. ๐งช **Start developing!** - Your AI assistant now has complete project context
|
|
782
|
-
---
|
|
787
|
+
---
|
|
783
788
|
๐ก **Remember:**
|
|
784
789
|
- Documents are **living artifacts** - update them as project evolves
|
|
785
790
|
- All AI assistants will reference these docs for future work
|
|
@@ -796,7 +801,7 @@ Your AI assistant (Claude, Cursor, Copilot) will now:
|
|
|
796
801
|
|
|
797
802
|
Happy building! ๐
|
|
798
803
|
```
|
|
799
|
-
---
|
|
804
|
+
---
|
|
800
805
|
## EXECUTION CHECKLIST FOR AI ASSISTANT
|
|
801
806
|
|
|
802
807
|
When executing Phase 8:
|
|
@@ -852,10 +857,16 @@ When executing Phase 8:
|
|
|
852
857
|
- [ ] Show success message
|
|
853
858
|
|
|
854
859
|
**ESTIMATED TIME:** 10-15 minutes
|
|
855
|
-
---
|
|
856
|
-
**
|
|
860
|
+
---
|
|
861
|
+
**Next Phase:** Phase 9 - Project Roadmap (Post-Documentation)
|
|
862
|
+
|
|
863
|
+
Read: `.ai-flow/prompts/frontend/flow-build-phase-9.md`
|
|
864
|
+
|
|
865
|
+
---
|
|
866
|
+
|
|
867
|
+
**Last Updated:** 2025-12-21
|
|
868
|
+
**Version:** 2.1.9
|
|
857
869
|
|
|
858
|
-
**SUCCESS:** Project fully documented and ready for development! ๐
|
|
859
870
|
|
|
860
871
|
|
|
861
872
|
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
## PHASE 9: Implementation Roadmap (Frontend) (5-10 min)
|
|
2
|
+
|
|
3
|
+
> **Order for this phase:** OPTIONAL. Executed after Phase 8 or on demand.
|
|
4
|
+
|
|
5
|
+
### Objective
|
|
6
|
+
Translate all UX/UI and architectural specifications into a prioritized, actionable implementation plan (Roadmap) with clear milestones and tasks focused on Frontend development.
|
|
7
|
+
|
|
8
|
+
## Context Variables (Extract from docs)
|
|
9
|
+
|
|
10
|
+
// turbo
|
|
11
|
+
**Before generating tasks, extract these from project documentation:**
|
|
12
|
+
|
|
13
|
+
```
|
|
14
|
+
From ai-instructions.md:
|
|
15
|
+
โโโ LANG: {{LANGUAGE}} # e.g., TypeScript, JavaScript
|
|
16
|
+
โโโ FRAMEWORK: {{FRAMEWORK}} # e.g., React, Next.js, Vue, Nuxt, Svelte, Angular
|
|
17
|
+
โโโ SRC: {{SOURCE_DIR}} # e.g., src/, app/, lib/
|
|
18
|
+
โโโ TESTS: {{TESTS_DIR}} # e.g., tests/, __tests__/, spec/
|
|
19
|
+
โโโ STYLE: {{STYLING_APPROACH}} # e.g., Tailwind, CSS Modules, Styled Components
|
|
20
|
+
|
|
21
|
+
From docs/architecture.md & ui-structure.md:
|
|
22
|
+
โโโ COMP_DIR: {{COMPONENTS_PATH}} # e.g., components/, src/components/
|
|
23
|
+
โโโ PAGE_DIR: {{PAGES_PATH}} # e.g., pages/, app/, src/views/
|
|
24
|
+
โโโ STORE_DIR: {{STORE_PATH}} # e.g., store/, state/, context/
|
|
25
|
+
โโโ HOOKS_DIR: {{HOOKS_PATH}} # e.g., hooks/, composables/
|
|
26
|
+
โโโ ASSETS_DIR: {{ASSETS_PATH}} # e.g., assets/, public/
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
## Task Format (MANDATORY)
|
|
32
|
+
|
|
33
|
+
```
|
|
34
|
+
- [ ] TXXX [CAT] Description โข 1 SP โ {{path}} | deps: TXXX
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
---
|
|
38
|
+
|
|
39
|
+
## Categories [CAT]
|
|
40
|
+
|
|
41
|
+
| Cat | Name | Description | SP Range |
|
|
42
|
+
|-----|------------|------------------------------------|----------|
|
|
43
|
+
| [U] | UI/Comp | Atoms, Molecules, Organisms | 1 SP |
|
|
44
|
+
| [P] | Page | Page layout, route implementation | 1-2 SP |
|
|
45
|
+
| [L] | Logic/Hook | Custom hooks, business logic | 1 SP |
|
|
46
|
+
| [S] | State | Store actions, reducers, context | 1 SP |
|
|
47
|
+
| [A] | API/Data | Fetching, services, transformers | 1-2 SP |
|
|
48
|
+
| [T] | Test | Unit, component, e2e tests | 1-2 SP |
|
|
49
|
+
| [D] | Docs | Documentation updates | 1 SP |
|
|
50
|
+
|
|
51
|
+
---
|
|
52
|
+
|
|
53
|
+
## Workflow: 6 Steps
|
|
54
|
+
|
|
55
|
+
// turbo
|
|
56
|
+
### Step 9.1: Extract Context & Inventory
|
|
57
|
+
|
|
58
|
+
**1. Extract context variables from documentation.**
|
|
59
|
+
**2. Extract inventory (Components, Pages, API endpoints).**
|
|
60
|
+
|
|
61
|
+
### Step 9.2: Coverage Matrix
|
|
62
|
+
Ensure every Page/Feature has: [U], [L], [S], [A], [T], [D] as needed.
|
|
63
|
+
|
|
64
|
+
### Step 9.3: Epic Definition
|
|
65
|
+
EP-000: Foundation (Layout, Theme, Store config)
|
|
66
|
+
EP-001: Component Library / Atoms
|
|
67
|
+
EP-002: Core Features (Login, Dashboard, etc.)
|
|
68
|
+
EP-ZZZ: Operations & PWA
|
|
69
|
+
|
|
70
|
+
### Step 9.4: Task Generation
|
|
71
|
+
Generate atomic tasks using the `{{VARIABLE}}` paths.
|
|
72
|
+
|
|
73
|
+
### Step 9.5: Validate Coverage
|
|
74
|
+
Check for gaps.
|
|
75
|
+
|
|
76
|
+
### Step 9.6: Generate Document (docs/roadmap.md)
|
|
77
|
+
|
|
78
|
+
---
|
|
79
|
+
_Version: 4.2 (Antigravity Optimized)_
|
|
80
|
+
_Last Updated: 2025-12-21_
|