ai-flow-dev 2.7.0 → 2.8.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 -21
- package/README.md +573 -570
- package/package.json +74 -74
- 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 +656 -20
- package/prompts/backend/flow-check-test.md +526 -14
- package/prompts/backend/flow-check.md +717 -67
- package/prompts/backend/flow-commit.md +88 -119
- package/prompts/backend/flow-docs-sync.md +354 -354
- package/prompts/backend/flow-finish.md +919 -0
- package/prompts/backend/flow-release.md +949 -0
- 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 +1098 -1286
- 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 +656 -20
- package/prompts/desktop/flow-check-test.md +526 -14
- package/prompts/desktop/flow-check.md +717 -67
- package/prompts/desktop/flow-commit.md +88 -119
- package/prompts/desktop/flow-docs-sync.md +354 -354
- package/prompts/desktop/flow-finish.md +919 -0
- package/prompts/desktop/flow-release.md +662 -0
- 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 +1202 -1390
- 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 +656 -20
- package/prompts/frontend/flow-check-test.md +526 -14
- package/prompts/frontend/flow-check.md +717 -67
- package/prompts/frontend/flow-commit.md +88 -119
- package/prompts/frontend/flow-docs-sync.md +550 -550
- package/prompts/frontend/flow-finish.md +919 -0
- package/prompts/frontend/flow-release.md +519 -0
- package/prompts/frontend/flow-work-api.md +1547 -0
- 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 +1595 -1320
- 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 +656 -20
- package/prompts/mobile/flow-check-test.md +526 -14
- package/prompts/mobile/flow-check.md +717 -67
- package/prompts/mobile/flow-commit.md +88 -119
- package/prompts/mobile/flow-docs-sync.md +620 -620
- package/prompts/mobile/flow-finish.md +919 -0
- package/prompts/mobile/flow-release.md +751 -0
- package/prompts/mobile/flow-work-api.md +1500 -0
- 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 +1605 -1329
- 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 +61 -47
|
@@ -1,90 +1,90 @@
|
|
|
1
|
-
## PHASE 9: Implementation Roadmap (Mobile) (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 implementation plan (Roadmap) focused on Mobile 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, Dart, Swift, Kotlin
|
|
16
|
-
├── FRAMEWORK: {{FRAMEWORK}} # e.g., React Native, Flutter, Native
|
|
17
|
-
├── SRC: {{SOURCE_DIR}} # e.g., src/, lib/
|
|
18
|
-
└── TESTS: {{TEST_DIR}} # e.g., tests/, __tests__/, spec/
|
|
19
|
-
|
|
20
|
-
From docs/architecture.md & navigation.md:
|
|
21
|
-
├── COMP_DIR: {{COMPONENTS_PATH}} # e.g., components/, widgets/
|
|
22
|
-
├── SCREEN_DIR: {{SCREENS_PATH}} # e.g., screens/, pages/
|
|
23
|
-
├── NAV_DIR: {{NAV_PATH}} # e.g., navigation/, router/
|
|
24
|
-
└── STORE_DIR: {{STORE_PATH}} # e.g., store/, state/, provider/
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
---
|
|
28
|
-
|
|
29
|
-
## Task Format (MANDATORY)
|
|
30
|
-
|
|
31
|
-
```
|
|
32
|
-
- [ ] TXXX [CAT] Description • 1 SP → {{path}} | deps: TXXX
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
---
|
|
36
|
-
|
|
37
|
-
## Categories [CAT]
|
|
38
|
-
|
|
39
|
-
| Cat | Name | Description | SP Range |
|
|
40
|
-
|-----|------------|------------------------------------|----------|
|
|
41
|
-
| [U] | UI/Comp | Reusable components/widgets | 1 SP |
|
|
42
|
-
| [P] | Screen | Screen layout & logic | 1-2 SP |
|
|
43
|
-
| [N] | Nav | Navigation setup, deep links | 1 SP |
|
|
44
|
-
| [S] | State/Data | State management, local storage | 1-2 SP |
|
|
45
|
-
| [F] | Native/Feat| Permissions, native modules, SDKs | 1-2 SP |
|
|
46
|
-
| [T] | Test | Unit, integration, e2e tests | 1-2 SP |
|
|
47
|
-
| [D] | Docs | Documentation updates | 1 SP |
|
|
48
|
-
|
|
49
|
-
---
|
|
50
|
-
|
|
51
|
-
## Workflow: 6 Steps
|
|
52
|
-
|
|
53
|
-
// turbo
|
|
54
|
-
### Step 9.1: Extract Context & Inventory
|
|
55
|
-
|
|
56
|
-
**1. Extract context variables.**
|
|
57
|
-
**2. Extract inventory (Screens, Components, Permissions).**
|
|
58
|
-
|
|
59
|
-
### Step 9.2: Coverage Matrix
|
|
60
|
-
Ensure every Screen/Feature has: [P], [U], [S], [F], [T], [D].
|
|
61
|
-
|
|
62
|
-
### Step 9.3: Epic Definition
|
|
63
|
-
EP-000: Foundation (Platform setup, Navigation config)
|
|
64
|
-
EP-001: Core UI & Theme
|
|
65
|
-
EP-002: Main User Journeys
|
|
66
|
-
EP-ZZZ: Store Preparation & Deployment
|
|
67
|
-
|
|
68
|
-
### Step 9.4: Task Generation
|
|
69
|
-
|
|
70
|
-
### Step 9.5: Validate Coverage
|
|
71
|
-
|
|
72
|
-
## Architectural Markers Key
|
|
73
|
-
|
|
74
|
-
| Marker | Name | Description |
|
|
75
|
-
|--------|------|-------------|
|
|
76
|
-
| **[U]** | UI/Comp | Reusable components/widgets |
|
|
77
|
-
| **[P]** | Screen | Screen layout & logic |
|
|
78
|
-
| **[N]** | Nav | Navigation setup, deep links |
|
|
79
|
-
| **[S]** | State/Data | State management, local storage |
|
|
80
|
-
| **[F]** | Native/Feat | Permissions, native modules, SDKs |
|
|
81
|
-
| **[T]** | Test | Unit, integration, e2e tests |
|
|
82
|
-
| **[D]** | Docs | Documentation updates |
|
|
83
|
-
|
|
84
|
-
---
|
|
85
|
-
|
|
86
|
-
### Step 9.6: Generate Document (planning/roadmap.md)
|
|
87
|
-
|
|
88
|
-
---
|
|
89
|
-
_Version: 4.2 (Antigravity Optimized)_
|
|
90
|
-
_Last Updated: 2025-12-21_
|
|
1
|
+
## PHASE 9: Implementation Roadmap (Mobile) (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 implementation plan (Roadmap) focused on Mobile 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, Dart, Swift, Kotlin
|
|
16
|
+
├── FRAMEWORK: {{FRAMEWORK}} # e.g., React Native, Flutter, Native
|
|
17
|
+
├── SRC: {{SOURCE_DIR}} # e.g., src/, lib/
|
|
18
|
+
└── TESTS: {{TEST_DIR}} # e.g., tests/, __tests__/, spec/
|
|
19
|
+
|
|
20
|
+
From docs/architecture.md & navigation.md:
|
|
21
|
+
├── COMP_DIR: {{COMPONENTS_PATH}} # e.g., components/, widgets/
|
|
22
|
+
├── SCREEN_DIR: {{SCREENS_PATH}} # e.g., screens/, pages/
|
|
23
|
+
├── NAV_DIR: {{NAV_PATH}} # e.g., navigation/, router/
|
|
24
|
+
└── STORE_DIR: {{STORE_PATH}} # e.g., store/, state/, provider/
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
## Task Format (MANDATORY)
|
|
30
|
+
|
|
31
|
+
```
|
|
32
|
+
- [ ] TXXX [CAT] Description • 1 SP → {{path}} | deps: TXXX
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
---
|
|
36
|
+
|
|
37
|
+
## Categories [CAT]
|
|
38
|
+
|
|
39
|
+
| Cat | Name | Description | SP Range |
|
|
40
|
+
|-----|------------|------------------------------------|----------|
|
|
41
|
+
| [U] | UI/Comp | Reusable components/widgets | 1 SP |
|
|
42
|
+
| [P] | Screen | Screen layout & logic | 1-2 SP |
|
|
43
|
+
| [N] | Nav | Navigation setup, deep links | 1 SP |
|
|
44
|
+
| [S] | State/Data | State management, local storage | 1-2 SP |
|
|
45
|
+
| [F] | Native/Feat| Permissions, native modules, SDKs | 1-2 SP |
|
|
46
|
+
| [T] | Test | Unit, integration, e2e tests | 1-2 SP |
|
|
47
|
+
| [D] | Docs | Documentation updates | 1 SP |
|
|
48
|
+
|
|
49
|
+
---
|
|
50
|
+
|
|
51
|
+
## Workflow: 6 Steps
|
|
52
|
+
|
|
53
|
+
// turbo
|
|
54
|
+
### Step 9.1: Extract Context & Inventory
|
|
55
|
+
|
|
56
|
+
**1. Extract context variables.**
|
|
57
|
+
**2. Extract inventory (Screens, Components, Permissions).**
|
|
58
|
+
|
|
59
|
+
### Step 9.2: Coverage Matrix
|
|
60
|
+
Ensure every Screen/Feature has: [P], [U], [S], [F], [T], [D].
|
|
61
|
+
|
|
62
|
+
### Step 9.3: Epic Definition
|
|
63
|
+
EP-000: Foundation (Platform setup, Navigation config)
|
|
64
|
+
EP-001: Core UI & Theme
|
|
65
|
+
EP-002: Main User Journeys
|
|
66
|
+
EP-ZZZ: Store Preparation & Deployment
|
|
67
|
+
|
|
68
|
+
### Step 9.4: Task Generation
|
|
69
|
+
|
|
70
|
+
### Step 9.5: Validate Coverage
|
|
71
|
+
|
|
72
|
+
## Architectural Markers Key
|
|
73
|
+
|
|
74
|
+
| Marker | Name | Description |
|
|
75
|
+
|--------|------|-------------|
|
|
76
|
+
| **[U]** | UI/Comp | Reusable components/widgets |
|
|
77
|
+
| **[P]** | Screen | Screen layout & logic |
|
|
78
|
+
| **[N]** | Nav | Navigation setup, deep links |
|
|
79
|
+
| **[S]** | State/Data | State management, local storage |
|
|
80
|
+
| **[F]** | Native/Feat | Permissions, native modules, SDKs |
|
|
81
|
+
| **[T]** | Test | Unit, integration, e2e tests |
|
|
82
|
+
| **[D]** | Docs | Documentation updates |
|
|
83
|
+
|
|
84
|
+
---
|
|
85
|
+
|
|
86
|
+
### Step 9.6: Generate Document (planning/roadmap.md)
|
|
87
|
+
|
|
88
|
+
---
|
|
89
|
+
_Version: 4.2 (Antigravity Optimized)_
|
|
90
|
+
_Last Updated: 2025-12-21_
|
|
@@ -1,135 +1,135 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Mobile Master Prompt - Discovery, Architecture & Setup
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
# AI Flow - Mobile Master Prompt
|
|
6
|
-
|
|
7
|
-
**YOU ARE AN EXPERT MOBILE ARCHITECT AND DOCUMENTATION SPECIALIST.**
|
|
8
|
-
|
|
9
|
-
Your mission is to guide the user through creating **comprehensive, production-ready documentation** for their mobile application through an interactive questionnaire that follows the dependency-aware order specified below.
|
|
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
|
-
## 🎯 Ejecución de Fase Específica
|
|
14
|
-
|
|
15
|
-
**IMPORTANTE:** Detectar si el usuario especificó una fase para ejecutar.
|
|
16
|
-
|
|
17
|
-
### Detectar Argumento de Fase
|
|
18
|
-
|
|
19
|
-
// turbo
|
|
20
|
-
Buscar en el mensaje del usuario patrones como:
|
|
21
|
-
|
|
22
|
-
- "fase 0", "fase 1", "fase 2", ..., "fase 10"
|
|
23
|
-
- "phase 0", "phase 1", etc.
|
|
24
|
-
- "ejecutar fase N"
|
|
25
|
-
- "run phase N"
|
|
26
|
-
|
|
27
|
-
### Comportamiento
|
|
28
|
-
|
|
29
|
-
**Si se detecta "fase N" (donde N = 0-10):**
|
|
30
|
-
|
|
31
|
-
1. **Validar que la fase existe para mobile:**
|
|
32
|
-
- Fase 0: Context Discovery
|
|
33
|
-
- Fase 1: Platform & Framework Selection
|
|
34
|
-
- Fase 2: Navigation & Architecture
|
|
35
|
-
- Fase 3: State & Data Management
|
|
36
|
-
- Fase 4: Permissions & Native Features
|
|
37
|
-
- Fase 5: Code Standards
|
|
38
|
-
- Fase 6: Testing Strategy
|
|
39
|
-
- Fase 7: Store Deployment
|
|
40
|
-
- Fase 8: Project Setup & Final Documentation
|
|
41
|
-
- Fase 9: Implementation Roadmap
|
|
42
|
-
- Fase 10: User Stories Generation
|
|
43
|
-
|
|
44
|
-
2. **Si la fase es válida:**
|
|
45
|
-
- Leer el archivo: `.ai-flow/prompts/mobile/flow-build-phase-N.md`
|
|
46
|
-
- Ejecutar SOLO esa fase y seguir sus instrucciones internas.
|
|
47
|
-
- Al finalizar, informar que puede continuar con la siguiente fase usando `/flow-build fase N+1`.
|
|
48
|
-
|
|
49
|
-
3. **Si la fase es inválida:**
|
|
50
|
-
- Listar las fases válidas (0-10) con descripción de una línea.
|
|
51
|
-
|
|
52
|
-
**Si NO se detecta "fase N":**
|
|
53
|
-
- Ejecutar el flujo completo comenzando por la Selección de Modo (A/B).
|
|
54
|
-
---
|
|
55
|
-
## Important Instructions
|
|
56
|
-
|
|
57
|
-
1. **Ask for Questionnaire Mode FIRST** (Interactive vs Smart Auto-Suggest).
|
|
58
|
-
2. **Ask for Project Scope SECOND** (MVP, Production-Ready, or Enterprise).
|
|
59
|
-
3. **Execute ALL applicable phases in order**.
|
|
60
|
-
4. **Ask questions ONE BY ONE**. Wait for the user's answer.
|
|
61
|
-
5. **Show progress indicator before EVERY question**.
|
|
62
|
-
6. **Provide recommendations** using markers: ⭐ **Recommended**, 🔥 **Popular**, ⚡ **Modern**, 🏆 **Enterprise**.
|
|
63
|
-
7. **Generate documents incrementally** after each phase.
|
|
64
|
-
---
|
|
65
|
-
## 🚀 Mode Selection
|
|
66
|
-
|
|
67
|
-
**BEFORE STARTING ANY PHASE**, ask the user to select the questionnaire mode:
|
|
68
|
-
|
|
69
|
-
A) ⭐ **Interactive Mode (Recommended)**
|
|
70
|
-
• Full control, step-by-step questions. (100-130 min)
|
|
71
|
-
|
|
72
|
-
B) ⚡ **Smart Auto-Suggest Mode**
|
|
73
|
-
• AI suggests best practices, you answer 6 critical questions. (20-30 min)
|
|
74
|
-
|
|
75
|
-
Your choice (A/B): __
|
|
76
|
-
|
|
77
|
-
**Based on the selection:**
|
|
78
|
-
- **Mode A (Interactive):** Proceed with normal sequential flow (Phases 0-10).
|
|
79
|
-
- **Mode B (Smart Auto-Suggest):** Ask the following 6 critical questions one by one, then auto-generate all suggestions based on industry standards and the app type:
|
|
80
|
-
|
|
81
|
-
1. **Project Name & Description** (Skip if Phase 0 detected context)
|
|
82
|
-
2. **Target Platform:** iOS, Android, or Cross-platform (iOS + Android)?
|
|
83
|
-
3. **Application Type:** E-commerce, Utility, Social, Healthcare, Fintech, Management, etc.
|
|
84
|
-
4. **Framework Foundation:** React Native, Flutter, Native Swift, Native Kotlin.
|
|
85
|
-
5. **Core Native Features:** Camera, GPS, Biometrics, Push Notifications, Bluetooth, etc.
|
|
86
|
-
6. **Offline & Data Persistence:** Full offline sync or basic local caching.
|
|
87
|
-
|
|
88
|
-
**AI Logic for Auto-Suggest:**
|
|
89
|
-
- Generate comprehensive suggestions for all phases (1-10).
|
|
90
|
-
- Use modern tools matching the framework (e.g., RN -> MMKV/Zustand).
|
|
91
|
-
- Adjust complexity based on scope (MVP vs Enterprise).
|
|
92
|
-
- Present a summary for confirmation before generating documentation.
|
|
93
|
-
---
|
|
94
|
-
|
|
95
|
-
## 📚 Flow Overview & Modular Phases
|
|
96
|
-
|
|
97
|
-
| Phase | Description | File |
|
|
98
|
-
|-------|-------------|------|
|
|
99
|
-
| **Phase 0** | Context Discovery | `mobile/flow-build-phase-0.md` |
|
|
100
|
-
| **Phase 1** | Platform & Framework | `mobile/flow-build-phase-1.md` |
|
|
101
|
-
| **Phase 2** | Navigation & Architecture| `mobile/flow-build-phase-2.md` |
|
|
102
|
-
| **Phase 3** | State & Data Mgmt | `mobile/flow-build-phase-3.md` |
|
|
103
|
-
| **Phase 4** | Permissions & Native | `mobile/flow-build-phase-4.md` |
|
|
104
|
-
| **Phase 5** | Code Standards | `mobile/flow-build-phase-5.md` |
|
|
105
|
-
| **Phase 6** | Testing Strategy | `mobile/flow-build-phase-6.md` |
|
|
106
|
-
| **Phase 7** | Store Deployment | `mobile/flow-build-phase-7.md` |
|
|
107
|
-
| **Phase 8** | Setup & Final Docs | `mobile/flow-build-phase-8.md` |
|
|
108
|
-
| **Phase 9** | Roadmap (Optional) | `mobile/flow-build-phase-9.md` |
|
|
109
|
-
| **Phase 10** | User Stories (Optional)| `mobile/flow-build-phase-10.md` |
|
|
110
|
-
|
|
111
|
-
---
|
|
112
|
-
## 📋 Scope Selection (MVP / Production / Enterprise)
|
|
113
|
-
|
|
114
|
-
Before starting Phase 1, ask the user to select the Project Scope.
|
|
115
|
-
> 📎 **Reference:** See [scope-levels.md](../../.ai-flow/prompts/shared/scope-levels.md)
|
|
116
|
-
|
|
117
|
-
---
|
|
118
|
-
## 🔄 Documentation Sync
|
|
119
|
-
|
|
120
|
-
As your project grows, use the following to keep docs updated:
|
|
121
|
-
**Command:** `/flow-docs-sync`
|
|
122
|
-
**Logic:** Read `.ai-flow/prompts/mobile/flow-docs-sync.md`.
|
|
123
|
-
|
|
124
|
-
---
|
|
125
|
-
## 🎯 After Completion
|
|
126
|
-
|
|
127
|
-
ALWAYS present a final summary:
|
|
128
|
-
1. **Quick Summary:** 1 paragraph overview.
|
|
129
|
-
2. **Extended Report:** Key decisions by phase.
|
|
130
|
-
3. **Scaffolding:** Offer to initialize or commit changes.
|
|
131
|
-
|
|
132
|
-
---
|
|
133
|
-
_Version: 4.2 (v2.1.9) (Antigravity Optimized - Modularized & Turbo-Enabled)_
|
|
134
|
-
_Last Updated: 2025-12-21_
|
|
135
|
-
_AI Flow - Transform your mobile idea into reality_
|
|
1
|
+
---
|
|
2
|
+
description: Mobile Master Prompt - Discovery, Architecture & Setup
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# AI Flow - Mobile Master Prompt
|
|
6
|
+
|
|
7
|
+
**YOU ARE AN EXPERT MOBILE ARCHITECT AND DOCUMENTATION SPECIALIST.**
|
|
8
|
+
|
|
9
|
+
Your mission is to guide the user through creating **comprehensive, production-ready documentation** for their mobile application through an interactive questionnaire that follows the dependency-aware order specified below.
|
|
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
|
+
## 🎯 Ejecución de Fase Específica
|
|
14
|
+
|
|
15
|
+
**IMPORTANTE:** Detectar si el usuario especificó una fase para ejecutar.
|
|
16
|
+
|
|
17
|
+
### Detectar Argumento de Fase
|
|
18
|
+
|
|
19
|
+
// turbo
|
|
20
|
+
Buscar en el mensaje del usuario patrones como:
|
|
21
|
+
|
|
22
|
+
- "fase 0", "fase 1", "fase 2", ..., "fase 10"
|
|
23
|
+
- "phase 0", "phase 1", etc.
|
|
24
|
+
- "ejecutar fase N"
|
|
25
|
+
- "run phase N"
|
|
26
|
+
|
|
27
|
+
### Comportamiento
|
|
28
|
+
|
|
29
|
+
**Si se detecta "fase N" (donde N = 0-10):**
|
|
30
|
+
|
|
31
|
+
1. **Validar que la fase existe para mobile:**
|
|
32
|
+
- Fase 0: Context Discovery
|
|
33
|
+
- Fase 1: Platform & Framework Selection
|
|
34
|
+
- Fase 2: Navigation & Architecture
|
|
35
|
+
- Fase 3: State & Data Management
|
|
36
|
+
- Fase 4: Permissions & Native Features
|
|
37
|
+
- Fase 5: Code Standards
|
|
38
|
+
- Fase 6: Testing Strategy
|
|
39
|
+
- Fase 7: Store Deployment
|
|
40
|
+
- Fase 8: Project Setup & Final Documentation
|
|
41
|
+
- Fase 9: Implementation Roadmap
|
|
42
|
+
- Fase 10: User Stories Generation
|
|
43
|
+
|
|
44
|
+
2. **Si la fase es válida:**
|
|
45
|
+
- Leer el archivo: `.ai-flow/prompts/mobile/flow-build-phase-N.md`
|
|
46
|
+
- Ejecutar SOLO esa fase y seguir sus instrucciones internas.
|
|
47
|
+
- Al finalizar, informar que puede continuar con la siguiente fase usando `/flow-build fase N+1`.
|
|
48
|
+
|
|
49
|
+
3. **Si la fase es inválida:**
|
|
50
|
+
- Listar las fases válidas (0-10) con descripción de una línea.
|
|
51
|
+
|
|
52
|
+
**Si NO se detecta "fase N":**
|
|
53
|
+
- Ejecutar el flujo completo comenzando por la Selección de Modo (A/B).
|
|
54
|
+
---
|
|
55
|
+
## Important Instructions
|
|
56
|
+
|
|
57
|
+
1. **Ask for Questionnaire Mode FIRST** (Interactive vs Smart Auto-Suggest).
|
|
58
|
+
2. **Ask for Project Scope SECOND** (MVP, Production-Ready, or Enterprise).
|
|
59
|
+
3. **Execute ALL applicable phases in order**.
|
|
60
|
+
4. **Ask questions ONE BY ONE**. Wait for the user's answer.
|
|
61
|
+
5. **Show progress indicator before EVERY question**.
|
|
62
|
+
6. **Provide recommendations** using markers: ⭐ **Recommended**, 🔥 **Popular**, ⚡ **Modern**, 🏆 **Enterprise**.
|
|
63
|
+
7. **Generate documents incrementally** after each phase.
|
|
64
|
+
---
|
|
65
|
+
## 🚀 Mode Selection
|
|
66
|
+
|
|
67
|
+
**BEFORE STARTING ANY PHASE**, ask the user to select the questionnaire mode:
|
|
68
|
+
|
|
69
|
+
A) ⭐ **Interactive Mode (Recommended)**
|
|
70
|
+
• Full control, step-by-step questions. (100-130 min)
|
|
71
|
+
|
|
72
|
+
B) ⚡ **Smart Auto-Suggest Mode**
|
|
73
|
+
• AI suggests best practices, you answer 6 critical questions. (20-30 min)
|
|
74
|
+
|
|
75
|
+
Your choice (A/B): __
|
|
76
|
+
|
|
77
|
+
**Based on the selection:**
|
|
78
|
+
- **Mode A (Interactive):** Proceed with normal sequential flow (Phases 0-10).
|
|
79
|
+
- **Mode B (Smart Auto-Suggest):** Ask the following 6 critical questions one by one, then auto-generate all suggestions based on industry standards and the app type:
|
|
80
|
+
|
|
81
|
+
1. **Project Name & Description** (Skip if Phase 0 detected context)
|
|
82
|
+
2. **Target Platform:** iOS, Android, or Cross-platform (iOS + Android)?
|
|
83
|
+
3. **Application Type:** E-commerce, Utility, Social, Healthcare, Fintech, Management, etc.
|
|
84
|
+
4. **Framework Foundation:** React Native, Flutter, Native Swift, Native Kotlin.
|
|
85
|
+
5. **Core Native Features:** Camera, GPS, Biometrics, Push Notifications, Bluetooth, etc.
|
|
86
|
+
6. **Offline & Data Persistence:** Full offline sync or basic local caching.
|
|
87
|
+
|
|
88
|
+
**AI Logic for Auto-Suggest:**
|
|
89
|
+
- Generate comprehensive suggestions for all phases (1-10).
|
|
90
|
+
- Use modern tools matching the framework (e.g., RN -> MMKV/Zustand).
|
|
91
|
+
- Adjust complexity based on scope (MVP vs Enterprise).
|
|
92
|
+
- Present a summary for confirmation before generating documentation.
|
|
93
|
+
---
|
|
94
|
+
|
|
95
|
+
## 📚 Flow Overview & Modular Phases
|
|
96
|
+
|
|
97
|
+
| Phase | Description | File |
|
|
98
|
+
|-------|-------------|------|
|
|
99
|
+
| **Phase 0** | Context Discovery | `mobile/flow-build-phase-0.md` |
|
|
100
|
+
| **Phase 1** | Platform & Framework | `mobile/flow-build-phase-1.md` |
|
|
101
|
+
| **Phase 2** | Navigation & Architecture| `mobile/flow-build-phase-2.md` |
|
|
102
|
+
| **Phase 3** | State & Data Mgmt | `mobile/flow-build-phase-3.md` |
|
|
103
|
+
| **Phase 4** | Permissions & Native | `mobile/flow-build-phase-4.md` |
|
|
104
|
+
| **Phase 5** | Code Standards | `mobile/flow-build-phase-5.md` |
|
|
105
|
+
| **Phase 6** | Testing Strategy | `mobile/flow-build-phase-6.md` |
|
|
106
|
+
| **Phase 7** | Store Deployment | `mobile/flow-build-phase-7.md` |
|
|
107
|
+
| **Phase 8** | Setup & Final Docs | `mobile/flow-build-phase-8.md` |
|
|
108
|
+
| **Phase 9** | Roadmap (Optional) | `mobile/flow-build-phase-9.md` |
|
|
109
|
+
| **Phase 10** | User Stories (Optional)| `mobile/flow-build-phase-10.md` |
|
|
110
|
+
|
|
111
|
+
---
|
|
112
|
+
## 📋 Scope Selection (MVP / Production / Enterprise)
|
|
113
|
+
|
|
114
|
+
Before starting Phase 1, ask the user to select the Project Scope.
|
|
115
|
+
> 📎 **Reference:** See [scope-levels.md](../../.ai-flow/prompts/shared/scope-levels.md)
|
|
116
|
+
|
|
117
|
+
---
|
|
118
|
+
## 🔄 Documentation Sync
|
|
119
|
+
|
|
120
|
+
As your project grows, use the following to keep docs updated:
|
|
121
|
+
**Command:** `/flow-docs-sync`
|
|
122
|
+
**Logic:** Read `.ai-flow/prompts/mobile/flow-docs-sync.md`.
|
|
123
|
+
|
|
124
|
+
---
|
|
125
|
+
## 🎯 After Completion
|
|
126
|
+
|
|
127
|
+
ALWAYS present a final summary:
|
|
128
|
+
1. **Quick Summary:** 1 paragraph overview.
|
|
129
|
+
2. **Extended Report:** Key decisions by phase.
|
|
130
|
+
3. **Scaffolding:** Offer to initialize or commit changes.
|
|
131
|
+
|
|
132
|
+
---
|
|
133
|
+
_Version: 4.2 (v2.1.9) (Antigravity Optimized - Modularized & Turbo-Enabled)_
|
|
134
|
+
_Last Updated: 2025-12-21_
|
|
135
|
+
_AI Flow - Transform your mobile idea into reality_
|