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.
- package/LICENSE +21 -0
- package/README.md +408 -0
- package/dist/cli.d.ts +3 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +791 -0
- package/dist/cli.js.map +1 -0
- package/dist/fs-utils.d.ts +2 -0
- package/dist/fs-utils.d.ts.map +1 -0
- package/dist/fs-utils.js +46 -0
- package/dist/fs-utils.js.map +1 -0
- package/package.json +71 -0
- package/prompts/backend/flow-dev-feature.md +1318 -0
- package/prompts/backend/flow-dev-fix.md +903 -0
- package/prompts/backend/flow-dev-refactor.md +715 -0
- package/prompts/backend/flow-dev-review.md +401 -0
- package/prompts/backend/flow-dev-work.md +1129 -0
- package/prompts/backend/flow-docs-gen-phase-0.md +1840 -0
- package/prompts/backend/flow-docs-gen-phase-1.md +435 -0
- package/prompts/backend/flow-docs-gen-phase-2.md +460 -0
- package/prompts/backend/flow-docs-gen-phase-3.md +684 -0
- package/prompts/backend/flow-docs-gen-phase-4.md +516 -0
- package/prompts/backend/flow-docs-gen-phase-5.md +637 -0
- package/prompts/backend/flow-docs-gen-phase-6.md +465 -0
- package/prompts/backend/flow-docs-gen-phase-7.md +1207 -0
- package/prompts/backend/flow-docs-gen.md +820 -0
- package/prompts/backend/flow-docs-sync.md +526 -0
- package/prompts/backend/flow-project-init.md +248 -0
- package/prompts/backend/flow-project-roadmap.md +1159 -0
- package/prompts/frontend/flow-docs-gen-phase-0.md +494 -0
- package/prompts/frontend/flow-docs-gen-phase-1.md +449 -0
- package/prompts/frontend/flow-docs-gen-phase-2.md +983 -0
- package/prompts/frontend/flow-docs-gen-phase-3.md +685 -0
- package/prompts/frontend/flow-docs-gen-phase-4.md +480 -0
- package/prompts/frontend/flow-docs-gen-phase-5.md +483 -0
- package/prompts/frontend/flow-docs-gen-phase-6.md +570 -0
- package/prompts/frontend/flow-docs-gen-phase-7.md +582 -0
- package/prompts/frontend/flow-docs-gen.md +413 -0
- package/prompts/frontend/flow-docs-sync.md +561 -0
- package/prompts/mobile/flow-docs-gen-phase-0.md +387 -0
- package/prompts/mobile/flow-docs-gen-phase-1.md +530 -0
- package/prompts/mobile/flow-docs-gen-phase-2.md +584 -0
- package/prompts/mobile/flow-docs-gen-phase-3.md +659 -0
- package/prompts/mobile/flow-docs-gen-phase-4.md +363 -0
- package/prompts/mobile/flow-docs-gen-phase-5.md +369 -0
- package/prompts/mobile/flow-docs-gen-phase-6.md +490 -0
- package/prompts/mobile/flow-docs-gen-phase-7.md +407 -0
- package/prompts/mobile/flow-docs-gen.md +430 -0
- package/prompts/mobile/flow-docs-sync.md +634 -0
- package/templates/backend/.clauderules.template +111 -0
- package/templates/backend/.cursorrules.template +102 -0
- package/templates/backend/.env.example.template +122 -0
- package/templates/backend/README.template.md +200 -0
- package/templates/backend/ai-instructions.template.md +354 -0
- package/templates/backend/copilot-instructions.template.md +160 -0
- package/templates/backend/docs/api.template.md +251 -0
- package/templates/backend/docs/architecture.template.md +612 -0
- package/templates/backend/docs/business-flows.template.md +109 -0
- package/templates/backend/docs/code-standards.template.md +828 -0
- package/templates/backend/docs/contributing.template.md +163 -0
- package/templates/backend/docs/data-model.template.md +416 -0
- package/templates/backend/docs/operations.template.md +591 -0
- package/templates/backend/docs/testing.template.md +762 -0
- package/templates/backend/project-brief.template.md +176 -0
- package/templates/backend/specs/configuration.template.md +133 -0
- package/templates/backend/specs/security.template.md +422 -0
- package/templates/frontend/README.template.md +121 -0
- package/templates/frontend/ai-instructions.template.md +368 -0
- package/templates/frontend/docs/api-integration.template.md +390 -0
- package/templates/frontend/docs/components.template.md +567 -0
- package/templates/frontend/docs/error-handling.template.md +385 -0
- package/templates/frontend/docs/operations.template.md +123 -0
- package/templates/frontend/docs/performance.template.md +140 -0
- package/templates/frontend/docs/pwa.template.md +135 -0
- package/templates/frontend/docs/state-management.template.md +394 -0
- package/templates/frontend/docs/styling.template.md +779 -0
- package/templates/frontend/docs/testing.template.md +736 -0
- package/templates/frontend/project-brief.template.md +55 -0
- package/templates/frontend/specs/accessibility.template.md +111 -0
- package/templates/frontend/specs/configuration.template.md +520 -0
- package/templates/frontend/specs/security.template.md +197 -0
- package/templates/fullstack/README.template.md +282 -0
- package/templates/fullstack/ai-instructions.template.md +487 -0
- package/templates/fullstack/project-brief.template.md +197 -0
- package/templates/fullstack/specs/configuration.template.md +380 -0
- package/templates/mobile/AGENT.template.md +251 -0
- package/templates/mobile/README.template.md +195 -0
- package/templates/mobile/ai-instructions.template.md +221 -0
- package/templates/mobile/docs/app-store.template.md +163 -0
- package/templates/mobile/docs/architecture.template.md +100 -0
- package/templates/mobile/docs/native-features.template.md +137 -0
- package/templates/mobile/docs/navigation.template.md +81 -0
- package/templates/mobile/docs/offline-strategy.template.md +90 -0
- package/templates/mobile/docs/permissions.template.md +70 -0
- package/templates/mobile/docs/state-management.template.md +116 -0
- package/templates/mobile/docs/testing.template.md +146 -0
- package/templates/mobile/project-brief.template.md +97 -0
- package/templates/mobile/specs/build-configuration.template.md +116 -0
- package/templates/mobile/specs/deployment.template.md +114 -0
- package/templates/shared/AGENT.template.md +252 -0
|
@@ -0,0 +1,354 @@
|
|
|
1
|
+
# AI Instructions
|
|
2
|
+
|
|
3
|
+
> **CRITICAL:** Every AI assistant MUST read and follow this document before any work.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## ๐ฏ Project Overview
|
|
8
|
+
|
|
9
|
+
**Name:** {{PROJECT_NAME}}
|
|
10
|
+
|
|
11
|
+
**Description:** {{PROJECT_DESCRIPTION}}
|
|
12
|
+
|
|
13
|
+
**Purpose:** {{PROBLEM_STATEMENT}}
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
## ๐๏ธ Tech Stack
|
|
18
|
+
|
|
19
|
+
### Backend
|
|
20
|
+
|
|
21
|
+
- **Framework:** {{FRAMEWORK}} {{FRAMEWORK_VERSION}}
|
|
22
|
+
- **Language:** {{LANGUAGE}} {{LANGUAGE_VERSION}}
|
|
23
|
+
- **Runtime:** {{RUNTIME_VERSION}}
|
|
24
|
+
- **Type System:** {{TYPE_SYSTEM}}
|
|
25
|
+
|
|
26
|
+
### Database
|
|
27
|
+
|
|
28
|
+
- **Primary Database:** {{DATABASE}} {{DATABASE_VERSION}}
|
|
29
|
+
- **ORM:** {{ORM}}
|
|
30
|
+
- **Migrations:** {{MIGRATION_TOOL}}
|
|
31
|
+
{{#IF_CACHE}}- **Cache:** {{CACHE_TYPE}}{{/IF_CACHE}}
|
|
32
|
+
|
|
33
|
+
### Authentication & Security
|
|
34
|
+
|
|
35
|
+
- **Auth Method:** {{AUTH_METHOD}}
|
|
36
|
+
- **Password Hashing:** {{PASSWORD_HASH_ALGORITHM}}
|
|
37
|
+
- **Token Strategy:** {{TOKEN_STRATEGY}}
|
|
38
|
+
|
|
39
|
+
### Infrastructure
|
|
40
|
+
|
|
41
|
+
- **Deployment:** {{DEPLOYMENT_PLATFORM}}
|
|
42
|
+
- **Containerization:** {{DOCKER_USAGE}}
|
|
43
|
+
- **CI/CD:** {{CICD_PLATFORM}}
|
|
44
|
+
|
|
45
|
+
### Key Libraries
|
|
46
|
+
|
|
47
|
+
{{KEY_LIBRARIES}}
|
|
48
|
+
|
|
49
|
+
---
|
|
50
|
+
|
|
51
|
+
## ๐๏ธ Architecture
|
|
52
|
+
|
|
53
|
+
**Pattern:** {{ARCHITECTURE_PATTERN}}
|
|
54
|
+
|
|
55
|
+
{{ARCHITECTURE_DESCRIPTION}}
|
|
56
|
+
|
|
57
|
+
**File Organization:** {{FILE_ORGANIZATION}}
|
|
58
|
+
|
|
59
|
+
---
|
|
60
|
+
|
|
61
|
+
## โ NEVER Rules
|
|
62
|
+
|
|
63
|
+
**YOU MUST NEVER:**
|
|
64
|
+
|
|
65
|
+
### Code Quality
|
|
66
|
+
|
|
67
|
+
- โ Use `any` type ({{#IF_TYPESCRIPT}}TypeScript{{/IF_TYPESCRIPT}}) - Always use proper types
|
|
68
|
+
- โ Leave console.log in production code - Use proper logging
|
|
69
|
+
- โ Commit commented-out code - Delete it or use git history
|
|
70
|
+
- โ Hardcode configuration - Use environment variables
|
|
71
|
+
- โ Skip error handling - Always handle errors appropriately
|
|
72
|
+
|
|
73
|
+
### Security
|
|
74
|
+
|
|
75
|
+
- โ Store secrets in code - Use environment variables or secrets manager
|
|
76
|
+
- โ Expose sensitive data in logs - Sanitize all logs
|
|
77
|
+
- โ Skip input validation - Always validate user input
|
|
78
|
+
- โ Trust user input - Sanitize and validate everything
|
|
79
|
+
- โ Use weak password hashing - Use {{PASSWORD_HASH_ALGORITHM}}
|
|
80
|
+
|
|
81
|
+
### Architecture
|
|
82
|
+
|
|
83
|
+
- โ Put business logic in controllers/routes - Keep controllers thin
|
|
84
|
+
- โ Access database directly from controllers - Use services/repositories
|
|
85
|
+
- โ Mix concerns across layers - Respect layer boundaries
|
|
86
|
+
- โ Create circular dependencies - Design proper dependency flow
|
|
87
|
+
|
|
88
|
+
### Data
|
|
89
|
+
|
|
90
|
+
- โ Use SELECT \* in production - Specify columns explicitly
|
|
91
|
+
- โ Query databases in loops (N+1) - Use joins or batch queries
|
|
92
|
+
- โ Forget database transactions for multi-step operations
|
|
93
|
+
- โ Ignore database indexes - Index frequently queried columns
|
|
94
|
+
|
|
95
|
+
### Testing
|
|
96
|
+
|
|
97
|
+
- โ Skip tests for new features - Write tests first or alongside code
|
|
98
|
+
- โ Mock internal business logic - Only mock external dependencies
|
|
99
|
+
- โ Commit failing tests - All tests must pass before commit
|
|
100
|
+
|
|
101
|
+
{{CUSTOM_NEVER_RULES}}
|
|
102
|
+
|
|
103
|
+
---
|
|
104
|
+
|
|
105
|
+
## โ
ALWAYS Rules
|
|
106
|
+
|
|
107
|
+
**YOU MUST ALWAYS:**
|
|
108
|
+
|
|
109
|
+
### Code Quality
|
|
110
|
+
|
|
111
|
+
- โ
Use TypeScript strict mode ({{#IF_TYPESCRIPT}}enabled{{/IF_TYPESCRIPT}})
|
|
112
|
+
- โ
Follow naming conventions from `docs/code-standards.md`
|
|
113
|
+
- โ
Write self-documenting code with clear names
|
|
114
|
+
- โ
Add comments for complex business logic only
|
|
115
|
+
- โ
Keep functions under {{MAX_FUNCTION_LENGTH}} lines
|
|
116
|
+
- โ
Limit cyclomatic complexity to {{MAX_COMPLEXITY}}
|
|
117
|
+
|
|
118
|
+
### Security
|
|
119
|
+
|
|
120
|
+
- โ
Validate all inputs with {{VALIDATION_LIBRARY}}
|
|
121
|
+
- โ
Sanitize data before database queries
|
|
122
|
+
- โ
Use parameterized queries (prevent SQL injection)
|
|
123
|
+
- โ
Implement rate limiting on public endpoints
|
|
124
|
+
- โ
Return generic error messages to users (no stack traces in prod)
|
|
125
|
+
- โ
Log security events (failed logins, permission denials)
|
|
126
|
+
|
|
127
|
+
### Architecture
|
|
128
|
+
|
|
129
|
+
- โ
Follow {{ARCHITECTURE_PATTERN}} pattern strictly
|
|
130
|
+
- โ
Use dependency injection
|
|
131
|
+
- โ
Keep controllers thin (delegate to services)
|
|
132
|
+
- โ
Use DTOs for request/response validation
|
|
133
|
+
- โ
Implement proper error handling with custom error classes
|
|
134
|
+
|
|
135
|
+
### Data
|
|
136
|
+
|
|
137
|
+
- โ
Use transactions for multi-table operations
|
|
138
|
+
- โ
Implement soft deletes if configured ({{#IF_SOFT_DELETES}}enabled{{/IF_SOFT_DELETES}})
|
|
139
|
+
- โ
Add created_at/updated_at timestamps
|
|
140
|
+
- โ
Use database migrations (never manual schema changes)
|
|
141
|
+
- โ
Add indexes for foreign keys and frequently queried fields
|
|
142
|
+
|
|
143
|
+
### Testing
|
|
144
|
+
|
|
145
|
+
- โ
Write unit tests for all services (target: {{UNIT_TEST_COVERAGE}}%+ coverage)
|
|
146
|
+
- โ
Write integration tests for critical flows
|
|
147
|
+
- โ
Mock external dependencies (APIs, email, payments)
|
|
148
|
+
- โ
Use factories/fixtures for test data
|
|
149
|
+
- โ
Run tests before every commit
|
|
150
|
+
|
|
151
|
+
### API
|
|
152
|
+
|
|
153
|
+
- โ
Version APIs ({{API_VERSIONING_STRATEGY}})
|
|
154
|
+
- โ
Use proper HTTP status codes
|
|
155
|
+
- โ
Return consistent error response format
|
|
156
|
+
- โ
Document endpoints with {{API_DOCS_TOOL}}
|
|
157
|
+
- โ
Implement pagination for list endpoints
|
|
158
|
+
|
|
159
|
+
{{CUSTOM_ALWAYS_RULES}}
|
|
160
|
+
|
|
161
|
+
---
|
|
162
|
+
|
|
163
|
+
## ๐ Development Workflow
|
|
164
|
+
|
|
165
|
+
### 1. Before Starting a Task
|
|
166
|
+
|
|
167
|
+
- Read relevant documentation (architecture, security, code standards)
|
|
168
|
+
- Understand business requirements
|
|
169
|
+
- Check for existing similar implementations
|
|
170
|
+
- Plan approach before coding
|
|
171
|
+
|
|
172
|
+
### 2. While Coding
|
|
173
|
+
|
|
174
|
+
- Follow TDD if possible (test-first development)
|
|
175
|
+
- Commit frequently with conventional commits
|
|
176
|
+
- Write clear, descriptive commit messages
|
|
177
|
+
- Keep commits focused (one logical change per commit)
|
|
178
|
+
|
|
179
|
+
### 3. Before Committing
|
|
180
|
+
|
|
181
|
+
- Run linter: `{{LINT_COMMAND}}`
|
|
182
|
+
- Run tests: `{{TEST_COMMAND}}`
|
|
183
|
+
- Check test coverage meets minimum ({{MIN_COVERAGE}}%)
|
|
184
|
+
- Review your own code changes
|
|
185
|
+
|
|
186
|
+
### 4. Code Review
|
|
187
|
+
|
|
188
|
+
- Self-review before requesting review
|
|
189
|
+
- Address all review comments
|
|
190
|
+
- Update tests if logic changes
|
|
191
|
+
- Update documentation if behavior changes
|
|
192
|
+
|
|
193
|
+
### 5. Deployment
|
|
194
|
+
|
|
195
|
+
- Follow deployment procedures in `docs/operations.md`
|
|
196
|
+
- Update CHANGELOG.md
|
|
197
|
+
- Test in staging before production
|
|
198
|
+
- Monitor logs after deployment
|
|
199
|
+
|
|
200
|
+
---
|
|
201
|
+
|
|
202
|
+
## ๐ฏ Priorities
|
|
203
|
+
|
|
204
|
+
When there are trade-offs, prioritize in this order:
|
|
205
|
+
|
|
206
|
+
1. **{{PRIORITY_1}}** - {{PRIORITY_1_DESCRIPTION}}
|
|
207
|
+
2. **{{PRIORITY_2}}** - {{PRIORITY_2_DESCRIPTION}}
|
|
208
|
+
3. **{{PRIORITY_3}}** - {{PRIORITY_3_DESCRIPTION}}
|
|
209
|
+
4. **{{PRIORITY_4}}** - {{PRIORITY_4_DESCRIPTION}}
|
|
210
|
+
5. **{{PRIORITY_5}}** - {{PRIORITY_5_DESCRIPTION}}
|
|
211
|
+
|
|
212
|
+
---
|
|
213
|
+
|
|
214
|
+
## ๐ Project Structure
|
|
215
|
+
|
|
216
|
+
```
|
|
217
|
+
{{PROJECT_STRUCTURE}}
|
|
218
|
+
```
|
|
219
|
+
|
|
220
|
+
---
|
|
221
|
+
|
|
222
|
+
## ๐งช Testing Commands
|
|
223
|
+
|
|
224
|
+
```bash
|
|
225
|
+
# Run all tests
|
|
226
|
+
{{TEST_ALL_COMMAND}}
|
|
227
|
+
|
|
228
|
+
# Run unit tests only
|
|
229
|
+
{{TEST_UNIT_COMMAND}}
|
|
230
|
+
|
|
231
|
+
# Run integration tests
|
|
232
|
+
{{TEST_INTEGRATION_COMMAND}}
|
|
233
|
+
|
|
234
|
+
# Run with coverage
|
|
235
|
+
{{TEST_COVERAGE_COMMAND}}
|
|
236
|
+
|
|
237
|
+
# Run specific test file
|
|
238
|
+
{{TEST_SPECIFIC_COMMAND}}
|
|
239
|
+
```
|
|
240
|
+
|
|
241
|
+
---
|
|
242
|
+
|
|
243
|
+
## ๐ Common Commands
|
|
244
|
+
|
|
245
|
+
```bash
|
|
246
|
+
# Install dependencies
|
|
247
|
+
{{INSTALL_COMMAND}}
|
|
248
|
+
|
|
249
|
+
# Start development server
|
|
250
|
+
{{DEV_COMMAND}}
|
|
251
|
+
|
|
252
|
+
# Build for production
|
|
253
|
+
{{BUILD_COMMAND}}
|
|
254
|
+
|
|
255
|
+
# Run linter
|
|
256
|
+
{{LINT_COMMAND}}
|
|
257
|
+
|
|
258
|
+
# Format code
|
|
259
|
+
{{FORMAT_COMMAND}}
|
|
260
|
+
|
|
261
|
+
# Run database migrations
|
|
262
|
+
{{MIGRATION_RUN_COMMAND}}
|
|
263
|
+
|
|
264
|
+
# Create new migration
|
|
265
|
+
{{MIGRATION_CREATE_COMMAND}}
|
|
266
|
+
```
|
|
267
|
+
|
|
268
|
+
---
|
|
269
|
+
|
|
270
|
+
## ๐ Key Documentation Files
|
|
271
|
+
|
|
272
|
+
- `project-brief.md` - Business context and objectives
|
|
273
|
+
- `README.md` - Developer setup, commands, repo structure
|
|
274
|
+
- `docs/architecture.md` - System architecture and patterns
|
|
275
|
+
- `docs/data-model.md` - Database schema and relationships
|
|
276
|
+
- `docs/code-standards.md` - Detailed coding standards
|
|
277
|
+
- `docs/testing.md` - Testing strategy and requirements
|
|
278
|
+
- `docs/operations.md` - Deployment and operational procedures
|
|
279
|
+
- `docs/business-flows.md` - Business processes and diagrams
|
|
280
|
+
- `docs/api.md` - API conventions and endpoint catalogue
|
|
281
|
+
- `specs/security.md` - Security policies and compliance
|
|
282
|
+
- `specs/configuration.md` - Environment configuration
|
|
283
|
+
- `docs/contributing.md` - Development setup, workflow
|
|
284
|
+
|
|
285
|
+
---
|
|
286
|
+
|
|
287
|
+
## ๐ Environment Variables
|
|
288
|
+
|
|
289
|
+
See `.env.example` for all required environment variables.
|
|
290
|
+
|
|
291
|
+
**Critical variables:**
|
|
292
|
+
{{CRITICAL_ENV_VARS}}
|
|
293
|
+
|
|
294
|
+
---
|
|
295
|
+
|
|
296
|
+
## ๐ก๏ธ Security Checklist
|
|
297
|
+
|
|
298
|
+
Before every feature:
|
|
299
|
+
|
|
300
|
+
- [ ] Input validation implemented with {{VALIDATION_LIBRARY}}
|
|
301
|
+
- [ ] Authentication required (if applicable)
|
|
302
|
+
- [ ] Authorization checked (role/permission)
|
|
303
|
+
- [ ] Rate limiting applied (if public endpoint)
|
|
304
|
+
- [ ] No sensitive data in logs
|
|
305
|
+
- [ ] No hardcoded secrets
|
|
306
|
+
- [ ] SQL injection prevented (parameterized queries)
|
|
307
|
+
- [ ] XSS prevented (output encoding)
|
|
308
|
+
- [ ] CSRF protection (if stateful)
|
|
309
|
+
|
|
310
|
+
---
|
|
311
|
+
|
|
312
|
+
## ๐จ Code Style Examples
|
|
313
|
+
|
|
314
|
+
### Controller Example ({{FRAMEWORK}})
|
|
315
|
+
|
|
316
|
+
```{{LANGUAGE}}
|
|
317
|
+
{{CONTROLLER_EXAMPLE}}
|
|
318
|
+
```
|
|
319
|
+
|
|
320
|
+
### Service Example
|
|
321
|
+
|
|
322
|
+
```{{LANGUAGE}}
|
|
323
|
+
{{SERVICE_EXAMPLE}}
|
|
324
|
+
```
|
|
325
|
+
|
|
326
|
+
### Repository Example
|
|
327
|
+
|
|
328
|
+
```{{LANGUAGE}}
|
|
329
|
+
{{REPOSITORY_EXAMPLE}}
|
|
330
|
+
```
|
|
331
|
+
|
|
332
|
+
### DTO Example
|
|
333
|
+
|
|
334
|
+
```{{LANGUAGE}}
|
|
335
|
+
{{DTO_EXAMPLE}}
|
|
336
|
+
```
|
|
337
|
+
|
|
338
|
+
---
|
|
339
|
+
|
|
340
|
+
## ๐ When in Doubt
|
|
341
|
+
|
|
342
|
+
1. Check this document first
|
|
343
|
+
2. Review `docs/code-standards.md` for specific patterns
|
|
344
|
+
3. Look for similar existing implementations in the codebase
|
|
345
|
+
4. Ask for clarification before making architectural decisions
|
|
346
|
+
5. Prioritize security and maintainability over speed
|
|
347
|
+
|
|
348
|
+
---
|
|
349
|
+
|
|
350
|
+
**Remember:** These rules exist to maintain quality, security, and consistency. Following them makes the codebase better for everyone.
|
|
351
|
+
|
|
352
|
+
**Last Updated:** {{GENERATION_DATE}}
|
|
353
|
+
|
|
354
|
+
**Generated by:** AI Flow v1.0.0
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
# GitHub Copilot Instructions for {{PROJECT_NAME}}
|
|
2
|
+
|
|
3
|
+
## ๐ Project Overview
|
|
4
|
+
|
|
5
|
+
**Name:** {{PROJECT_NAME}}
|
|
6
|
+
|
|
7
|
+
**Description:** {{PROJECT_DESCRIPTION}}
|
|
8
|
+
|
|
9
|
+
**Stack:** {{FRAMEWORK}} ({{LANGUAGE}}) + {{DATABASE}}
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
## ๐ Documentation Reference
|
|
14
|
+
|
|
15
|
+
**โญ CRITICAL:** Always read `AGENT.md` first for complete context.
|
|
16
|
+
|
|
17
|
+
**Key Documentation:**
|
|
18
|
+
|
|
19
|
+
- [`AGENT.md`](../../AGENT.md) - Universal AI configuration
|
|
20
|
+
- [`ai-instructions.md`](../../ai-instructions.md) - Tech stack and rules
|
|
21
|
+
- [`project-brief.md`](../../project-brief.md) - Business context
|
|
22
|
+
- [`README.md`](../../README.md) - Developer onboarding & commands
|
|
23
|
+
- [`docs/architecture.md`](../../docs/architecture.md) - System architecture
|
|
24
|
+
- [`docs/data-model.md`](../../docs/data-model.md) - Entities & relationships
|
|
25
|
+
- [`docs/code-standards.md`](../../docs/code-standards.md) - Coding standards
|
|
26
|
+
- [`docs/testing.md`](../../docs/testing.md) - Testing strategy
|
|
27
|
+
- [`docs/operations.md`](../../docs/operations.md) - Deployment & operations
|
|
28
|
+
- [`docs/business-flows.md`](../../docs/business-flows.md) - Business process flows
|
|
29
|
+
- [`docs/api.md`](../../docs/api.md) - Endpoint conventions
|
|
30
|
+
- [`docs/contributing.md`](../../docs/contributing.md) - Contribution workflow
|
|
31
|
+
- [`specs/security.md`](../../specs/security.md) - Security policies
|
|
32
|
+
- [`specs/configuration.md`](../../specs/configuration.md) - Environment configuration
|
|
33
|
+
|
|
34
|
+
---
|
|
35
|
+
|
|
36
|
+
## ๐ฏ Quick Rules
|
|
37
|
+
|
|
38
|
+
### โ NEVER
|
|
39
|
+
|
|
40
|
+
{{NEVER_RULES_SUMMARY}}
|
|
41
|
+
|
|
42
|
+
### โ
ALWAYS
|
|
43
|
+
|
|
44
|
+
{{ALWAYS_RULES_SUMMARY}}
|
|
45
|
+
|
|
46
|
+
---
|
|
47
|
+
|
|
48
|
+
## ๐๏ธ Architecture
|
|
49
|
+
|
|
50
|
+
**Pattern:** {{ARCHITECTURE_PATTERN}}
|
|
51
|
+
|
|
52
|
+
**Structure:**
|
|
53
|
+
|
|
54
|
+
```
|
|
55
|
+
{{PROJECT_STRUCTURE_BRIEF}}
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
---
|
|
59
|
+
|
|
60
|
+
## ๐จ Code Style
|
|
61
|
+
|
|
62
|
+
| Setting | Value |
|
|
63
|
+
| ----------- | --------------- |
|
|
64
|
+
| Indentation | {{INDENTATION}} |
|
|
65
|
+
| Quotes | {{QUOTE_STYLE}} |
|
|
66
|
+
| Line Length | {{LINE_LENGTH}} |
|
|
67
|
+
| Formatter | {{FORMATTER}} |
|
|
68
|
+
|
|
69
|
+
**Auto-format:** {{AUTO_FORMAT_COMMAND}}
|
|
70
|
+
|
|
71
|
+
---
|
|
72
|
+
|
|
73
|
+
## ๐ Security
|
|
74
|
+
|
|
75
|
+
- **Auth:** {{AUTH_METHOD}}
|
|
76
|
+
- **Validation:** {{VALIDATION_LIBRARY}}
|
|
77
|
+
- **Password:** {{PASSWORD_HASH_ALGORITHM}}
|
|
78
|
+
- **NEVER** hardcode secrets
|
|
79
|
+
- **ALWAYS** validate user input
|
|
80
|
+
|
|
81
|
+
---
|
|
82
|
+
|
|
83
|
+
## ๐งช Testing
|
|
84
|
+
|
|
85
|
+
- **Framework:** {{TEST_FRAMEWORK}}
|
|
86
|
+
- **Coverage:** {{MIN_COVERAGE}}%+ required
|
|
87
|
+
- **Command:** `{{TEST_COMMAND}}`
|
|
88
|
+
|
|
89
|
+
**Test Pattern:**
|
|
90
|
+
|
|
91
|
+
```{{LANGUAGE}}
|
|
92
|
+
{{TEST_PATTERN_EXAMPLE}}
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
---
|
|
96
|
+
|
|
97
|
+
## ๐ Commit Format
|
|
98
|
+
|
|
99
|
+
```
|
|
100
|
+
{{COMMIT_FORMAT_EXAMPLE}}
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
---
|
|
104
|
+
|
|
105
|
+
## ๐ก Copilot Workflow
|
|
106
|
+
|
|
107
|
+
1. Read `AGENT.md` for project context
|
|
108
|
+
2. Check `docs/` for specific area documentation
|
|
109
|
+
3. Follow patterns from `docs/code-standards.md`
|
|
110
|
+
4. Write tests alongside code
|
|
111
|
+
5. Validate with linter before committing
|
|
112
|
+
|
|
113
|
+
---
|
|
114
|
+
|
|
115
|
+
## ๐ง Common Commands
|
|
116
|
+
|
|
117
|
+
```bash
|
|
118
|
+
# Development
|
|
119
|
+
{{DEV_COMMAND}}
|
|
120
|
+
|
|
121
|
+
# Test
|
|
122
|
+
{{TEST_COMMAND}}
|
|
123
|
+
|
|
124
|
+
# Lint
|
|
125
|
+
{{LINT_COMMAND}}
|
|
126
|
+
|
|
127
|
+
# Format
|
|
128
|
+
{{FORMAT_COMMAND}}
|
|
129
|
+
|
|
130
|
+
# Build
|
|
131
|
+
{{BUILD_COMMAND}}
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
---
|
|
135
|
+
|
|
136
|
+
## ๐ฏ Code Examples
|
|
137
|
+
|
|
138
|
+
### Controller
|
|
139
|
+
|
|
140
|
+
```{{LANGUAGE}}
|
|
141
|
+
{{CONTROLLER_EXAMPLE_BRIEF}}
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
### Service
|
|
145
|
+
|
|
146
|
+
```{{LANGUAGE}}
|
|
147
|
+
{{SERVICE_EXAMPLE_BRIEF}}
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
### Repository
|
|
151
|
+
|
|
152
|
+
```{{LANGUAGE}}
|
|
153
|
+
{{REPOSITORY_EXAMPLE_BRIEF}}
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
---
|
|
157
|
+
|
|
158
|
+
**For complete context, always reference `AGENT.md` and project documentation.**
|
|
159
|
+
|
|
160
|
+
**Generated by:** AI Flow v1.0.0
|