ai-flow-dev 1.0.3 → 1.1.1
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 +60 -35
- package/dist/cli.js +201 -232
- package/dist/cli.js.map +1 -1
- package/dist/fs-utils.js +3 -39
- package/dist/fs-utils.js.map +1 -1
- package/package.json +11 -12
- package/prompts/backend/{flow-docs-gen-phase-7.md → flow-bootstrap-phase-7.md} +41 -108
- package/prompts/backend/flow-bootstrap-phase-8.md +911 -0
- package/prompts/backend/{flow-project-roadmap.md → flow-bootstrap-phase-9.md} +255 -344
- package/prompts/backend/{flow-docs-gen.md → flow-bootstrap.md} +102 -37
- package/prompts/frontend/{flow-docs-gen-phase-0.md → flow-bootstrap-phase-0.md} +2 -1
- package/prompts/frontend/{flow-docs-gen-phase-1.md → flow-bootstrap-phase-1.md} +2 -1
- package/prompts/frontend/{flow-docs-gen-phase-3.md → flow-bootstrap-phase-3.md} +2 -1
- package/prompts/frontend/{flow-docs-gen-phase-4.md → flow-bootstrap-phase-4.md} +2 -1
- package/prompts/frontend/{flow-docs-gen-phase-5.md → flow-bootstrap-phase-5.md} +2 -1
- package/prompts/frontend/{flow-docs-gen-phase-6.md → flow-bootstrap-phase-6.md} +2 -1
- package/prompts/frontend/{flow-docs-gen-phase-7.md → flow-bootstrap-phase-7.md} +225 -200
- package/prompts/frontend/flow-bootstrap-phase-8.md +670 -0
- package/prompts/frontend/{flow-docs-gen.md → flow-bootstrap.md} +47 -20
- package/prompts/frontend/flow-docs-sync.md +2 -1
- package/prompts/mobile/{flow-docs-gen-phase-0.md → flow-bootstrap-phase-0.md} +2 -1
- package/prompts/mobile/{flow-docs-gen-phase-1.md → flow-bootstrap-phase-1.md} +2 -1
- package/prompts/mobile/{flow-docs-gen-phase-2.md → flow-bootstrap-phase-2.md} +2 -1
- package/prompts/mobile/{flow-docs-gen-phase-3.md → flow-bootstrap-phase-3.md} +2 -1
- package/prompts/mobile/{flow-docs-gen-phase-4.md → flow-bootstrap-phase-4.md} +2 -1
- package/prompts/mobile/{flow-docs-gen-phase-5.md → flow-bootstrap-phase-5.md} +2 -1
- package/prompts/mobile/{flow-docs-gen-phase-6.md → flow-bootstrap-phase-6.md} +2 -1
- package/prompts/mobile/{flow-docs-gen-phase-7.md → flow-bootstrap-phase-7.md} +174 -132
- package/prompts/mobile/flow-bootstrap-phase-8.md +676 -0
- package/prompts/mobile/{flow-docs-gen.md → flow-bootstrap.md} +47 -20
- package/prompts/mobile/flow-docs-sync.md +2 -1
- package/prompts/backend/flow-project-init.md +0 -332
- /package/prompts/backend/{flow-docs-gen-phase-0.md → flow-bootstrap-phase-0.md} +0 -0
- /package/prompts/backend/{flow-docs-gen-phase-1.md → flow-bootstrap-phase-1.md} +0 -0
- /package/prompts/backend/{flow-docs-gen-phase-2.md → flow-bootstrap-phase-2.md} +0 -0
- /package/prompts/backend/{flow-docs-gen-phase-3.md → flow-bootstrap-phase-3.md} +0 -0
- /package/prompts/backend/{flow-docs-gen-phase-4.md → flow-bootstrap-phase-4.md} +0 -0
- /package/prompts/backend/{flow-docs-gen-phase-5.md → flow-bootstrap-phase-5.md} +0 -0
- /package/prompts/backend/{flow-docs-gen-phase-6.md → flow-bootstrap-phase-6.md} +0 -0
- /package/prompts/frontend/{flow-docs-gen-phase-2.md → flow-bootstrap-phase-2.md} +0 -0
|
@@ -41,21 +41,22 @@ This documentation is **modularized** for better maintainability and performance
|
|
|
41
41
|
|
|
42
42
|
Execute phases sequentially by reading each file in order:
|
|
43
43
|
|
|
44
|
-
1. **Phase 0 (Optional - Existing Projects Only):** Read `.ai-flow/prompts/mobile/flow-
|
|
45
|
-
2. **Phase 1 (Platform & Framework Selection):** Read `.ai-flow/prompts/mobile/flow-
|
|
46
|
-
3. **Phase 2 (Navigation & Architecture):** Read `.ai-flow/prompts/mobile/flow-
|
|
47
|
-
4. **Phase 3 (State & Data Management):** Read `.ai-flow/prompts/mobile/flow-
|
|
48
|
-
5. **Phase 4 (Permissions & Native Features):** Read `.ai-flow/prompts/mobile/flow-
|
|
49
|
-
6. **Phase 5 (Code Standards):** Read `.ai-flow/prompts/mobile/flow-
|
|
50
|
-
7. **Phase 6 (Testing Strategy):** Read `.ai-flow/prompts/mobile/flow-
|
|
51
|
-
8. **Phase 7 (Store Deployment):** Read `.ai-flow/prompts/mobile/flow-
|
|
44
|
+
1. **Phase 0 (Optional - Existing Projects Only):** Read `.ai-flow/prompts/mobile/flow-bootstrap-phase-0-context.md`
|
|
45
|
+
2. **Phase 1 (Platform & Framework Selection):** Read `.ai-flow/prompts/mobile/flow-bootstrap-phase-1-platform.md`
|
|
46
|
+
3. **Phase 2 (Navigation & Architecture):** Read `.ai-flow/prompts/mobile/flow-bootstrap-phase-2-navigation.md`
|
|
47
|
+
4. **Phase 3 (State & Data Management):** Read `.ai-flow/prompts/mobile/flow-bootstrap-phase-3-state.md`
|
|
48
|
+
5. **Phase 4 (Permissions & Native Features):** Read `.ai-flow/prompts/mobile/flow-bootstrap-phase-4-permissions.md`
|
|
49
|
+
6. **Phase 5 (Code Standards):** Read `.ai-flow/prompts/mobile/flow-bootstrap-phase-5-standards.md`
|
|
50
|
+
7. **Phase 6 (Testing Strategy):** Read `.ai-flow/prompts/mobile/flow-bootstrap-phase-6-testing.md`
|
|
51
|
+
8. **Phase 7 (Store Deployment):** Read `.ai-flow/prompts/mobile/flow-bootstrap-phase-7-deployment.md`
|
|
52
|
+
9. **Phase 8 (Project Setup & Final Documentation):** Read `.ai-flow/prompts/mobile/flow-bootstrap-phase-8.md`
|
|
52
53
|
|
|
53
54
|
### For Individual Phases
|
|
54
55
|
|
|
55
56
|
You can execute any phase independently by reading its file. For example:
|
|
56
57
|
|
|
57
58
|
```
|
|
58
|
-
Read .ai-flow/prompts/mobile/flow-
|
|
59
|
+
Read .ai-flow/prompts/mobile/flow-bootstrap-phase-3-state.md and execute only Phase 3
|
|
59
60
|
```
|
|
60
61
|
|
|
61
62
|
---
|
|
@@ -64,7 +65,7 @@ Read .ai-flow/prompts/mobile/flow-docs-gen-phase-3-state.md and execute only Pha
|
|
|
64
65
|
|
|
65
66
|
### Phase 0: Context Discovery (Optional)
|
|
66
67
|
|
|
67
|
-
**File:** `mobile/flow-
|
|
68
|
+
**File:** `mobile/flow-bootstrap-phase-0-context.md`
|
|
68
69
|
**For:** Existing projects with code/documentation
|
|
69
70
|
**Duration:** 1-5 minutes (automated analysis)
|
|
70
71
|
**Output:** Pre-populated answers, project analysis
|
|
@@ -84,7 +85,7 @@ Read .ai-flow/prompts/mobile/flow-docs-gen-phase-3-state.md and execute only Pha
|
|
|
84
85
|
|
|
85
86
|
### Phase 1: Platform & Framework Selection
|
|
86
87
|
|
|
87
|
-
**File:** `mobile/flow-
|
|
88
|
+
**File:** `mobile/flow-bootstrap-phase-1-platform.md`
|
|
88
89
|
**Duration:** 20-25 minutes
|
|
89
90
|
**Key Questions:**
|
|
90
91
|
|
|
@@ -107,7 +108,7 @@ Read .ai-flow/prompts/mobile/flow-docs-gen-phase-3-state.md and execute only Pha
|
|
|
107
108
|
|
|
108
109
|
### Phase 2: Navigation & Architecture
|
|
109
110
|
|
|
110
|
-
**File:** `mobile/flow-
|
|
111
|
+
**File:** `mobile/flow-bootstrap-phase-2-navigation.md`
|
|
111
112
|
**Duration:** 15-20 minutes
|
|
112
113
|
**Key Questions:**
|
|
113
114
|
|
|
@@ -126,7 +127,7 @@ Read .ai-flow/prompts/mobile/flow-docs-gen-phase-3-state.md and execute only Pha
|
|
|
126
127
|
|
|
127
128
|
### Phase 3: State & Data Management
|
|
128
129
|
|
|
129
|
-
**File:** `mobile/flow-
|
|
130
|
+
**File:** `mobile/flow-bootstrap-phase-3-state.md`
|
|
130
131
|
**Duration:** 15-20 minutes
|
|
131
132
|
**Key Questions:**
|
|
132
133
|
|
|
@@ -145,7 +146,7 @@ Read .ai-flow/prompts/mobile/flow-docs-gen-phase-3-state.md and execute only Pha
|
|
|
145
146
|
|
|
146
147
|
### Phase 4: Permissions & Native Features
|
|
147
148
|
|
|
148
|
-
**File:** `mobile/flow-
|
|
149
|
+
**File:** `mobile/flow-bootstrap-phase-4-permissions.md`
|
|
149
150
|
**Duration:** 15-20 minutes
|
|
150
151
|
**Key Questions:**
|
|
151
152
|
|
|
@@ -164,7 +165,7 @@ Read .ai-flow/prompts/mobile/flow-docs-gen-phase-3-state.md and execute only Pha
|
|
|
164
165
|
|
|
165
166
|
### Phase 5: Code Standards & Best Practices
|
|
166
167
|
|
|
167
|
-
**File:** `mobile/flow-
|
|
168
|
+
**File:** `mobile/flow-bootstrap-phase-5-standards.md`
|
|
168
169
|
**Duration:** 15-20 minutes
|
|
169
170
|
**Key Questions:**
|
|
170
171
|
|
|
@@ -182,7 +183,7 @@ Read .ai-flow/prompts/mobile/flow-docs-gen-phase-3-state.md and execute only Pha
|
|
|
182
183
|
|
|
183
184
|
### Phase 6: Testing Strategy
|
|
184
185
|
|
|
185
|
-
**File:** `mobile/flow-
|
|
186
|
+
**File:** `mobile/flow-bootstrap-phase-6-testing.md`
|
|
186
187
|
**Duration:** 15-25 minutes
|
|
187
188
|
**Key Questions:**
|
|
188
189
|
|
|
@@ -201,7 +202,7 @@ Read .ai-flow/prompts/mobile/flow-docs-gen-phase-3-state.md and execute only Pha
|
|
|
201
202
|
|
|
202
203
|
### Phase 7: Store Deployment
|
|
203
204
|
|
|
204
|
-
**File:** `mobile/flow-
|
|
205
|
+
**File:** `mobile/flow-bootstrap-phase-7-deployment.md`
|
|
205
206
|
**Duration:** 15-20 minutes
|
|
206
207
|
**Key Questions:**
|
|
207
208
|
|
|
@@ -216,7 +217,32 @@ Read .ai-flow/prompts/mobile/flow-docs-gen-phase-3-state.md and execute only Pha
|
|
|
216
217
|
- `docs/app-store.md`
|
|
217
218
|
- `specs/build-configuration.md`
|
|
218
219
|
- `specs/deployment.md`
|
|
219
|
-
-
|
|
220
|
+
- `.env.example`
|
|
221
|
+
|
|
222
|
+
**Next:** Transitions to Phase 8 for project setup and final documentation
|
|
223
|
+
|
|
224
|
+
---
|
|
225
|
+
|
|
226
|
+
### Phase 8: Project Setup & Final Documentation
|
|
227
|
+
|
|
228
|
+
**File:** `mobile/flow-bootstrap-phase-8.md`
|
|
229
|
+
**Duration:** 10-15 minutes
|
|
230
|
+
**Key Steps:**
|
|
231
|
+
|
|
232
|
+
- Detect project state (new vs existing)
|
|
233
|
+
- Initialize framework (optional, for new projects)
|
|
234
|
+
- Generate final documentation
|
|
235
|
+
- Create master index (AGENT.md)
|
|
236
|
+
- Generate README.md with intelligent merge
|
|
237
|
+
|
|
238
|
+
**Generates:**
|
|
239
|
+
|
|
240
|
+
- `docs/platform-guides.md`
|
|
241
|
+
- `docs/navigation-guide.md`
|
|
242
|
+
- `docs/contributing.md`
|
|
243
|
+
- `AGENT.md` (master index)
|
|
244
|
+
- `README.md`
|
|
245
|
+
- Tool-specific configs (`.clauderules`, `.cursorrules`, `.github/copilot-instructions.md`)
|
|
220
246
|
|
|
221
247
|
---
|
|
222
248
|
|
|
@@ -412,13 +438,13 @@ To begin the complete mobile bootstrap process:
|
|
|
412
438
|
**Ready to start?** Proceed to Phase 1 by reading:
|
|
413
439
|
|
|
414
440
|
```
|
|
415
|
-
.ai-flow/prompts/mobile/flow-
|
|
441
|
+
.ai-flow/prompts/mobile/flow-bootstrap-phase-1-platform.md
|
|
416
442
|
```
|
|
417
443
|
|
|
418
444
|
Or if you have existing code, start with Phase 0 for automatic detection:
|
|
419
445
|
|
|
420
446
|
```
|
|
421
|
-
.ai-flow/prompts/mobile/flow-
|
|
447
|
+
.ai-flow/prompts/mobile/flow-bootstrap-phase-0-context.md
|
|
422
448
|
```
|
|
423
449
|
|
|
424
450
|
---
|
|
@@ -428,3 +454,4 @@ Or if you have existing code, start with Phase 0 for automatic detection:
|
|
|
428
454
|
**Version:** 1.4.0 (Mobile MVP)
|
|
429
455
|
|
|
430
456
|
|
|
457
|
+
|
|
@@ -34,7 +34,7 @@ First, check if `.ai-flow/analysis.json` exists:
|
|
|
34
34
|
|
|
35
35
|
1. **Perform Current Code Analysis:**
|
|
36
36
|
|
|
37
|
-
- Execute the same analysis as Phase 0 (mobile/flow-
|
|
37
|
+
- Execute the same analysis as Phase 0 (mobile/flow-bootstrap-phase-0-context.md):
|
|
38
38
|
- File structure analysis
|
|
39
39
|
- Screen and component detection
|
|
40
40
|
- Navigation pattern detection
|
|
@@ -632,3 +632,4 @@ Documentation synchronized successfully.
|
|
|
632
632
|
**BEGIN EXECUTION when user runs `/flow-docs-sync`**
|
|
633
633
|
|
|
634
634
|
|
|
635
|
+
|
|
@@ -1,332 +0,0 @@
|
|
|
1
|
-
# AI Flow - Project Initialization
|
|
2
|
-
|
|
3
|
-
**YOU ARE AN EXPERT DEVOPS ENGINEER AND PROJECT SETUP SPECIALIST.**
|
|
4
|
-
|
|
5
|
-
Your mission is to initialize the project with the appropriate framework/language tooling when the user executes `/flow-project-init`.
|
|
6
|
-
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
## Command: `/flow-project-init`
|
|
10
|
-
|
|
11
|
-
### Objective
|
|
12
|
-
|
|
13
|
-
Initialize a clean project in the **current directory** using the framework's official CLI tool based on the tech stack defined in the documentation. Do NOT create subdirectories or manual folder structures.
|
|
14
|
-
|
|
15
|
-
### Prerequisites
|
|
16
|
-
|
|
17
|
-
Before executing this command, ensure:
|
|
18
|
-
|
|
19
|
-
- ✅ `/flow-docs-gen` completed (documentation generated)
|
|
20
|
-
- ✅ `ai-instructions.md` exists with tech stack defined
|
|
21
|
-
- ✅ Current directory is empty or ready for initialization
|
|
22
|
-
|
|
23
|
-
### Duration
|
|
24
|
-
|
|
25
|
-
⏱️ **Estimated Time:** 5-10 minutes
|
|
26
|
-
|
|
27
|
-
---
|
|
28
|
-
|
|
29
|
-
## Workflow: 3 Steps
|
|
30
|
-
|
|
31
|
-
### Step 1: Read Documentation & Prepare Directory (1-2 minutes)
|
|
32
|
-
|
|
33
|
-
**Read `ai-instructions.md` to identify:**
|
|
34
|
-
|
|
35
|
-
- Programming language and version
|
|
36
|
-
- Framework and version (if any)
|
|
37
|
-
- Package manager preference
|
|
38
|
-
|
|
39
|
-
**Check for conflicting files:**
|
|
40
|
-
|
|
41
|
-
Most framework CLIs fail if they detect existing files like `README.md`, `package.json`, `.gitignore`, etc.
|
|
42
|
-
|
|
43
|
-
**Strategy: Temporary move → Initialize → Merge back**
|
|
44
|
-
|
|
45
|
-
```bash
|
|
46
|
-
# 1. Create temporary backup
|
|
47
|
-
mkdir -p .ai-flow/temp-backup
|
|
48
|
-
|
|
49
|
-
# 2. Move AI Flow documentation temporarily (NOT deletion)
|
|
50
|
-
mv README.md .ai-flow/temp-backup/ 2>/dev/null || true
|
|
51
|
-
mv package.json .ai-flow/temp-backup/ 2>/dev/null || true
|
|
52
|
-
mv tsconfig.json .ai-flow/temp-backup/ 2>/dev/null || true
|
|
53
|
-
mv .gitignore .ai-flow/temp-backup/ 2>/dev/null || true
|
|
54
|
-
|
|
55
|
-
# 3. Keep .ai-flow/ directory intact with all documentation
|
|
56
|
-
```
|
|
57
|
-
|
|
58
|
-
**Display summary:**
|
|
59
|
-
|
|
60
|
-
```
|
|
61
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
62
|
-
📊 Project Configuration
|
|
63
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
64
|
-
|
|
65
|
-
📦 Language: {{LANGUAGE}} {{VERSION}}
|
|
66
|
-
🚀 Framework: {{FRAMEWORK}} {{VERSION}}
|
|
67
|
-
📦 Package Manager: {{PACKAGE_MANAGER}}
|
|
68
|
-
|
|
69
|
-
Target Directory: {{PWD}}
|
|
70
|
-
|
|
71
|
-
⚠️ IMPORTANT:
|
|
72
|
-
• Files temporarily moved to .ai-flow/temp-backup/
|
|
73
|
-
• Will merge AI Flow docs with framework files after init
|
|
74
|
-
• .ai-flow/ directory preserved with all documentation
|
|
75
|
-
|
|
76
|
-
Continue? (Y/n)
|
|
77
|
-
```
|
|
78
|
-
|
|
79
|
-
**If framework not detected:**
|
|
80
|
-
|
|
81
|
-
Ask user to specify the framework:
|
|
82
|
-
|
|
83
|
-
```
|
|
84
|
-
⚠️ Framework not specified in ai-instructions.md
|
|
85
|
-
|
|
86
|
-
Please specify the framework to use:
|
|
87
|
-
>
|
|
88
|
-
```
|
|
89
|
-
|
|
90
|
-
---
|
|
91
|
-
|
|
92
|
-
### Step 2: Execute Initialization Command (5-10 minutes)
|
|
93
|
-
|
|
94
|
-
**Run the framework's official initialization command in the CURRENT directory:**
|
|
95
|
-
|
|
96
|
-
```
|
|
97
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
98
|
-
🏗️ Step 2/3: Initialize Project
|
|
99
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
100
|
-
```
|
|
101
|
-
|
|
102
|
-
**CRITICAL RULES:**
|
|
103
|
-
|
|
104
|
-
1. ✅ **Initialize in current directory** (use `.` when the CLI supports it)
|
|
105
|
-
2. ✅ **Use official CLI tools** (don't create manual folder structures)
|
|
106
|
-
3. ✅ **Directory must be clean** (backup existing files first if needed)
|
|
107
|
-
4. ❌ **DO NOT create subdirectories** (no `mkdir project-name`)
|
|
108
|
-
5. ❌ **DO NOT create manual file structures**
|
|
109
|
-
|
|
110
|
-
---
|
|
111
|
-
|
|
112
|
-
**Framework-Specific Commands:**
|
|
113
|
-
|
|
114
|
-
**Node.js / TypeScript:**
|
|
115
|
-
|
|
116
|
-
```bash
|
|
117
|
-
# NestJS
|
|
118
|
-
npx @nestjs/cli new . --package-manager npm --skip-git
|
|
119
|
-
|
|
120
|
-
# Express + TypeScript
|
|
121
|
-
npm init -y
|
|
122
|
-
npm install express
|
|
123
|
-
npm install -D typescript @types/express @types/node ts-node nodemon
|
|
124
|
-
npx tsc --init
|
|
125
|
-
|
|
126
|
-
# Fastify + TypeScript
|
|
127
|
-
npm init -y
|
|
128
|
-
npm install fastify
|
|
129
|
-
npm install -D typescript @types/node tsx
|
|
130
|
-
|
|
131
|
-
# Next.js (if applicable)
|
|
132
|
-
npx create-next-app@latest . --typescript --tailwind --app --import-alias "@/*"
|
|
133
|
-
```
|
|
134
|
-
|
|
135
|
-
**Python:**
|
|
136
|
-
|
|
137
|
-
```bash
|
|
138
|
-
# Django
|
|
139
|
-
python -m venv venv
|
|
140
|
-
# Windows: venv\Scripts\activate | Unix: source venv/bin/activate
|
|
141
|
-
pip install django djangorestframework
|
|
142
|
-
django-admin startproject config .
|
|
143
|
-
|
|
144
|
-
# FastAPI
|
|
145
|
-
python -m venv venv
|
|
146
|
-
# Windows: venv\Scripts\activate | Unix: source venv/bin/activate
|
|
147
|
-
pip install "fastapi[standard]" uvicorn sqlalchemy
|
|
148
|
-
|
|
149
|
-
# Flask
|
|
150
|
-
python -m venv venv
|
|
151
|
-
# Windows: venv\Scripts\activate | Unix: source venv/bin/activate
|
|
152
|
-
pip install flask flask-restful flask-sqlalchemy
|
|
153
|
-
```
|
|
154
|
-
|
|
155
|
-
**Go:**
|
|
156
|
-
|
|
157
|
-
```bash
|
|
158
|
-
# Go (any framework)
|
|
159
|
-
go mod init {{PROJECT_NAME}}
|
|
160
|
-
|
|
161
|
-
# Then install dependencies (examples):
|
|
162
|
-
# Gin: go get -u github.com/gin-gonic/gin
|
|
163
|
-
# Echo: go get github.com/labstack/echo/v4
|
|
164
|
-
# Fiber: go get github.com/gofiber/fiber/v2
|
|
165
|
-
```
|
|
166
|
-
|
|
167
|
-
**C# / .NET:**
|
|
168
|
-
|
|
169
|
-
```bash
|
|
170
|
-
# ASP.NET Core Web API
|
|
171
|
-
dotnet new webapi -n {{PROJECT_NAME}} -o .
|
|
172
|
-
dotnet add package Microsoft.EntityFrameworkCore.Design
|
|
173
|
-
dotnet add package Npgsql.EntityFrameworkCore.PostgreSQL
|
|
174
|
-
```
|
|
175
|
-
|
|
176
|
-
**Ruby:**
|
|
177
|
-
|
|
178
|
-
```bash
|
|
179
|
-
# Rails API
|
|
180
|
-
rails new . --api --database=postgresql --skip-git
|
|
181
|
-
```
|
|
182
|
-
|
|
183
|
-
**PHP:**
|
|
184
|
-
|
|
185
|
-
```bash
|
|
186
|
-
# Laravel
|
|
187
|
-
composer create-project laravel/laravel tmp-laravel
|
|
188
|
-
mv tmp-laravel/* . && mv tmp-laravel/.* . 2>/dev/null || true
|
|
189
|
-
rm -rf tmp-laravel
|
|
190
|
-
|
|
191
|
-
# Symfony
|
|
192
|
-
composer create-project symfony/skeleton tmp-symfony
|
|
193
|
-
mv tmp-symfony/* . && mv tmp-symfony/.* . 2>/dev/null || true
|
|
194
|
-
rm -rf tmp-symfony
|
|
195
|
-
```
|
|
196
|
-
|
|
197
|
-
**Java / Kotlin:**
|
|
198
|
-
|
|
199
|
-
```bash
|
|
200
|
-
# Spring Boot (Maven)
|
|
201
|
-
curl https://start.spring.io/starter.zip \
|
|
202
|
-
-d type=maven-project \
|
|
203
|
-
-d language=java \
|
|
204
|
-
-d bootVersion=3.2.0 \
|
|
205
|
-
-d dependencies=web,data-jpa \
|
|
206
|
-
-o project.zip
|
|
207
|
-
unzip -o project.zip && rm project.zip
|
|
208
|
-
|
|
209
|
-
# Spring Boot (Gradle + Kotlin)
|
|
210
|
-
curl https://start.spring.io/starter.zip \
|
|
211
|
-
-d type=gradle-project-kotlin \
|
|
212
|
-
-d language=kotlin \
|
|
213
|
-
-d bootVersion=3.2.0 \
|
|
214
|
-
-d dependencies=web,data-jpa \
|
|
215
|
-
-o project.zip
|
|
216
|
-
unzip -o project.zip && rm project.zip
|
|
217
|
-
```
|
|
218
|
-
|
|
219
|
-
---
|
|
220
|
-
|
|
221
|
-
+### Step 3: Merge AI Flow Documentation with Framework Files (2-3 minutes)
|
|
222
|
-
|
|
223
|
-
After framework initialization completes, intelligently merge the documentation:
|
|
224
|
-
|
|
225
|
-
**3.1 README Strategy:**
|
|
226
|
-
|
|
227
|
-
```bash
|
|
228
|
-
# 1. Rename framework README to preserve it
|
|
229
|
-
mv README.md docs/README.framework.md
|
|
230
|
-
|
|
231
|
-
# 2. Use AI Flow README as main (already linked to all docs)
|
|
232
|
-
# The README from ai-flow init already references:
|
|
233
|
-
# - ai-instructions.md
|
|
234
|
-
# - project-brief.md
|
|
235
|
-
# - All specs/ and docs/ files
|
|
236
|
-
# Keep it as the main README.md (it's in .ai-flow/temp-backup/)
|
|
237
|
-
|
|
238
|
-
# 3. Copy back AI Flow README
|
|
239
|
-
cp .ai-flow/temp-backup/README.md .
|
|
240
|
-
```
|
|
241
|
-
|
|
242
|
-
**3.2 Merge package.json (if applicable):**
|
|
243
|
-
|
|
244
|
-
```bash
|
|
245
|
-
# For Node.js projects only:
|
|
246
|
-
# Framework created package.json with scripts, dependencies
|
|
247
|
-
|
|
248
|
-
# Strategy: Keep framework package.json, add AI Flow metadata
|
|
249
|
-
# Read both files and merge:
|
|
250
|
-
# - Keep framework: scripts, dependencies, devDependencies
|
|
251
|
-
# - Add from AI Flow backup: name, description, keywords, author
|
|
252
|
-
```
|
|
253
|
-
|
|
254
|
-
**3.3 Merge tsconfig.json/config files:**
|
|
255
|
-
|
|
256
|
-
```bash
|
|
257
|
-
# Keep framework configuration (optimized for the framework)
|
|
258
|
-
# AI Flow backup likely didn't have project-specific config anyway
|
|
259
|
-
```
|
|
260
|
-
|
|
261
|
-
**3.4 Merge .gitignore:**
|
|
262
|
-
|
|
263
|
-
```bash
|
|
264
|
-
# Combine both .gitignore files
|
|
265
|
-
cat .gitignore .ai-flow/temp-backup/.gitignore | sort -u > .gitignore.merged
|
|
266
|
-
mv .gitignore.merged .gitignore
|
|
267
|
-
```
|
|
268
|
-
|
|
269
|
-
**3.5 Clean up temp backup:**
|
|
270
|
-
|
|
271
|
-
```bash
|
|
272
|
-
# Remove temporary backup (already merged)
|
|
273
|
-
rm -rf .ai-flow/temp-backup
|
|
274
|
-
```
|
|
275
|
-
|
|
276
|
-
**Success Output:**
|
|
277
|
-
|
|
278
|
-
```
|
|
279
|
-
✅ Project initialized successfully!
|
|
280
|
-
|
|
281
|
-
📦 Framework: {{FRAMEWORK}} {{VERSION}}
|
|
282
|
-
📂 Files created: {{FILE_COUNT}} files
|
|
283
|
-
⏱️ Time: {{DURATION}}
|
|
284
|
-
|
|
285
|
-
Generated structure:
|
|
286
|
-
{{LIST_KEY_FILES}}
|
|
287
|
-
|
|
288
|
-
📋 Documentation merged:
|
|
289
|
-
✅ README.md (AI Flow - links to all docs)
|
|
290
|
-
✅ docs/README.framework.md (Framework reference)
|
|
291
|
-
✅ package.json (Framework + AI Flow metadata)
|
|
292
|
-
✅ .gitignore (Combined rules)
|
|
293
|
-
|
|
294
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
295
|
-
|
|
296
|
-
Next steps:
|
|
297
|
-
1. Review merged files (README.md is your main entry point)
|
|
298
|
-
2. Check docs/README.framework.md for framework-specific setup
|
|
299
|
-
3. Run /flow-project-roadmap to plan implementation
|
|
300
|
-
4. Start development with /feature commands
|
|
301
|
-
```
|
|
302
|
-
|
|
303
|
-
---
|
|
304
|
-
|
|
305
|
-
## Important Notes
|
|
306
|
-
|
|
307
|
-
**What this command DOES:**
|
|
308
|
-
|
|
309
|
-
- ✅ Runs the official framework CLI (npx, django-admin, dotnet new, etc.)
|
|
310
|
-
- ✅ Creates base project files in current directory
|
|
311
|
-
- ✅ Installs initial dependencies
|
|
312
|
-
- ✅ Sets up configuration files (tsconfig.json, package.json, etc.)
|
|
313
|
-
|
|
314
|
-
**What this command DOES NOT do:**
|
|
315
|
-
|
|
316
|
-
- ❌ Create custom folder structures (use /feature for that later)
|
|
317
|
-
- ❌ Implement Clean Architecture layers manually
|
|
318
|
-
- ❌ Create domain entities or use cases
|
|
319
|
-
- ❌ Set up database schemas
|
|
320
|
-
- ❌ Configure CI/CD pipelines
|
|
321
|
-
|
|
322
|
-
**Philosophy:**
|
|
323
|
-
|
|
324
|
-
This command provides a **clean slate** from the official tooling. The architecture, domain logic, and custom structure will be built incrementally using `/feature`, `/fix`, and `/work` commands following the patterns defined in your documentation.
|
|
325
|
-
|
|
326
|
-
---
|
|
327
|
-
|
|
328
|
-
**End of /flow-project-init workflow**
|
|
329
|
-
|
|
330
|
-
**Time:** 5-10 minutes total
|
|
331
|
-
**Output:** Clean framework initialization in current directory
|
|
332
|
-
**Next:** Run `/flow-project-roadmap` to generate implementation plan
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|