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
package/README.md ADDED
@@ -0,0 +1,280 @@
1
+ # cursor-templates
2
+
3
+ [![npm version](https://img.shields.io/npm/v/cursor-templates.svg)](https://www.npmjs.com/package/cursor-templates)
4
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
5
+
6
+ AI coding assistant templates for Cursor IDE. Pre-configured rules and guidelines that help AI assistants write better code in your projects.
7
+
8
+ > **Disclaimer:** This project is provided for **educational and experimental purposes only**. The author takes no responsibility for any actions, outputs, or consequences resulting from an LLM or AI assistant following these rules. Use at your own risk. Always review AI-generated code before deploying to production.
9
+
10
+ ## Installation
11
+
12
+ No installation required. Run directly with `npx`:
13
+
14
+ ```bash
15
+ npx cursor-templates <template-name>
16
+ ```
17
+
18
+ Or install globally:
19
+
20
+ ```bash
21
+ npm install -g cursor-templates
22
+ cursor-templates <template-name>
23
+ ```
24
+
25
+ ## How to Use
26
+
27
+ ### Basic Usage
28
+
29
+ Navigate to your project directory and run:
30
+
31
+ ```bash
32
+ npx cursor-templates web-frontend
33
+ ```
34
+
35
+ This installs two things in your project:
36
+ - **`CLAUDE.md`** - Main development guide for the AI assistant
37
+ - **`.cursorrules/`** - Directory containing domain-specific coding rules
38
+
39
+ ### Install Multiple Templates
40
+
41
+ Combine templates for projects that span multiple domains:
42
+
43
+ ```bash
44
+ npx cursor-templates web-frontend web-backend
45
+ ```
46
+
47
+ ### List All Available Templates
48
+
49
+ ```bash
50
+ npx cursor-templates --list
51
+ ```
52
+
53
+ ### Preview Before Installing (Dry Run)
54
+
55
+ See what files will be created without making changes:
56
+
57
+ ```bash
58
+ npx cursor-templates web-frontend --dry-run
59
+ ```
60
+
61
+ ### Update to Latest Rules
62
+
63
+ Re-run with `@latest` to get updated templates:
64
+
65
+ ```bash
66
+ npx cursor-templates@latest web-frontend
67
+ ```
68
+
69
+ ### CLI Options
70
+
71
+ | Option | Description |
72
+ |--------|-------------|
73
+ | `--list`, `-l` | List all available templates |
74
+ | `--dry-run`, `-d` | Preview changes without writing files |
75
+ | `--help`, `-h` | Show help message |
76
+ | `--version`, `-v` | Show version number |
77
+
78
+ ## Available Templates
79
+
80
+ | Template | Description |
81
+ |----------|-------------|
82
+ | `web-frontend` | SPAs, SSR, static sites, PWAs |
83
+ | `web-backend` | REST, GraphQL, microservices |
84
+ | `fullstack` | Full-stack apps (Next.js, Nuxt, etc.) |
85
+ | `mobile` | React Native, Flutter, native iOS/Android |
86
+ | `cli-tools` | Command-line applications and developer tools |
87
+ | `blockchain` | Smart contracts, DeFi, Web3 applications |
88
+ | `ml-ai` | Machine learning systems, model development |
89
+ | `data-engineering` | Data pipelines, ETL, warehousing |
90
+ | `platform-engineering` | Infrastructure as code, Kubernetes, CI/CD |
91
+ | `devops-sre` | Incident management, SLOs, observability |
92
+ | `utility-agent` | AI agent utilities, context management |
93
+ | `documentation` | Technical writing, API docs, ADRs |
94
+
95
+ ## What Gets Installed
96
+
97
+ ### Shared Rules (Always Included)
98
+
99
+ Every template installation includes these foundational rules:
100
+
101
+ | File | Description |
102
+ |------|-------------|
103
+ | `core-principles.md` | Honesty, simplicity, testing requirements |
104
+ | `code-quality.md` | SOLID, DRY, clean code patterns |
105
+ | `security-fundamentals.md` | Zero trust, input validation, secrets management |
106
+ | `git-workflow.md` | Commits, branches, PRs, safety protocols |
107
+ | `communication.md` | Direct, objective, professional communication |
108
+
109
+ ### Template-Specific Rules
110
+
111
+ Each template adds domain-specific rules. For example, `web-frontend` includes:
112
+
113
+ - `accessibility.md` - WCAG compliance, ARIA patterns
114
+ - `component-patterns.md` - React/Vue/Svelte best practices
115
+ - `performance.md` - Core Web Vitals, optimization
116
+ - `state-management.md` - State patterns, data flow
117
+ - `styling.md` - CSS architecture, design systems
118
+ - `testing.md` - Unit, integration, E2E testing
119
+
120
+ ## File Structure
121
+
122
+ After running `npx cursor-templates web-frontend`:
123
+
124
+ ```
125
+ your-project/
126
+ ├── CLAUDE.md # AI development guide
127
+ └── .cursorrules/ # Rule files
128
+ ├── core-principles.md # Shared
129
+ ├── code-quality.md # Shared
130
+ ├── security-fundamentals.md # Shared
131
+ ├── git-workflow.md # Shared
132
+ ├── communication.md # Shared
133
+ ├── web-frontend-overview.md # Template-specific
134
+ ├── web-frontend-accessibility.md # Template-specific
135
+ ├── web-frontend-component-patterns.md # Template-specific
136
+ ├── web-frontend-performance.md # Template-specific
137
+ ├── web-frontend-state-management.md # Template-specific
138
+ ├── web-frontend-styling.md # Template-specific
139
+ └── web-frontend-testing.md # Template-specific
140
+ ```
141
+
142
+ ## Customization
143
+
144
+ ### Add Project-Specific Rules
145
+
146
+ Create new `.md` files in `.cursorrules/`:
147
+
148
+ ```markdown
149
+ # my-project-conventions.md
150
+
151
+ ## API Endpoints
152
+
153
+ All API calls go through `/lib/api.ts`...
154
+ ```
155
+
156
+ ### Modify Existing Rules
157
+
158
+ Edit any file in `.cursorrules/` directly. Changes take effect immediately in Cursor.
159
+
160
+ ### Combine with Existing Rules
161
+
162
+ Templates merge with your existing `.cursorrules/` directory. Existing files are preserved unless they have the same name.
163
+
164
+ ## Examples
165
+
166
+ ### New React Project
167
+
168
+ ```bash
169
+ mkdir my-react-app && cd my-react-app
170
+ npm create vite@latest . -- --template react-ts
171
+ npx cursor-templates web-frontend
172
+ ```
173
+
174
+ ### Full-Stack Next.js Project
175
+
176
+ ```bash
177
+ npx create-next-app@latest my-app
178
+ cd my-app
179
+ npx cursor-templates fullstack
180
+ ```
181
+
182
+ ### Microservices Backend
183
+
184
+ ```bash
185
+ cd my-api-service
186
+ npx cursor-templates web-backend devops-sre
187
+ ```
188
+
189
+ ### ML/AI Project
190
+
191
+ ```bash
192
+ cd my-ml-project
193
+ npx cursor-templates ml-ai data-engineering
194
+ ```
195
+
196
+ ## Requirements
197
+
198
+ - **Node.js**: 18.0.0 or higher
199
+ - **Cursor IDE**: Any version with rules support
200
+
201
+ ## How to Contribute
202
+
203
+ We welcome contributions! Here's how to add new templates or improve existing ones.
204
+
205
+ ### Adding a New Template
206
+
207
+ 1. **Create the template directory structure:**
208
+
209
+ ```
210
+ templates/your-template/
211
+ ├── CLAUDE.md # Main development guide (required)
212
+ └── .cursorrules/
213
+ ├── overview.md # Scope and core principles (required)
214
+ ├── topic-one.md # Domain-specific rules
215
+ ├── topic-two.md
216
+ └── ...
217
+ ```
218
+
219
+ 2. **Follow the existing patterns:**
220
+ - Look at `templates/web-frontend/` or `templates/platform-engineering/` for reference
221
+ - Each rule file should be focused on a single topic
222
+ - Include code examples, not just guidelines
223
+ - Add "Common Pitfalls" and "Definition of Done" sections
224
+
225
+ 3. **Required files:**
226
+ - `CLAUDE.md` - Comprehensive guide with overview, tech stack, patterns, and examples
227
+ - `.cursorrules/overview.md` - Scope, core principles, and project structure
228
+
229
+ ### Template Guidelines
230
+
231
+ **CLAUDE.md should include:**
232
+ - Overview and scope
233
+ - Key principles (3-5 bullet points)
234
+ - Technology stack table
235
+ - Code patterns with examples
236
+ - Definition of done checklist
237
+ - Common pitfalls with good/bad examples
238
+
239
+ **Rule files should:**
240
+ - Focus on one topic (e.g., testing, security, performance)
241
+ - Be actionable with concrete code examples
242
+ - Include both "do" and "don't" examples
243
+ - Stay under ~500 lines for readability
244
+
245
+ ### Improving Existing Templates
246
+
247
+ 1. Fork the repository
248
+ 2. Make your changes
249
+ 3. Test locally:
250
+ ```bash
251
+ # From repo root, test installation
252
+ node bin/cli.js your-template --dry-run
253
+ ```
254
+ 4. Submit a PR with:
255
+ - Clear description of changes
256
+ - Rationale for additions/modifications
257
+ - Any new dependencies or requirements
258
+
259
+ ### Shared Rules
260
+
261
+ The `templates/_shared/` directory contains rules included with every template:
262
+
263
+ - `core-principles.md` - Universal development principles
264
+ - `code-quality.md` - Clean code patterns
265
+ - `security-fundamentals.md` - Security basics
266
+ - `git-workflow.md` - Git conventions
267
+ - `communication.md` - AI communication style
268
+
269
+ Changes to shared rules affect all templates, so be thoughtful with modifications.
270
+
271
+ ### Code Style
272
+
273
+ - Use Markdown for all documentation
274
+ - Code examples should be copy-pasteable
275
+ - Prefer concrete examples over abstract guidelines
276
+ - Keep formatting consistent with existing templates
277
+
278
+ ## License
279
+
280
+ MIT © [David Mendez](https://github.com/desiratech)
package/bin/cli.js ADDED
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env node
2
+
3
+ import { run } from '../src/index.js';
4
+
5
+ run(process.argv.slice(2));
package/package.json ADDED
@@ -0,0 +1,47 @@
1
+ {
2
+ "name": "agentic-team-templates",
3
+ "version": "0.3.0",
4
+ "description": "AI coding assistant templates for Cursor IDE. Pre-configured rules and guidelines that help AI assistants write better code. - use at your own risk",
5
+ "keywords": [
6
+ "cursor",
7
+ "cursor-ide",
8
+ "ai",
9
+ "templates",
10
+ "coding-assistant",
11
+ "cursorrules",
12
+ "claude",
13
+ "llm",
14
+ "developer-tools",
15
+ "code-quality"
16
+ ],
17
+ "author": "David Josef Mendez <desiratech@gmail.com>",
18
+ "license": "MIT",
19
+ "repository": {
20
+ "type": "git",
21
+ "url": "git+https://github.com/djm204/cursor-templates.git"
22
+ },
23
+ "homepage": "https://github.com/djm204/cursor-templates#readme",
24
+ "bugs": {
25
+ "url": "https://github.com/djm204/cursor-templates/issues"
26
+ },
27
+ "bin": {
28
+ "cursor-templates": "./bin/cli.js"
29
+ },
30
+ "files": [
31
+ "bin",
32
+ "src",
33
+ "templates",
34
+ "README.md"
35
+ ],
36
+ "type": "module",
37
+ "engines": {
38
+ "node": ">=18.0.0"
39
+ },
40
+ "scripts": {
41
+ "test": "echo \"No tests required - template library\""
42
+ },
43
+ "devDependencies": {
44
+ "@commitlint/cli": "^19.0.0",
45
+ "@commitlint/config-conventional": "^19.0.0"
46
+ }
47
+ }