ai-flow-dev 2.2.0 → 2.2.4

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.
Files changed (74) hide show
  1. package/README.md +28 -24
  2. package/dist/cli.js +228 -418
  3. package/dist/cli.js.map +1 -1
  4. package/package.json +1 -1
  5. package/prompts/backend/flow-build-phase-0.md +286 -4
  6. package/prompts/backend/flow-build-phase-1.md +19 -0
  7. package/prompts/backend/flow-build-phase-2.md +19 -0
  8. package/prompts/backend/flow-build-phase-3.md +19 -0
  9. package/prompts/backend/flow-build-phase-4.md +19 -0
  10. package/prompts/backend/flow-build-phase-5.md +19 -0
  11. package/prompts/backend/flow-build-phase-6.md +19 -0
  12. package/prompts/backend/flow-build-phase-7.md +19 -0
  13. package/prompts/backend/flow-build-phase-9.md +14 -0
  14. package/prompts/backend/flow-build.md +2 -0
  15. package/prompts/backend/flow-check-review.md +20 -0
  16. package/prompts/backend/flow-check-test.md +14 -0
  17. package/prompts/backend/flow-check.md +67 -0
  18. package/prompts/backend/flow-commit.md +53 -0
  19. package/prompts/backend/flow-docs-sync.md +55 -53
  20. package/prompts/backend/flow-work-feature.md +42 -0
  21. package/prompts/backend/flow-work-fix.md +33 -0
  22. package/prompts/backend/flow-work-refactor.md +32 -0
  23. package/prompts/backend/flow-work-resume.md +32 -0
  24. package/prompts/backend/flow-work.md +129 -0
  25. package/prompts/frontend/flow-build-phase-0.md +363 -35
  26. package/prompts/frontend/flow-build-phase-1.md +433 -404
  27. package/prompts/frontend/flow-build-phase-2.md +508 -872
  28. package/prompts/frontend/flow-build-phase-3.md +629 -562
  29. package/prompts/frontend/flow-build-phase-4.md +438 -382
  30. package/prompts/frontend/flow-build-phase-5.md +559 -362
  31. package/prompts/frontend/flow-build-phase-6.md +383 -452
  32. package/prompts/frontend/flow-build-phase-7.md +818 -392
  33. package/prompts/frontend/flow-build-phase-9.md +14 -0
  34. package/prompts/frontend/flow-build.md +2 -0
  35. package/prompts/frontend/flow-check-review.md +20 -0
  36. package/prompts/frontend/flow-check-test.md +14 -0
  37. package/prompts/frontend/flow-check.md +67 -0
  38. package/prompts/frontend/flow-commit.md +53 -0
  39. package/prompts/frontend/flow-docs-sync.md +39 -35
  40. package/prompts/frontend/flow-work-feature.md +42 -0
  41. package/prompts/frontend/flow-work-fix.md +33 -0
  42. package/prompts/frontend/flow-work-refactor.md +32 -0
  43. package/prompts/frontend/flow-work-resume.md +32 -0
  44. package/prompts/frontend/flow-work.md +129 -0
  45. package/prompts/mobile/flow-build-phase-0.md +366 -37
  46. package/prompts/mobile/flow-build-phase-1.md +438 -493
  47. package/prompts/mobile/flow-build-phase-2.md +458 -464
  48. package/prompts/mobile/flow-build-phase-3.md +613 -487
  49. package/prompts/mobile/flow-build-phase-4.md +439 -258
  50. package/prompts/mobile/flow-build-phase-5.md +582 -250
  51. package/prompts/mobile/flow-build-phase-6.md +389 -359
  52. package/prompts/mobile/flow-build-phase-7.md +871 -285
  53. package/prompts/mobile/flow-build-phase-9.md +14 -0
  54. package/prompts/mobile/flow-build.md +2 -0
  55. package/prompts/mobile/flow-check-review.md +20 -0
  56. package/prompts/mobile/flow-check-test.md +14 -0
  57. package/prompts/mobile/flow-check.md +67 -0
  58. package/prompts/mobile/flow-commit.md +53 -0
  59. package/prompts/mobile/flow-docs-sync.md +39 -40
  60. package/prompts/mobile/flow-work-feature.md +42 -0
  61. package/prompts/mobile/flow-work-fix.md +33 -0
  62. package/prompts/mobile/flow-work-refactor.md +32 -0
  63. package/prompts/mobile/flow-work-resume.md +32 -0
  64. package/prompts/mobile/flow-work.md +129 -0
  65. package/prompts/shared/smart-skip-preflight.md +214 -0
  66. package/templates/AGENT.template.md +13 -3
  67. package/templates/backend/.clauderules.template +5 -4
  68. package/templates/backend/.cursorrules.template +1 -1
  69. package/prompts/backend/flow-dev-commit.md +0 -829
  70. package/prompts/backend/flow-dev-feature.md +0 -1948
  71. package/prompts/backend/flow-dev-fix.md +0 -952
  72. package/prompts/backend/flow-dev-refactor.md +0 -690
  73. package/prompts/backend/flow-dev-review.md +0 -372
  74. package/prompts/backend/flow-dev-work.md +0 -1081
