@uniswap/ai-toolkit-nx-claude 0.5.28 → 0.5.30-next.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.
- package/dist/cli-generator.cjs +28 -59
- package/dist/packages/ai-toolkit-nx-claude/src/cli-generator.d.ts +8 -10
- package/dist/packages/ai-toolkit-nx-claude/src/cli-generator.d.ts.map +1 -1
- package/dist/packages/ai-toolkit-nx-claude/src/index.d.ts +0 -1
- package/dist/packages/ai-toolkit-nx-claude/src/index.d.ts.map +1 -1
- package/generators.json +0 -15
- package/package.json +4 -35
- package/dist/content/agents/agnostic/CLAUDE.md +0 -282
- package/dist/content/agents/agnostic/agent-capability-analyst.md +0 -575
- package/dist/content/agents/agnostic/agent-optimizer.md +0 -396
- package/dist/content/agents/agnostic/agent-orchestrator.md +0 -475
- package/dist/content/agents/agnostic/cicd-agent.md +0 -301
- package/dist/content/agents/agnostic/claude-agent-discovery.md +0 -304
- package/dist/content/agents/agnostic/claude-docs-fact-checker.md +0 -435
- package/dist/content/agents/agnostic/claude-docs-initializer.md +0 -782
- package/dist/content/agents/agnostic/claude-docs-manager.md +0 -595
- package/dist/content/agents/agnostic/code-explainer.md +0 -269
- package/dist/content/agents/agnostic/code-generator.md +0 -785
- package/dist/content/agents/agnostic/commit-message-generator.md +0 -101
- package/dist/content/agents/agnostic/context-loader.md +0 -432
- package/dist/content/agents/agnostic/debug-assistant.md +0 -321
- package/dist/content/agents/agnostic/doc-writer.md +0 -536
- package/dist/content/agents/agnostic/feedback-collector.md +0 -165
- package/dist/content/agents/agnostic/infrastructure-agent.md +0 -406
- package/dist/content/agents/agnostic/migration-assistant.md +0 -489
- package/dist/content/agents/agnostic/pattern-learner.md +0 -481
- package/dist/content/agents/agnostic/performance-analyzer.md +0 -528
- package/dist/content/agents/agnostic/plan-reviewer.md +0 -173
- package/dist/content/agents/agnostic/planner.md +0 -235
- package/dist/content/agents/agnostic/pr-creator.md +0 -498
- package/dist/content/agents/agnostic/pr-reviewer.md +0 -142
- package/dist/content/agents/agnostic/prompt-engineer.md +0 -541
- package/dist/content/agents/agnostic/refactorer.md +0 -311
- package/dist/content/agents/agnostic/researcher.md +0 -349
- package/dist/content/agents/agnostic/security-analyzer.md +0 -1087
- package/dist/content/agents/agnostic/stack-splitter.md +0 -642
- package/dist/content/agents/agnostic/style-enforcer.md +0 -568
- package/dist/content/agents/agnostic/test-runner.md +0 -481
- package/dist/content/agents/agnostic/test-writer.md +0 -292
- package/dist/content/commands/agnostic/CLAUDE.md +0 -207
- package/dist/content/commands/agnostic/address-pr-issues.md +0 -205
- package/dist/content/commands/agnostic/auto-spec.md +0 -386
- package/dist/content/commands/agnostic/claude-docs.md +0 -409
- package/dist/content/commands/agnostic/claude-init-plus.md +0 -439
- package/dist/content/commands/agnostic/create-pr.md +0 -79
- package/dist/content/commands/agnostic/daily-standup.md +0 -185
- package/dist/content/commands/agnostic/deploy.md +0 -441
- package/dist/content/commands/agnostic/execute-plan.md +0 -167
- package/dist/content/commands/agnostic/explain-file.md +0 -303
- package/dist/content/commands/agnostic/explore.md +0 -82
- package/dist/content/commands/agnostic/fix-bug.md +0 -273
- package/dist/content/commands/agnostic/gen-tests.md +0 -185
- package/dist/content/commands/agnostic/generate-commit-message.md +0 -92
- package/dist/content/commands/agnostic/git-worktree-orchestrator.md +0 -647
- package/dist/content/commands/agnostic/implement-spec.md +0 -270
- package/dist/content/commands/agnostic/monitor.md +0 -581
- package/dist/content/commands/agnostic/perf-analyze.md +0 -214
- package/dist/content/commands/agnostic/plan.md +0 -453
- package/dist/content/commands/agnostic/refactor.md +0 -315
- package/dist/content/commands/agnostic/refine-linear-task.md +0 -575
- package/dist/content/commands/agnostic/research.md +0 -49
- package/dist/content/commands/agnostic/review-code.md +0 -321
- package/dist/content/commands/agnostic/review-plan.md +0 -109
- package/dist/content/commands/agnostic/review-pr.md +0 -393
- package/dist/content/commands/agnostic/split-stack.md +0 -705
- package/dist/content/commands/agnostic/update-claude-md.md +0 -401
- package/dist/content/commands/agnostic/work-through-pr-comments.md +0 -873
- package/dist/generators/add-agent/CLAUDE.md +0 -130
- package/dist/generators/add-agent/files/__name__.md.template +0 -37
- package/dist/generators/add-agent/generator.cjs +0 -640
- package/dist/generators/add-agent/schema.json +0 -59
- package/dist/generators/add-command/CLAUDE.md +0 -131
- package/dist/generators/add-command/files/__name__.md.template +0 -46
- package/dist/generators/add-command/generator.cjs +0 -643
- package/dist/generators/add-command/schema.json +0 -50
- package/dist/generators/files/src/index.ts.template +0 -1
- package/dist/generators/init/CLAUDE.md +0 -520
- package/dist/generators/init/generator.cjs +0 -3304
- package/dist/generators/init/schema.json +0 -180
- package/dist/packages/ai-toolkit-nx-claude/src/generators/add-agent/generator.d.ts +0 -5
- package/dist/packages/ai-toolkit-nx-claude/src/generators/add-agent/generator.d.ts.map +0 -1
- package/dist/packages/ai-toolkit-nx-claude/src/generators/add-command/generator.d.ts +0 -5
- package/dist/packages/ai-toolkit-nx-claude/src/generators/add-command/generator.d.ts.map +0 -1
- package/dist/packages/ai-toolkit-nx-claude/src/generators/init/generator.d.ts +0 -5
- package/dist/packages/ai-toolkit-nx-claude/src/generators/init/generator.d.ts.map +0 -1
- package/dist/packages/ai-toolkit-nx-claude/src/utils/auto-update-utils.d.ts +0 -30
- package/dist/packages/ai-toolkit-nx-claude/src/utils/auto-update-utils.d.ts.map +0 -1
|
@@ -1,441 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Orchestrate deployment pipelines, infrastructure setup, and CI/CD configuration using specialized deployment agents.
|
|
3
|
-
argument-hint: <target> [--strategy blue-green|canary|rolling] [--environment dev|staging|prod] [--dry-run]
|
|
4
|
-
allowed-tools: Read(*), Write(*), Task(subagent_type:cicd-agent), Task(subagent_type:infrastructure-agent), Task(subagent_type:agent-orchestrator), Task(subagent_type:monitor)
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
## Inputs
|
|
8
|
-
|
|
9
|
-
Parse arguments from `$ARGUMENTS`:
|
|
10
|
-
|
|
11
|
-
- **target**: Deployment target (app-name, service, or "all")
|
|
12
|
-
- **--strategy**: Deployment strategy (blue-green|canary|rolling) - default: rolling
|
|
13
|
-
- **--environment**: Target environment (dev|staging|prod) - default: dev
|
|
14
|
-
- **--infrastructure**: Include infrastructure provisioning (default: false)
|
|
15
|
-
- **--monitoring**: Setup monitoring and alerts (default: true)
|
|
16
|
-
- **--rollback**: Rollback to previous version (default: false)
|
|
17
|
-
- **--dry-run**: Preview deployment plan without executing
|
|
18
|
-
|
|
19
|
-
Examples:
|
|
20
|
-
|
|
21
|
-
- `/deploy api-service --environment staging`
|
|
22
|
-
- `/deploy frontend --strategy canary --environment prod`
|
|
23
|
-
- `/deploy all --infrastructure --monitoring`
|
|
24
|
-
- `/deploy payment-service --rollback`
|
|
25
|
-
|
|
26
|
-
## Task
|
|
27
|
-
|
|
28
|
-
Orchestrate complete deployment workflow through specialized agents:
|
|
29
|
-
|
|
30
|
-
1. **Infrastructure Provisioning**: Cloud resources and scaling setup
|
|
31
|
-
2. **Pipeline Configuration**: CI/CD workflow generation
|
|
32
|
-
3. **Deployment Execution**: Strategy-based deployment
|
|
33
|
-
4. **Monitoring Setup**: Observability and alerting
|
|
34
|
-
5. **Validation & Rollback**: Health checks and rollback procedures
|
|
35
|
-
|
|
36
|
-
## Orchestration Strategy
|
|
37
|
-
|
|
38
|
-
### Phase 1: Pre-Deployment Analysis
|
|
39
|
-
|
|
40
|
-
1. **Current State Assessment**:
|
|
41
|
-
|
|
42
|
-
- Identify existing infrastructure
|
|
43
|
-
- Check current deployment configuration
|
|
44
|
-
- Validate environment readiness
|
|
45
|
-
- Review recent deployment history
|
|
46
|
-
|
|
47
|
-
2. **Dependency Check**:
|
|
48
|
-
- Validate service dependencies
|
|
49
|
-
- Check database migrations
|
|
50
|
-
- Verify configuration completeness
|
|
51
|
-
- Assess rollback capabilities
|
|
52
|
-
|
|
53
|
-
### Phase 2: Infrastructure & Pipeline Setup
|
|
54
|
-
|
|
55
|
-
Coordinate infrastructure and CI/CD agents:
|
|
56
|
-
|
|
57
|
-
```typescript
|
|
58
|
-
{
|
|
59
|
-
task: "Setup deployment infrastructure and pipelines",
|
|
60
|
-
orchestration: {
|
|
61
|
-
parallel: [
|
|
62
|
-
{
|
|
63
|
-
agent: "infrastructure-agent",
|
|
64
|
-
tasks: [
|
|
65
|
-
"Provision cloud resources",
|
|
66
|
-
"Configure auto-scaling",
|
|
67
|
-
"Setup load balancers",
|
|
68
|
-
"Configure networking"
|
|
69
|
-
]
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
agent: "cicd-agent",
|
|
73
|
-
tasks: [
|
|
74
|
-
"Generate GitHub Actions workflows",
|
|
75
|
-
"Configure deployment strategies",
|
|
76
|
-
"Setup environment secrets",
|
|
77
|
-
"Create rollback procedures"
|
|
78
|
-
]
|
|
79
|
-
}
|
|
80
|
-
]
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
```
|
|
84
|
-
|
|
85
|
-
### Phase 3: Deployment Execution
|
|
86
|
-
|
|
87
|
-
Based on selected strategy:
|
|
88
|
-
|
|
89
|
-
#### Blue-Green Deployment
|
|
90
|
-
|
|
91
|
-
```typescript
|
|
92
|
-
{
|
|
93
|
-
agent: "cicd-agent",
|
|
94
|
-
strategy: "blue-green",
|
|
95
|
-
steps: [
|
|
96
|
-
"Provision green environment",
|
|
97
|
-
"Deploy to green",
|
|
98
|
-
"Run smoke tests",
|
|
99
|
-
"Switch traffic to green",
|
|
100
|
-
"Monitor metrics",
|
|
101
|
-
"Decommission blue (after validation)"
|
|
102
|
-
]
|
|
103
|
-
}
|
|
104
|
-
```
|
|
105
|
-
|
|
106
|
-
#### Canary Deployment
|
|
107
|
-
|
|
108
|
-
```typescript
|
|
109
|
-
{
|
|
110
|
-
agent: "cicd-agent",
|
|
111
|
-
strategy: "canary",
|
|
112
|
-
steps: [
|
|
113
|
-
"Deploy to canary instances (10%)",
|
|
114
|
-
"Monitor error rates and latency",
|
|
115
|
-
"Gradually increase traffic (25%, 50%, 100%)",
|
|
116
|
-
"Automatic rollback on anomalies"
|
|
117
|
-
]
|
|
118
|
-
}
|
|
119
|
-
```
|
|
120
|
-
|
|
121
|
-
#### Rolling Deployment
|
|
122
|
-
|
|
123
|
-
```typescript
|
|
124
|
-
{
|
|
125
|
-
agent: "cicd-agent",
|
|
126
|
-
strategy: "rolling",
|
|
127
|
-
steps: [
|
|
128
|
-
"Deploy to instance batch 1",
|
|
129
|
-
"Health check and validation",
|
|
130
|
-
"Continue with remaining batches",
|
|
131
|
-
"Full deployment verification"
|
|
132
|
-
]
|
|
133
|
-
}
|
|
134
|
-
```
|
|
135
|
-
|
|
136
|
-
### Phase 4: Monitoring & Validation
|
|
137
|
-
|
|
138
|
-
Invoke **monitor** agent for observability:
|
|
139
|
-
|
|
140
|
-
```typescript
|
|
141
|
-
{
|
|
142
|
-
agent: "monitor",
|
|
143
|
-
tasks: [
|
|
144
|
-
"Setup application metrics",
|
|
145
|
-
"Configure error tracking",
|
|
146
|
-
"Create performance dashboards",
|
|
147
|
-
"Setup alerting rules",
|
|
148
|
-
"Configure log aggregation"
|
|
149
|
-
]
|
|
150
|
-
}
|
|
151
|
-
```
|
|
152
|
-
|
|
153
|
-
## Output Format
|
|
154
|
-
|
|
155
|
-
```typescript
|
|
156
|
-
{
|
|
157
|
-
summary: {
|
|
158
|
-
target: string;
|
|
159
|
-
environment: string;
|
|
160
|
-
strategy: string;
|
|
161
|
-
status: 'success' | 'failed' | 'rolled-back';
|
|
162
|
-
duration: number; // seconds
|
|
163
|
-
version: string; // Deployed version
|
|
164
|
-
};
|
|
165
|
-
|
|
166
|
-
infrastructure?: {
|
|
167
|
-
provisioned: Array<{
|
|
168
|
-
resource: string;
|
|
169
|
-
type: string; // e.g., "EC2", "RDS", "EKS"
|
|
170
|
-
region: string;
|
|
171
|
-
status: string;
|
|
172
|
-
details: object;
|
|
173
|
-
}>;
|
|
174
|
-
configuration: {
|
|
175
|
-
autoScaling: object;
|
|
176
|
-
loadBalancing: object;
|
|
177
|
-
networking: object;
|
|
178
|
-
};
|
|
179
|
-
costs: {
|
|
180
|
-
estimated: string; // Monthly cost estimate
|
|
181
|
-
breakdown: object;
|
|
182
|
-
};
|
|
183
|
-
};
|
|
184
|
-
|
|
185
|
-
pipeline: {
|
|
186
|
-
workflows: Array<{
|
|
187
|
-
name: string;
|
|
188
|
-
path: string; // e.g., ".github/workflows/deploy.yml"
|
|
189
|
-
triggers: string[];
|
|
190
|
-
stages: string[];
|
|
191
|
-
}>;
|
|
192
|
-
secrets: string[]; // Configured secrets (names only)
|
|
193
|
-
environments: string[]; // Configured environments
|
|
194
|
-
};
|
|
195
|
-
|
|
196
|
-
deployment: {
|
|
197
|
-
stages: Array<{
|
|
198
|
-
name: string;
|
|
199
|
-
status: 'pending' | 'in-progress' | 'completed' | 'failed';
|
|
200
|
-
startTime: string;
|
|
201
|
-
endTime?: string;
|
|
202
|
-
instances: number;
|
|
203
|
-
healthChecks: {
|
|
204
|
-
passed: number;
|
|
205
|
-
failed: number;
|
|
206
|
-
};
|
|
207
|
-
}>;
|
|
208
|
-
validation: {
|
|
209
|
-
smokeTests: boolean;
|
|
210
|
-
healthChecks: boolean;
|
|
211
|
-
performanceBaseline: boolean;
|
|
212
|
-
};
|
|
213
|
-
rollback?: {
|
|
214
|
-
available: boolean;
|
|
215
|
-
previousVersion: string;
|
|
216
|
-
procedure: string;
|
|
217
|
-
};
|
|
218
|
-
};
|
|
219
|
-
|
|
220
|
-
monitoring: {
|
|
221
|
-
metrics: string[]; // Configured metrics
|
|
222
|
-
dashboards: Array<{
|
|
223
|
-
name: string;
|
|
224
|
-
url: string;
|
|
225
|
-
widgets: string[];
|
|
226
|
-
}>;
|
|
227
|
-
alerts: Array<{
|
|
228
|
-
name: string;
|
|
229
|
-
condition: string;
|
|
230
|
-
severity: 'critical' | 'warning' | 'info';
|
|
231
|
-
channels: string[]; // Notification channels
|
|
232
|
-
}>;
|
|
233
|
-
logs: {
|
|
234
|
-
aggregation: string; // e.g., "CloudWatch", "DataDog"
|
|
235
|
-
retention: string; // e.g., "30 days"
|
|
236
|
-
};
|
|
237
|
-
};
|
|
238
|
-
|
|
239
|
-
recommendations: {
|
|
240
|
-
optimizations: string[]; // Cost/performance optimizations
|
|
241
|
-
security: string[]; // Security improvements
|
|
242
|
-
reliability: string[]; // Reliability enhancements
|
|
243
|
-
};
|
|
244
|
-
}
|
|
245
|
-
```
|
|
246
|
-
|
|
247
|
-
## Infrastructure as Code
|
|
248
|
-
|
|
249
|
-
When `--infrastructure` is enabled, generate:
|
|
250
|
-
|
|
251
|
-
### Terraform Configuration
|
|
252
|
-
|
|
253
|
-
```hcl
|
|
254
|
-
# Generated by infrastructure-agent
|
|
255
|
-
resource "aws_ecs_service" "api" {
|
|
256
|
-
name = var.service_name
|
|
257
|
-
cluster = aws_ecs_cluster.main.id
|
|
258
|
-
task_definition = aws_ecs_task_definition.api.arn
|
|
259
|
-
desired_count = var.desired_count
|
|
260
|
-
|
|
261
|
-
deployment_configuration {
|
|
262
|
-
maximum_percent = 200
|
|
263
|
-
minimum_healthy_percent = 100
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
load_balancer {
|
|
267
|
-
target_group_arn = aws_lb_target_group.api.arn
|
|
268
|
-
container_name = "api"
|
|
269
|
-
container_port = 3000
|
|
270
|
-
}
|
|
271
|
-
}
|
|
272
|
-
```
|
|
273
|
-
|
|
274
|
-
### Kubernetes Manifests
|
|
275
|
-
|
|
276
|
-
```yaml
|
|
277
|
-
# Generated by infrastructure-agent
|
|
278
|
-
apiVersion: apps/v1
|
|
279
|
-
kind: Deployment
|
|
280
|
-
metadata:
|
|
281
|
-
name: api-service
|
|
282
|
-
spec:
|
|
283
|
-
replicas: 3
|
|
284
|
-
strategy:
|
|
285
|
-
type: RollingUpdate
|
|
286
|
-
rollingUpdate:
|
|
287
|
-
maxSurge: 1
|
|
288
|
-
maxUnavailable: 0
|
|
289
|
-
selector:
|
|
290
|
-
matchLabels:
|
|
291
|
-
app: api-service
|
|
292
|
-
template:
|
|
293
|
-
metadata:
|
|
294
|
-
labels:
|
|
295
|
-
app: api-service
|
|
296
|
-
spec:
|
|
297
|
-
containers:
|
|
298
|
-
- name: api
|
|
299
|
-
image: api-service:latest
|
|
300
|
-
ports:
|
|
301
|
-
- containerPort: 3000
|
|
302
|
-
```
|
|
303
|
-
|
|
304
|
-
## CI/CD Workflow Generation
|
|
305
|
-
|
|
306
|
-
### GitHub Actions Example
|
|
307
|
-
|
|
308
|
-
```yaml
|
|
309
|
-
# Generated by cicd-agent
|
|
310
|
-
name: Deploy to Production
|
|
311
|
-
on:
|
|
312
|
-
push:
|
|
313
|
-
branches: [main]
|
|
314
|
-
workflow_dispatch:
|
|
315
|
-
|
|
316
|
-
jobs:
|
|
317
|
-
deploy:
|
|
318
|
-
runs-on: ubuntu-latest
|
|
319
|
-
steps:
|
|
320
|
-
- uses: actions/checkout@v3
|
|
321
|
-
|
|
322
|
-
- name: Build and Test
|
|
323
|
-
run: |
|
|
324
|
-
npm ci
|
|
325
|
-
npm test
|
|
326
|
-
npm run build
|
|
327
|
-
|
|
328
|
-
- name: Deploy to AWS ECS
|
|
329
|
-
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
|
|
330
|
-
with:
|
|
331
|
-
task-definition: task-definition.json
|
|
332
|
-
service: api-service
|
|
333
|
-
cluster: production
|
|
334
|
-
wait-for-service-stability: true
|
|
335
|
-
```
|
|
336
|
-
|
|
337
|
-
## Rollback Procedures
|
|
338
|
-
|
|
339
|
-
When `--rollback` is specified:
|
|
340
|
-
|
|
341
|
-
1. **Automatic Detection**:
|
|
342
|
-
|
|
343
|
-
- Identify previous stable version
|
|
344
|
-
- Validate rollback feasibility
|
|
345
|
-
- Check database compatibility
|
|
346
|
-
|
|
347
|
-
2. **Rollback Execution**:
|
|
348
|
-
|
|
349
|
-
- Switch traffic to previous version
|
|
350
|
-
- Restore previous configuration
|
|
351
|
-
- Validate service health
|
|
352
|
-
- Update monitoring dashboards
|
|
353
|
-
|
|
354
|
-
3. **Post-Rollback**:
|
|
355
|
-
- Generate incident report
|
|
356
|
-
- Identify failure root cause
|
|
357
|
-
- Suggest prevention measures
|
|
358
|
-
|
|
359
|
-
## Examples
|
|
360
|
-
|
|
361
|
-
### Basic Staging Deployment
|
|
362
|
-
|
|
363
|
-
```bash
|
|
364
|
-
/deploy api-service --environment staging
|
|
365
|
-
# Deploys API service to staging with rolling strategy
|
|
366
|
-
```
|
|
367
|
-
|
|
368
|
-
### Production Canary Deployment
|
|
369
|
-
|
|
370
|
-
```bash
|
|
371
|
-
/deploy frontend --strategy canary --environment prod
|
|
372
|
-
# Gradual rollout to production with automatic rollback
|
|
373
|
-
```
|
|
374
|
-
|
|
375
|
-
### Full Infrastructure Setup
|
|
376
|
-
|
|
377
|
-
```bash
|
|
378
|
-
/deploy all --infrastructure --monitoring --dry-run
|
|
379
|
-
# Preview complete infrastructure and deployment setup
|
|
380
|
-
```
|
|
381
|
-
|
|
382
|
-
### Emergency Rollback
|
|
383
|
-
|
|
384
|
-
```bash
|
|
385
|
-
/deploy payment-service --rollback --environment prod
|
|
386
|
-
# Immediate rollback to previous stable version
|
|
387
|
-
```
|
|
388
|
-
|
|
389
|
-
## Safety Mechanisms
|
|
390
|
-
|
|
391
|
-
1. **Pre-flight Checks**:
|
|
392
|
-
|
|
393
|
-
- Configuration validation
|
|
394
|
-
- Dependency verification
|
|
395
|
-
- Resource availability
|
|
396
|
-
- Budget constraints
|
|
397
|
-
|
|
398
|
-
2. **Progressive Rollout**:
|
|
399
|
-
|
|
400
|
-
- Start with minimal traffic
|
|
401
|
-
- Monitor key metrics
|
|
402
|
-
- Automatic anomaly detection
|
|
403
|
-
- Circuit breaker activation
|
|
404
|
-
|
|
405
|
-
3. **Rollback Triggers**:
|
|
406
|
-
- Error rate threshold exceeded
|
|
407
|
-
- Response time degradation
|
|
408
|
-
- Health check failures
|
|
409
|
-
- Manual intervention
|
|
410
|
-
|
|
411
|
-
## Integration with Cloud Providers
|
|
412
|
-
|
|
413
|
-
### AWS
|
|
414
|
-
|
|
415
|
-
- ECS/EKS deployments
|
|
416
|
-
- Lambda function updates
|
|
417
|
-
- CloudFormation stacks
|
|
418
|
-
- CodeDeploy integration
|
|
419
|
-
|
|
420
|
-
### Azure
|
|
421
|
-
|
|
422
|
-
- AKS deployments
|
|
423
|
-
- App Service updates
|
|
424
|
-
- ARM templates
|
|
425
|
-
- Azure DevOps pipelines
|
|
426
|
-
|
|
427
|
-
### GCP
|
|
428
|
-
|
|
429
|
-
- GKE deployments
|
|
430
|
-
- Cloud Run services
|
|
431
|
-
- Deployment Manager
|
|
432
|
-
- Cloud Build integration
|
|
433
|
-
|
|
434
|
-
## Best Practices
|
|
435
|
-
|
|
436
|
-
1. **Environment Progression**: Always deploy dev → staging → prod
|
|
437
|
-
2. **Automated Testing**: Run comprehensive tests before deployment
|
|
438
|
-
3. **Monitoring First**: Setup monitoring before deployment
|
|
439
|
-
4. **Incremental Rollout**: Use canary or blue-green for production
|
|
440
|
-
5. **Rollback Ready**: Always maintain rollback capability
|
|
441
|
-
6. **Documentation**: Document deployment procedures and runbooks
|
|
@@ -1,167 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Execute implementation plans step-by-step
|
|
3
|
-
argument-hint: <plan-file>
|
|
4
|
-
allowed-tools: Read(*), Write(*), Edit(*), Glob(*), Grep(*), Bash(*), Task(subagent_type:test-writer), Task(subagent_type:doc-writer)
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# Execute Plan Command
|
|
8
|
-
|
|
9
|
-
Execute an implementation plan by reading the plan file and implementing each step directly.
|
|
10
|
-
|
|
11
|
-
## Workflow Integration
|
|
12
|
-
|
|
13
|
-
This command is **Step 4** of the implementation workflow:
|
|
14
|
-
|
|
15
|
-
1. Explore → 2. Plan → 3. Review → 4. **Execute**
|
|
16
|
-
|
|
17
|
-
### Complete Workflow Example
|
|
18
|
-
|
|
19
|
-
```bash
|
|
20
|
-
# Step 1: Explore and understand the area
|
|
21
|
-
/explore authentication system
|
|
22
|
-
|
|
23
|
-
# Step 2: Plan the implementation (uses exploration context automatically)
|
|
24
|
-
/plan add OAuth2 with Google and GitHub
|
|
25
|
-
|
|
26
|
-
# Step 3: Review the generated plan
|
|
27
|
-
/review-plan oauth-plan.md
|
|
28
|
-
|
|
29
|
-
# Step 4: Execute the approved plan
|
|
30
|
-
/execute-plan oauth-plan.md
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
## Inputs
|
|
34
|
-
|
|
35
|
-
Parse arguments from `$ARGUMENTS`:
|
|
36
|
-
|
|
37
|
-
- **plan_file_path**: Path to the markdown plan file (required)
|
|
38
|
-
|
|
39
|
-
Examples:
|
|
40
|
-
|
|
41
|
-
- `/execute-plan ./implementation-plan.md`
|
|
42
|
-
- `/execute-plan /tmp/plans/feature-plan.md`
|
|
43
|
-
- `/execute-plan oauth-plan.md`
|
|
44
|
-
|
|
45
|
-
## Task
|
|
46
|
-
|
|
47
|
-
Execute the implementation plan step-by-step:
|
|
48
|
-
|
|
49
|
-
1. **Read Plan**: Load the plan file and parse the implementation steps
|
|
50
|
-
2. **Execute Steps**: For each step in the plan:
|
|
51
|
-
- Read relevant files mentioned in the step
|
|
52
|
-
- Make the necessary code changes using Edit/Write tools
|
|
53
|
-
- Run tests when appropriate using Bash
|
|
54
|
-
- Handle errors and report progress
|
|
55
|
-
3. **Commit Changes**: At logical completion points, ASK THE USER if they would like you to create git commit(s). DO NOT commit changes without User confirmation
|
|
56
|
-
4. **Follow-up Options**: After implementation, ask the user if they'd like to:
|
|
57
|
-
- Generate tests (delegate to test-writer agent)
|
|
58
|
-
- Update documentation (delegate to doc-writer agent)
|
|
59
|
-
|
|
60
|
-
## Plan File Format
|
|
61
|
-
|
|
62
|
-
The plan file format from `/plan` command contains:
|
|
63
|
-
|
|
64
|
-
- **Overview**: High-level summary
|
|
65
|
-
- **Scope**: What will and won't be implemented
|
|
66
|
-
- **Current State**: Relevant architecture and files
|
|
67
|
-
- **API Design** (optional): Function signatures and data structures
|
|
68
|
-
- **Implementation Steps**: Sequential steps (typically 5-7 for medium tasks)
|
|
69
|
-
- **Files Summary**: Files to modify or create
|
|
70
|
-
- **Critical Challenges** (optional): Known issues and mitigations
|
|
71
|
-
|
|
72
|
-
## Execution Process
|
|
73
|
-
|
|
74
|
-
### Step-by-Step Implementation
|
|
75
|
-
|
|
76
|
-
For each implementation step:
|
|
77
|
-
|
|
78
|
-
1. **Read Context**: Read files listed in the step
|
|
79
|
-
2. **Implement Changes**:
|
|
80
|
-
- Use Edit tool for modifying existing files
|
|
81
|
-
- Use Write tool for creating new files
|
|
82
|
-
- Follow the approach outlined in the plan
|
|
83
|
-
3. **Validate**: Run relevant tests or checks
|
|
84
|
-
4. **Report**: Provide clear progress updates
|
|
85
|
-
|
|
86
|
-
### Error Handling
|
|
87
|
-
|
|
88
|
-
If a step fails:
|
|
89
|
-
|
|
90
|
-
- Report the error clearly
|
|
91
|
-
- Attempt to understand and resolve the issue
|
|
92
|
-
- Ask the user for guidance if needed
|
|
93
|
-
- Continue with remaining steps when possible
|
|
94
|
-
|
|
95
|
-
### Committing Changes
|
|
96
|
-
|
|
97
|
-
At logical points, ASK THE USER if they're like you to create git commits:
|
|
98
|
-
|
|
99
|
-
- After completing a cohesive set of changes
|
|
100
|
-
- When a step or group of steps is finished
|
|
101
|
-
- Before moving to a new major section
|
|
102
|
-
- Use clear commit messages that reference the plan
|
|
103
|
-
|
|
104
|
-
## Follow-up Actions
|
|
105
|
-
|
|
106
|
-
After completing the implementation, ask the user:
|
|
107
|
-
|
|
108
|
-
**"Implementation complete. Would you like me to:**
|
|
109
|
-
|
|
110
|
-
**1. Generate tests for the new code?**
|
|
111
|
-
**2. Update documentation?**
|
|
112
|
-
**3. Both?"**
|
|
113
|
-
|
|
114
|
-
If the user agrees:
|
|
115
|
-
|
|
116
|
-
- **For tests**: Invoke test-writer agent with the relevant files and implementation details
|
|
117
|
-
- **For docs**: Invoke doc-writer agent with the changes made and context
|
|
118
|
-
|
|
119
|
-
## Output
|
|
120
|
-
|
|
121
|
-
Provide a summary after execution:
|
|
122
|
-
|
|
123
|
-
```yaml
|
|
124
|
-
plan_executed: [path to plan file]
|
|
125
|
-
steps_completed: [number of steps completed]
|
|
126
|
-
steps_failed: [number of steps that failed]
|
|
127
|
-
files_modified: [list of files changed]
|
|
128
|
-
files_created: [list of files created]
|
|
129
|
-
commits_created: [list of commit messages]
|
|
130
|
-
status: completed | partial | failed
|
|
131
|
-
next_steps: [any remaining work or issues to address]
|
|
132
|
-
```
|
|
133
|
-
|
|
134
|
-
## Integration with Workflow Commands
|
|
135
|
-
|
|
136
|
-
This command completes the implementation workflow:
|
|
137
|
-
|
|
138
|
-
1. **Explore**: `/explore <area>`
|
|
139
|
-
|
|
140
|
-
- Builds understanding of the codebase area
|
|
141
|
-
- Context flows to planning
|
|
142
|
-
|
|
143
|
-
2. **Plan**: `/plan <task>`
|
|
144
|
-
|
|
145
|
-
- Uses exploration context automatically
|
|
146
|
-
- Creates clear plan in markdown file
|
|
147
|
-
|
|
148
|
-
3. **Review**: `/review-plan <plan-file>`
|
|
149
|
-
|
|
150
|
-
- Validates plan quality and feasibility
|
|
151
|
-
- Checks alignment with codebase patterns
|
|
152
|
-
|
|
153
|
-
4. **Execute**: `/execute-plan <plan-file>`
|
|
154
|
-
- Reads the plan and implements it
|
|
155
|
-
- Makes code changes directly
|
|
156
|
-
- Prompts the user to create commits at logical points
|
|
157
|
-
- Offers optional test/doc generation
|
|
158
|
-
|
|
159
|
-
## Best Practices
|
|
160
|
-
|
|
161
|
-
1. **Read the entire plan first** to understand the full scope
|
|
162
|
-
2. **Follow the plan's order** unless there's a good reason not to
|
|
163
|
-
3. **Commit incrementally** at logical completion points
|
|
164
|
-
4. **Test as you go** when appropriate
|
|
165
|
-
5. **Report progress clearly** so the user understands what's happening
|
|
166
|
-
6. **Ask for help** when encountering blocking issues
|
|
167
|
-
7. **Offer follow-ups** (tests, docs) after core implementation is done
|