agentic-team-templates 0.3.0

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 (103) hide show
  1. package/README.md +280 -0
  2. package/bin/cli.js +5 -0
  3. package/package.json +47 -0
  4. package/src/index.js +521 -0
  5. package/templates/_shared/code-quality.md +162 -0
  6. package/templates/_shared/communication.md +114 -0
  7. package/templates/_shared/core-principles.md +62 -0
  8. package/templates/_shared/git-workflow.md +165 -0
  9. package/templates/_shared/security-fundamentals.md +173 -0
  10. package/templates/blockchain/.cursorrules/defi-patterns.md +520 -0
  11. package/templates/blockchain/.cursorrules/gas-optimization.md +339 -0
  12. package/templates/blockchain/.cursorrules/overview.md +130 -0
  13. package/templates/blockchain/.cursorrules/security.md +318 -0
  14. package/templates/blockchain/.cursorrules/smart-contracts.md +364 -0
  15. package/templates/blockchain/.cursorrules/testing.md +415 -0
  16. package/templates/blockchain/.cursorrules/web3-integration.md +538 -0
  17. package/templates/blockchain/CLAUDE.md +389 -0
  18. package/templates/cli-tools/.cursorrules/architecture.md +412 -0
  19. package/templates/cli-tools/.cursorrules/arguments.md +406 -0
  20. package/templates/cli-tools/.cursorrules/distribution.md +546 -0
  21. package/templates/cli-tools/.cursorrules/error-handling.md +455 -0
  22. package/templates/cli-tools/.cursorrules/overview.md +136 -0
  23. package/templates/cli-tools/.cursorrules/testing.md +537 -0
  24. package/templates/cli-tools/.cursorrules/user-experience.md +545 -0
  25. package/templates/cli-tools/CLAUDE.md +356 -0
  26. package/templates/data-engineering/.cursorrules/data-modeling.md +367 -0
  27. package/templates/data-engineering/.cursorrules/data-quality.md +455 -0
  28. package/templates/data-engineering/.cursorrules/overview.md +85 -0
  29. package/templates/data-engineering/.cursorrules/performance.md +339 -0
  30. package/templates/data-engineering/.cursorrules/pipeline-design.md +280 -0
  31. package/templates/data-engineering/.cursorrules/security.md +460 -0
  32. package/templates/data-engineering/.cursorrules/testing.md +452 -0
  33. package/templates/data-engineering/CLAUDE.md +974 -0
  34. package/templates/devops-sre/.cursorrules/capacity-planning.md +653 -0
  35. package/templates/devops-sre/.cursorrules/change-management.md +584 -0
  36. package/templates/devops-sre/.cursorrules/chaos-engineering.md +651 -0
  37. package/templates/devops-sre/.cursorrules/disaster-recovery.md +641 -0
  38. package/templates/devops-sre/.cursorrules/incident-management.md +565 -0
  39. package/templates/devops-sre/.cursorrules/observability.md +714 -0
  40. package/templates/devops-sre/.cursorrules/overview.md +230 -0
  41. package/templates/devops-sre/.cursorrules/postmortems.md +588 -0
  42. package/templates/devops-sre/.cursorrules/runbooks.md +760 -0
  43. package/templates/devops-sre/.cursorrules/slo-sli.md +617 -0
  44. package/templates/devops-sre/.cursorrules/toil-reduction.md +567 -0
  45. package/templates/devops-sre/CLAUDE.md +1007 -0
  46. package/templates/documentation/.cursorrules/adr.md +277 -0
  47. package/templates/documentation/.cursorrules/api-documentation.md +411 -0
  48. package/templates/documentation/.cursorrules/code-comments.md +253 -0
  49. package/templates/documentation/.cursorrules/maintenance.md +260 -0
  50. package/templates/documentation/.cursorrules/overview.md +82 -0
  51. package/templates/documentation/.cursorrules/readme-standards.md +306 -0
  52. package/templates/documentation/CLAUDE.md +120 -0
  53. package/templates/fullstack/.cursorrules/api-contracts.md +331 -0
  54. package/templates/fullstack/.cursorrules/architecture.md +298 -0
  55. package/templates/fullstack/.cursorrules/overview.md +109 -0
  56. package/templates/fullstack/.cursorrules/shared-types.md +348 -0
  57. package/templates/fullstack/.cursorrules/testing.md +386 -0
  58. package/templates/fullstack/CLAUDE.md +349 -0
  59. package/templates/ml-ai/.cursorrules/data-engineering.md +483 -0
  60. package/templates/ml-ai/.cursorrules/deployment.md +601 -0
  61. package/templates/ml-ai/.cursorrules/model-development.md +538 -0
  62. package/templates/ml-ai/.cursorrules/monitoring.md +658 -0
  63. package/templates/ml-ai/.cursorrules/overview.md +131 -0
  64. package/templates/ml-ai/.cursorrules/security.md +637 -0
  65. package/templates/ml-ai/.cursorrules/testing.md +678 -0
  66. package/templates/ml-ai/CLAUDE.md +1136 -0
  67. package/templates/mobile/.cursorrules/navigation.md +246 -0
  68. package/templates/mobile/.cursorrules/offline-first.md +302 -0
  69. package/templates/mobile/.cursorrules/overview.md +71 -0
  70. package/templates/mobile/.cursorrules/performance.md +345 -0
  71. package/templates/mobile/.cursorrules/testing.md +339 -0
  72. package/templates/mobile/CLAUDE.md +233 -0
  73. package/templates/platform-engineering/.cursorrules/ci-cd.md +778 -0
  74. package/templates/platform-engineering/.cursorrules/developer-experience.md +632 -0
  75. package/templates/platform-engineering/.cursorrules/infrastructure-as-code.md +600 -0
  76. package/templates/platform-engineering/.cursorrules/kubernetes.md +710 -0
  77. package/templates/platform-engineering/.cursorrules/observability.md +747 -0
  78. package/templates/platform-engineering/.cursorrules/overview.md +215 -0
  79. package/templates/platform-engineering/.cursorrules/security.md +855 -0
  80. package/templates/platform-engineering/.cursorrules/testing.md +878 -0
  81. package/templates/platform-engineering/CLAUDE.md +850 -0
  82. package/templates/utility-agent/.cursorrules/action-control.md +284 -0
  83. package/templates/utility-agent/.cursorrules/context-management.md +186 -0
  84. package/templates/utility-agent/.cursorrules/hallucination-prevention.md +253 -0
  85. package/templates/utility-agent/.cursorrules/overview.md +78 -0
  86. package/templates/utility-agent/.cursorrules/token-optimization.md +369 -0
  87. package/templates/utility-agent/CLAUDE.md +513 -0
  88. package/templates/web-backend/.cursorrules/api-design.md +255 -0
  89. package/templates/web-backend/.cursorrules/authentication.md +309 -0
  90. package/templates/web-backend/.cursorrules/database-patterns.md +298 -0
  91. package/templates/web-backend/.cursorrules/error-handling.md +366 -0
  92. package/templates/web-backend/.cursorrules/overview.md +69 -0
  93. package/templates/web-backend/.cursorrules/security.md +358 -0
  94. package/templates/web-backend/.cursorrules/testing.md +395 -0
  95. package/templates/web-backend/CLAUDE.md +366 -0
  96. package/templates/web-frontend/.cursorrules/accessibility.md +296 -0
  97. package/templates/web-frontend/.cursorrules/component-patterns.md +204 -0
  98. package/templates/web-frontend/.cursorrules/overview.md +72 -0
  99. package/templates/web-frontend/.cursorrules/performance.md +325 -0
  100. package/templates/web-frontend/.cursorrules/state-management.md +227 -0
  101. package/templates/web-frontend/.cursorrules/styling.md +271 -0
  102. package/templates/web-frontend/.cursorrules/testing.md +311 -0
  103. package/templates/web-frontend/CLAUDE.md +399 -0