package/README.md CHANGED
@@ -10,12 +10,14 @@ AI Flow is an interactive CLI that creates comprehensive professional documentat
10
10
 
11
11
  **Key Features:**
12
12
 
13
- - 🚀 Complete professional documentation (Backend: 17 docs, Frontend: 15 docs, Mobile: 13 docs, Fullstack: 4 docs)
13
+ - 🚀 Complete professional documentation (Backend: 17 docs, Frontend: 15 docs, Mobile: 13 docs, Fullstack: 30+ docs)
14
14
  - 🧠 **Smart Description Refinement:** Detects ambiguity and iteratively guides you to a professional project definition.
15
15
  - ⚡ **Two modes:** Interactive (90-120 min, full control) or Smart Auto-Suggest (15-25 min, 6 questions)
16
16
  - 🌍 Universal support - 12 languages, 60+ frameworks, 35+ ORMs (98% coverage)
17
17
  - 🤖 Multi-AI support with slash commands
18
18
  - 🔍 Smart 3-layer detection for existing projects (50-94% faster)
19
+ - 🎯 **Smart Skip Logic:** Intelligently skips documentation phases for existing projects (15-20 min vs 90 min for ≥95% consistency).
20
+ - 🚀 **Agent Mode Enforcement:** AI assistants now prioritize proactive tool usage and immediate execution for all `/flow-` commands (No more redundant planning).
19
21
  - ⏱️ Save 10-20 hours per project
20
22
 
21
23
  **Quick Start:**
@@ -26,8 +28,8 @@ AI Flow is an interactive CLI that creates comprehensive professional documentat
26
28
  npm install -g ai-flow-dev
27
29
  ai-flow init .
28
30
  # Then open your AI tool and run:
29
- # /flow-build - To generate all documentation
30
- # /flow-dev-feature - To start building features
31
+ # /flow-build - To generate all documentation
32
+ # /flow-work - To start building features
31
33
  ```
32
34
 
33
35
  ## 📚 **[Complete Guide →](GETTING-STARTED.md)**
@@ -38,12 +40,13 @@ Transforma tu idea en un proyecto listo para producción y documentado para IA e
38
40
 
39
41
  **Características:**
40
42
 
41
- - 🚀 Documentación profesional completa (Backend: 17 docs, Frontend: 15 docs, Mobile: 13 docs, Fullstack: 4 docs)
43
+ - 🚀 Documentación profesional completa (Backend: 17 docs, Frontend: 15 docs, Mobile: 13 docs, Fullstack: 30+ docs)
42
44
  - 🧠 **Refinamiento Inteligente:** Detecta ambigüedad y te guía iterativamente hacia una descripción profesional.
43
45
  - ⚡ **Dos modos:** Interactivo (90-120 min, control total) o Auto-Sugerido (15-25 min, 6 preguntas)
44
46
  - 🌍 Soporte universal - 12 lenguajes, 60+ frameworks, 35+ ORMs
45
47
  - 🤖 Compatible with Claude, Copilot, Cursor, Gemini, Antigravity
46
48
  - 🔍 Detección inteligente para proyectos existentes (50-94% más rápido)
49
+ - 🚀 **Modo Agente:** Los asistentes de IA ahora priorizan la ejecución proactiva para todos los comandos `/flow-`.
47
50
  - ⏱️ Ahorra 10-20 horas por proyecto
48
51
 
49
52
  **Inicio rápido:**
@@ -54,8 +57,8 @@ Transforma tu idea en un proyecto listo para producción y documentado para IA e
54
57
  npm install -g ai-flow-dev
55
58
  ai-flow init .
56
59
  # Luego en tu herramienta IA:
57
- # /flow-build - Para generar toda la documentación
58
- # /flow-dev-feature - Para comenzar a construir funcionalidades
60
+ # /flow-build - Para generar toda la documentación
61
+ # /flow-work - Para comenzar a construir funcionalidades
59
62
  ```
