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.
Files changed (99) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +408 -0
  3. package/dist/cli.d.ts +3 -0
  4. package/dist/cli.d.ts.map +1 -0
  5. package/dist/cli.js +791 -0
  6. package/dist/cli.js.map +1 -0
  7. package/dist/fs-utils.d.ts +2 -0
  8. package/dist/fs-utils.d.ts.map +1 -0
  9. package/dist/fs-utils.js +46 -0
  10. package/dist/fs-utils.js.map +1 -0
  11. package/package.json +71 -0
  12. package/prompts/backend/flow-dev-feature.md +1318 -0
  13. package/prompts/backend/flow-dev-fix.md +903 -0
  14. package/prompts/backend/flow-dev-refactor.md +715 -0
  15. package/prompts/backend/flow-dev-review.md +401 -0
  16. package/prompts/backend/flow-dev-work.md +1129 -0
  17. package/prompts/backend/flow-docs-gen-phase-0.md +1840 -0
  18. package/prompts/backend/flow-docs-gen-phase-1.md +435 -0
  19. package/prompts/backend/flow-docs-gen-phase-2.md +460 -0
  20. package/prompts/backend/flow-docs-gen-phase-3.md +684 -0
  21. package/prompts/backend/flow-docs-gen-phase-4.md +516 -0
  22. package/prompts/backend/flow-docs-gen-phase-5.md +637 -0
  23. package/prompts/backend/flow-docs-gen-phase-6.md +465 -0
  24. package/prompts/backend/flow-docs-gen-phase-7.md +1207 -0
  25. package/prompts/backend/flow-docs-gen.md +820 -0
  26. package/prompts/backend/flow-docs-sync.md +526 -0
  27. package/prompts/backend/flow-project-init.md +248 -0
  28. package/prompts/backend/flow-project-roadmap.md +1159 -0
  29. package/prompts/frontend/flow-docs-gen-phase-0.md +494 -0
  30. package/prompts/frontend/flow-docs-gen-phase-1.md +449 -0
  31. package/prompts/frontend/flow-docs-gen-phase-2.md +983 -0
  32. package/prompts/frontend/flow-docs-gen-phase-3.md +685 -0
  33. package/prompts/frontend/flow-docs-gen-phase-4.md +480 -0
  34. package/prompts/frontend/flow-docs-gen-phase-5.md +483 -0
  35. package/prompts/frontend/flow-docs-gen-phase-6.md +570 -0
  36. package/prompts/frontend/flow-docs-gen-phase-7.md +582 -0
  37. package/prompts/frontend/flow-docs-gen.md +413 -0
  38. package/prompts/frontend/flow-docs-sync.md +561 -0
  39. package/prompts/mobile/flow-docs-gen-phase-0.md +387 -0
  40. package/prompts/mobile/flow-docs-gen-phase-1.md +530 -0
  41. package/prompts/mobile/flow-docs-gen-phase-2.md +584 -0
  42. package/prompts/mobile/flow-docs-gen-phase-3.md +659 -0
  43. package/prompts/mobile/flow-docs-gen-phase-4.md +363 -0
  44. package/prompts/mobile/flow-docs-gen-phase-5.md +369 -0
  45. package/prompts/mobile/flow-docs-gen-phase-6.md +490 -0
  46. package/prompts/mobile/flow-docs-gen-phase-7.md +407 -0
  47. package/prompts/mobile/flow-docs-gen.md +430 -0
  48. package/prompts/mobile/flow-docs-sync.md +634 -0
  49. package/templates/backend/.clauderules.template +111 -0
  50. package/templates/backend/.cursorrules.template +102 -0
  51. package/templates/backend/.env.example.template +122 -0
  52. package/templates/backend/README.template.md +200 -0
  53. package/templates/backend/ai-instructions.template.md +354 -0
  54. package/templates/backend/copilot-instructions.template.md +160 -0
  55. package/templates/backend/docs/api.template.md +251 -0
  56. package/templates/backend/docs/architecture.template.md +612 -0
  57. package/templates/backend/docs/business-flows.template.md +109 -0
  58. package/templates/backend/docs/code-standards.template.md +828 -0
  59. package/templates/backend/docs/contributing.template.md +163 -0
  60. package/templates/backend/docs/data-model.template.md +416 -0
  61. package/templates/backend/docs/operations.template.md +591 -0
  62. package/templates/backend/docs/testing.template.md +762 -0
  63. package/templates/backend/project-brief.template.md +176 -0
  64. package/templates/backend/specs/configuration.template.md +133 -0
  65. package/templates/backend/specs/security.template.md +422 -0
  66. package/templates/frontend/README.template.md +121 -0
  67. package/templates/frontend/ai-instructions.template.md +368 -0
  68. package/templates/frontend/docs/api-integration.template.md +390 -0
  69. package/templates/frontend/docs/components.template.md +567 -0
  70. package/templates/frontend/docs/error-handling.template.md +385 -0
  71. package/templates/frontend/docs/operations.template.md +123 -0
  72. package/templates/frontend/docs/performance.template.md +140 -0
  73. package/templates/frontend/docs/pwa.template.md +135 -0
  74. package/templates/frontend/docs/state-management.template.md +394 -0
  75. package/templates/frontend/docs/styling.template.md +779 -0
  76. package/templates/frontend/docs/testing.template.md +736 -0
  77. package/templates/frontend/project-brief.template.md +55 -0
  78. package/templates/frontend/specs/accessibility.template.md +111 -0
  79. package/templates/frontend/specs/configuration.template.md +520 -0
  80. package/templates/frontend/specs/security.template.md +197 -0
  81. package/templates/fullstack/README.template.md +282 -0
  82. package/templates/fullstack/ai-instructions.template.md +487 -0
  83. package/templates/fullstack/project-brief.template.md +197 -0
  84. package/templates/fullstack/specs/configuration.template.md +380 -0
  85. package/templates/mobile/AGENT.template.md +251 -0
  86. package/templates/mobile/README.template.md +195 -0
  87. package/templates/mobile/ai-instructions.template.md +221 -0
  88. package/templates/mobile/docs/app-store.template.md +163 -0
  89. package/templates/mobile/docs/architecture.template.md +100 -0
  90. package/templates/mobile/docs/native-features.template.md +137 -0
  91. package/templates/mobile/docs/navigation.template.md +81 -0
  92. package/templates/mobile/docs/offline-strategy.template.md +90 -0
  93. package/templates/mobile/docs/permissions.template.md +70 -0
  94. package/templates/mobile/docs/state-management.template.md +116 -0
  95. package/templates/mobile/docs/testing.template.md +146 -0
  96. package/templates/mobile/project-brief.template.md +97 -0
  97. package/templates/mobile/specs/build-configuration.template.md +116 -0
  98. package/templates/mobile/specs/deployment.template.md +114 -0
  99. package/templates/shared/AGENT.template.md +252 -0
