agents-templated 1.2.0 → 1.2.2
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/README.md +246 -383
- package/bin/cli.js +47 -36
- package/index.js +7 -7
- package/package.json +1 -1
- package/templates/.cursorrules +2 -2
- package/templates/.github/copilot-instructions.md +7 -5
- package/templates/CLAUDE.md +40 -245
- package/templates/{.gemini-instructions.md → GEMINI.md} +10 -7
- package/templates/README.md +359 -30
- package/templates/{AI_INSTRUCTIONS.md → agent-docs/AI_INSTRUCTIONS.md} +4 -4
- package/templates/agent-docs/ARCHITECTURE.md +261 -0
- package/templates/agent-docs/README.md +53 -0
- package/templates/.vscode-ai-rules.md +0 -111
- /package/templates/{AGENTS.MD → agent-docs/AGENTS.MD} +0 -0
package/templates/README.md
CHANGED
|
@@ -1,49 +1,378 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Agents Templated
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[](https://www.npmjs.com/package/agents-templated)
|
|
4
|
+
[](https://www.npmjs.com/package/agents-templated)
|
|
5
|
+
[](https://opensource.org/licenses/MIT)
|
|
6
|
+
[](https://github.com/rickandrew2/agents-templated)
|
|
4
7
|
|
|
5
|
-
|
|
8
|
+
> **Agents Templated** is a CLI tool and npm package that instantly scaffolds production-ready project structures with enterprise-grade development patterns, security guidelines, and AI assistant configurations. Designed for developers who want to start projects the right way—with proven OWASP security practices, comprehensive testing strategies (80/15/5 coverage targets), and agent-based architecture patterns—without being locked into specific frameworks. It generates unified configuration files that work seamlessly with Cursor, GitHub Copilot, Claude, and Google Gemini, allowing AI assistants to automatically follow best practices from day one. Whether you're building a Next.js app, Django API, Go microservice, or any custom stack, Agents Templated provides the guardrails and patterns you need while giving you complete freedom to choose your technology.
|
|
6
9
|
|
|
7
|
-
|
|
10
|
+
---
|
|
8
11
|
|
|
9
|
-
|
|
10
|
-
- **CLAUDE.md**: Project guidelines and architecture
|
|
11
|
-
- **AI_INSTRUCTIONS.md**: Instructions for AI assistants
|
|
12
|
-
- **agents/rules/**: Development rules and patterns (6 files)
|
|
13
|
-
- **agents/skills/**: Reusable agent skills
|
|
14
|
-
- **.github/copilot-instructions.md**: GitHub Copilot configuration
|
|
12
|
+
## What is Agents Templated?
|
|
15
13
|
|
|
16
|
-
|
|
14
|
+
Agents Templated scaffolds your project with:
|
|
17
15
|
|
|
18
|
-
|
|
16
|
+
✅ **AI Agent Configurations** – Auto-discovery files for 4 major AI coding assistants
|
|
17
|
+
✅ **Security-First Patterns** – OWASP Top 10 protection guidelines built-in
|
|
18
|
+
✅ **Testing Strategy** – 80/15/5 coverage targets (unit/integration/e2e)
|
|
19
|
+
✅ **Agent-Based Architecture** – Specialized patterns for frontend, backend, database, testing, security
|
|
20
|
+
✅ **Technology-Agnostic** – Works with React, Django, Go, FastAPI, Next.js, or any stack you choose
|
|
21
|
+
|
|
22
|
+
**Important:** This package does **NOT** install frameworks or libraries. It scaffolds the structure, patterns, and AI configurations—you install your chosen tech stack separately.
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
## 🚀 Quick Start
|
|
27
|
+
|
|
28
|
+
### 1. Run the Interactive Wizard (Recommended)
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
# Using npx (no installation needed) - RECOMMENDED
|
|
32
|
+
npx agents-templated@latest wizard
|
|
33
|
+
|
|
34
|
+
# Or install globally first
|
|
35
|
+
npm install -g agents-templated
|
|
36
|
+
agents-templated wizard
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
**Or use a preset for fast setup:**
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
# Initialize with a specific preset
|
|
43
|
+
npx agents-templated@latest init --preset=nextjs # Next.js
|
|
44
|
+
npx agents-templated@latest init --preset=express-api # Express
|
|
45
|
+
npx agents-templated@latest init --preset=django-react # Django
|
|
46
|
+
npx agents-templated@latest init --preset=fastapi # FastAPI
|
|
47
|
+
npx agents-templated@latest init --preset=go-api # Go
|
|
48
|
+
|
|
49
|
+
# Or install all components without a preset
|
|
50
|
+
npx agents-templated@latest init --all
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
### 2. Install Your Tech Stack
|
|
54
|
+
|
|
55
|
+
After initializing, install your chosen framework:
|
|
56
|
+
|
|
57
|
+
```bash
|
|
58
|
+
# Frontend
|
|
59
|
+
npm install next react react-dom # Next.js
|
|
60
|
+
npm install vue nuxt # Nuxt
|
|
61
|
+
npm install @angular/core @angular/cli # Angular
|
|
62
|
+
|
|
63
|
+
# Backend
|
|
64
|
+
npm install express typescript zod # Express
|
|
65
|
+
pip install django djangorestframework # Django
|
|
66
|
+
pip install fastapi uvicorn pydantic # FastAPI
|
|
67
|
+
go mod init your-project # Go
|
|
68
|
+
|
|
69
|
+
# Database
|
|
70
|
+
npm install prisma @prisma/client # Prisma ORM
|
|
71
|
+
pip install sqlalchemy alembic # SQLAlchemy
|
|
72
|
+
npm install mongoose # Mongoose (MongoDB)
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
### 3. Start Coding with AI
|
|
76
|
+
|
|
77
|
+
Your AI assistant will auto-load the configurations and follow enterprise patterns automatically!
|
|
78
|
+
|
|
79
|
+
---
|
|
80
|
+
|
|
81
|
+
## ✨ Key Features
|
|
82
|
+
|
|
83
|
+
| Feature | Description |
|
|
84
|
+
|---------|-------------|
|
|
85
|
+
| 🚀 **Quick Start Presets** | 5 popular tech stack presets (Next.js, Express, Django, FastAPI, Go) |
|
|
86
|
+
| 🧙 **Interactive Wizard** | Guided setup with personalized recommendations |
|
|
87
|
+
| 🤖 **4 AI Agents Supported** | Cursor, GitHub Copilot, Claude, Google Gemini (auto-discovery) |
|
|
88
|
+
| 🔒 **Security-First** | OWASP Top 10 protection patterns built-in |
|
|
89
|
+
| 🧪 **Testing Strategy** | 80/15/5 coverage targets (unit/integration/e2e) |
|
|
90
|
+
| ✅ **Project Validation** | `validate` and `doctor` commands for health checks |
|
|
91
|
+
| 🔄 **Template Updates** | Keep your templates in sync with `update` command |
|
|
92
|
+
| 🎯 **Technology-Agnostic** | Works with React, Django, Go, FastAPI, Next.js, or any stack |
|
|
93
|
+
| ♿ **Accessibility** | WCAG 2.1 AA compliance patterns included |
|
|
94
|
+
|
|
95
|
+
---
|
|
96
|
+
|
|
97
|
+
## 🤖 AI Agent Support
|
|
98
|
+
|
|
99
|
+
Agents Templated automatically configures 4 major AI coding assistants:
|
|
100
|
+
|
|
101
|
+
| AI Agent | Config File | Auto-Discovery |
|
|
102
|
+
|----------|-------------|----------------|
|
|
103
|
+
| **Cursor** | `.cursorrules` | ✅ Auto-loads in Cursor IDE |
|
|
104
|
+
| **GitHub Copilot** | `.github/copilot-instructions.md` | ✅ Auto-loads in VS Code |
|
|
105
|
+
| **Claude** | `CLAUDE.md` | ✅ Auto-loads in Claude IDE/API |
|
|
106
|
+
| **Gemini** | `GEMINI.md` | ✅ Auto-loads in Gemini IDE/API |
|
|
107
|
+
|
|
108
|
+
**All agents follow the same rules:** `agents/rules/` directory contains unified patterns for security, testing, code style, and architecture. No duplication, one source of truth.
|
|
109
|
+
|
|
110
|
+
---
|
|
111
|
+
|
|
112
|
+
## 📦 What Gets Installed
|
|
113
|
+
|
|
114
|
+
When you run `agents-templated init`, you get:
|
|
115
|
+
|
|
116
|
+
```
|
|
117
|
+
your-project/
|
|
118
|
+
├── agent-docs/ # 📚 Comprehensive documentation
|
|
119
|
+
│ ├── AI_INSTRUCTIONS.md # Primary AI assistant guide
|
|
120
|
+
│ ├── ARCHITECTURE.md # Project architecture & tech stack
|
|
121
|
+
│ ├── AGENTS.MD # Agent delegation patterns
|
|
122
|
+
│ └── README.md # Human-readable setup guide
|
|
123
|
+
│
|
|
124
|
+
├── agents/ # 🤖 AI Agent rules and skills
|
|
125
|
+
│ ├── rules/
|
|
126
|
+
│ │ ├── core.mdc # Core development principles
|
|
127
|
+
│ │ ├── security.mdc # Security patterns (CRITICAL)
|
|
128
|
+
│ │ ├── testing.mdc # Testing strategy
|
|
129
|
+
│ │ ├── frontend.mdc # Frontend patterns
|
|
130
|
+
│ │ ├── database.mdc # Database patterns
|
|
131
|
+
│ │ └── style.mdc # Code style guidelines
|
|
132
|
+
│ └── skills/
|
|
133
|
+
│ ├── web-design-guidelines/ # UI/UX patterns
|
|
134
|
+
│ └── find-skills/ # Skill discovery
|
|
135
|
+
│
|
|
136
|
+
├── .github/
|
|
137
|
+
│ └── copilot-instructions.md # GitHub Copilot config
|
|
138
|
+
│
|
|
139
|
+
├── CLAUDE.md # Claude AI config
|
|
140
|
+
├── GEMINI.md # Gemini AI config
|
|
141
|
+
├── .cursorrules # Cursor IDE config
|
|
142
|
+
├── .gitignore # Pre-configured Git ignore
|
|
143
|
+
└── README.md # Project documentation
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
---
|
|
147
|
+
|
|
148
|
+
## 📋 Command Reference
|
|
149
|
+
|
|
150
|
+
### Setup Commands
|
|
19
151
|
|
|
20
152
|
```bash
|
|
21
|
-
#
|
|
22
|
-
agents-templated
|
|
153
|
+
# 🧙 Interactive wizard (recommended for beginners)
|
|
154
|
+
agents-templated wizard
|
|
155
|
+
|
|
156
|
+
# 🚀 Quick start with presets
|
|
157
|
+
agents-templated init --preset=nextjs # Next.js full-stack
|
|
158
|
+
agents-templated init --preset=express-api # Express.js API
|
|
159
|
+
agents-templated init --preset=django-react # Django + React
|
|
160
|
+
agents-templated init --preset=fastapi # FastAPI
|
|
161
|
+
agents-templated init --preset=go-api # Go API
|
|
23
162
|
|
|
24
|
-
#
|
|
25
|
-
agents-templated init --
|
|
26
|
-
agents-templated init --
|
|
27
|
-
agents-templated init --
|
|
28
|
-
agents-templated init --
|
|
163
|
+
# 🔧 Manual component selection
|
|
164
|
+
agents-templated init --all # All components
|
|
165
|
+
agents-templated init --docs # Documentation only
|
|
166
|
+
agents-templated init --rules # Agent rules only
|
|
167
|
+
agents-templated init --skills # Skills only
|
|
29
168
|
|
|
30
|
-
#
|
|
169
|
+
# ⚠️ Force overwrite existing files
|
|
170
|
+
agents-templated init --all --force
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
### Maintenance Commands
|
|
174
|
+
|
|
175
|
+
```bash
|
|
176
|
+
# ✅ Validate your project setup
|
|
177
|
+
agents-templated validate # Quick validation
|
|
178
|
+
agents-templated doctor # Comprehensive health check
|
|
179
|
+
|
|
180
|
+
# 🔄 Update templates to latest version
|
|
181
|
+
agents-templated update # Apply updates with backup
|
|
182
|
+
agents-templated update --check-only # Check without installing
|
|
183
|
+
|
|
184
|
+
# 📚 List available components and presets
|
|
31
185
|
agents-templated list
|
|
32
186
|
```
|
|
33
187
|
|
|
34
|
-
|
|
188
|
+
---
|
|
189
|
+
|
|
190
|
+
## 🎯 After Installation: Next Steps
|
|
191
|
+
|
|
192
|
+
### 1. Install Your Tech Stack
|
|
193
|
+
|
|
194
|
+
After initializing, install your chosen framework:
|
|
195
|
+
|
|
196
|
+
```bash
|
|
197
|
+
# Frontend
|
|
198
|
+
npm install next react react-dom # Next.js
|
|
199
|
+
npm install vue nuxt # Nuxt
|
|
200
|
+
npm install @angular/core @angular/cli # Angular
|
|
201
|
+
|
|
202
|
+
# Backend
|
|
203
|
+
npm install express typescript zod # Express
|
|
204
|
+
pip install django djangorestframework # Django
|
|
205
|
+
pip install fastapi uvicorn pydantic # FastAPI
|
|
206
|
+
go mod init your-project # Go
|
|
207
|
+
|
|
208
|
+
# Database
|
|
209
|
+
npm install prisma @prisma/client # Prisma ORM
|
|
210
|
+
pip install sqlalchemy alembic # SQLAlchemy
|
|
211
|
+
npm install mongoose # Mongoose (MongoDB)
|
|
212
|
+
```
|
|
35
213
|
|
|
36
|
-
|
|
37
|
-
- **Skills** (`agents/skills/*/SKILL.md`): Extend agent capabilities (e.g. find-skills, web-design-guidelines). Each has a name, description, and when to use.
|
|
214
|
+
### 2. Review AI Configuration Files
|
|
38
215
|
|
|
39
|
-
|
|
216
|
+
Open your AI assistant and it will automatically load the appropriate config:
|
|
40
217
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
218
|
+
- **Cursor**: Opens `.cursorrules` automatically
|
|
219
|
+
- **GitHub Copilot**: Reads `.github/copilot-instructions.md`
|
|
220
|
+
- **Claude**: Reads `CLAUDE.md`
|
|
221
|
+
- **Gemini**: Reads `GEMINI.md`
|
|
45
222
|
|
|
46
|
-
|
|
223
|
+
### 3. Read the Documentation
|
|
47
224
|
|
|
48
|
-
|
|
225
|
+
- **[agent-docs/AI_INSTRUCTIONS.md](agent-docs/AI_INSTRUCTIONS.md)** – Primary AI assistant guide
|
|
226
|
+
- **[agent-docs/ARCHITECTURE.md](agent-docs/ARCHITECTURE.md)** – Project architecture & tech stack guidance
|
|
227
|
+
- **[agent-docs/AGENTS.MD](agent-docs/AGENTS.MD)** – Agent delegation patterns
|
|
228
|
+
- **[agents/rules/security.mdc](agents/rules/security.mdc)** – Security patterns (CRITICAL)
|
|
229
|
+
- **[agents/rules/testing.mdc](agents/rules/testing.mdc)** – Testing strategy
|
|
49
230
|
|
|
231
|
+
### 4. Start Building
|
|
232
|
+
|
|
233
|
+
Tell your AI assistant what to build:
|
|
234
|
+
|
|
235
|
+
```
|
|
236
|
+
"Create a user registration endpoint with email validation and rate limiting"
|
|
237
|
+
"Build a responsive dashboard component with dark mode support"
|
|
238
|
+
"Design a PostgreSQL schema for a blog with users, posts, and comments"
|
|
239
|
+
```
|
|
240
|
+
|
|
241
|
+
Your AI will follow the enterprise patterns automatically!
|
|
242
|
+
|
|
243
|
+
---
|
|
244
|
+
|
|
245
|
+
## 🏗️ Core Principles
|
|
246
|
+
|
|
247
|
+
### Security-First Development
|
|
248
|
+
|
|
249
|
+
✅ Validate all inputs at application boundaries with schema validation
|
|
250
|
+
✅ Authenticate and authorize every protected endpoint
|
|
251
|
+
✅ Rate limit public endpoints to prevent abuse
|
|
252
|
+
✅ Sanitize outputs to prevent injection attacks
|
|
253
|
+
✅ Never expose sensitive data in error messages or logs
|
|
254
|
+
|
|
255
|
+
**Reference**: [agents/rules/security.mdc](agents/rules/security.mdc)
|
|
256
|
+
|
|
257
|
+
### Testing Strategy
|
|
258
|
+
|
|
259
|
+
- **80% Unit Tests** – Business logic, pure functions, utilities
|
|
260
|
+
- **15% Integration Tests** – API endpoints, database operations
|
|
261
|
+
- **5% E2E Tests** – Critical user journeys
|
|
262
|
+
|
|
263
|
+
**Reference**: [agents/rules/testing.mdc](agents/rules/testing.mdc)
|
|
264
|
+
|
|
265
|
+
### Agent-Based Architecture
|
|
266
|
+
|
|
267
|
+
| Agent | Responsibility |
|
|
268
|
+
|-------|---------------|
|
|
269
|
+
| **FrontendAgent** | UI/UX, components, design system, accessibility |
|
|
270
|
+
| **BackendAgent** | API, business logic, authentication, middleware |
|
|
271
|
+
| **DatabaseAgent** | Schema design, migrations, query optimization |
|
|
272
|
+
| **TestAgent** | Unit, integration, E2E, accessibility testing |
|
|
273
|
+
| **SecurityAgent** | Input validation, authentication, OWASP compliance |
|
|
274
|
+
|
|
275
|
+
**Reference**: [agent-docs/AGENTS.MD](agent-docs/AGENTS.MD)
|
|
276
|
+
|
|
277
|
+
---
|
|
278
|
+
|
|
279
|
+
## 📚 Available Presets
|
|
280
|
+
|
|
281
|
+
| Preset | Tech Stack | Best For |
|
|
282
|
+
|--------|-----------|----------|
|
|
283
|
+
| `nextjs` | Next.js + React + TypeScript | Full-stack web applications |
|
|
284
|
+
| `express-api` | Express + TypeScript + Zod | REST APIs and microservices |
|
|
285
|
+
| `django-react` | Django + React + PostgreSQL | Full-stack with Python backend |
|
|
286
|
+
| `fastapi` | FastAPI + Pydantic + SQLAlchemy | High-performance Python APIs |
|
|
287
|
+
| `go-api` | Go + Gin/Echo + PostgreSQL | Scalable Go microservices |
|
|
288
|
+
|
|
289
|
+
Each preset includes:
|
|
290
|
+
- Recommended package list
|
|
291
|
+
- Stack-specific configurations
|
|
292
|
+
- Optimized `.gitignore` patterns
|
|
293
|
+
- Pre-configured agent rules
|
|
294
|
+
|
|
295
|
+
---
|
|
296
|
+
|
|
297
|
+
## 🔧 Programmatic API
|
|
298
|
+
|
|
299
|
+
Use agents-templated in your build scripts or automation:
|
|
300
|
+
|
|
301
|
+
```javascript
|
|
302
|
+
const agentsTemplated = require('agents-templated');
|
|
303
|
+
|
|
304
|
+
// Install all components
|
|
305
|
+
await agentsTemplated.install('./my-project', {
|
|
306
|
+
force: true
|
|
307
|
+
});
|
|
308
|
+
|
|
309
|
+
// Install specific components
|
|
310
|
+
await agentsTemplated.install('./my-project', {
|
|
311
|
+
docs: true,
|
|
312
|
+
rules: true,
|
|
313
|
+
skills: false,
|
|
314
|
+
github: true,
|
|
315
|
+
force: false
|
|
316
|
+
});
|
|
317
|
+
```
|
|
318
|
+
|
|
319
|
+
---
|
|
320
|
+
|
|
321
|
+
## 📝 Usage Examples
|
|
322
|
+
|
|
323
|
+
### Frontend Development
|
|
324
|
+
```
|
|
325
|
+
"Create a responsive navigation component with accessibility support"
|
|
326
|
+
"Implement dark mode toggle with user preference persistence"
|
|
327
|
+
"Build a data table with sorting, filtering, and pagination"
|
|
328
|
+
```
|
|
329
|
+
|
|
330
|
+
### Backend Development
|
|
331
|
+
```
|
|
332
|
+
"Create a secure user registration endpoint with email validation and rate limiting"
|
|
333
|
+
"Implement JWT authentication middleware with refresh tokens"
|
|
334
|
+
"Add password reset functionality with email verification"
|
|
335
|
+
```
|
|
336
|
+
|
|
337
|
+
### Database Operations
|
|
338
|
+
```
|
|
339
|
+
"Design a user roles and permissions schema with PostgreSQL"
|
|
340
|
+
"Create a migration to add full-text search to the posts table"
|
|
341
|
+
"Optimize the user query to prevent N+1 problems using joins"
|
|
342
|
+
```
|
|
343
|
+
|
|
344
|
+
---
|
|
345
|
+
|
|
346
|
+
## 🤝 Contributing
|
|
347
|
+
|
|
348
|
+
When contributing to this template:
|
|
349
|
+
1. Maintain technology-agnostic patterns
|
|
350
|
+
2. Update relevant rule files in `agents/rules/`
|
|
351
|
+
3. Keep documentation synchronized with code changes
|
|
352
|
+
4. Follow security and testing patterns
|
|
353
|
+
5. Ensure AI assistant configurations remain compatible
|
|
354
|
+
|
|
355
|
+
See [CONTRIBUTING.md](CONTRIBUTING.md) for detailed guidelines.
|
|
356
|
+
|
|
357
|
+
---
|
|
358
|
+
|
|
359
|
+
## 📖 License
|
|
360
|
+
|
|
361
|
+
MIT License - See [LICENSE](LICENSE) for details.
|
|
362
|
+
|
|
363
|
+
---
|
|
364
|
+
|
|
365
|
+
## 🔗 Links
|
|
366
|
+
|
|
367
|
+
- **NPM Package**: https://www.npmjs.com/package/agents-templated
|
|
368
|
+
- **GitHub Repository**: https://github.com/rickandrew2/agents-templated
|
|
369
|
+
- **Issues & Bug Reports**: https://github.com/rickandrew2/agents-templated/issues
|
|
370
|
+
- **Changelog**: [CHANGELOG.md](CHANGELOG.md)
|
|
371
|
+
|
|
372
|
+
---
|
|
373
|
+
|
|
374
|
+
**Ready to start building?** Choose your technology stack and begin development with enterprise-grade patterns from day one!
|
|
375
|
+
|
|
376
|
+
```bash
|
|
377
|
+
npx agents-templated@latest wizard
|
|
378
|
+
```
|
|
@@ -4,7 +4,7 @@ This project follows enterprise-grade, technology-agnostic development patterns.
|
|
|
4
4
|
|
|
5
5
|
## Primary Documentation (Always Reference)
|
|
6
6
|
|
|
7
|
-
- **`
|
|
7
|
+
- **`ARCHITECTURE.md`** - Overall project guidelines, architecture principles, and technology stack selection
|
|
8
8
|
- **`AGENTS.md`** - Agent delegation patterns, responsibilities, and when to use each agent
|
|
9
9
|
|
|
10
10
|
## Detailed Rules (Reference When Relevant)
|
|
@@ -24,7 +24,7 @@ When implementing features, always check the relevant rule file:
|
|
|
24
24
|
When implementing any feature:
|
|
25
25
|
|
|
26
26
|
1. **Check `AGENTS.md`** to determine which agent pattern applies (FrontendAgent, BackendAgent, DatabaseAgent, etc.)
|
|
27
|
-
2. **Reference `
|
|
27
|
+
2. **Reference `ARCHITECTURE.md`** for overall architecture and technology stack guidance
|
|
28
28
|
3. **Apply relevant rules** from `agents/rules/*.mdc` files based on the task
|
|
29
29
|
4. **Always apply security patterns** from `agents/rules/security.mdc`
|
|
30
30
|
5. **Always apply testing patterns** from `agents/rules/testing.mdc`
|
|
@@ -48,7 +48,7 @@ When implementing any feature:
|
|
|
48
48
|
- **Type safety**: Use strong typing, validate at boundaries
|
|
49
49
|
- **Performance**: Monitor bundle/binary size, implement lazy loading
|
|
50
50
|
- **Accessibility**: WCAG 2.1 AA compliance for user-facing components
|
|
51
|
-
- **Documentation**: Keep README,
|
|
51
|
+
- **Documentation**: Keep README, ARCHITECTURE.md, and AGENTS.md updated
|
|
52
52
|
|
|
53
53
|
## Architecture Principles
|
|
54
54
|
|
|
@@ -83,7 +83,7 @@ When implementing any feature:
|
|
|
83
83
|
## When in Doubt
|
|
84
84
|
|
|
85
85
|
1. Check `AGENTS.md` for agent delegation guidance
|
|
86
|
-
2. Review `
|
|
86
|
+
2. Review `ARCHITECTURE.md` for architecture decisions
|
|
87
87
|
3. Reference the specific `agents/rules/*.mdc` file for detailed patterns
|
|
88
88
|
4. Always prioritize security and testing requirements
|
|
89
89
|
|