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.
Files changed (171) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +573 -570
  3. package/package.json +74 -74
  4. package/prompts/backend/flow-build-phase-0.md +535 -535
  5. package/prompts/backend/flow-build-phase-1.md +626 -626
  6. package/prompts/backend/flow-build-phase-10.md +340 -340
  7. package/prompts/backend/flow-build-phase-2.md +573 -573
  8. package/prompts/backend/flow-build-phase-3.md +834 -834
  9. package/prompts/backend/flow-build-phase-4.md +554 -554
  10. package/prompts/backend/flow-build-phase-5.md +703 -703
  11. package/prompts/backend/flow-build-phase-6.md +524 -524
  12. package/prompts/backend/flow-build-phase-7.md +1001 -1001
  13. package/prompts/backend/flow-build-phase-8.md +1407 -1407
  14. package/prompts/backend/flow-build-phase-9.md +477 -477
  15. package/prompts/backend/flow-build.md +137 -137
  16. package/prompts/backend/flow-check-review.md +656 -20
  17. package/prompts/backend/flow-check-test.md +526 -14
  18. package/prompts/backend/flow-check.md +717 -67
  19. package/prompts/backend/flow-commit.md +88 -119
  20. package/prompts/backend/flow-docs-sync.md +354 -354
  21. package/prompts/backend/flow-finish.md +919 -0
  22. package/prompts/backend/flow-release.md +949 -0
  23. package/prompts/backend/flow-work-feature.md +61 -61
  24. package/prompts/backend/flow-work-fix.md +46 -46
  25. package/prompts/backend/flow-work-refactor.md +48 -48
  26. package/prompts/backend/flow-work-resume.md +34 -34
  27. package/prompts/backend/flow-work.md +1098 -1286
  28. package/prompts/desktop/flow-build-phase-0.md +359 -359
  29. package/prompts/desktop/flow-build-phase-1.md +295 -295
  30. package/prompts/desktop/flow-build-phase-10.md +357 -357
  31. package/prompts/desktop/flow-build-phase-2.md +282 -282
  32. package/prompts/desktop/flow-build-phase-3.md +291 -291
  33. package/prompts/desktop/flow-build-phase-4.md +308 -308
  34. package/prompts/desktop/flow-build-phase-5.md +269 -269
  35. package/prompts/desktop/flow-build-phase-6.md +350 -350
  36. package/prompts/desktop/flow-build-phase-7.md +297 -297
  37. package/prompts/desktop/flow-build-phase-8.md +541 -541
  38. package/prompts/desktop/flow-build-phase-9.md +439 -439
  39. package/prompts/desktop/flow-build.md +156 -156
  40. package/prompts/desktop/flow-check-review.md +656 -20
  41. package/prompts/desktop/flow-check-test.md +526 -14
  42. package/prompts/desktop/flow-check.md +717 -67
  43. package/prompts/desktop/flow-commit.md +88 -119
  44. package/prompts/desktop/flow-docs-sync.md +354 -354
  45. package/prompts/desktop/flow-finish.md +919 -0
  46. package/prompts/desktop/flow-release.md +662 -0
  47. package/prompts/desktop/flow-work-feature.md +61 -61
  48. package/prompts/desktop/flow-work-fix.md +46 -46
  49. package/prompts/desktop/flow-work-refactor.md +48 -48
  50. package/prompts/desktop/flow-work-resume.md +34 -34
  51. package/prompts/desktop/flow-work.md +1202 -1390
  52. package/prompts/frontend/flow-build-phase-0.md +425 -425
  53. package/prompts/frontend/flow-build-phase-1.md +626 -626
  54. package/prompts/frontend/flow-build-phase-10.md +33 -33
  55. package/prompts/frontend/flow-build-phase-2.md +573 -573
  56. package/prompts/frontend/flow-build-phase-3.md +782 -782
  57. package/prompts/frontend/flow-build-phase-4.md +554 -554
  58. package/prompts/frontend/flow-build-phase-5.md +703 -703
  59. package/prompts/frontend/flow-build-phase-6.md +524 -524
  60. package/prompts/frontend/flow-build-phase-7.md +1001 -1001
  61. package/prompts/frontend/flow-build-phase-8.md +872 -872
  62. package/prompts/frontend/flow-build-phase-9.md +94 -94
  63. package/prompts/frontend/flow-build.md +137 -137
  64. package/prompts/frontend/flow-check-review.md +656 -20
  65. package/prompts/frontend/flow-check-test.md +526 -14
  66. package/prompts/frontend/flow-check.md +717 -67
  67. package/prompts/frontend/flow-commit.md +88 -119
  68. package/prompts/frontend/flow-docs-sync.md +550 -550
  69. package/prompts/frontend/flow-finish.md +919 -0
  70. package/prompts/frontend/flow-release.md +519 -0
  71. package/prompts/frontend/flow-work-api.md +1547 -0
  72. package/prompts/frontend/flow-work-feature.md +61 -61
  73. package/prompts/frontend/flow-work-fix.md +38 -38
  74. package/prompts/frontend/flow-work-refactor.md +48 -48
  75. package/prompts/frontend/flow-work-resume.md +34 -34
  76. package/prompts/frontend/flow-work.md +1595 -1320
  77. package/prompts/mobile/flow-build-phase-0.md +425 -425
  78. package/prompts/mobile/flow-build-phase-1.md +626 -626
  79. package/prompts/mobile/flow-build-phase-10.md +32 -32
  80. package/prompts/mobile/flow-build-phase-2.md +573 -573
  81. package/prompts/mobile/flow-build-phase-3.md +782 -782
  82. package/prompts/mobile/flow-build-phase-4.md +554 -554
  83. package/prompts/mobile/flow-build-phase-5.md +703 -703
  84. package/prompts/mobile/flow-build-phase-6.md +524 -524
  85. package/prompts/mobile/flow-build-phase-7.md +1001 -1001
  86. package/prompts/mobile/flow-build-phase-8.md +888 -888
  87. package/prompts/mobile/flow-build-phase-9.md +90 -90
  88. package/prompts/mobile/flow-build.md +135 -135
  89. package/prompts/mobile/flow-check-review.md +656 -20
  90. package/prompts/mobile/flow-check-test.md +526 -14
  91. package/prompts/mobile/flow-check.md +717 -67
  92. package/prompts/mobile/flow-commit.md +88 -119
  93. package/prompts/mobile/flow-docs-sync.md +620 -620
  94. package/prompts/mobile/flow-finish.md +919 -0
  95. package/prompts/mobile/flow-release.md +751 -0
  96. package/prompts/mobile/flow-work-api.md +1500 -0
  97. package/prompts/mobile/flow-work-feature.md +61 -61
  98. package/prompts/mobile/flow-work-fix.md +46 -46
  99. package/prompts/mobile/flow-work-refactor.md +48 -48
  100. package/prompts/mobile/flow-work-resume.md +34 -34
  101. package/prompts/mobile/flow-work.md +1605 -1329
  102. package/prompts/shared/mermaid-guidelines.md +102 -102
  103. package/prompts/shared/scope-levels.md +114 -114
  104. package/prompts/shared/smart-skip-preflight.md +214 -214
  105. package/prompts/shared/story-points.md +55 -55
  106. package/prompts/shared/task-format.md +74 -74
  107. package/prompts/shared/task-summary-template.md +277 -277
  108. package/templates/AGENT.template.md +443 -443
  109. package/templates/backend/.clauderules.template +112 -112
  110. package/templates/backend/.cursorrules.template +102 -102
  111. package/templates/backend/README.template.md +2 -2
  112. package/templates/backend/ai-instructions.template.md +2 -2
  113. package/templates/backend/copilot-instructions.template.md +2 -2
  114. package/templates/backend/docs/api.template.md +320 -320
  115. package/templates/backend/docs/business-flows.template.md +97 -97
  116. package/templates/backend/docs/code-standards.template.md +2 -2
  117. package/templates/backend/docs/contributing.template.md +3 -3
  118. package/templates/backend/docs/data-model.template.md +520 -520
  119. package/templates/backend/docs/testing.template.md +2 -2
  120. package/templates/backend/project-brief.template.md +2 -2
  121. package/templates/backend/specs/configuration.template.md +2 -2
  122. package/templates/backend/specs/security.template.md +2 -2
  123. package/templates/desktop/.clauderules.template +112 -112
  124. package/templates/desktop/.cursorrules.template +102 -102
  125. package/templates/desktop/README.template.md +170 -170
  126. package/templates/desktop/ai-instructions.template.md +366 -366
  127. package/templates/desktop/copilot-instructions.template.md +140 -140
  128. package/templates/desktop/docs/docs/api.template.md +320 -320
  129. package/templates/desktop/docs/docs/architecture.template.md +724 -724
  130. package/templates/desktop/docs/docs/business-flows.template.md +102 -102
  131. package/templates/desktop/docs/docs/code-standards.template.md +792 -792
  132. package/templates/desktop/docs/docs/contributing.template.md +149 -149
  133. package/templates/desktop/docs/docs/data-model.template.md +520 -520
  134. package/templates/desktop/docs/docs/operations.template.md +720 -720
  135. package/templates/desktop/docs/docs/testing.template.md +722 -722
  136. package/templates/desktop/project-brief.template.md +150 -150
  137. package/templates/desktop/specs/specs/configuration.template.md +121 -121
  138. package/templates/desktop/specs/specs/security.template.md +392 -392
  139. package/templates/frontend/README.template.md +2 -2
  140. package/templates/frontend/ai-instructions.template.md +2 -2
  141. package/templates/frontend/docs/api-integration.template.md +362 -362
  142. package/templates/frontend/docs/components.template.md +2 -2
  143. package/templates/frontend/docs/error-handling.template.md +360 -360
  144. package/templates/frontend/docs/operations.template.md +107 -107
  145. package/templates/frontend/docs/performance.template.md +124 -124
  146. package/templates/frontend/docs/pwa.template.md +119 -119
  147. package/templates/frontend/docs/state-management.template.md +2 -2
  148. package/templates/frontend/docs/styling.template.md +2 -2
  149. package/templates/frontend/docs/testing.template.md +2 -2
  150. package/templates/frontend/project-brief.template.md +2 -2
  151. package/templates/frontend/specs/accessibility.template.md +95 -95
  152. package/templates/frontend/specs/configuration.template.md +2 -2
  153. package/templates/frontend/specs/security.template.md +175 -175
  154. package/templates/fullstack/README.template.md +252 -252
  155. package/templates/fullstack/ai-instructions.template.md +444 -444
  156. package/templates/fullstack/project-brief.template.md +157 -157
  157. package/templates/fullstack/specs/configuration.template.md +340 -340
  158. package/templates/mobile/README.template.md +167 -167
  159. package/templates/mobile/ai-instructions.template.md +196 -196
  160. package/templates/mobile/docs/app-store.template.md +135 -135
  161. package/templates/mobile/docs/architecture.template.md +63 -63
  162. package/templates/mobile/docs/native-features.template.md +94 -94
  163. package/templates/mobile/docs/navigation.template.md +59 -59
  164. package/templates/mobile/docs/offline-strategy.template.md +65 -65
  165. package/templates/mobile/docs/permissions.template.md +56 -56
  166. package/templates/mobile/docs/state-management.template.md +85 -85
  167. package/templates/mobile/docs/testing.template.md +109 -109
  168. package/templates/mobile/project-brief.template.md +69 -69
  169. package/templates/mobile/specs/build-configuration.template.md +91 -91
  170. package/templates/mobile/specs/deployment.template.md +92 -92
  171. package/templates/work.template.md +61 -47