60
63
 
61
64
  ## 📚 **[Guía Completa →](GETTING-STARTED.md)**
@@ -65,7 +68,8 @@ ai-flow init .
65
68
  Transforme sua ideia em um projeto pronto para produção e documentado para IA em minutos.
66
69
  **Características:**
67
70
 
68
- - 🚀 Documentação profissional completa (Backend: 17, Frontend: 15, Mobile: 13, Fullstack: 4 docs)
71
+ - 🚀 Documentação profissional completa (Backend: 17, Frontend: 15, Mobile: 13, Fullstack: 30+ docs)
72
+ - 🚀 **Modo Agente:** Os assistentes de IA agora priorizam a execução proativa para todos os comandos `/flow-`.
69
73
  - 🧠 **Refinamento Inteligente:** Detecta ambiguidade e guia você para uma descrição profissional.
70
74
  - ⚡ **Dois modos:** Interactivo (90-120 min, controle total) ou Auto-Sugestão (15-25 min, 6 perguntas)
71
75
  - 🌍 Suporte universal - 12 linguagens, 60+ frameworks, 35+ ORMs
@@ -81,8 +85,8 @@ Transforme sua ideia em um projeto pronto para produção e documentado para IA
81
85
  npm install -g ai-flow-dev
82
86
  ai-flow init .
83
87
  # Em seguida, na sua ferramenta de IA:
84
- # /flow-build - Para gerar toda a documentação
85
- # /flow-dev-feature - Para começar a construir funcionalidades
88
+ # /flow-build - Para gerar toda a documentação
89
+ # /flow-work - Para começar a construir funcionalidades
86
90
  ```
87
91
 
88
92
  ## 📚 **[Guia Completo →](GETTING-STARTED.md)**
@@ -104,14 +108,15 @@ The result is interconnected documentation that guides AI assistants and human d
104
108
 
105
109
  - 🌍 **Universal Support** - 12 languages, 60+ frameworks, 35+ ORMs (98% coverage)
106
110
  - 🤖 **AI-Agnostic** - Claude, Copilot, Cursor, Gemini, Antigravity, any AI tool
107
- - 📚 **Professional Documentation** - Backend: 17, Frontend: 15, Mobile: 13, Fullstack: 4 docs
111
+ - 📚 **Professional Documentation** - Backend: 17, Frontend: 15, Mobile: 13, Fullstack: 30+ docs
108
112
  - 🧠 **Smart Description Refinement** - AI detects vague inputs and helps you rich the context (WHO, WHAT, WHY).
109
113
  - ⚡ **Two Questionnaire Modes:**
110
114
  - **Interactive Mode:** Full control, all phases (90-120 min)
111
115
  - **Smart Auto-Suggest:** Only 6 critical questions, AI suggests best practices (15-25 min)
112
116
  - 🔍 **Smart 3-Layer Detection** - Analyzes existing projects in 15s-5min
113
117
  - 💾 **Intelligent Caching** - 0 seconds on re-runs with no changes
114
- - 💡 **Slash Commands** - Easy execution with `/flow-build`, `/flow-dev-feature`, `/flow-dev-commit`
118
+ - 🚀 **Agent Mode** - Immediate, proactive execution for all AI workflows
119
+ - 💡 **Slash Commands** - Easy execution with `/flow-build`, `/flow-work`, `/flow-check`, `/flow-commit`
115
120
  - ⏱️ **Time Efficient** - Save 10-20 hours per project
116
121
 
117
122
  ---
@@ -135,7 +140,7 @@ Or using uv (Python tool manager):
135
140
  uv tool install ai-flow-dev
136
141
  ```
