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,215 @@
1
+ # Platform Engineering Overview
2
+
3
+ Staff-level guidelines for building and operating internal developer platforms, infrastructure automation, and reliability engineering.
4
+
5
+ ## Scope
6
+
7
+ This template applies to:
8
+
9
+ - Infrastructure as Code (Terraform, Pulumi, AWS CDK, Crossplane)
10
+ - Kubernetes and container orchestration
11
+ - CI/CD pipelines and GitOps workflows
12
+ - Internal Developer Platforms (IDPs)
13
+ - Observability systems (metrics, logs, traces)
14
+ - Service mesh and networking
15
+ - Security and compliance automation
16
+ - Cost optimization and FinOps
17
+
18
+ ## Core Principles
19
+
20
+ ### 1. Platform as Product
21
+
22
+ Your internal customers are developers. Treat the platform like a product:
23
+
24
+ - Understand user needs through research and feedback
25
+ - Prioritize features based on impact
26
+ - Measure adoption and satisfaction
27
+ - Iterate based on real usage data
28
+ - Market capabilities and provide excellent documentation
29
+
30
+ ### 2. Self-Service First
31
+
32
+ Enable teams to move fast without becoming a bottleneck:
33
+
34
+ - Automate everything that can be automated
35
+ - Provide golden paths with sensible defaults
36
+ - Build guardrails, not gates
37
+ - Reduce time-to-first-deployment to minutes, not days
38
+ - Scale through automation, not headcount
39
+
40
+ ### 3. Reliability Engineering
41
+
42
+ Define SLOs, measure SLIs, maintain error budgets:
43
+
44
+ - Every service needs defined reliability targets
45
+ - Measure what matters to users (latency, availability, correctness)
46
+ - Use error budgets to balance reliability and velocity
47
+ - Automate incident response where possible
48
+ - Conduct blameless postmortems
49
+
50
+ ### 4. Security by Default
51
+
52
+ Bake security into the golden path:
53
+
54
+ - Shift left on security scanning
55
+ - Policy as code for compliance
56
+ - Zero trust networking
57
+ - Secrets management as a platform capability
58
+ - Supply chain security (signed images, SBOMs)
59
+
60
+ ### 5. Cost Consciousness
61
+
62
+ FinOps is everyone's responsibility:
63
+
64
+ - Tag all resources for cost attribution
65
+ - Provide cost visibility per team/service
66
+ - Right-size infrastructure automatically
67
+ - Clean up unused resources
68
+ - Use spot/preemptible instances where appropriate
69
+
70
+ ## Project Structure
71
+
72
+ ```
73
+ platform/
74
+ ├── terraform/ # Infrastructure as Code
75
+ │ ├── modules/ # Reusable modules
76
+ │ │ ├── networking/
77
+ │ │ ├── compute/
78
+ │ │ ├── data/
79
+ │ │ └── security/
80
+ │ ├── environments/ # Environment configurations
81
+ │ │ ├── dev/
82
+ │ │ ├── staging/
83
+ │ │ └── production/
84
+ │ └── tests/ # Infrastructure tests
85
+
86
+ ├── kubernetes/ # Kubernetes configurations
87
+ │ ├── base/ # Base manifests (Kustomize)
88
+ │ ├── overlays/ # Environment overlays
89
+ │ │ ├── dev/
90
+ │ │ ├── staging/
91
+ │ │ └── production/
92
+ │ └── charts/ # Helm charts
93
+
94
+ ├── gitops/ # GitOps repository
95
+ │ ├── apps/ # Application definitions
96
+ │ ├── infrastructure/ # Infrastructure apps
97
+ │ └── clusters/ # Cluster configurations
98
+
99
+ ├── pipelines/ # CI/CD definitions
100
+ │ ├── .github/workflows/ # GitHub Actions
101
+ │ └── templates/ # Reusable pipeline templates
102
+
103
+ ├── policies/ # Policy as Code
104
+ │ ├── opa/ # Open Policy Agent
105
+ │ └── kyverno/ # Kyverno policies
106
+
107
+ ├── observability/ # Monitoring configurations
108
+ │ ├── dashboards/ # Grafana dashboards
109
+ │ ├── alerts/ # Alert definitions
110
+ │ └── slos/ # SLO definitions
111
+
112
+ └── docs/ # Platform documentation
113
+ ├── runbooks/ # Operational runbooks
114
+ ├── adrs/ # Architecture Decision Records
115
+ └── guides/ # User guides
116
+ ```
117
+
118
+ ## Technology Stack
119
+
120
+ | Layer | Primary | Alternatives |
121
+ |-------|---------|--------------|
122
+ | IaC | Terraform | Pulumi, AWS CDK, Crossplane |
123
+ | Container Orchestration | Kubernetes (EKS/GKE/AKS) | ECS, Nomad |
124
+ | GitOps | Argo CD | Flux, Jenkins X |
125
+ | CI/CD | GitHub Actions | GitLab CI, Tekton, CircleCI |
126
+ | Metrics | Prometheus + Grafana | Datadog, New Relic |
127
+ | Logging | Loki | Elasticsearch, Splunk |
128
+ | Tracing | Tempo/Jaeger | Zipkin, X-Ray |
129
+ | Service Mesh | Istio | Linkerd, Cilium |
130
+ | Policy Engine | OPA/Gatekeeper | Kyverno, Kubewarden |
131
+ | Secrets | HashiCorp Vault | AWS Secrets Manager, SOPS |
132
+ | IDP | Backstage | Port, Cortex |
133
+
134
+ ## Staff Engineer Responsibilities
135
+
136
+ ### Technical Leadership
137
+
138
+ - Define and evolve platform architecture
139
+ - Make build vs. buy decisions
140
+ - Establish standards and best practices
141
+ - Mentor engineers across teams
142
+ - Drive technical initiatives
143
+
144
+ ### Cross-Team Enablement
145
+
146
+ - Understand needs across engineering teams
147
+ - Design solutions that scale across the organization
148
+ - Remove friction from the developer experience
149
+ - Build reusable components and patterns
150
+ - Document and communicate platform capabilities
151
+
152
+ ### Operational Excellence
153
+
154
+ - Define and maintain SLOs for platform services
155
+ - Reduce toil through automation
156
+ - Establish incident response procedures
157
+ - Conduct architecture reviews
158
+ - Plan capacity and scaling strategies
159
+
160
+ ### Strategic Thinking
161
+
162
+ - Align platform roadmap with business goals
163
+ - Evaluate emerging technologies
164
+ - Plan migration and upgrade paths
165
+ - Balance short-term needs with long-term vision
166
+ - Manage technical debt
167
+
168
+ ## Definition of Done
169
+
170
+ ### Infrastructure Change
171
+
172
+ - [ ] IaC passes linting and validation
173
+ - [ ] Plan reviewed and approved
174
+ - [ ] Changes tested in non-production first
175
+ - [ ] Rollback procedure documented
176
+ - [ ] Monitoring/alerting in place
177
+ - [ ] Runbook updated
178
+ - [ ] Cost impact assessed
179
+ - [ ] Security review completed
180
+
181
+ ### Platform Feature
182
+
183
+ - [ ] Self-service capable (no manual intervention)
184
+ - [ ] Documentation complete (how-to, troubleshooting)
185
+ - [ ] Integrated into golden path
186
+ - [ ] Metrics exposed for SLOs
187
+ - [ ] Tested with real workloads
188
+ - [ ] Feedback collected from users
189
+ - [ ] Support runbook created
190
+
191
+ ## Anti-Patterns to Avoid
192
+
193
+ ### "We'll Automate It Later"
194
+
195
+ ❌ **Wrong**: Manual processes that "work for now"
196
+
197
+ ✅ **Right**: Automate from the start; manual doesn't scale
198
+
199
+ ### "Just File a Ticket"
200
+
201
+ ❌ **Wrong**: Platform team as a ticket-processing queue
202
+
203
+ ✅ **Right**: Self-service automation; handle platform, not tickets
204
+
205
+ ### "One Size Fits All"
206
+
207
+ ❌ **Wrong**: Forcing every team into identical workflows
208
+
209
+ ✅ **Right**: Provide guardrails with flexibility for legitimate needs
210
+
211
+ ### "Complexity as a Feature"
212
+
213
+ ❌ **Wrong**: Over-engineered solutions for simple problems
214
+
215
+ ✅ **Right**: Right-size solutions; complexity has ongoing costs