ai-flow-dev 1.0.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/LICENSE +21 -0
- package/README.md +408 -0
- package/dist/cli.d.ts +3 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +791 -0
- package/dist/cli.js.map +1 -0
- package/dist/fs-utils.d.ts +2 -0
- package/dist/fs-utils.d.ts.map +1 -0
- package/dist/fs-utils.js +46 -0
- package/dist/fs-utils.js.map +1 -0
- package/package.json +71 -0
- package/prompts/backend/flow-dev-feature.md +1318 -0
- package/prompts/backend/flow-dev-fix.md +903 -0
- package/prompts/backend/flow-dev-refactor.md +715 -0
- package/prompts/backend/flow-dev-review.md +401 -0
- package/prompts/backend/flow-dev-work.md +1129 -0
- package/prompts/backend/flow-docs-gen-phase-0.md +1840 -0
- package/prompts/backend/flow-docs-gen-phase-1.md +435 -0
- package/prompts/backend/flow-docs-gen-phase-2.md +460 -0
- package/prompts/backend/flow-docs-gen-phase-3.md +684 -0
- package/prompts/backend/flow-docs-gen-phase-4.md +516 -0
- package/prompts/backend/flow-docs-gen-phase-5.md +637 -0
- package/prompts/backend/flow-docs-gen-phase-6.md +465 -0
- package/prompts/backend/flow-docs-gen-phase-7.md +1207 -0
- package/prompts/backend/flow-docs-gen.md +820 -0
- package/prompts/backend/flow-docs-sync.md +526 -0
- package/prompts/backend/flow-project-init.md +248 -0
- package/prompts/backend/flow-project-roadmap.md +1159 -0
- package/prompts/frontend/flow-docs-gen-phase-0.md +494 -0
- package/prompts/frontend/flow-docs-gen-phase-1.md +449 -0
- package/prompts/frontend/flow-docs-gen-phase-2.md +983 -0
- package/prompts/frontend/flow-docs-gen-phase-3.md +685 -0
- package/prompts/frontend/flow-docs-gen-phase-4.md +480 -0
- package/prompts/frontend/flow-docs-gen-phase-5.md +483 -0
- package/prompts/frontend/flow-docs-gen-phase-6.md +570 -0
- package/prompts/frontend/flow-docs-gen-phase-7.md +582 -0
- package/prompts/frontend/flow-docs-gen.md +413 -0
- package/prompts/frontend/flow-docs-sync.md +561 -0
- package/prompts/mobile/flow-docs-gen-phase-0.md +387 -0
- package/prompts/mobile/flow-docs-gen-phase-1.md +530 -0
- package/prompts/mobile/flow-docs-gen-phase-2.md +584 -0
- package/prompts/mobile/flow-docs-gen-phase-3.md +659 -0
- package/prompts/mobile/flow-docs-gen-phase-4.md +363 -0
- package/prompts/mobile/flow-docs-gen-phase-5.md +369 -0
- package/prompts/mobile/flow-docs-gen-phase-6.md +490 -0
- package/prompts/mobile/flow-docs-gen-phase-7.md +407 -0
- package/prompts/mobile/flow-docs-gen.md +430 -0
- package/prompts/mobile/flow-docs-sync.md +634 -0
- package/templates/backend/.clauderules.template +111 -0
- package/templates/backend/.cursorrules.template +102 -0
- package/templates/backend/.env.example.template +122 -0
- package/templates/backend/README.template.md +200 -0
- package/templates/backend/ai-instructions.template.md +354 -0
- package/templates/backend/copilot-instructions.template.md +160 -0
- package/templates/backend/docs/api.template.md +251 -0
- package/templates/backend/docs/architecture.template.md +612 -0
- package/templates/backend/docs/business-flows.template.md +109 -0
- package/templates/backend/docs/code-standards.template.md +828 -0
- package/templates/backend/docs/contributing.template.md +163 -0
- package/templates/backend/docs/data-model.template.md +416 -0
- package/templates/backend/docs/operations.template.md +591 -0
- package/templates/backend/docs/testing.template.md +762 -0
- package/templates/backend/project-brief.template.md +176 -0
- package/templates/backend/specs/configuration.template.md +133 -0
- package/templates/backend/specs/security.template.md +422 -0
- package/templates/frontend/README.template.md +121 -0
- package/templates/frontend/ai-instructions.template.md +368 -0
- package/templates/frontend/docs/api-integration.template.md +390 -0
- package/templates/frontend/docs/components.template.md +567 -0
- package/templates/frontend/docs/error-handling.template.md +385 -0
- package/templates/frontend/docs/operations.template.md +123 -0
- package/templates/frontend/docs/performance.template.md +140 -0
- package/templates/frontend/docs/pwa.template.md +135 -0
- package/templates/frontend/docs/state-management.template.md +394 -0
- package/templates/frontend/docs/styling.template.md +779 -0
- package/templates/frontend/docs/testing.template.md +736 -0
- package/templates/frontend/project-brief.template.md +55 -0
- package/templates/frontend/specs/accessibility.template.md +111 -0
- package/templates/frontend/specs/configuration.template.md +520 -0
- package/templates/frontend/specs/security.template.md +197 -0
- package/templates/fullstack/README.template.md +282 -0
- package/templates/fullstack/ai-instructions.template.md +487 -0
- package/templates/fullstack/project-brief.template.md +197 -0
- package/templates/fullstack/specs/configuration.template.md +380 -0
- package/templates/mobile/AGENT.template.md +251 -0
- package/templates/mobile/README.template.md +195 -0
- package/templates/mobile/ai-instructions.template.md +221 -0
- package/templates/mobile/docs/app-store.template.md +163 -0
- package/templates/mobile/docs/architecture.template.md +100 -0
- package/templates/mobile/docs/native-features.template.md +137 -0
- package/templates/mobile/docs/navigation.template.md +81 -0
- package/templates/mobile/docs/offline-strategy.template.md +90 -0
- package/templates/mobile/docs/permissions.template.md +70 -0
- package/templates/mobile/docs/state-management.template.md +116 -0
- package/templates/mobile/docs/testing.template.md +146 -0
- package/templates/mobile/project-brief.template.md +97 -0
- package/templates/mobile/specs/build-configuration.template.md +116 -0
- package/templates/mobile/specs/deployment.template.md +114 -0
- package/templates/shared/AGENT.template.md +252 -0
|
@@ -0,0 +1,248 @@
|
|
|
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: 2 Steps
|
|
30
|
+
|
|
31
|
+
### Step 1: Read Documentation (1 minute - automatic)
|
|
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
|
+
**Display summary:**
|
|
40
|
+
|
|
41
|
+
```
|
|
42
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
43
|
+
📊 Project Configuration
|
|
44
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
45
|
+
|
|
46
|
+
📦 Language: {{LANGUAGE}} {{VERSION}}
|
|
47
|
+
🚀 Framework: {{FRAMEWORK}} {{VERSION}}
|
|
48
|
+
📦 Package Manager: {{PACKAGE_MANAGER}}
|
|
49
|
+
|
|
50
|
+
Target Directory: {{PWD}}
|
|
51
|
+
|
|
52
|
+
⚠️ IMPORTANT: This will initialize the project in the CURRENT directory.
|
|
53
|
+
No subdirectories will be created.
|
|
54
|
+
|
|
55
|
+
Continue? (Y/n)
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
**If framework not detected:**
|
|
59
|
+
|
|
60
|
+
Ask user to specify the framework:
|
|
61
|
+
|
|
62
|
+
```
|
|
63
|
+
⚠️ Framework not specified in ai-instructions.md
|
|
64
|
+
|
|
65
|
+
Please specify the framework to use:
|
|
66
|
+
>
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
---
|
|
70
|
+
|
|
71
|
+
### Step 2: Execute Initialization Command (5-10 minutes)
|
|
72
|
+
|
|
73
|
+
**Run the framework's official initialization command in the CURRENT directory:**
|
|
74
|
+
|
|
75
|
+
```
|
|
76
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
77
|
+
🏗️ Step 2/2: Initialize Project
|
|
78
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
**CRITICAL RULES:**
|
|
82
|
+
|
|
83
|
+
1. ✅ **Initialize in current directory** (use `.` when the CLI supports it)
|
|
84
|
+
2. ✅ **Use official CLI tools** (don't create manual folder structures)
|
|
85
|
+
3. ❌ **DO NOT create subdirectories** (no `mkdir project-name`)
|
|
86
|
+
4. ❌ **DO NOT create manual file structures**
|
|
87
|
+
|
|
88
|
+
---
|
|
89
|
+
|
|
90
|
+
**Framework-Specific Commands:**
|
|
91
|
+
|
|
92
|
+
**Node.js / TypeScript:**
|
|
93
|
+
|
|
94
|
+
```bash
|
|
95
|
+
# NestJS
|
|
96
|
+
npx @nestjs/cli new . --package-manager npm --skip-git
|
|
97
|
+
|
|
98
|
+
# Express + TypeScript
|
|
99
|
+
npm init -y
|
|
100
|
+
npm install express
|
|
101
|
+
npm install -D typescript @types/express @types/node ts-node nodemon
|
|
102
|
+
npx tsc --init
|
|
103
|
+
|
|
104
|
+
# Fastify + TypeScript
|
|
105
|
+
npm init -y
|
|
106
|
+
npm install fastify
|
|
107
|
+
npm install -D typescript @types/node tsx
|
|
108
|
+
|
|
109
|
+
# Next.js (if applicable)
|
|
110
|
+
npx create-next-app@latest . --typescript --tailwind --app --import-alias "@/*"
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
**Python:**
|
|
114
|
+
|
|
115
|
+
```bash
|
|
116
|
+
# Django
|
|
117
|
+
python -m venv venv
|
|
118
|
+
# Windows: venv\Scripts\activate | Unix: source venv/bin/activate
|
|
119
|
+
pip install django djangorestframework
|
|
120
|
+
django-admin startproject config .
|
|
121
|
+
|
|
122
|
+
# FastAPI
|
|
123
|
+
python -m venv venv
|
|
124
|
+
# Windows: venv\Scripts\activate | Unix: source venv/bin/activate
|
|
125
|
+
pip install "fastapi[standard]" uvicorn sqlalchemy
|
|
126
|
+
|
|
127
|
+
# Flask
|
|
128
|
+
python -m venv venv
|
|
129
|
+
# Windows: venv\Scripts\activate | Unix: source venv/bin/activate
|
|
130
|
+
pip install flask flask-restful flask-sqlalchemy
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
**Go:**
|
|
134
|
+
|
|
135
|
+
```bash
|
|
136
|
+
# Go (any framework)
|
|
137
|
+
go mod init {{PROJECT_NAME}}
|
|
138
|
+
|
|
139
|
+
# Then install dependencies (examples):
|
|
140
|
+
# Gin: go get -u github.com/gin-gonic/gin
|
|
141
|
+
# Echo: go get github.com/labstack/echo/v4
|
|
142
|
+
# Fiber: go get github.com/gofiber/fiber/v2
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
**C# / .NET:**
|
|
146
|
+
|
|
147
|
+
```bash
|
|
148
|
+
# ASP.NET Core Web API
|
|
149
|
+
dotnet new webapi -n {{PROJECT_NAME}} -o .
|
|
150
|
+
dotnet add package Microsoft.EntityFrameworkCore.Design
|
|
151
|
+
dotnet add package Npgsql.EntityFrameworkCore.PostgreSQL
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
**Ruby:**
|
|
155
|
+
|
|
156
|
+
```bash
|
|
157
|
+
# Rails API
|
|
158
|
+
rails new . --api --database=postgresql --skip-git
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
**PHP:**
|
|
162
|
+
|
|
163
|
+
```bash
|
|
164
|
+
# Laravel
|
|
165
|
+
composer create-project laravel/laravel tmp-laravel
|
|
166
|
+
mv tmp-laravel/* . && mv tmp-laravel/.* . 2>/dev/null || true
|
|
167
|
+
rm -rf tmp-laravel
|
|
168
|
+
|
|
169
|
+
# Symfony
|
|
170
|
+
composer create-project symfony/skeleton tmp-symfony
|
|
171
|
+
mv tmp-symfony/* . && mv tmp-symfony/.* . 2>/dev/null || true
|
|
172
|
+
rm -rf tmp-symfony
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
**Java / Kotlin:**
|
|
176
|
+
|
|
177
|
+
```bash
|
|
178
|
+
# Spring Boot (Maven)
|
|
179
|
+
curl https://start.spring.io/starter.zip \
|
|
180
|
+
-d type=maven-project \
|
|
181
|
+
-d language=java \
|
|
182
|
+
-d bootVersion=3.2.0 \
|
|
183
|
+
-d dependencies=web,data-jpa \
|
|
184
|
+
-o project.zip
|
|
185
|
+
unzip -o project.zip && rm project.zip
|
|
186
|
+
|
|
187
|
+
# Spring Boot (Gradle + Kotlin)
|
|
188
|
+
curl https://start.spring.io/starter.zip \
|
|
189
|
+
-d type=gradle-project-kotlin \
|
|
190
|
+
-d language=kotlin \
|
|
191
|
+
-d bootVersion=3.2.0 \
|
|
192
|
+
-d dependencies=web,data-jpa \
|
|
193
|
+
-o project.zip
|
|
194
|
+
unzip -o project.zip && rm project.zip
|
|
195
|
+
```
|
|
196
|
+
|
|
197
|
+
---
|
|
198
|
+
|
|
199
|
+
**Success Output:**
|
|
200
|
+
|
|
201
|
+
```
|
|
202
|
+
✅ Project initialized successfully!
|
|
203
|
+
|
|
204
|
+
📦 Framework: {{FRAMEWORK}} {{VERSION}}
|
|
205
|
+
📂 Files created: {{FILE_COUNT}} files
|
|
206
|
+
⏱️ Time: {{DURATION}}
|
|
207
|
+
|
|
208
|
+
Generated structure:
|
|
209
|
+
{{LIST_KEY_FILES}}
|
|
210
|
+
|
|
211
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
212
|
+
|
|
213
|
+
Next steps:
|
|
214
|
+
1. Review generated files
|
|
215
|
+
2. Run /flow-project-roadmap to plan implementation
|
|
216
|
+
3. Start development with /feature commands
|
|
217
|
+
```
|
|
218
|
+
|
|
219
|
+
---
|
|
220
|
+
|
|
221
|
+
## Important Notes
|
|
222
|
+
|
|
223
|
+
**What this command DOES:**
|
|
224
|
+
|
|
225
|
+
- ✅ Runs the official framework CLI (npx, django-admin, dotnet new, etc.)
|
|
226
|
+
- ✅ Creates base project files in current directory
|
|
227
|
+
- ✅ Installs initial dependencies
|
|
228
|
+
- ✅ Sets up configuration files (tsconfig.json, package.json, etc.)
|
|
229
|
+
|
|
230
|
+
**What this command DOES NOT do:**
|
|
231
|
+
|
|
232
|
+
- ❌ Create custom folder structures (use /feature for that later)
|
|
233
|
+
- ❌ Implement Clean Architecture layers manually
|
|
234
|
+
- ❌ Create domain entities or use cases
|
|
235
|
+
- ❌ Set up database schemas
|
|
236
|
+
- ❌ Configure CI/CD pipelines
|
|
237
|
+
|
|
238
|
+
**Philosophy:**
|
|
239
|
+
|
|
240
|
+
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.
|
|
241
|
+
|
|
242
|
+
---
|
|
243
|
+
|
|
244
|
+
**End of /flow-project-init workflow**
|
|
245
|
+
|
|
246
|
+
**Time:** 5-10 minutes total
|
|
247
|
+
**Output:** Clean framework initialization in current directory
|
|
248
|
+
**Next:** Run `/flow-project-roadmap` to generate implementation plan
|