@@ -0,0 +1,116 @@
1
+ # Build Configuration
2
+
3
+ > Build and CI/CD configuration for {{PROJECT_NAME}}
4
+
5
+ ---
6
+
7
+ ## 🔧 Build Tools
8
+
9
+ **CI/CD Platform:** {{CICD_PLATFORM}}
10
+
11
+ **Build Automation:** {{BUILD_AUTOMATION_TOOL}}
12
+
13
+ **Versioning:** {{VERSIONING_STRATEGY}}
14
+
15
+ ---
16
+
17
+ ## 📦 Build Configuration
18
+
19
+ ### iOS Build
20
+
21
+ **Xcode Version:** {{XCODE_VERSION}}
22
+
23
+ **iOS Deployment Target:** {{IOS_DEPLOYMENT_TARGET}}
24
+
25
+ **Build Configuration:**
26
+ {{IOS_BUILD_CONFIGURATION}}
27
+
28
+ ### Android Build
29
+
30
+ **Gradle Version:** {{GRADLE_VERSION}}
31
+
32
+ **Android SDK:** {{ANDROID_SDK_VERSION}}
33
+
34
+ **Min SDK:** {{MIN_ANDROID_SDK}}
35
+
36
+ **Target SDK:** {{TARGET_ANDROID_SDK}}
37
+
38
+ **Build Configuration:**
39
+ {{ANDROID_BUILD_CONFIGURATION}}
40
+
41
+ ---
42
+
43
+ ## 🔐 Code Signing
44
+
45
+ **Code Signing Strategy:** {{CODE_SIGNING_STRATEGY}}
46
+
47
+ ### iOS
48
+
49
+ {{IOS_CODE_SIGNING_DESCRIPTION}}
50
+
51
+ ### Android
52
+
53
+ {{ANDROID_CODE_SIGNING_DESCRIPTION}}
54
+
55
+ ---
56
+
57
+ ## 🚀 CI/CD Pipeline
58
+
59
+ **Pipeline Configuration:**
60
+ {{CICD_PIPELINE_DESCRIPTION}}
61
+
62
+ ### Build Steps
63
+
64
+ {{BUILD_STEPS}}
65
+
66
+ ### Test Steps
67
+
68
+ {{TEST_STEPS}}
69
+
70
+ ### Deployment Steps
71
+
72
+ {{DEPLOYMENT_STEPS}}
73
+
74
+ ---
75
+
76
+ ## 📊 Build Artifacts
77
+
78
+ **iOS:**
79
+ - IPA file
80
+ - dSYM file (for crash reporting)
81
+
82
+ **Android:**
83
+ - APK file (for testing)
84
+ - AAB file (for Play Store)
85
+
86
+ ---
87
+
88
+ ## 🔄 Version Management
89
+
90
+ **Versioning Strategy:** {{VERSIONING_STRATEGY}}
91
+
92
+ **Version Format:** {{VERSION_FORMAT}}
93
+
94
+ **Version Increment:** {{VERSION_INCREMENT_RULES}}
95
+
96
+ ---
97
+
98
+ ## 🛠️ Environment Variables
99
+
100
+ {{ENVIRONMENT_VARIABLES}}
101
+
102
+ ---
103
+
104
+ ## ✅ Build Checklist
105
+
106
+ - [ ] Build succeeds locally
107
+ - [ ] Tests pass
108
+ - [ ] Linting passes
109
+ - [ ] Code signing configured
110
+ - [ ] Environment variables set
111
+ - [ ] Build artifacts generated
112
+
113
+ ---
114
+
115
+ **Last Updated:** {{LAST_UPDATED}}
116
+
@@ -0,0 +1,114 @@
1
+ # Deployment Procedures
2
+
3
+ > Step-by-step deployment guide for {{PROJECT_NAME}}
4
+
5
+ ---
6
+
7
+ ## 🚀 Deployment Overview
8
+
9
+ **Deployment Strategy:** {{DEPLOYMENT_STRATEGY}}
10
+
11
+ **Release Frequency:** {{RELEASE_FREQUENCY}}
12
+
13
+ **Rollback Strategy:** {{ROLLBACK_STRATEGY}}
14
+
15
+ ---
16
+
17
+ ## 📱 iOS Deployment
18
+
19
+ ### Prerequisites
20
+
21
+ - Apple Developer Account
22
+ - Xcode installed
23
+ - Code signing certificates configured
24
+
25
+ ### Steps
26
+
27
+ {{IOS_DEPLOYMENT_STEPS}}
28
+
29
+ ### Fastlane (if used)
30
+
31
+ ```bash
32
+ fastlane ios release
33
+ ```
34
+
35
+ ---
36
+
37
+ ## 🤖 Android Deployment
38
+
39
+ ### Prerequisites
40
+
41
+ - Google Play Developer Account
42
+ - Signing keystore configured
43
+ - AAB file built
44
+
45
+ ### Steps
46
+
47
+ {{ANDROID_DEPLOYMENT_STEPS}}
48
+
49
+ ### Fastlane (if used)
50
+
51
+ ```bash
52
+ fastlane android release
53
+ ```
54
+
55
+ ---
56
+
57
+ ## 🔄 Staged Rollout
58
+
59
+ **Rollout Strategy:** {{ROLLOUT_STRATEGY}}
60
+
61
+ {{ROLLOUT_DESCRIPTION}}
62
+
63
+ ---
64
+
65
+ ## 🔙 Rollback Procedure
66
+
67
+ **Rollback Strategy:** {{ROLLBACK_STRATEGY}}
68
+
69
+ {{ROLLBACK_PROCEDURE}}
70
+
71
+ ---
72
+
73
+ ## 📊 Post-Deployment
74
+
75
+ ### Monitoring
76
+
77
+ - Monitor crash reports
78
+ - Monitor analytics
79
+ - Monitor user reviews
80
+
81
+ ### Verification
82
+
83
+ - [ ] App appears in stores
84
+ - [ ] App installs correctly
85
+ - [ ] Key features work
86
+ - [ ] No critical crashes
87
+
88
+ ---
89
+
90
+ ## ✅ Deployment Checklist
91
+
92
+ ### Pre-Deployment
93
+
94
+ - [ ] All tests pass
95
+ - [ ] Version number updated
96
+ - [ ] Release notes prepared
97
+ - [ ] Screenshots updated
98
+ - [ ] Metadata reviewed
99
+
100
+ ### Deployment
101
+
102
+ - [ ] Build uploaded
103
+ - [ ] Metadata submitted
104
+ - [ ] Submitted for review
105
+
106
+ ### Post-Deployment
107
+
108
+ - [ ] Monitoring active
109
+ - [ ] Ready for rollback if needed
110
+
111
+ ---
112
+
113
+ **Last Updated:** {{LAST_UPDATED}}
114
+
@@ -0,0 +1,252 @@
1
+ # AGENT.md
2
+
3
+ > Universal AI Assistant Configuration
4
+ >
5
+ > This file provides context for ALL AI development tools (Claude, Copilot, Cursor, Gemini, etc.)
6
+
7
+ ---
8
+
9
+ ## 📋 About This Project
10
+
11
+ **Project Name:** {{PROJECT_NAME}}
12
+
13
+ **Description:** {{PROJECT_DESCRIPTION}}
14
+
15
+ **Problem We're Solving:** {{PROBLEM_STATEMENT}}
16
+
17
+ **Target Users:** {{TARGET_USERS}}
18
+
19
+ ### Technical Context
20
+
21
+ **Project Type:** Backend API/Service
22
+ **Architecture:** {{ARCHITECTURE_PATTERN}}
23
+ **Primary Language:** {{LANGUAGE}} {{LANGUAGE_VERSION}}
24
+ **Framework:** {{FRAMEWORK}}
25
+ **Database:** {{DATABASE}} with {{ORM}}
26
+
27
+ **Key Characteristics:**
28
+
29
+ - Authentication: {{AUTH_METHOD}}
30
+ - API Style: {{API_STYLE}}
31
+ - Deployment: {{DEPLOYMENT_PLATFORM}}
32
+ - Current Phase: {{PROJECT_PHASE}}
33
+
34
+ > This project uses AI-assisted development with comprehensive documentation.
35
+ > All files below provide context to AI assistants for consistent, high-quality code generation.
36
+
37
+ ---
38
+
39
+ ## 🏗️ Documentation Architecture
40
+
41
+ This project follows **AI-assisted development** with comprehensive documentation.
42
+ All documentation is structured to guide AI assistants in understanding the project deeply.
43
+
44
+ ### 📚 Core Documentation (Read in Order)
45
+
46
+ 1. **`ai-instructions.md`** ⭐ **START HERE**
47
+
48
+ - Tech stack and versions
49
+ - NEVER/ALWAYS rules
50
+ - Development workflow
51
+ - Priorities
52
+
53
+ 2. **`project-brief.md`**
54
+
55
+ - Business context
56
+ - Objectives and scope
57
+ - Constraints and success metrics
58
+
59
+ 3. **`README.md`**
60
+
61
+ - Quick start
62
+ - Installation and commands
63
+ - Project directory tour
64
+
65
+ 4. **`docs/architecture.md`**
66
+
67
+ - System architecture pattern
68
+ - Component structure
69
+ - Request/response flow
70
+
71
+ 5. **`docs/data-model.md`**
72
+
73
+ - Database schema
74
+ - Entity relationships
75
+ - Data patterns
76
+
77
+ 6. **`docs/code-standards.md`**
78
+
79
+ - Naming conventions
80
+ - Code quality rules
81
+ - Error handling patterns
82
+
83
+ 7. **`docs/testing.md`**
84
+
85
+ - Testing strategy
86
+ - Coverage requirements
87
+ - Test patterns
88
+
89
+ 8. **`docs/operations.md`**
90
+
91
+ - Deployment procedures
92
+ - Monitoring and alerts
93
+ - Scaling strategy
94
+
95
+ 9. **`docs/business-flows.md`**
96
+
97
+ - End-to-end business processes
98
+ - Key actors and systems
99
+ - Flow diagrams
100
+
101
+ 10. **`docs/api.md`**
102
+
103
+ - Endpoint conventions
104
+ - Authentication and pagination rules
105
+ - Request/response examples
106
+
107
+ 11. **`docs/contributing.md`**
108
+
109
+ - Development setup
110
+ - Contribution guidelines
111
+ - Code review process
112
+
113
+ 12. **`specs/security.md`**
114
+
115
+ - Authentication/Authorization
116
+ - Security policies
117
+ - Compliance requirements
118
+
119
+ 13. **`specs/configuration.md`**
120
+
121
+ - Environment variables
122
+ - External services
123
+ - Configuration by environment
124
+
125
+ 14. **`.env.example`**
126
+ - Required environment variables
127
+ - Default/local values
128
+ - Secrets handling guidance
129
+
130
+ ---
131
+
132
+ ## ⚡ Quick Reference
133
+
134
+ ### Tech Stack
135
+
136
+ **Backend:**
137
+
138
+ - Framework: {{FRAMEWORK}}
139
+ - Language: {{LANGUAGE}} {{LANGUAGE_VERSION}}
140
+ - Database: {{DATABASE}}
141
+ - ORM: {{ORM}}
142
+ - Authentication: {{AUTH_METHOD}}
143
+ - Caching: {{CACHE_STRATEGY}}
144
+
145
+ **Infrastructure:**
146
+
147
+ - Deployment: {{DEPLOYMENT_PLATFORM}}
148
+ - CI/CD: {{CICD_PLATFORM}}
149
+ - Monitoring: {{MONITORING_TOOLS}}
150
+
151
+ ### Critical Rules
152
+
153
+ **❌ NEVER:**
154
+ {{NEVER_RULES}}
155
+
156
+ **✅ ALWAYS:**
157
+ {{ALWAYS_RULES}}
158
+
159
+ ---
160
+
161
+ ## 🤖 AI Assistant Workflow
162
+
163
+ When working on this project:
164
+
165
+ 1. **Before starting ANY task:**
166
+
167
+ - Read `ai-instructions.md` for project-wide rules
168
+ - Check relevant documentation for the area you're working on
169
+ - Understand the business context from `project-brief.md`
170
+
171
+ 2. **When implementing features:**
172
+
173
+ - Follow architecture patterns from `docs/architecture.md`
174
+ - Respect data models from `docs/data-model.md`
175
+ - Apply code standards from `docs/code-standards.md`
176
+ - Add tests according to `docs/testing.md`
177
+
178
+ 3. **When handling security:**
179
+
180
+ - Consult `specs/security.md` for auth/authz
181
+ - Never hardcode secrets (use `specs/configuration.md`)
182
+ - Follow security headers and encryption requirements
183
+
184
+ 4. **When deploying:**
185
+ - Follow procedures in `docs/operations.md`
186
+ - Update configuration per environment
187
+ - Check health endpoints
188
+
189
+ ---
190
+
191
+ ## 🛠️ Tool-Specific Configurations
192
+
193
+ Different AI tools have specific configuration files that extend this AGENT.md:
194
+
195
+ ### Claude Code
196
+
197
+ - **File:** `.clauderules`
198
+ - **Purpose:** Claude-specific instructions and preferences
199
+ - **References:** This AGENT.md + project docs
200
+
201
+ ### Cursor
202
+
203
+ - **File:** `.cursorrules`
204
+ - **Purpose:** Cursor-specific context and rules
205
+ - **References:** This AGENT.md + project docs
206
+
207
+ ### GitHub Copilot
208
+
209
+ - **File:** `.github/copilot-instructions.md`
210
+ - **Purpose:** Copilot workspace instructions
211
+ - **References:** This AGENT.md + project docs
212
+
213
+ **All tool-specific configs reference this AGENT.md as the source of truth.**
214
+
215
+ ---
216
+
217
+ ## 📊 Project Status
218
+
219
+ **Current Phase:** {{PROJECT_PHASE}}
220
+
221
+ **Architecture:** {{ARCHITECTURE_PATTERN}}
222
+
223
+ **Compliance:** {{COMPLIANCE_REQUIREMENTS}}
224
+
225
+ ---
226
+
227
+ ## 🚀 Getting Started
228
+
229
+ ### For AI Assistants
230
+
231
+ 1. Read this AGENT.md completely
232
+ 2. Read `ai-instructions.md` for critical rules
233
+ 3. Familiarize with `docs/architecture.md`
234
+ 4. Review `docs/code-standards.md` for coding patterns
235
+ 5. Check `specs/security.md` before handling auth/sensitive data
236
+
237
+ ### For Developers
238
+
239
+ See `README.md` for installation and setup instructions.
240
+
241
+ ---
242
+
243
+ ## 📝 Document Update Policy
244
+
245
+ - Documents are **living artifacts** - update as project evolves
246
+ - Breaking changes to architecture → Update `docs/architecture.md`
247
+ - New security requirements → Update `specs/security.md`
248
+ - Stack changes → Update `ai-instructions.md` AND this AGENT.md
249
+
250
+ **Last Updated:** {{GENERATION_DATE}}
251
+
252
+ **Generated by:** AI Flow v1.1.1