@@ -1,459 +1,459 @@
1
- # AI Instructions - Full Stack
2
-
3
- > **CRITICAL:** Every AI assistant MUST read and follow this document before any work.
1
+ # AI Instructions - Full Stack
2
+
3
+ > **CRITICAL:** Every AI assistant MUST read and follow this document before any work.
4
4
  ---
5
- ## 🎯 Project Overview
6
-
7
- **Name:** {{PROJECT_NAME}}
8
-
9
- **Description:** {{PROJECT_DESCRIPTION}}
10
-
11
- **Purpose:** {{PROBLEM_STATEMENT}}
12
-
13
- **Target Users:** {{TARGET_USERS}}
5
+ ## 🎯 Project Overview
6
+
7
+ **Name:** {{PROJECT_NAME}}
8
+
9
+ **Description:** {{PROJECT_DESCRIPTION}}
10
+
11
+ **Purpose:** {{PROBLEM_STATEMENT}}
12
+
13
+ **Target Users:** {{TARGET_USERS}}
14
14
  ---
15
- ## 🏗️ Tech Stack
16
-
17
- ### Backend
18
-
19
- - **Framework:** {{FRAMEWORK}} {{FRAMEWORK_VERSION}}
20
- - **Language:** {{LANGUAGE}} {{LANGUAGE_VERSION}}
21
- - **Runtime:** {{RUNTIME_VERSION}}
22
- - **Type System:** {{TYPE_SYSTEM}}
23
-
24
- ### Database
25
-
26
- - **Primary Database:** {{DATABASE}} {{DATABASE_VERSION}}
27
- - **ORM:** {{ORM}}
28
- - **Migrations:** {{MIGRATION_TOOL}}
29
- {{#IF_CACHE}}- **Cache:** {{CACHE_TYPE}}{{/IF_CACHE}}
30
-
31
- ### Authentication & Security
32
-
33
- - **Auth Method:** {{AUTH_METHOD}}
34
- - **Password Hashing:** {{PASSWORD_HASH_ALGORITHM}}
35
- - **Token Strategy:** {{TOKEN_STRATEGY}}
36
-
37
- ### Frontend
38
-
39
- - **UI Framework:** {{UI_FRAMEWORK}} {{UI_FRAMEWORK_VERSION}}
40
- - **Meta Framework:** {{META_FRAMEWORK}}
41
- - **Build Tool:** {{BUILD_TOOL}}
42
- - **Package Manager:** {{PACKAGE_MANAGER}}
43
-
44
- ### UI & Components
45
-
46
- - **Component Pattern:** {{COMPONENT_PATTERN}}
47
- - **Component Library:** {{COMPONENT_LIBRARY}}
48
- - **Form Management:** {{FORM_LIBRARY}}
49
- - **Icon System:** {{ICON_SYSTEM}}
50
-
51
- ### State Management
52
-
53
- - **State Solution:** {{STATE_MANAGEMENT}}
54
- - **Data Fetching:** {{DATA_FETCHING}}
55
- - **Cache Strategy:** {{CACHE_STRATEGY}}
56
-
57
- ### Styling
58
-
59
- - **Styling Approach:** {{STYLING_APPROACH}}
60
- - **CSS Preprocessor:** {{CSS_PREPROCESSOR}}
61
- - **Design Tokens:** {{DESIGN_TOKENS}}
62
- - **Theme Support:** {{THEME_SUPPORT}}
63
-
64
- ### Routing
65
-
66
- - **Router:** {{ROUTING_LIBRARY}}
67
- - **Route Strategy:** {{ROUTE_STRATEGY}}
68
-
69
- ### Testing
70
-
71
- - **Backend Unit Testing:** {{UNIT_TEST_FRAMEWORK}}
72
- - **Frontend Unit Testing:** {{UNIT_TEST_FRAMEWORK}}
73
- - **Component Testing:** {{COMPONENT_TEST_LIBRARY}}
74
- - **E2E Testing:** {{E2E_FRAMEWORK}}
75
- - **Coverage Target:** {{TEST_COVERAGE_TARGET}}
76
-
77
- ### Infrastructure
78
-
79
- - **Backend Deployment:** {{DEPLOYMENT_PLATFORM}}
80
- - **Frontend Deployment:** {{FRONTEND_DEPLOYMENT_PLATFORM}}
81
- - **Containerization:** {{DOCKER_USAGE}}
82
- - **CI/CD:** {{CICD_PLATFORM}}
83
- - **CDN:** {{CDN_PROVIDER}}
84
- - **Analytics:** {{ANALYTICS_TOOL}}
85
-
86
- ### Key Libraries
87
-
88
- {{KEY_LIBRARIES}}
15
+ ## 🏗️ Tech Stack
16
+
17
+ ### Backend
18
+
19
+ - **Framework:** {{FRAMEWORK}} {{FRAMEWORK_VERSION}}
20
+ - **Language:** {{LANGUAGE}} {{LANGUAGE_VERSION}}
21
+ - **Runtime:** {{RUNTIME_VERSION}}
22
+ - **Type System:** {{TYPE_SYSTEM}}
23
+
24
+ ### Database
25
+
26
+ - **Primary Database:** {{DATABASE}} {{DATABASE_VERSION}}
27
+ - **ORM:** {{ORM}}
28
+ - **Migrations:** {{MIGRATION_TOOL}}
29
+ {{#IF_CACHE}}- **Cache:** {{CACHE_TYPE}}{{/IF_CACHE}}
30
+
31
+ ### Authentication & Security
32
+
33
+ - **Auth Method:** {{AUTH_METHOD}}
34
+ - **Password Hashing:** {{PASSWORD_HASH_ALGORITHM}}
35
+ - **Token Strategy:** {{TOKEN_STRATEGY}}
36
+
37
+ ### Frontend
38
+
39
+ - **UI Framework:** {{UI_FRAMEWORK}} {{UI_FRAMEWORK_VERSION}}
40
+ - **Meta Framework:** {{META_FRAMEWORK}}
41
+ - **Build Tool:** {{BUILD_TOOL}}
42
+ - **Package Manager:** {{PACKAGE_MANAGER}}
43
+
44
+ ### UI & Components
45
+
46
+ - **Component Pattern:** {{COMPONENT_PATTERN}}
47
+ - **Component Library:** {{COMPONENT_LIBRARY}}
48
+ - **Form Management:** {{FORM_LIBRARY}}
49
+ - **Icon System:** {{ICON_SYSTEM}}
50
+
51
+ ### State Management
52
+
53
+ - **State Solution:** {{STATE_MANAGEMENT}}
54
+ - **Data Fetching:** {{DATA_FETCHING}}
55
+ - **Cache Strategy:** {{CACHE_STRATEGY}}
56
+
57
+ ### Styling
58
+
59
+ - **Styling Approach:** {{STYLING_APPROACH}}
60
+ - **CSS Preprocessor:** {{CSS_PREPROCESSOR}}
61
+ - **Design Tokens:** {{DESIGN_TOKENS}}
62
+ - **Theme Support:** {{THEME_SUPPORT}}
63
+
64
+ ### Routing
65
+
66
+ - **Router:** {{ROUTING_LIBRARY}}
67
+ - **Route Strategy:** {{ROUTE_STRATEGY}}
68
+
69
+ ### Testing
70
+
71
+ - **Backend Unit Testing:** {{UNIT_TEST_FRAMEWORK}}
72
+ - **Frontend Unit Testing:** {{UNIT_TEST_FRAMEWORK}}
73
+ - **Component Testing:** {{COMPONENT_TEST_LIBRARY}}
74
+ - **E2E Testing:** {{E2E_FRAMEWORK}}
75
+ - **Coverage Target:** {{TEST_COVERAGE_TARGET}}
76
+
77
+ ### Infrastructure
78
+
79
+ - **Backend Deployment:** {{DEPLOYMENT_PLATFORM}}
80
+ - **Frontend Deployment:** {{FRONTEND_DEPLOYMENT_PLATFORM}}
81
+ - **Containerization:** {{DOCKER_USAGE}}
82
+ - **CI/CD:** {{CICD_PLATFORM}}
83
+ - **CDN:** {{CDN_PROVIDER}}
84
+ - **Analytics:** {{ANALYTICS_TOOL}}
85
+
86
+ ### Key Libraries
87
+
88
+ {{KEY_LIBRARIES}}
89
89
  ---
90
- ## 🏛️ Architecture
91
-
92
- **Backend Pattern:** {{ARCHITECTURE_PATTERN}}
93
-
94
- {{ARCHITECTURE_DESCRIPTION}}
95
-
96
- **Frontend Pattern:** {{COMPONENT_PATTERN}}
97
-
98
- {{FRONTEND_ARCHITECTURE_DESCRIPTION}}
99
-
100
- **File Organization:** {{FILE_ORGANIZATION}}
101
-
102
- **Folder Structure:**
103
- ```
104
- {{FOLDER_STRUCTURE}}
105
- ```
90
+ ## 🏛️ Architecture
91
+
92
+ **Backend Pattern:** {{ARCHITECTURE_PATTERN}}
93
+
94
+ {{ARCHITECTURE_DESCRIPTION}}
95
+
96
+ **Frontend Pattern:** {{COMPONENT_PATTERN}}
97
+
98
+ {{FRONTEND_ARCHITECTURE_DESCRIPTION}}
99
+
100
+ **File Organization:** {{FILE_ORGANIZATION}}
101
+
102
+ **Folder Structure:**
103
+ ```
104
+ {{FOLDER_STRUCTURE}}
105
+ ```
106
106
  ---
107
- ## ❌ NEVER Rules
108
-
109
- **YOU MUST NEVER:**
110
-
111
- ### Code Quality
112
-
113
- - ❌ Use `any` type ({{#IF_TYPESCRIPT}}TypeScript{{/IF_TYPESCRIPT}}) - Always use proper types
114
- - ❌ Leave console.log in production code - Use proper logging
115
- - ❌ Commit commented-out code - Delete it or use git history
116
- - ❌ Hardcode configuration - Use environment variables
117
- - ❌ Skip error handling - Always handle errors appropriately
118
-
119
- ### Security
120
-
121
- - ❌ Store secrets in code - Use environment variables or secrets manager
122
- - ❌ Expose sensitive data in logs - Sanitize all logs
123
- - ❌ Skip input validation - Always validate user input (backend AND frontend)
124
- - ❌ Trust user input - Sanitize and validate everything
125
- - ❌ Use weak password hashing - Use {{PASSWORD_HASH_ALGORITHM}}
126
- - ❌ Store sensitive data in localStorage - Use httpOnly cookies for tokens
127
- - ❌ Expose API keys in frontend code - Use environment variables + backend proxy
128
- - ❌ Use eval() or Function() constructor - Major security risk
129
-
130
- ### Backend Architecture
131
-
132
- - ❌ Put business logic in controllers/routes - Keep controllers thin
133
- - ❌ Access database directly from controllers - Use services/repositories
134
- - ❌ Mix concerns across layers - Respect layer boundaries
135
- - ❌ Create circular dependencies - Design proper dependency flow
136
-
137
- ### Backend Data
138
-
139
- - ❌ Use SELECT \* in production - Specify columns explicitly
140
- - ❌ Query databases in loops (N+1) - Use joins or batch queries
141
- - ❌ Forget database transactions for multi-step operations
142
- - ❌ Ignore database indexes - Index frequently queried columns
143
-
144
- ### Frontend Performance
145
-
146
- - ❌ Import entire libraries - Use tree-shaking friendly imports
147
- - ❌ Render large lists without virtualization - Use react-window, vue-virtual-scroller
148
- - ❌ Forget to memoize expensive computations - Use useMemo, computed
149
- - ❌ Load all routes upfront - Use code splitting and lazy loading
150
- - ❌ Skip image optimization - Use next/image, nuxt/image, or optimize manually
151
- - ❌ Ignore bundle size - Monitor and optimize regularly
152
-
153
- ### Frontend Accessibility (WCAG {{A11Y_COMPLIANCE}})
154
-
155
- - ❌ Use divs for buttons - Use semantic HTML (`<button>`, `<a>`)
156
- - ❌ Forget alt text on images - Every `<img>` needs descriptive alt
157
- - ❌ Skip keyboard navigation support - All interactive elements must be keyboard accessible
158
- - ❌ Ignore color contrast ratios - Minimum 4.5:1 for text (WCAG AA)
159
- - ❌ Remove focus outlines without replacement - Provide visible focus indicators
160
-
161
- ### Frontend State Management
162
-
163
- - ❌ Prop drill more than 2-3 levels - Use context, provide/inject, or state management
164
- - ❌ Store derived data in state - Compute on the fly
165
- - ❌ Forget to clean up subscriptions - Unsubscribe in useEffect cleanup, onUnmounted
166
- - ❌ Use global state for everything - Keep state as local as possible
167
-
168
- ### Testing
169
-
170
- - ❌ Skip tests for new features - Write tests first or alongside code
171
- - ❌ Mock internal business logic - Only mock external dependencies
172
- - ❌ Commit failing tests - All tests must pass before commit
173
-
174
- {{CUSTOM_NEVER_RULES}}
107
+ ## ❌ NEVER Rules
108
+
109
+ **YOU MUST NEVER:**
110
+
111
+ ### Code Quality
112
+
113
+ - ❌ Use `any` type ({{#IF_TYPESCRIPT}}TypeScript{{/IF_TYPESCRIPT}}) - Always use proper types
114
+ - ❌ Leave console.log in production code - Use proper logging
115
+ - ❌ Commit commented-out code - Delete it or use git history
116
+ - ❌ Hardcode configuration - Use environment variables
117
+ - ❌ Skip error handling - Always handle errors appropriately
118
+
119
+ ### Security
120
+
121
+ - ❌ Store secrets in code - Use environment variables or secrets manager
122
+ - ❌ Expose sensitive data in logs - Sanitize all logs
123
+ - ❌ Skip input validation - Always validate user input (backend AND frontend)
124
+ - ❌ Trust user input - Sanitize and validate everything
125
+ - ❌ Use weak password hashing - Use {{PASSWORD_HASH_ALGORITHM}}
126
+ - ❌ Store sensitive data in localStorage - Use httpOnly cookies for tokens
127
+ - ❌ Expose API keys in frontend code - Use environment variables + backend proxy
128
+ - ❌ Use eval() or Function() constructor - Major security risk
129
+
130
+ ### Backend Architecture
131
+
132
+ - ❌ Put business logic in controllers/routes - Keep controllers thin
133
+ - ❌ Access database directly from controllers - Use services/repositories
134
+ - ❌ Mix concerns across layers - Respect layer boundaries
135
+ - ❌ Create circular dependencies - Design proper dependency flow
136
+
137
+ ### Backend Data
138
+
139
+ - ❌ Use SELECT \* in production - Specify columns explicitly
140
+ - ❌ Query databases in loops (N+1) - Use joins or batch queries
141
+ - ❌ Forget database transactions for multi-step operations
142
+ - ❌ Ignore database indexes - Index frequently queried columns
143
+
144
+ ### Frontend Performance
145
+
146
+ - ❌ Import entire libraries - Use tree-shaking friendly imports
147
+ - ❌ Render large lists without virtualization - Use react-window, vue-virtual-scroller
148
+ - ❌ Forget to memoize expensive computations - Use useMemo, computed
149
+ - ❌ Load all routes upfront - Use code splitting and lazy loading
150
+ - ❌ Skip image optimization - Use next/image, nuxt/image, or optimize manually
151
+ - ❌ Ignore bundle size - Monitor and optimize regularly
152
+
153
+ ### Frontend Accessibility (WCAG {{A11Y_COMPLIANCE}})
154
+
155
+ - ❌ Use divs for buttons - Use semantic HTML (`<button>`, `<a>`)
156
+ - ❌ Forget alt text on images - Every `<img>` needs descriptive alt
157
+ - ❌ Skip keyboard navigation support - All interactive elements must be keyboard accessible
158
+ - ❌ Ignore color contrast ratios - Minimum 4.5:1 for text (WCAG AA)
159
+ - ❌ Remove focus outlines without replacement - Provide visible focus indicators
160
+
161
+ ### Frontend State Management
162
+
163
+ - ❌ Prop drill more than 2-3 levels - Use context, provide/inject, or state management
164
+ - ❌ Store derived data in state - Compute on the fly
165
+ - ❌ Forget to clean up subscriptions - Unsubscribe in useEffect cleanup, onUnmounted
166
+ - ❌ Use global state for everything - Keep state as local as possible
167
+
168
+ ### Testing
169
+
170
+ - ❌ Skip tests for new features - Write tests first or alongside code
171
+ - ❌ Mock internal business logic - Only mock external dependencies
172
+ - ❌ Commit failing tests - All tests must pass before commit
173
+
174
+ {{CUSTOM_NEVER_RULES}}
175
175
  ---
176
- ## ✅ ALWAYS Rules
177
-
178
- **YOU MUST ALWAYS:**
179
-
180
- ### Code Quality
181
-
182
- - ✅ Use TypeScript strict mode ({{#IF_TYPESCRIPT}}enabled{{/IF_TYPESCRIPT}})
183
- - ✅ Follow naming conventions from `docs/code-standards.md`
184
- - ✅ Write self-documenting code with clear names
185
- - ✅ Add comments for complex business logic only
186
- - ✅ Keep functions under {{MAX_FUNCTION_LENGTH}} lines
187
- - ✅ Limit cyclomatic complexity to {{MAX_COMPLEXITY}}
188
-
189
- ### Security
190
-
191
- - ✅ Validate all inputs with {{VALIDATION_LIBRARY}} (backend AND frontend)
192
- - ✅ Sanitize data before database queries
193
- - ✅ Use parameterized queries (prevent SQL injection)
194
- - ✅ Implement rate limiting on public endpoints
195
- - ✅ Return generic error messages to users (no stack traces in prod)
196
- - ✅ Log security events (failed logins, permission denials)
197
- - ✅ Sanitize user input to prevent XSS (frontend)
198
- - ✅ Use CSRF tokens for forms
199
- - ✅ Configure Content Security Policy headers
200
-
201
- ### Backend Architecture
202
-
203
- - ✅ Follow {{ARCHITECTURE_PATTERN}} pattern strictly
204
- - ✅ Use dependency injection
205
- - ✅ Keep controllers thin (delegate to services)
206
- - ✅ Use DTOs for request/response validation
207
- - ✅ Implement proper error handling with custom error classes
208
-
209
- ### Backend Data
210
-
211
- - ✅ Use transactions for multi-table operations
212
- - ✅ Implement soft deletes if configured ({{#IF_SOFT_DELETES}}enabled{{/IF_SOFT_DELETES}})
213
- - ✅ Add created_at/updated_at timestamps
214
- - ✅ Use database migrations (never manual schema changes)
215
- - ✅ Add indexes for foreign keys and frequently queried fields
216
-
217
- ### Frontend Component Design
218
-
219
- - ✅ Keep components focused on one responsibility
220
- - ✅ Use TypeScript for type safety
221
- - ✅ Write PropTypes or TypeScript interfaces for props
222
- - ✅ Use semantic HTML elements
223
- - ✅ Add ARIA attributes when needed
224
- - ✅ Ensure keyboard navigation works
225
-
226
- ### Frontend Performance
227
-
228
- - ✅ Implement code splitting for routes
229
- - ✅ Optimize images (WebP format, lazy loading)
230
- - ✅ Monitor Core Web Vitals: {{WEB_VITALS_TARGETS}}
231
- - ✅ Use production builds for deployment
232
- - ✅ Implement proper caching strategies
233
- - ✅ Debounce search inputs and expensive operations
234
-
235
- ### Frontend State Management
236
-
237
- - ✅ Keep state as close as possible to where it's used
238
- - ✅ Use {{STATE_MANAGEMENT}} for global state
239
- - ✅ Use {{DATA_FETCHING}} for server state
240
- - ✅ Implement optimistic updates for better UX
241
-
242
- ### API Integration
243
-
244
- - ✅ Version APIs ({{API_VERSIONING_STRATEGY}})
245
- - ✅ Use proper HTTP status codes
246
- - ✅ Return consistent error response format
247
- - ✅ Document endpoints with {{API_DOCS_TOOL}}
248
- - ✅ Implement pagination for list endpoints
249
- - ✅ Handle loading, success, and error states (frontend)
250
- - ✅ Cancel requests on component unmount
251
-
252
- ### Testing
253
-
254
- - ✅ Write unit tests for all services (target: {{UNIT_TEST_COVERAGE}}%+ coverage)
255
- - ✅ Write integration tests for critical flows
256
- - ✅ Mock external dependencies (APIs, email, payments)
257
- - ✅ Use factories/fixtures for test data
258
- - ✅ Run tests before every commit
259
- - ✅ Test component behavior, not implementation (frontend)
260
- - ✅ Test accessibility (screen reader compatibility)
261
-
262
- {{CUSTOM_ALWAYS_RULES}}
176
+ ## ✅ ALWAYS Rules
177
+
178
+ **YOU MUST ALWAYS:**
179
+
180
+ ### Code Quality
181
+
182
+ - ✅ Use TypeScript strict mode ({{#IF_TYPESCRIPT}}enabled{{/IF_TYPESCRIPT}})
183
+ - ✅ Follow naming conventions from `docs/code-standards.md`
184
+ - ✅ Write self-documenting code with clear names
185
+ - ✅ Add comments for complex business logic only
186
+ - ✅ Keep functions under {{MAX_FUNCTION_LENGTH}} lines
187
+ - ✅ Limit cyclomatic complexity to {{MAX_COMPLEXITY}}
188
+
189
+ ### Security
190
+
191
+ - ✅ Validate all inputs with {{VALIDATION_LIBRARY}} (backend AND frontend)
192
+ - ✅ Sanitize data before database queries
193
+ - ✅ Use parameterized queries (prevent SQL injection)
194
+ - ✅ Implement rate limiting on public endpoints
195
+ - ✅ Return generic error messages to users (no stack traces in prod)
196
+ - ✅ Log security events (failed logins, permission denials)
197
+ - ✅ Sanitize user input to prevent XSS (frontend)
198
+ - ✅ Use CSRF tokens for forms
199
+ - ✅ Configure Content Security Policy headers
200
+
201
+ ### Backend Architecture
202
+
203
+ - ✅ Follow {{ARCHITECTURE_PATTERN}} pattern strictly
204
+ - ✅ Use dependency injection
205
+ - ✅ Keep controllers thin (delegate to services)
206
+ - ✅ Use DTOs for request/response validation
207
+ - ✅ Implement proper error handling with custom error classes
208
+
209
+ ### Backend Data
210
+
211
+ - ✅ Use transactions for multi-table operations
212
+ - ✅ Implement soft deletes if configured ({{#IF_SOFT_DELETES}}enabled{{/IF_SOFT_DELETES}})
213
+ - ✅ Add created_at/updated_at timestamps
214
+ - ✅ Use database migrations (never manual schema changes)
215
+ - ✅ Add indexes for foreign keys and frequently queried fields
216
+
217
+ ### Frontend Component Design
218
+
219
+ - ✅ Keep components focused on one responsibility
220
+ - ✅ Use TypeScript for type safety
221
+ - ✅ Write PropTypes or TypeScript interfaces for props
222
+ - ✅ Use semantic HTML elements
223
+ - ✅ Add ARIA attributes when needed
224
+ - ✅ Ensure keyboard navigation works
225
+
226
+ ### Frontend Performance
227
+
228
+ - ✅ Implement code splitting for routes
229
+ - ✅ Optimize images (WebP format, lazy loading)
230
+ - ✅ Monitor Core Web Vitals: {{WEB_VITALS_TARGETS}}
231
+ - ✅ Use production builds for deployment
232
+ - ✅ Implement proper caching strategies
233
+ - ✅ Debounce search inputs and expensive operations
234
+
235
+ ### Frontend State Management
236
+
237
+ - ✅ Keep state as close as possible to where it's used
238
+ - ✅ Use {{STATE_MANAGEMENT}} for global state
239
+ - ✅ Use {{DATA_FETCHING}} for server state
240
+ - ✅ Implement optimistic updates for better UX
241
+
242
+ ### API Integration
243
+
244
+ - ✅ Version APIs ({{API_VERSIONING_STRATEGY}})
245
+ - ✅ Use proper HTTP status codes
246
+ - ✅ Return consistent error response format
247
+ - ✅ Document endpoints with {{API_DOCS_TOOL}}
248
+ - ✅ Implement pagination for list endpoints
249
+ - ✅ Handle loading, success, and error states (frontend)
250
+ - ✅ Cancel requests on component unmount
251
+
252
+ ### Testing
253
+
254
+ - ✅ Write unit tests for all services (target: {{UNIT_TEST_COVERAGE}}%+ coverage)
255
+ - ✅ Write integration tests for critical flows
256
+ - ✅ Mock external dependencies (APIs, email, payments)
257
+ - ✅ Use factories/fixtures for test data
258
+ - ✅ Run tests before every commit
259
+ - ✅ Test component behavior, not implementation (frontend)
260
+ - ✅ Test accessibility (screen reader compatibility)
261
+
262
+ {{CUSTOM_ALWAYS_RULES}}
263
263
  ---
264
- ## 🔄 Development Workflow
265
-
266
- ### 1. Before Starting a Task
267
-
268
- - Read relevant documentation (architecture, security, code standards)
269
- - Understand business requirements
270
- - Check for existing similar implementations
271
- - Plan approach before coding
272
- - Consider both backend and frontend implications
273
-
274
- ### 2. While Coding
275
-
276
- - Follow TDD if possible (test-first development)
277
- - Commit frequently with conventional commits
278
- - Write clear, descriptive commit messages
279
- - Keep commits focused (one logical change per commit)
280
- - Coordinate backend and frontend changes
281
-
282
- ### 3. Before Committing
283
-
284
- **Backend:**
285
- - Run linter: `{{LINT_COMMAND}}`
286
- - Run tests: `{{TEST_COMMAND}}`
287
- - Check test coverage meets minimum ({{MIN_COVERAGE}}%)
288
-
289
- **Frontend:**
290
- - Run linter: `{{PACKAGE_MANAGER}} run lint`
291
- - Run tests: `{{PACKAGE_MANAGER}} run test`
292
- - Build succeeds: `{{PACKAGE_MANAGER}} run build`
293
-
294
- ### 4. Code Review
295
-
296
- - Self-review before requesting review
297
- - Address all review comments
298
- - Update tests if logic changes
299
- - Update documentation if behavior changes
300
- - Verify backend and frontend integration
301
-
302
- ### 5. Deployment
303
-
304
- - Follow deployment procedures in `docs/operations.md`
305
- - Update CHANGELOG.md
306
- - Test in staging before production
307
- - Monitor logs after deployment
308
- - Verify both backend and frontend deployments
264
+ ## 🔄 Development Workflow
265
+
266
+ ### 1. Before Starting a Task
267
+
268
+ - Read relevant documentation (architecture, security, code standards)
269
+ - Understand business requirements
270
+ - Check for existing similar implementations
271
+ - Plan approach before coding
272
+ - Consider both backend and frontend implications
273
+
274
+ ### 2. While Coding
275
+
276
+ - Follow TDD if possible (test-first development)
277
+ - Commit frequently with conventional commits
278
+ - Write clear, descriptive commit messages
279
+ - Keep commits focused (one logical change per commit)
280
+ - Coordinate backend and frontend changes
281
+
282
+ ### 3. Before Committing
283
+
284
+ **Backend:**
285
+ - Run linter: `{{LINT_COMMAND}}`
286
+ - Run tests: `{{TEST_COMMAND}}`
287
+ - Check test coverage meets minimum ({{MIN_COVERAGE}}%)
288
+
289
+ **Frontend:**
290
+ - Run linter: `{{PACKAGE_MANAGER}} run lint`
291
+ - Run tests: `{{PACKAGE_MANAGER}} run test`
292
+ - Build succeeds: `{{PACKAGE_MANAGER}} run build`
293
+
294
+ ### 4. Code Review
295
+
296
+ - Self-review before requesting review
297
+ - Address all review comments
298
+ - Update tests if logic changes
299
+ - Update documentation if behavior changes
300
+ - Verify backend and frontend integration
301
+
302
+ ### 5. Deployment
303
+
304
+ - Follow deployment procedures in `docs/operations.md`
305
+ - Update CHANGELOG.md
306
+ - Test in staging before production
307
+ - Monitor logs after deployment
308
+ - Verify both backend and frontend deployments
309
309
  ---
310
- ## 🎯 Priorities
311
-
312
- When there are trade-offs, prioritize in this order:
313
-
314
- 1. **{{PRIORITY_1}}** - {{PRIORITY_1_DESCRIPTION}}
315
- 2. **{{PRIORITY_2}}** - {{PRIORITY_2_DESCRIPTION}}
316
- 3. **{{PRIORITY_3}}** - {{PRIORITY_3_DESCRIPTION}}
317
- 4. **{{PRIORITY_4}}** - {{PRIORITY_4_DESCRIPTION}}
318
- 5. **{{PRIORITY_5}}** - {{PRIORITY_5_DESCRIPTION}}
310
+ ## 🎯 Priorities
311
+
312
+ When there are trade-offs, prioritize in this order:
313
+
314
+ 1. **{{PRIORITY_1}}** - {{PRIORITY_1_DESCRIPTION}}
315
+ 2. **{{PRIORITY_2}}** - {{PRIORITY_2_DESCRIPTION}}
316
+ 3. **{{PRIORITY_3}}** - {{PRIORITY_3_DESCRIPTION}}
317
+ 4. **{{PRIORITY_4}}** - {{PRIORITY_4_DESCRIPTION}}
318
+ 5. **{{PRIORITY_5}}** - {{PRIORITY_5_DESCRIPTION}}
319
319
  ---
320
- ## 📁 Project Structure
321
-
322
- ```
323
- {{PROJECT_STRUCTURE}}
324
- ```
320
+ ## 📁 Project Structure
321
+
322
+ ```
323
+ {{PROJECT_STRUCTURE}}
324
+ ```
325
325
  ---
326
- ## 🧪 Testing Commands
327
-
328
- **Backend:**
329
- ```bash
330
- # Run all tests
331
- {{TEST_ALL_COMMAND}}
332
-
333
- # Run unit tests only
334
- {{TEST_UNIT_COMMAND}}
335
-
336
- # Run integration tests
337
- {{TEST_INTEGRATION_COMMAND}}
338
-
339
- # Run with coverage
340
- {{TEST_COVERAGE_COMMAND}}
341
- ```
342
-
343
- **Frontend:**
344
- ```bash
345
- # Run all tests
346
- {{PACKAGE_MANAGER}} run test
347
-
348
- # Run with coverage
349
- {{PACKAGE_MANAGER}} run test:coverage
350
-
351
- # Run E2E tests
352
- {{PACKAGE_MANAGER}} run test:e2e
353
- ```
326
+ ## 🧪 Testing Commands
327
+
328
+ **Backend:**
329
+ ```bash
330
+ # Run all tests
331
+ {{TEST_ALL_COMMAND}}
332
+
333
+ # Run unit tests only
334
+ {{TEST_UNIT_COMMAND}}
335
+
336
+ # Run integration tests
337
+ {{TEST_INTEGRATION_COMMAND}}
338
+
339
+ # Run with coverage
340
+ {{TEST_COVERAGE_COMMAND}}
341
+ ```
342
+
343
+ **Frontend:**
344
+ ```bash
345
+ # Run all tests
346
+ {{PACKAGE_MANAGER}} run test
347
+
348
+ # Run with coverage
349
+ {{PACKAGE_MANAGER}} run test:coverage
350
+
351
+ # Run E2E tests
352
+ {{PACKAGE_MANAGER}} run test:e2e
353
+ ```
354
354
  ---
355
- ## 🚀 Common Commands
356
-
357
- **Backend:**
358
- ```bash
359
- # Install dependencies
360
- {{INSTALL_COMMAND}}
361
-
362
- # Start development server
363
- {{DEV_COMMAND}}
364
-
365
- # Build for production
366
- {{BUILD_COMMAND}}
367
-
368
- # Run linter
369
- {{LINT_COMMAND}}
370
-
371
- # Run database migrations
372
- {{MIGRATION_RUN_COMMAND}}
373
-
374
- # Create new migration
375
- {{MIGRATION_CREATE_COMMAND}}
376
- ```
377
-
378
- **Frontend:**
379
- ```bash
380
- # Install dependencies
381
- {{PACKAGE_MANAGER}} install
382
-
383
- # Start development server
384
- {{PACKAGE_MANAGER}} run dev
385
-
386
- # Build for production
387
- {{PACKAGE_MANAGER}} run build
388
-
389
- # Run linter
390
- {{PACKAGE_MANAGER}} run lint
391
-
392
- # Format code
393
- {{PACKAGE_MANAGER}} run format
394
- ```
355
+ ## 🚀 Common Commands
356
+
357
+ **Backend:**
358
+ ```bash
359
+ # Install dependencies
360
+ {{INSTALL_COMMAND}}
361
+
362
+ # Start development server
363
+ {{DEV_COMMAND}}
364
+
365
+ # Build for production
366
+ {{BUILD_COMMAND}}
367
+
368
+ # Run linter
369
+ {{LINT_COMMAND}}
370
+
371
+ # Run database migrations
372
+ {{MIGRATION_RUN_COMMAND}}
373
+
374
+ # Create new migration
375
+ {{MIGRATION_CREATE_COMMAND}}
376
+ ```
377
+
378
+ **Frontend:**
379
+ ```bash
380
+ # Install dependencies
381
+ {{PACKAGE_MANAGER}} install
382
+
383
+ # Start development server
384
+ {{PACKAGE_MANAGER}} run dev
385
+
386
+ # Build for production
387
+ {{PACKAGE_MANAGER}} run build
388
+
389
+ # Run linter
390
+ {{PACKAGE_MANAGER}} run lint
391
+
392
+ # Format code
393
+ {{PACKAGE_MANAGER}} run format
394
+ ```
395
395
  ---
396
- ## 📚 Key Documentation Files
397
-
398
- - `project-brief.md` - Business context and objectives
399
- - `README.md` - Developer setup, commands, repo structure
400
- - `docs/architecture.md` - System architecture and patterns (backend)
401
- - `docs/data-model.md` - Database schema and relationships
402
- - `docs/components.md` - Component architecture (frontend)
403
- - `docs/state-management.md` - State patterns (frontend)
404
- - `docs/code-standards.md` - Detailed coding standards
405
- - `docs/testing.md` - Testing strategy and requirements
406
- - `docs/operations.md` - Deployment and operational procedures
407
- - `docs/business-flows.md` - Business processes and diagrams
408
- - `docs/api.md` - API conventions and endpoint catalogue
409
- - `specs/security.md` - Security policies and compliance
410
- - `specs/configuration.md` - Environment configuration
411
- - `docs/contributing.md` - Development setup, workflow
396
+ ## 📚 Key Documentation Files
397
+
398
+ - `project-brief.md` - Business context and objectives
399
+ - `README.md` - Developer setup, commands, repo structure
400
+ - `docs/architecture.md` - System architecture and patterns (backend)
401
+ - `docs/data-model.md` - Database schema and relationships
402
+ - `docs/components.md` - Component architecture (frontend)
403
+ - `docs/state-management.md` - State patterns (frontend)
404
+ - `docs/code-standards.md` - Detailed coding standards
405
+ - `docs/testing.md` - Testing strategy and requirements
406
+ - `docs/operations.md` - Deployment and operational procedures
407
+ - `docs/business-flows.md` - Business processes and diagrams
408
+ - `docs/api.md` - API conventions and endpoint catalogue
409
+ - `specs/security.md` - Security policies and compliance
410
+ - `specs/configuration.md` - Environment configuration
411
+ - `docs/contributing.md` - Development setup, workflow
412
412
  ---
413
- ## 🔐 Environment Variables
414
-
415
- See `.env.example` files in both `backend/` and `frontend/` directories for all required environment variables.
416
-
417
- **Backend Critical Variables:**
418
- {{CRITICAL_ENV_VARS}}
419
-
420
- **Frontend Critical Variables:**
421
- {{FRONTEND_CRITICAL_VARS}}
413
+ ## 🔐 Environment Variables
414
+
415
+ See `.env.example` files in both `backend/` and `frontend/` directories for all required environment variables.
416
+
417
+ **Backend Critical Variables:**
418
+ {{CRITICAL_ENV_VARS}}
419
+
420
+ **Frontend Critical Variables:**
421
+ {{FRONTEND_CRITICAL_VARS}}
422
422
  ---
423
- ## 🛡️ Security Checklist
424
-
425
- Before every feature:
426
-
427
- **Backend:**
428
- - [ ] Input validation implemented with {{VALIDATION_LIBRARY}}
429
- - [ ] Authentication required (if applicable)
430
- - [ ] Authorization checked (role/permission)
431
- - [ ] Rate limiting applied (if public endpoint)
432
- - [ ] No sensitive data in logs
433
- - [ ] No hardcoded secrets
434
- - [ ] SQL injection prevented (parameterized queries)
435
-
436
- **Frontend:**
437
- - [ ] XSS prevented (output encoding)
438
- - [ ] CSRF protection (if stateful)
439
- - [ ] User input sanitized
440
- - [ ] No API keys exposed
441
- - [ ] Content Security Policy configured
423
+ ## 🛡️ Security Checklist
424
+
425
+ Before every feature:
426
+
427
+ **Backend:**
428
+ - [ ] Input validation implemented with {{VALIDATION_LIBRARY}}
429
+ - [ ] Authentication required (if applicable)
430
+ - [ ] Authorization checked (role/permission)
431
+ - [ ] Rate limiting applied (if public endpoint)
432
+ - [ ] No sensitive data in logs
433
+ - [ ] No hardcoded secrets
434
+ - [ ] SQL injection prevented (parameterized queries)
435
+
436
+ **Frontend:**
437
+ - [ ] XSS prevented (output encoding)
438
+ - [ ] CSRF protection (if stateful)
439
+ - [ ] User input sanitized
440
+ - [ ] No API keys exposed
441
+ - [ ] Content Security Policy configured
442
442
  ---
443
- ## 📞 When in Doubt
444
-
445
- 1. Check this document first
446
- 2. Review `docs/code-standards.md` for specific patterns
447
- 3. Look for similar existing implementations in the codebase
448
- 4. Ask for clarification before making architectural decisions
449
- 5. Prioritize security and maintainability over speed
450
- 6. Consider both backend and frontend implications
443
+ ## 📞 When in Doubt
444
+
445
+ 1. Check this document first
446
+ 2. Review `docs/code-standards.md` for specific patterns
447
+ 3. Look for similar existing implementations in the codebase
448
+ 4. Ask for clarification before making architectural decisions
449
+ 5. Prioritize security and maintainability over speed
450
+ 6. Consider both backend and frontend implications
451
451
  ---
452
- **Remember:** These rules exist to maintain quality, security, and consistency. Following them makes the codebase better for everyone.
453
-
454
- **Last Updated:** {{GENERATION_DATE}}
455
-
456
- **Generated by:** AI Flow v1.3.0
457
-
458
-
459
-
452
+ **Remember:** These rules exist to maintain quality, security, and consistency. Following them makes the codebase better for everyone.
453
+
454
+ **Last Updated:** {{GENERATION_DATE}}
455
+
456
+ **Generated by:** AI Flow v1.3.0
457
+
458
+
459
+