@@ -0,0 +1,306 @@
1
+ # README Standards
2
+
3
+ Guidelines for writing effective README files that orient users and provide essential information.
4
+
5
+ ## Purpose
6
+
7
+ A README is the front door to your project. It should:
8
+ - Orient new users immediately
9
+ - Provide essential "getting started" information
10
+ - Link to more detailed documentation
11
+ - Be scannable in under 2 minutes
12
+
13
+ ## File Naming
14
+
15
+ - **Always name it `README.md`** (case-sensitive)
16
+ - Place in the repository root
17
+ - Each major directory can have its own README
18
+
19
+ ## Required Sections
20
+
21
+ ### Minimum Viable README
22
+
23
+ Every README must contain:
24
+
25
+ 1. **Project name and one-line description**
26
+ 2. **Quick start** (how to install/run)
27
+ 3. **Basic usage example**
28
+
29
+ ### Complete README Template
30
+
31
+ ```markdown
32
+ # Project Name
33
+
34
+ One-line description of what this project does.
35
+
36
+ ## Quick Start
37
+
38
+ \`\`\`bash
39
+ npm install project-name
40
+ \`\`\`
41
+
42
+ \`\`\`typescript
43
+ import { something } from 'project-name';
44
+ something.doThing();
45
+ \`\`\`
46
+
47
+ ## Features
48
+
49
+ - Feature one
50
+ - Feature two
51
+ - Feature three
52
+
53
+ ## Installation
54
+
55
+ ### Prerequisites
56
+
57
+ - Node.js 18+
58
+ - PostgreSQL 14+
59
+
60
+ ### Setup
61
+
62
+ \`\`\`bash
63
+ # Clone the repository
64
+ git clone https://github.com/org/project.git
65
+ cd project
66
+
67
+ # Install dependencies
68
+ npm install
69
+
70
+ # Configure environment
71
+ cp .env.example .env
72
+ # Edit .env with your values
73
+
74
+ # Run migrations
75
+ npm run db:migrate
76
+
77
+ # Start development server
78
+ npm run dev
79
+ \`\`\`
80
+
81
+ ## Usage
82
+
83
+ ### Basic Example
84
+
85
+ \`\`\`typescript
86
+ // Show the most common use case first
87
+ \`\`\`
88
+
89
+ ### Advanced Example
90
+
91
+ \`\`\`typescript
92
+ // Show more complex usage
93
+ \`\`\`
94
+
95
+ ## Configuration
96
+
97
+ | Variable | Description | Default |
98
+ |----------|-------------|---------|
99
+ | `PORT` | Server port | `3000` |
100
+ | `DATABASE_URL` | PostgreSQL connection string | Required |
101
+
102
+ ## API Reference
103
+
104
+ See [API Documentation](./docs/api.md) for full details.
105
+
106
+ ## Contributing
107
+
108
+ See [CONTRIBUTING.md](./CONTRIBUTING.md) for guidelines.
109
+
110
+ ## License
111
+
112
+ MIT - see [LICENSE](./LICENSE)
113
+ ```
114
+
115
+ ## Section Guidelines
116
+
117
+ ### Project Name and Description
118
+
119
+ ```markdown
120
+ # PaymentGateway
121
+
122
+ A lightweight payment processing library supporting Stripe, PayPal, and Square.
123
+ ```
124
+
125
+ - Use the actual project name
126
+ - One sentence describing what it does
127
+ - Avoid buzzwords and marketing speak
128
+
129
+ ### Quick Start
130
+
131
+ Show the fastest path to "hello world":
132
+
133
+ ```markdown
134
+ ## Quick Start
135
+
136
+ \`\`\`bash
137
+ npx create-my-app my-project
138
+ cd my-project
139
+ npm start
140
+ \`\`\`
141
+ ```
142
+
143
+ - Maximum 3-5 commands
144
+ - Copy-pasteable commands
145
+ - Should work on first try
146
+
147
+ ### Installation
148
+
149
+ Be specific about:
150
+
151
+ ```markdown
152
+ ## Installation
153
+
154
+ ### Prerequisites
155
+
156
+ - Node.js 18+ (check with `node --version`)
157
+ - Docker and Docker Compose
158
+ - A Stripe account with API keys
159
+
160
+ ### Steps
161
+
162
+ 1. Clone the repository
163
+ 2. Install dependencies
164
+ 3. Configure environment
165
+ 4. Run setup commands
166
+ ```
167
+
168
+ ### Usage Examples
169
+
170
+ ```markdown
171
+ ## Usage
172
+
173
+ ### Simple Case
174
+
175
+ Always show the simplest use case first:
176
+
177
+ \`\`\`typescript
178
+ const client = new Client();
179
+ await client.send('Hello');
180
+ \`\`\`
181
+
182
+ ### With Options
183
+
184
+ Then progressively more complex:
185
+
186
+ \`\`\`typescript
187
+ const client = new Client({
188
+ timeout: 5000,
189
+ retries: 3,
190
+ });
191
+ \`\`\`
192
+ ```
193
+
194
+ ### Configuration
195
+
196
+ Use tables for configuration options:
197
+
198
+ ```markdown
199
+ ## Configuration
200
+
201
+ | Option | Type | Default | Description |
202
+ |--------|------|---------|-------------|
203
+ | `timeout` | `number` | `30000` | Request timeout in ms |
204
+ | `retries` | `number` | `0` | Number of retry attempts |
205
+ | `debug` | `boolean` | `false` | Enable debug logging |
206
+ ```
207
+
208
+ ## Directory READMEs
209
+
210
+ For READMEs inside project directories:
211
+
212
+ ```markdown
213
+ # /src/components/
214
+
215
+ React components for the application UI.
216
+
217
+ ## Structure
218
+
219
+ - `ui/` - Primitive components (Button, Input, Card)
220
+ - `features/` - Feature-specific components
221
+ - `layouts/` - Page layout components
222
+
223
+ ## Conventions
224
+
225
+ - One component per file
226
+ - Use TypeScript for all components
227
+ - Include tests in `__tests__/` subdirectory
228
+
229
+ ## Key Files
230
+
231
+ - `index.ts` - Public exports
232
+ - `theme.ts` - Design tokens
233
+ ```
234
+
235
+ ## Anti-Patterns
236
+
237
+ ### Stale Information
238
+
239
+ ```markdown
240
+ <!-- Bad: Will become outdated -->
241
+ ## Supported Node Versions
242
+ - Node 14
243
+ - Node 16
244
+
245
+ <!-- Good: Link to source of truth -->
246
+ ## Requirements
247
+ See `engines` field in [package.json](./package.json)
248
+ ```
249
+
250
+ ### Wall of Text
251
+
252
+ ```markdown
253
+ <!-- Bad: No one will read this -->
254
+ This project was started in 2019 when we realized that the existing
255
+ solutions for payment processing were inadequate for our needs. After
256
+ extensive research and development spanning several months...
257
+
258
+ <!-- Good: Get to the point -->
259
+ Payment processing library supporting Stripe, PayPal, and Square.
260
+ ```
261
+
262
+ ### Missing Examples
263
+
264
+ ```markdown
265
+ <!-- Bad: No examples -->
266
+ ## Installation
267
+ Install with npm.
268
+
269
+ <!-- Good: Copy-pasteable -->
270
+ ## Installation
271
+ \`\`\`bash
272
+ npm install payment-gateway
273
+ \`\`\`
274
+ ```
275
+
276
+ ### Broken Links
277
+
278
+ ```markdown
279
+ <!-- Bad: Links rot -->
280
+ See our [wiki](http://internal-wiki.company.com/project) for details.
281
+
282
+ <!-- Good: Link to files in repo -->
283
+ See [ARCHITECTURE.md](./docs/ARCHITECTURE.md) for details.
284
+ ```
285
+
286
+ ## Badges (Optional)
287
+
288
+ If using badges, keep them meaningful:
289
+
290
+ ```markdown
291
+ [![CI](https://github.com/org/repo/actions/workflows/ci.yml/badge.svg)](...)
292
+ [![npm version](https://badge.fury.io/js/package.svg)](...)
293
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](...)
294
+ ```
295
+
296
+ - CI status - Shows project health
297
+ - Version - Shows current release
298
+ - License - Shows usage rights
299
+ - Avoid decorative/vanity badges
300
+
301
+ ## Maintenance
302
+
303
+ - Update README when behavior changes
304
+ - Test all code examples periodically
305
+ - Verify links work
306
+ - Remove outdated sections
@@ -0,0 +1,120 @@
1
+ # Documentation Development Guide
2
+
3
+ Guidelines for writing and maintaining technical documentation.
4
+
5
+ ## Philosophy
6
+
7
+ > "Say what you mean, simply and directly." — Brian Kernighan
8
+
9
+ Documentation exists to help humans understand code. Write for the busy engineer who just wants to get back to coding.
10
+
11
+ ## Core Principles
12
+
13
+ ### 1. Minimum Viable Documentation
14
+
15
+ A small set of fresh, accurate docs is better than a large assembly in various states of disrepair. Write only what's needed, keep it current, delete the rest.
16
+
17
+ ### 2. Write for Humans First
18
+
19
+ Code tells computers what to do. Documentation tells humans *why*.
20
+
21
+ ### 3. Same-Commit Rule
22
+
23
+ Documentation changes belong in the same commit as code changes. This keeps docs fresh and ensures they never drift from reality.
24
+
25
+ ### 4. Delete Dead Docs
26
+
27
+ Stale documentation is worse than no documentation. It misinforms, slows down, and erodes trust. When in doubt, delete.
28
+
29
+ ## The Documentation Hierarchy
30
+
31
+ From least to most formal:
32
+
33
+ 1. **Self-documenting code** — Good naming eliminates most comments
34
+ 2. **Inline comments** — Explain *why*, not *what*
35
+ 3. **API documentation** — Function/class contracts (JSDoc, docstrings)
36
+ 4. **README files** — Project orientation
37
+ 5. **Guides and tutorials** — How to accomplish tasks
38
+ 6. **ADRs** — Why we made architectural decisions
39
+
40
+ ## Quick Reference
41
+
42
+ ### When to Document
43
+
44
+ **Always document:**
45
+ - Public APIs and interfaces
46
+ - Non-obvious business logic
47
+ - Architectural decisions (ADRs)
48
+ - Setup and installation
49
+ - Configuration options
50
+
51
+ **Skip documentation for:**
52
+ - What the code literally does
53
+ - Obvious behavior types express
54
+ - Implementation details that change often
55
+
56
+ ### Comment Guidelines
57
+
58
+ ```typescript
59
+ // Good: Explains WHY
60
+ // Retry with backoff because payment API is flaky during peak hours
61
+ await retryWithBackoff(processPayment, 3);
62
+
63
+ // Bad: Explains WHAT (code already shows this)
64
+ // Increment counter by 1
65
+ counter++;
66
+ ```
67
+
68
+ ### README Essentials
69
+
70
+ Every README needs:
71
+ 1. Project name + one-line description
72
+ 2. Quick start (install + basic usage)
73
+ 3. Example code
74
+
75
+ ### ADR Format
76
+
77
+ ```markdown
78
+ # ADR-001: [Title]
79
+
80
+ ## Status
81
+ Accepted | Proposed | Deprecated | Superseded
82
+
83
+ ## Context
84
+ What's the situation? What problem are we solving?
85
+
86
+ ## Decision
87
+ What did we decide?
88
+
89
+ ## Consequences
90
+ What happens as a result? (Good, bad, neutral)
91
+ ```
92
+
93
+ ## Definition of Done
94
+
95
+ Documentation is complete when:
96
+
97
+ - [ ] New public APIs have docstrings
98
+ - [ ] README reflects current state
99
+ - [ ] Complex logic has explanatory comments
100
+ - [ ] Setup instructions tested and working
101
+ - [ ] No outdated information remains
102
+ - [ ] All links are valid
103
+
104
+ ## Anti-Patterns to Avoid
105
+
106
+ - **"We'll document it later"** — Later means never
107
+ - **Commented-out code** — Use version control
108
+ - **Comments that lie** — Update or delete
109
+ - **Noise comments** — `// increment counter` adds nothing
110
+ - **Separate doc repos** — Keep docs with code
111
+
112
+ ## Review Checklist
113
+
114
+ When reviewing code:
115
+
116
+ - [ ] Docstrings added/updated for changed functions?
117
+ - [ ] README updated if behavior changes?
118
+ - [ ] API docs reflect endpoint changes?
119
+ - [ ] Code examples still work?
120
+ - [ ] No dead documentation created?