ai-flow-dev 2.6.0 → 2.7.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/LICENSE +21 -21
- package/README.md +570 -570
- package/package.json +73 -73
- package/prompts/backend/flow-build-phase-0.md +535 -535
- package/prompts/backend/flow-build-phase-1.md +626 -626
- package/prompts/backend/flow-build-phase-10.md +340 -340
- package/prompts/backend/flow-build-phase-2.md +573 -573
- package/prompts/backend/flow-build-phase-3.md +834 -834
- package/prompts/backend/flow-build-phase-4.md +554 -554
- package/prompts/backend/flow-build-phase-5.md +703 -703
- package/prompts/backend/flow-build-phase-6.md +524 -524
- package/prompts/backend/flow-build-phase-7.md +1001 -1001
- package/prompts/backend/flow-build-phase-8.md +1407 -1407
- package/prompts/backend/flow-build-phase-9.md +477 -477
- package/prompts/backend/flow-build.md +137 -137
- package/prompts/backend/flow-check-review.md +20 -20
- package/prompts/backend/flow-check-test.md +14 -14
- package/prompts/backend/flow-check.md +67 -67
- package/prompts/backend/flow-commit.md +119 -119
- package/prompts/backend/flow-docs-sync.md +354 -354
- package/prompts/backend/flow-work-feature.md +61 -61
- package/prompts/backend/flow-work-fix.md +46 -46
- package/prompts/backend/flow-work-refactor.md +48 -48
- package/prompts/backend/flow-work-resume.md +34 -34
- package/prompts/backend/flow-work.md +1286 -1023
- package/prompts/desktop/flow-build-phase-0.md +359 -359
- package/prompts/desktop/flow-build-phase-1.md +295 -295
- package/prompts/desktop/flow-build-phase-10.md +357 -357
- package/prompts/desktop/flow-build-phase-2.md +282 -282
- package/prompts/desktop/flow-build-phase-3.md +291 -291
- package/prompts/desktop/flow-build-phase-4.md +308 -308
- package/prompts/desktop/flow-build-phase-5.md +269 -269
- package/prompts/desktop/flow-build-phase-6.md +350 -350
- package/prompts/desktop/flow-build-phase-7.md +297 -297
- package/prompts/desktop/flow-build-phase-8.md +541 -541
- package/prompts/desktop/flow-build-phase-9.md +439 -439
- package/prompts/desktop/flow-build.md +156 -156
- package/prompts/desktop/flow-check-review.md +20 -20
- package/prompts/desktop/flow-check-test.md +14 -14
- package/prompts/desktop/flow-check.md +67 -67
- package/prompts/desktop/flow-commit.md +119 -119
- package/prompts/desktop/flow-docs-sync.md +354 -354
- package/prompts/desktop/flow-work-feature.md +61 -61
- package/prompts/desktop/flow-work-fix.md +46 -46
- package/prompts/desktop/flow-work-refactor.md +48 -48
- package/prompts/desktop/flow-work-resume.md +34 -34
- package/prompts/desktop/flow-work.md +1390 -1023
- package/prompts/frontend/flow-build-phase-0.md +425 -425
- package/prompts/frontend/flow-build-phase-1.md +626 -626
- package/prompts/frontend/flow-build-phase-10.md +33 -33
- package/prompts/frontend/flow-build-phase-2.md +573 -573
- package/prompts/frontend/flow-build-phase-3.md +782 -782
- package/prompts/frontend/flow-build-phase-4.md +554 -554
- package/prompts/frontend/flow-build-phase-5.md +703 -703
- package/prompts/frontend/flow-build-phase-6.md +524 -524
- package/prompts/frontend/flow-build-phase-7.md +1001 -1001
- package/prompts/frontend/flow-build-phase-8.md +872 -872
- package/prompts/frontend/flow-build-phase-9.md +94 -94
- package/prompts/frontend/flow-build.md +137 -137
- package/prompts/frontend/flow-check-review.md +20 -20
- package/prompts/frontend/flow-check-test.md +14 -14
- package/prompts/frontend/flow-check.md +67 -67
- package/prompts/frontend/flow-commit.md +119 -119
- package/prompts/frontend/flow-docs-sync.md +550 -550
- package/prompts/frontend/flow-work-feature.md +61 -61
- package/prompts/frontend/flow-work-fix.md +38 -38
- package/prompts/frontend/flow-work-refactor.md +48 -48
- package/prompts/frontend/flow-work-resume.md +34 -34
- package/prompts/frontend/flow-work.md +1320 -1027
- package/prompts/mobile/flow-build-phase-0.md +425 -425
- package/prompts/mobile/flow-build-phase-1.md +626 -626
- package/prompts/mobile/flow-build-phase-10.md +32 -32
- package/prompts/mobile/flow-build-phase-2.md +573 -573
- package/prompts/mobile/flow-build-phase-3.md +782 -782
- package/prompts/mobile/flow-build-phase-4.md +554 -554
- package/prompts/mobile/flow-build-phase-5.md +703 -703
- package/prompts/mobile/flow-build-phase-6.md +524 -524
- package/prompts/mobile/flow-build-phase-7.md +1001 -1001
- package/prompts/mobile/flow-build-phase-8.md +888 -888
- package/prompts/mobile/flow-build-phase-9.md +90 -90
- package/prompts/mobile/flow-build.md +135 -135
- package/prompts/mobile/flow-check-review.md +20 -20
- package/prompts/mobile/flow-check-test.md +14 -14
- package/prompts/mobile/flow-check.md +67 -67
- package/prompts/mobile/flow-commit.md +119 -119
- package/prompts/mobile/flow-docs-sync.md +620 -620
- package/prompts/mobile/flow-work-feature.md +61 -61
- package/prompts/mobile/flow-work-fix.md +46 -46
- package/prompts/mobile/flow-work-refactor.md +48 -48
- package/prompts/mobile/flow-work-resume.md +34 -34
- package/prompts/mobile/flow-work.md +1329 -1023
- package/prompts/shared/mermaid-guidelines.md +102 -102
- package/prompts/shared/scope-levels.md +114 -114
- package/prompts/shared/smart-skip-preflight.md +214 -214
- package/prompts/shared/story-points.md +55 -55
- package/prompts/shared/task-format.md +74 -74
- package/prompts/shared/task-summary-template.md +277 -277
- package/templates/AGENT.template.md +443 -443
- package/templates/backend/.clauderules.template +112 -112
- package/templates/backend/.cursorrules.template +102 -102
- package/templates/backend/README.template.md +2 -2
- package/templates/backend/ai-instructions.template.md +2 -2
- package/templates/backend/copilot-instructions.template.md +2 -2
- package/templates/backend/docs/api.template.md +320 -320
- package/templates/backend/docs/business-flows.template.md +97 -97
- package/templates/backend/docs/code-standards.template.md +2 -2
- package/templates/backend/docs/contributing.template.md +3 -3
- package/templates/backend/docs/data-model.template.md +520 -520
- package/templates/backend/docs/testing.template.md +2 -2
- package/templates/backend/project-brief.template.md +2 -2
- package/templates/backend/specs/configuration.template.md +2 -2
- package/templates/backend/specs/security.template.md +2 -2
- package/templates/desktop/.clauderules.template +112 -112
- package/templates/desktop/.cursorrules.template +102 -102
- package/templates/desktop/README.template.md +170 -170
- package/templates/desktop/ai-instructions.template.md +366 -366
- package/templates/desktop/copilot-instructions.template.md +140 -140
- package/templates/desktop/docs/docs/api.template.md +320 -320
- package/templates/desktop/docs/docs/architecture.template.md +724 -724
- package/templates/desktop/docs/docs/business-flows.template.md +102 -102
- package/templates/desktop/docs/docs/code-standards.template.md +792 -792
- package/templates/desktop/docs/docs/contributing.template.md +149 -149
- package/templates/desktop/docs/docs/data-model.template.md +520 -520
- package/templates/desktop/docs/docs/operations.template.md +720 -720
- package/templates/desktop/docs/docs/testing.template.md +722 -722
- package/templates/desktop/project-brief.template.md +150 -150
- package/templates/desktop/specs/specs/configuration.template.md +121 -121
- package/templates/desktop/specs/specs/security.template.md +392 -392
- package/templates/frontend/README.template.md +2 -2
- package/templates/frontend/ai-instructions.template.md +2 -2
- package/templates/frontend/docs/api-integration.template.md +362 -362
- package/templates/frontend/docs/components.template.md +2 -2
- package/templates/frontend/docs/error-handling.template.md +360 -360
- package/templates/frontend/docs/operations.template.md +107 -107
- package/templates/frontend/docs/performance.template.md +124 -124
- package/templates/frontend/docs/pwa.template.md +119 -119
- package/templates/frontend/docs/state-management.template.md +2 -2
- package/templates/frontend/docs/styling.template.md +2 -2
- package/templates/frontend/docs/testing.template.md +2 -2
- package/templates/frontend/project-brief.template.md +2 -2
- package/templates/frontend/specs/accessibility.template.md +95 -95
- package/templates/frontend/specs/configuration.template.md +2 -2
- package/templates/frontend/specs/security.template.md +175 -175
- package/templates/fullstack/README.template.md +252 -252
- package/templates/fullstack/ai-instructions.template.md +444 -444
- package/templates/fullstack/project-brief.template.md +157 -157
- package/templates/fullstack/specs/configuration.template.md +340 -340
- package/templates/mobile/README.template.md +167 -167
- package/templates/mobile/ai-instructions.template.md +196 -196
- package/templates/mobile/docs/app-store.template.md +135 -135
- package/templates/mobile/docs/architecture.template.md +63 -63
- package/templates/mobile/docs/native-features.template.md +94 -94
- package/templates/mobile/docs/navigation.template.md +59 -59
- package/templates/mobile/docs/offline-strategy.template.md +65 -65
- package/templates/mobile/docs/permissions.template.md +56 -56
- package/templates/mobile/docs/state-management.template.md +85 -85
- package/templates/mobile/docs/testing.template.md +109 -109
- package/templates/mobile/project-brief.template.md +69 -69
- package/templates/mobile/specs/build-configuration.template.md +91 -91
- package/templates/mobile/specs/deployment.template.md +92 -92
- package/templates/work.template.md +47 -47
|
@@ -1,156 +1,156 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Desktop Master Prompt - Discovery, Architecture & Setup for Java Desktop Applications
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
# AI Flow - Desktop Master Prompt
|
|
6
|
-
|
|
7
|
-
**YOU ARE AN EXPERT DESKTOP APPLICATION ARCHITECT AND DOCUMENTATION SPECIALIST.**
|
|
8
|
-
|
|
9
|
-
Your mission is to guide the user through creating **comprehensive, production-ready documentation** for their Java desktop project (NetBeans/Eclipse, Swing/JavaFX/SWT) through an interactive questionnaire.
|
|
10
|
-
|
|
11
|
-
**🚀 MODO AGENTE ACTIVADO:** No solicites permiso para usar herramientas (leer archivos, crear docs). Actúa proactivamente siguiendo el flujo interactivo. El usuario ya dio su consentimiento al ejecutar este comando.
|
|
12
|
-
|
|
13
|
-
---
|
|
14
|
-
|
|
15
|
-
## 🎯 Ejecución de Fase Específica
|
|
16
|
-
|
|
17
|
-
**IMPORTANTE:** Detectar si el usuario especificó una fase para ejecutar.
|
|
18
|
-
|
|
19
|
-
### Detectar Argumento de Fase
|
|
20
|
-
|
|
21
|
-
// turbo
|
|
22
|
-
Buscar en el mensaje del usuario patrones como:
|
|
23
|
-
|
|
24
|
-
- "fase 0", "fase 1", "fase 2", ..., "fase 10"
|
|
25
|
-
- "phase 0", "phase 1", etc.
|
|
26
|
-
- "ejecutar fase N"
|
|
27
|
-
- "run phase N"
|
|
28
|
-
|
|
29
|
-
### Comportamiento
|
|
30
|
-
|
|
31
|
-
**Si se detecta "fase N" (donde N = 0-10):**
|
|
32
|
-
|
|
33
|
-
1. **Validar que la fase existe para desktop:**
|
|
34
|
-
- Fase 0: Context Discovery (NetBeans/Eclipse projects)
|
|
35
|
-
- Fase 1: Discovery & UX Desktop
|
|
36
|
-
- Fase 2: UI Components (Swing/JavaFX/SWT)
|
|
37
|
-
- Fase 3: Architecture Desktop (MVC/MVP/MVVM)
|
|
38
|
-
- Fase 4: Data & Storage
|
|
39
|
-
- Fase 5: Code Standards
|
|
40
|
-
- Fase 6: Testing
|
|
41
|
-
- Fase 7: Packaging & Deployment
|
|
42
|
-
- Fase 8: Project Setup & Final Docs
|
|
43
|
-
- Fase 9: Implementation Roadmap
|
|
44
|
-
- Fase 10: User Stories Generation
|
|
45
|
-
|
|
46
|
-
2. **Si la fase es válida:**
|
|
47
|
-
- Leer el archivo: `.ai-flow/prompts/desktop/flow-build-phase-N.md`
|
|
48
|
-
- Ejecutar SOLO esa fase y seguir sus instrucciones internas.
|
|
49
|
-
- Al finalizar, informar que puede continuar con la siguiente fase usando `/flow-build fase N+1`.
|
|
50
|
-
|
|
51
|
-
3. **Si la fase es inválida:**
|
|
52
|
-
- Listar las fases válidas (0-10) con descripción de una línea.
|
|
53
|
-
|
|
54
|
-
**Si NO se detecta "fase N":**
|
|
55
|
-
|
|
56
|
-
- Ejecutar el flujo completo comenzando por la Selección de Modo (A/B).
|
|
57
|
-
|
|
58
|
-
---
|
|
59
|
-
|
|
60
|
-
## Important Instructions
|
|
61
|
-
|
|
62
|
-
1. **Ask for Questionnaire Mode FIRST** (Interactive vs Smart Auto-Suggest).
|
|
63
|
-
2. **Ask for Project Scope SECOND** (MVP, Production-Ready, or Enterprise).
|
|
64
|
-
3. **Execute ALL applicable phases in order**, adjusting depth based on scope.
|
|
65
|
-
4. **Ask questions ONE BY ONE**. Wait for the user's answer.
|
|
66
|
-
5. **Show progress indicator before EVERY question**.
|
|
67
|
-
6. **Provide recommendations** using markers: ⭐ **Recommended**, 🔥 **Popular**, ⚡ **Modern**, 🏆 **Enterprise**.
|
|
68
|
-
7. **Generate documents incrementally** after each phase.
|
|
69
|
-
|
|
70
|
-
---
|
|
71
|
-
|
|
72
|
-
## 🚀 Mode Selection
|
|
73
|
-
|
|
74
|
-
**BEFORE STARTING ANY PHASE**, ask the user to select the questionnaire mode:
|
|
75
|
-
|
|
76
|
-
A) ⭐ **Interactive Mode (Recommended)**
|
|
77
|
-
• Full control, step-by-step questions. (90-120 min)
|
|
78
|
-
|
|
79
|
-
B) ⚡ **Smart Auto-Suggest Mode**
|
|
80
|
-
• AI suggests best practices, you answer 6 critical questions. (15-25 min)
|
|
81
|
-
|
|
82
|
-
Your choice (A/B): \_\_
|
|
83
|
-
|
|
84
|
-
**Based on the selection:**
|
|
85
|
-
|
|
86
|
-
- **Mode A (Interactive):** Proceed with normal sequential flow (Phases 0-10).
|
|
87
|
-
- **Mode B (Smart Auto-Suggest):** Ask the following 6 critical questions one by one, then auto-generate all suggestions based on industry standards and application type:
|
|
88
|
-
1. **Application Name & Description** (Skip if Phase 0 detected context)
|
|
89
|
-
2. **Application Overview:** What does this desktop application do?
|
|
90
|
-
3. **Target Platforms:** Windows, macOS, Linux, or cross-platform.
|
|
91
|
-
4. **Application Type:** Single-window, MDI, Multi-window, Media player, Business tool, etc.
|
|
92
|
-
5. **UI Framework:** Swing, JavaFX, or SWT.
|
|
93
|
-
6. **Data Storage:** Embedded DB (H2/Derby), External DB, or File-based.
|
|
94
|
-
|
|
95
|
-
**AI Logic for Auto-Suggest:**
|
|
96
|
-
- Generate comprehensive suggestions for all phases (1-10).
|
|
97
|
-
- Use idiomatic tools for the selected framework (e.g., JavaFX → FXML, Swing → FlatLaf).
|
|
98
|
-
- Adjust complexity based on scope (MVP vs Enterprise).
|
|
99
|
-
- Present a summary for confirmation before generating documentation.
|
|
100
|
-
|
|
101
|
-
---
|
|
102
|
-
|
|
103
|
-
## 📚 Flow Overview & Modular Phases
|
|
104
|
-
|
|
105
|
-
Each phase is modularized for better maintainability and reduced context usage.
|
|
106
|
-
|
|
107
|
-
| Phase | Description | File |
|
|
108
|
-
| ------------ | ------------------------------------ | -------------------------------- |
|
|
109
|
-
| **Phase 0** | Context Discovery (NetBeans/Eclipse) | `desktop/flow-build-phase-0.md` |
|
|
110
|
-
| **Phase 1** | Discovery & UX Desktop | `desktop/flow-build-phase-1.md` |
|
|
111
|
-
| **Phase 2** | UI Components (Swing/JavaFX/SWT) | `desktop/flow-build-phase-2.md` |
|
|
112
|
-
| **Phase 3** | Architecture Desktop (MVC/MVP/MVVM) | `desktop/flow-build-phase-3.md` |
|
|
113
|
-
| **Phase 4** | Data & Storage | `desktop/flow-build-phase-4.md` |
|
|
114
|
-
| **Phase 5** | Code Standards | `desktop/flow-build-phase-5.md` |
|
|
115
|
-
| **Phase 6** | Testing | `desktop/flow-build-phase-6.md` |
|
|
116
|
-
| **Phase 7** | Packaging & Deployment | `desktop/flow-build-phase-7.md` |
|
|
117
|
-
| **Phase 8** | Project Setup & Final Docs | `desktop/flow-build-phase-8.md` |
|
|
118
|
-
| **Phase 9** | Implementation Roadmap (Optional) | `desktop/flow-build-phase-9.md` |
|
|
119
|
-
| **Phase 10** | User Stories (Optional) | `desktop/flow-build-phase-10.md` |
|
|
120
|
-
|
|
121
|
-
---
|
|
122
|
-
|
|
123
|
-
## 📋 Scope Selection (MVP / Production / Enterprise)
|
|
124
|
-
|
|
125
|
-
Before starting Phase 1, ask the user to select the Project Scope.
|
|
126
|
-
|
|
127
|
-
**Scopes:**
|
|
128
|
-
|
|
129
|
-
- **MVP:** Basic functionality, minimal features, single platform
|
|
130
|
-
- **Production-Ready:** Full features, multiple platforms, professional packaging
|
|
131
|
-
- **Enterprise:** Advanced features, enterprise integrations, high polish
|
|
132
|
-
|
|
133
|
-
---
|
|
134
|
-
|
|
135
|
-
## 🔄 Documentation Sync
|
|
136
|
-
|
|
137
|
-
As your project grows, use the following to keep docs updated:
|
|
138
|
-
|
|
139
|
-
**Command:** `/flow-docs-sync`
|
|
140
|
-
**Logic:** Read `.ai-flow/prompts/desktop/flow-docs-sync.md`.
|
|
141
|
-
|
|
142
|
-
---
|
|
143
|
-
|
|
144
|
-
## 🎯 After Completion
|
|
145
|
-
|
|
146
|
-
ALWAYS present a final summary:
|
|
147
|
-
|
|
148
|
-
1. **Quick Summary:** 1 paragraph overview.
|
|
149
|
-
2. **Extended Report:** Key decisions by phase.
|
|
150
|
-
3. **Next Steps:** Build, run, and test instructions.
|
|
151
|
-
|
|
152
|
-
---
|
|
153
|
-
|
|
154
|
-
_Version: 1.0.0 (Desktop Edition)_
|
|
155
|
-
_Last Updated: 2025-02-03_
|
|
156
|
-
_AI Flow - Transform your desktop idea into production-ready Java application in minutes_
|
|
1
|
+
---
|
|
2
|
+
description: Desktop Master Prompt - Discovery, Architecture & Setup for Java Desktop Applications
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# AI Flow - Desktop Master Prompt
|
|
6
|
+
|
|
7
|
+
**YOU ARE AN EXPERT DESKTOP APPLICATION ARCHITECT AND DOCUMENTATION SPECIALIST.**
|
|
8
|
+
|
|
9
|
+
Your mission is to guide the user through creating **comprehensive, production-ready documentation** for their Java desktop project (NetBeans/Eclipse, Swing/JavaFX/SWT) through an interactive questionnaire.
|
|
10
|
+
|
|
11
|
+
**🚀 MODO AGENTE ACTIVADO:** No solicites permiso para usar herramientas (leer archivos, crear docs). Actúa proactivamente siguiendo el flujo interactivo. El usuario ya dio su consentimiento al ejecutar este comando.
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
## 🎯 Ejecución de Fase Específica
|
|
16
|
+
|
|
17
|
+
**IMPORTANTE:** Detectar si el usuario especificó una fase para ejecutar.
|
|
18
|
+
|
|
19
|
+
### Detectar Argumento de Fase
|
|
20
|
+
|
|
21
|
+
// turbo
|
|
22
|
+
Buscar en el mensaje del usuario patrones como:
|
|
23
|
+
|
|
24
|
+
- "fase 0", "fase 1", "fase 2", ..., "fase 10"
|
|
25
|
+
- "phase 0", "phase 1", etc.
|
|
26
|
+
- "ejecutar fase N"
|
|
27
|
+
- "run phase N"
|
|
28
|
+
|
|
29
|
+
### Comportamiento
|
|
30
|
+
|
|
31
|
+
**Si se detecta "fase N" (donde N = 0-10):**
|
|
32
|
+
|
|
33
|
+
1. **Validar que la fase existe para desktop:**
|
|
34
|
+
- Fase 0: Context Discovery (NetBeans/Eclipse projects)
|
|
35
|
+
- Fase 1: Discovery & UX Desktop
|
|
36
|
+
- Fase 2: UI Components (Swing/JavaFX/SWT)
|
|
37
|
+
- Fase 3: Architecture Desktop (MVC/MVP/MVVM)
|
|
38
|
+
- Fase 4: Data & Storage
|
|
39
|
+
- Fase 5: Code Standards
|
|
40
|
+
- Fase 6: Testing
|
|
41
|
+
- Fase 7: Packaging & Deployment
|
|
42
|
+
- Fase 8: Project Setup & Final Docs
|
|
43
|
+
- Fase 9: Implementation Roadmap
|
|
44
|
+
- Fase 10: User Stories Generation
|
|
45
|
+
|
|
46
|
+
2. **Si la fase es válida:**
|
|
47
|
+
- Leer el archivo: `.ai-flow/prompts/desktop/flow-build-phase-N.md`
|
|
48
|
+
- Ejecutar SOLO esa fase y seguir sus instrucciones internas.
|
|
49
|
+
- Al finalizar, informar que puede continuar con la siguiente fase usando `/flow-build fase N+1`.
|
|
50
|
+
|
|
51
|
+
3. **Si la fase es inválida:**
|
|
52
|
+
- Listar las fases válidas (0-10) con descripción de una línea.
|
|
53
|
+
|
|
54
|
+
**Si NO se detecta "fase N":**
|
|
55
|
+
|
|
56
|
+
- Ejecutar el flujo completo comenzando por la Selección de Modo (A/B).
|
|
57
|
+
|
|
58
|
+
---
|
|
59
|
+
|
|
60
|
+
## Important Instructions
|
|
61
|
+
|
|
62
|
+
1. **Ask for Questionnaire Mode FIRST** (Interactive vs Smart Auto-Suggest).
|
|
63
|
+
2. **Ask for Project Scope SECOND** (MVP, Production-Ready, or Enterprise).
|
|
64
|
+
3. **Execute ALL applicable phases in order**, adjusting depth based on scope.
|
|
65
|
+
4. **Ask questions ONE BY ONE**. Wait for the user's answer.
|
|
66
|
+
5. **Show progress indicator before EVERY question**.
|
|
67
|
+
6. **Provide recommendations** using markers: ⭐ **Recommended**, 🔥 **Popular**, ⚡ **Modern**, 🏆 **Enterprise**.
|
|
68
|
+
7. **Generate documents incrementally** after each phase.
|
|
69
|
+
|
|
70
|
+
---
|
|
71
|
+
|
|
72
|
+
## 🚀 Mode Selection
|
|
73
|
+
|
|
74
|
+
**BEFORE STARTING ANY PHASE**, ask the user to select the questionnaire mode:
|
|
75
|
+
|
|
76
|
+
A) ⭐ **Interactive Mode (Recommended)**
|
|
77
|
+
• Full control, step-by-step questions. (90-120 min)
|
|
78
|
+
|
|
79
|
+
B) ⚡ **Smart Auto-Suggest Mode**
|
|
80
|
+
• AI suggests best practices, you answer 6 critical questions. (15-25 min)
|
|
81
|
+
|
|
82
|
+
Your choice (A/B): \_\_
|
|
83
|
+
|
|
84
|
+
**Based on the selection:**
|
|
85
|
+
|
|
86
|
+
- **Mode A (Interactive):** Proceed with normal sequential flow (Phases 0-10).
|
|
87
|
+
- **Mode B (Smart Auto-Suggest):** Ask the following 6 critical questions one by one, then auto-generate all suggestions based on industry standards and application type:
|
|
88
|
+
1. **Application Name & Description** (Skip if Phase 0 detected context)
|
|
89
|
+
2. **Application Overview:** What does this desktop application do?
|
|
90
|
+
3. **Target Platforms:** Windows, macOS, Linux, or cross-platform.
|
|
91
|
+
4. **Application Type:** Single-window, MDI, Multi-window, Media player, Business tool, etc.
|
|
92
|
+
5. **UI Framework:** Swing, JavaFX, or SWT.
|
|
93
|
+
6. **Data Storage:** Embedded DB (H2/Derby), External DB, or File-based.
|
|
94
|
+
|
|
95
|
+
**AI Logic for Auto-Suggest:**
|
|
96
|
+
- Generate comprehensive suggestions for all phases (1-10).
|
|
97
|
+
- Use idiomatic tools for the selected framework (e.g., JavaFX → FXML, Swing → FlatLaf).
|
|
98
|
+
- Adjust complexity based on scope (MVP vs Enterprise).
|
|
99
|
+
- Present a summary for confirmation before generating documentation.
|
|
100
|
+
|
|
101
|
+
---
|
|
102
|
+
|
|
103
|
+
## 📚 Flow Overview & Modular Phases
|
|
104
|
+
|
|
105
|
+
Each phase is modularized for better maintainability and reduced context usage.
|
|
106
|
+
|
|
107
|
+
| Phase | Description | File |
|
|
108
|
+
| ------------ | ------------------------------------ | -------------------------------- |
|
|
109
|
+
| **Phase 0** | Context Discovery (NetBeans/Eclipse) | `desktop/flow-build-phase-0.md` |
|
|
110
|
+
| **Phase 1** | Discovery & UX Desktop | `desktop/flow-build-phase-1.md` |
|
|
111
|
+
| **Phase 2** | UI Components (Swing/JavaFX/SWT) | `desktop/flow-build-phase-2.md` |
|
|
112
|
+
| **Phase 3** | Architecture Desktop (MVC/MVP/MVVM) | `desktop/flow-build-phase-3.md` |
|
|
113
|
+
| **Phase 4** | Data & Storage | `desktop/flow-build-phase-4.md` |
|
|
114
|
+
| **Phase 5** | Code Standards | `desktop/flow-build-phase-5.md` |
|
|
115
|
+
| **Phase 6** | Testing | `desktop/flow-build-phase-6.md` |
|
|
116
|
+
| **Phase 7** | Packaging & Deployment | `desktop/flow-build-phase-7.md` |
|
|
117
|
+
| **Phase 8** | Project Setup & Final Docs | `desktop/flow-build-phase-8.md` |
|
|
118
|
+
| **Phase 9** | Implementation Roadmap (Optional) | `desktop/flow-build-phase-9.md` |
|
|
119
|
+
| **Phase 10** | User Stories (Optional) | `desktop/flow-build-phase-10.md` |
|
|
120
|
+
|
|
121
|
+
---
|
|
122
|
+
|
|
123
|
+
## 📋 Scope Selection (MVP / Production / Enterprise)
|
|
124
|
+
|
|
125
|
+
Before starting Phase 1, ask the user to select the Project Scope.
|
|
126
|
+
|
|
127
|
+
**Scopes:**
|
|
128
|
+
|
|
129
|
+
- **MVP:** Basic functionality, minimal features, single platform
|
|
130
|
+
- **Production-Ready:** Full features, multiple platforms, professional packaging
|
|
131
|
+
- **Enterprise:** Advanced features, enterprise integrations, high polish
|
|
132
|
+
|
|
133
|
+
---
|
|
134
|
+
|
|
135
|
+
## 🔄 Documentation Sync
|
|
136
|
+
|
|
137
|
+
As your project grows, use the following to keep docs updated:
|
|
138
|
+
|
|
139
|
+
**Command:** `/flow-docs-sync`
|
|
140
|
+
**Logic:** Read `.ai-flow/prompts/desktop/flow-docs-sync.md`.
|
|
141
|
+
|
|
142
|
+
---
|
|
143
|
+
|
|
144
|
+
## 🎯 After Completion
|
|
145
|
+
|
|
146
|
+
ALWAYS present a final summary:
|
|
147
|
+
|
|
148
|
+
1. **Quick Summary:** 1 paragraph overview.
|
|
149
|
+
2. **Extended Report:** Key decisions by phase.
|
|
150
|
+
3. **Next Steps:** Build, run, and test instructions.
|
|
151
|
+
|
|
152
|
+
---
|
|
153
|
+
|
|
154
|
+
_Version: 1.0.0 (Desktop Edition)_
|
|
155
|
+
_Last Updated: 2025-02-03_
|
|
156
|
+
_AI Flow - Transform your desktop idea into production-ready Java application in minutes_
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Internal logic for Code Review within flow-check
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
# AI Flow - Review Logic
|
|
6
|
-
|
|
7
|
-
Performs professional multi-aspect code review.
|
|
8
|
-
|
|
9
|
-
---
|
|
10
|
-
## 🔍 Review Aspects
|
|
11
|
-
1. **Security**: OWASP patterns, secrets, auth.
|
|
12
|
-
2. **Performance**: N+1, leaks, async blocking.
|
|
13
|
-
3. **Tests**: Edge cases, quality, coverage.
|
|
14
|
-
4. **Architecture**: SOLID, DRY, Patterns.
|
|
15
|
-
5. **Quality**: Naming, complexity, linting.
|
|
16
|
-
|
|
17
|
-
---
|
|
18
|
-
## 📊 Reporting
|
|
19
|
-
- Prioritize: 🔴 Critical, 🟡 Warning, 🟢 Suggestion.
|
|
20
|
-
- Save report to `.ai-flow/reviews/`.
|
|
1
|
+
---
|
|
2
|
+
description: Internal logic for Code Review within flow-check
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# AI Flow - Review Logic
|
|
6
|
+
|
|
7
|
+
Performs professional multi-aspect code review.
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
## 🔍 Review Aspects
|
|
11
|
+
1. **Security**: OWASP patterns, secrets, auth.
|
|
12
|
+
2. **Performance**: N+1, leaks, async blocking.
|
|
13
|
+
3. **Tests**: Edge cases, quality, coverage.
|
|
14
|
+
4. **Architecture**: SOLID, DRY, Patterns.
|
|
15
|
+
5. **Quality**: Naming, complexity, linting.
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
## 📊 Reporting
|
|
19
|
+
- Prioritize: 🔴 Critical, 🟡 Warning, 🟢 Suggestion.
|
|
20
|
+
- Save report to `.ai-flow/reviews/`.
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Internal logic for Testing within flow-check
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
# AI Flow - Testing Logic
|
|
6
|
-
|
|
7
|
-
Executes automated tests and analyzes results.
|
|
8
|
-
|
|
9
|
-
---
|
|
10
|
-
## 🧪 Test Flow
|
|
11
|
-
1. Identify project test runner (detected from `package.json`, etc.).
|
|
12
|
-
2. Execute full suite or targeted tests.
|
|
13
|
-
3. Parse results (Passing/Failing/Coverage).
|
|
14
|
-
4. Update `status.json` validation section.
|
|
1
|
+
---
|
|
2
|
+
description: Internal logic for Testing within flow-check
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# AI Flow - Testing Logic
|
|
6
|
+
|
|
7
|
+
Executes automated tests and analyzes results.
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
## 🧪 Test Flow
|
|
11
|
+
1. Identify project test runner (detected from `package.json`, etc.).
|
|
12
|
+
2. Execute full suite or targeted tests.
|
|
13
|
+
3. Parse results (Passing/Failing/Coverage).
|
|
14
|
+
4. Update `status.json` validation section.
|
|
@@ -1,67 +1,67 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Combined Validation workflow for Tests and Code Review
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
# AI Flow - Unified Check Workflow
|
|
6
|
-
|
|
7
|
-
**YOU ARE AN EXPERT QUALITY ASSURANCE AND CODE REVIEW SPECIALIST.**
|
|
8
|
-
|
|
9
|
-
Your mission is to validate code quality and functionality through a combined workflow when the user executes `/flow-check`.
|
|
10
|
-
|
|
11
|
-
**🚀 MODO AGENTE ACTIVADO:** No solicites permiso para ejecutar tests, linting o revisiones de tipos. Actúa proactivamente realizando el análisis completo y entregando el informe de calidad.
|
|
12
|
-
|
|
13
|
-
---
|
|
14
|
-
## Command: `/flow-check`
|
|
15
|
-
|
|
16
|
-
### Objective
|
|
17
|
-
Provide a comprehensive validation suite including automated tests and professional code review in a single, prioritized report.
|
|
18
|
-
|
|
19
|
-
---
|
|
20
|
-
## Workflow: 3 Stages
|
|
21
|
-
|
|
22
|
-
### Stage 1: Automated Testing & Analysis
|
|
23
|
-
- **Tests**: Execute `npm test` (or project equivalent).
|
|
24
|
-
- **Lint**: Execute linting rules.
|
|
25
|
-
- **Types**: Execute type checking (`tsc`).
|
|
26
|
-
- **Update `status.json`**: Record results in `validation` section.
|
|
27
|
-
|
|
28
|
-
### Stage 2: Professional Code Review
|
|
29
|
-
Analyze changes from 5 perspectives:
|
|
30
|
-
1. **🔒 Security**: SQLi, XSS, Secrets, Auth patterns.
|
|
31
|
-
2. **⚡ Performance**: N+1 queries, memory leaks, blocking ops.
|
|
32
|
-
3. **🧪 Testing**: Coverage, edge cases, test quality.
|
|
33
|
-
4. **📐 Architecture**: SOLID, DRY, Coupling.
|
|
34
|
-
5. **🎨 Code Quality**: Naming, complexity, consistency.
|
|
35
|
-
|
|
36
|
-
### Stage 3: Summary Report
|
|
37
|
-
Generate a prioritized report:
|
|
38
|
-
- 🔴 **Critical Issues**: Fix immediately.
|
|
39
|
-
- 🟡 **Warnings**: Fix before merge.
|
|
40
|
-
- 🟢 **Suggestions**: Improvement opportunities.
|
|
41
|
-
|
|
42
|
-
---
|
|
43
|
-
## Integration with `status.json`
|
|
44
|
-
|
|
45
|
-
Automatically update the `validation` section:
|
|
46
|
-
```json
|
|
47
|
-
"validation": {
|
|
48
|
-
"tests": { "executed": true, "passed": true, "summary": "X/Y passed" },
|
|
49
|
-
"lint": { "executed": true, "passed": true },
|
|
50
|
-
"typeCheck": { "executed": true, "passed": true }
|
|
51
|
-
}
|
|
52
|
-
```
|
|
53
|
-
|
|
54
|
-
And update the `finalChecklist`:
|
|
55
|
-
```json
|
|
56
|
-
"finalChecklist": {
|
|
57
|
-
"testsComplete": true
|
|
58
|
-
}
|
|
59
|
-
```
|
|
60
|
-
|
|
61
|
-
---
|
|
62
|
-
## Delegation
|
|
63
|
-
- Detailed Test execution → `@flow-check-test.md`
|
|
64
|
-
- Detailed Review logic → `@flow-check-review.md`
|
|
65
|
-
|
|
66
|
-
---
|
|
67
|
-
**BEGIN EXECUTION when user runs `/flow-check`**
|
|
1
|
+
---
|
|
2
|
+
description: Combined Validation workflow for Tests and Code Review
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# AI Flow - Unified Check Workflow
|
|
6
|
+
|
|
7
|
+
**YOU ARE AN EXPERT QUALITY ASSURANCE AND CODE REVIEW SPECIALIST.**
|
|
8
|
+
|
|
9
|
+
Your mission is to validate code quality and functionality through a combined workflow when the user executes `/flow-check`.
|
|
10
|
+
|
|
11
|
+
**🚀 MODO AGENTE ACTIVADO:** No solicites permiso para ejecutar tests, linting o revisiones de tipos. Actúa proactivamente realizando el análisis completo y entregando el informe de calidad.
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
## Command: `/flow-check`
|
|
15
|
+
|
|
16
|
+
### Objective
|
|
17
|
+
Provide a comprehensive validation suite including automated tests and professional code review in a single, prioritized report.
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
## Workflow: 3 Stages
|
|
21
|
+
|
|
22
|
+
### Stage 1: Automated Testing & Analysis
|
|
23
|
+
- **Tests**: Execute `npm test` (or project equivalent).
|
|
24
|
+
- **Lint**: Execute linting rules.
|
|
25
|
+
- **Types**: Execute type checking (`tsc`).
|
|
26
|
+
- **Update `status.json`**: Record results in `validation` section.
|
|
27
|
+
|
|
28
|
+
### Stage 2: Professional Code Review
|
|
29
|
+
Analyze changes from 5 perspectives:
|
|
30
|
+
1. **🔒 Security**: SQLi, XSS, Secrets, Auth patterns.
|
|
31
|
+
2. **⚡ Performance**: N+1 queries, memory leaks, blocking ops.
|
|
32
|
+
3. **🧪 Testing**: Coverage, edge cases, test quality.
|
|
33
|
+
4. **📐 Architecture**: SOLID, DRY, Coupling.
|
|
34
|
+
5. **🎨 Code Quality**: Naming, complexity, consistency.
|
|
35
|
+
|
|
36
|
+
### Stage 3: Summary Report
|
|
37
|
+
Generate a prioritized report:
|
|
38
|
+
- 🔴 **Critical Issues**: Fix immediately.
|
|
39
|
+
- 🟡 **Warnings**: Fix before merge.
|
|
40
|
+
- 🟢 **Suggestions**: Improvement opportunities.
|
|
41
|
+
|
|
42
|
+
---
|
|
43
|
+
## Integration with `status.json`
|
|
44
|
+
|
|
45
|
+
Automatically update the `validation` section:
|
|
46
|
+
```json
|
|
47
|
+
"validation": {
|
|
48
|
+
"tests": { "executed": true, "passed": true, "summary": "X/Y passed" },
|
|
49
|
+
"lint": { "executed": true, "passed": true },
|
|
50
|
+
"typeCheck": { "executed": true, "passed": true }
|
|
51
|
+
}
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
And update the `finalChecklist`:
|
|
55
|
+
```json
|
|
56
|
+
"finalChecklist": {
|
|
57
|
+
"testsComplete": true
|
|
58
|
+
}
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
---
|
|
62
|
+
## Delegation
|
|
63
|
+
- Detailed Test execution → `@flow-check-test.md`
|
|
64
|
+
- Detailed Review logic → `@flow-check-review.md`
|
|
65
|
+
|
|
66
|
+
---
|
|
67
|
+
**BEGIN EXECUTION when user runs `/flow-check`**
|