137
142
 
138
- ## **Current version:** 2.2.0
143
+ ## **Current version:** 2.2.4
139
144
 
140
145
  ## 🚀 Quick Start
141
146
 
@@ -171,7 +176,7 @@ $ ai-flow check
171
176
 
172
177
  ✓ .ai-flow/core/config.json found
173
178
  ✓ AI tools configured: antigravity
174
- ✓ Project type: backend
179
+ ✓ Project Type: Backend (backend)
175
180
  ✓ Documentation complete: 17 files
176
181
  ✓ Slash commands installed: .agent/workflows/
177
182
 
@@ -261,7 +266,7 @@ After initialization, use these slash commands in your AI tool:
261
266
 
262
267
  > **Note:** Command prefix may vary by AI tool. Examples use `/flow-` (GitHub Copilot), but Claude may use `/` alone, Cursor may use `@`, etc. Check your tool's documentation.
263
268
 
264
- **Backend Projects:** 19 commands
269
+ **Backend Projects:** 16 commands
265
270
  **Frontend Projects:** 13 commands
266
271
  **Mobile Projects:** 13 commands
267
272
  **Fullstack Projects:** Combined backend + frontend commands
@@ -270,6 +275,9 @@ After initialization, use these slash commands in your AI tool:
270
275
 
271
276
  - `/flow-build` - Flujo completo: todas las fases en orden (11 fases backend, 11 frontend/mobile)
272
277
  - `/flow-build fase N` - Ejecutar fase específica (ver lista de fases abajo)
278
+ - `/flow-work` - Development orchestrator (feature, refactor, fix, resume)
279
+ - `/flow-check` - Combined code review & testing workflow
280
+ - `/flow-commit` - Atomic commits (Conventional Commits)
273
281
  - `/flow-docs-sync` - Update documentation when code changes
274
282
 
275
283
  **Fases disponibles (Backend):**
@@ -300,16 +308,12 @@ After initialization, use these slash commands in your AI tool:
300
308
  - `/flow-build fase 9` - Implementation Roadmap (opcional)
301
309
  - `/flow-build fase 10` - User Stories Generation (opcional)
302
310
 
303
- **Workflows (Backend only):**
311
+ **Workflows (All project types):**
304
312
 
305
- - `/flow-dev-feature` - Create/modify features (15-20 min)
306
- - `/flow-dev-fix` - Fix bugs (3-15 min, adaptive)
307
- - `/flow-dev-commit` - Automate commits with Conventional Commits (3-5 min)
308
- - `/flow-dev-work` - Manage work in progress
309
- - `/flow-dev-review` - Multi-aspect code review (5 min)
310
- - `/flow-dev-refactor` - Quick refactorings (3-5 min)
311
-
312
- > **Note:** Frontend and Mobile projects include build commands (`/flow-build`, phases, `/flow-docs-sync`) but not workflow commands.
313
+ - `/flow-work` - **Unified orchestrator** for Features/Refactors/Fixes with smart detection
314
+ - `/flow-check` - **Combined validation**: Tests + Code Review in one command
315
+ - `/flow-commit` - Automate commits with Conventional Commits (3-5 min)
316
+ - `/flow-docs-sync` - **Sync documentation** when code changes occur
313
317
 
314
318
  ## **📚 See [GETTING-STARTED.md](GETTING-STARTED.md) for complete command reference**
315
319
 
@@ -345,7 +349,7 @@ After initialization, use these slash commands in your AI tool:
345
349
 
346
350
  **Mobile** (13 docs): AGENT.md, ai-instructions.md, project-brief.md, plus 10 technical docs/specs.
347
351
 
348
- **Fullstack** (4 docs): AGENT.md, ai-instructions.md, project-brief.md, plus 1 spec
352
+ **Fullstack** (30+ docs): Combined Backend + Frontend documentation structures.
349
353
 
350
354
  ### 📁 Generated Structure
351
355