ai-sprint-kit 1.1.9 → 1.2.1
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 +19 -19
- package/package.json +1 -1
- package/templates/.claude/agents/debugger.md +1 -1
- package/templates/.claude/agents/devops.md +9 -9
- package/templates/.claude/agents/docs.md +1 -1
- package/templates/.claude/agents/implementer.md +2 -2
- package/templates/.claude/agents/planner.md +1 -1
- package/templates/.claude/agents/researcher.md +19 -14
- package/templates/.claude/agents/reviewer.md +1 -1
- package/templates/.claude/agents/tester.md +3 -3
- package/templates/.claude/commands/{auto.md → ai-sprint-auto.md} +15 -15
- package/templates/.claude/commands/{code.md → ai-sprint-code.md} +19 -19
- package/templates/.claude/commands/{debug.md → ai-sprint-debug.md} +10 -10
- package/templates/.claude/commands/{deploy.md → ai-sprint-deploy.md} +7 -7
- package/templates/.claude/commands/{docs.md → ai-sprint-docs.md} +8 -8
- package/templates/.claude/commands/{plan.md → ai-sprint-plan.md} +3 -3
- package/templates/.claude/commands/{review.md → ai-sprint-review.md} +7 -7
- package/templates/.claude/commands/{scan.md → ai-sprint-scan.md} +15 -15
- package/templates/.claude/commands/{secure.md → ai-sprint-secure.md} +4 -4
- package/templates/.claude/commands/{test.md → ai-sprint-test.md} +9 -9
- package/templates/.claude/commands/{validate.md → ai-sprint-validate.md} +18 -18
- package/templates/.claude/skills/codebase-context/SKILL.md +9 -9
- package/templates/.claude/skills/codebase-context/references/refresh-triggers.md +3 -3
- package/templates/.claude/skills/implementation/SKILL.md +2 -2
- package/templates/.claude/skills/planning/SKILL.md +3 -3
- package/templates/.claude/skills/planning/references/plan-templates.md +1 -1
- package/templates/.claude/skills/planning/references/research-phase.md +1 -1
- package/templates/.claude/skills/quality-assurance/SKILL.md +2 -2
- package/templates/.claude/workflows/development-rules.md +4 -4
- package/templates/CLAUDE.md +42 -42
- package/templates/README.md +37 -37
- package/templates/docs/user-guide-th.md +64 -64
- package/templates/docs/user-guide.md +94 -94
package/README.md
CHANGED
|
@@ -37,7 +37,7 @@ npx ai-sprint-kit init
|
|
|
37
37
|
claude
|
|
38
38
|
|
|
39
39
|
# Run your first autonomous cycle
|
|
40
|
-
/auto "build a REST API for user management"
|
|
40
|
+
/ai-sprint-auto "build a REST API for user management"
|
|
41
41
|
```
|
|
42
42
|
|
|
43
43
|
**That's it.** The framework handles planning, coding, testing, security scanning, and documentation.
|
|
@@ -63,17 +63,17 @@ claude
|
|
|
63
63
|
### 11 Slash Commands
|
|
64
64
|
|
|
65
65
|
```bash
|
|
66
|
-
/plan # Create implementation plans
|
|
67
|
-
/code # Generate or refactor code
|
|
68
|
-
/test # Generate and run tests
|
|
69
|
-
/review # Code quality review
|
|
70
|
-
/secure # Security scanning
|
|
71
|
-
/deploy # CI/CD setup
|
|
72
|
-
/docs # Generate documentation
|
|
73
|
-
/debug # Investigate issues
|
|
74
|
-
/scan # Index codebase for AI context
|
|
75
|
-
/validate # Pre-commit checks
|
|
76
|
-
/auto # Full autonomous cycle
|
|
66
|
+
/ai-sprint-plan # Create implementation plans
|
|
67
|
+
/ai-sprint-code # Generate or refactor code
|
|
68
|
+
/ai-sprint-test # Generate and run tests
|
|
69
|
+
/ai-sprint-review # Code quality review
|
|
70
|
+
/ai-sprint-secure # Security scanning
|
|
71
|
+
/ai-sprint-deploy # CI/CD setup
|
|
72
|
+
/ai-sprint-docs # Generate documentation
|
|
73
|
+
/ai-sprint-debug # Investigate issues
|
|
74
|
+
/ai-sprint-scan # Index codebase for AI context
|
|
75
|
+
/ai-sprint-validate # Pre-commit checks
|
|
76
|
+
/ai-sprint-auto # Full autonomous cycle
|
|
77
77
|
```
|
|
78
78
|
|
|
79
79
|
### Built-in Security
|
|
@@ -164,7 +164,7 @@ your-project/
|
|
|
164
164
|
mkdir my-app && cd my-app
|
|
165
165
|
npx ai-sprint-kit init
|
|
166
166
|
claude
|
|
167
|
-
/auto "build e-commerce API with Stripe integration"
|
|
167
|
+
/ai-sprint-auto "build e-commerce API with Stripe integration"
|
|
168
168
|
```
|
|
169
169
|
|
|
170
170
|
### Existing Project
|
|
@@ -173,17 +173,17 @@ claude
|
|
|
173
173
|
cd my-existing-project
|
|
174
174
|
npx ai-sprint-kit init --scan
|
|
175
175
|
claude
|
|
176
|
-
/review # Analyze code quality
|
|
177
|
-
/secure # Find vulnerabilities
|
|
176
|
+
/ai-sprint-review # Analyze code quality
|
|
177
|
+
/ai-sprint-secure # Find vulnerabilities
|
|
178
178
|
```
|
|
179
179
|
|
|
180
180
|
### Security-First Development
|
|
181
181
|
|
|
182
182
|
```bash
|
|
183
|
-
/plan "implement payment processing"
|
|
184
|
-
/code "build with PCI DSS compliance"
|
|
185
|
-
/secure # Comprehensive scan
|
|
186
|
-
/validate # Pre-commit checks
|
|
183
|
+
/ai-sprint-plan "implement payment processing"
|
|
184
|
+
/ai-sprint-code "build with PCI DSS compliance"
|
|
185
|
+
/ai-sprint-secure # Comprehensive scan
|
|
186
|
+
/ai-sprint-validate # Pre-commit checks
|
|
187
187
|
```
|
|
188
188
|
|
|
189
189
|
---
|
package/package.json
CHANGED
|
@@ -111,7 +111,7 @@ ai_context/
|
|
|
111
111
|
|
|
112
112
|
### Phase 4: Document
|
|
113
113
|
```
|
|
114
|
-
1. Call Write: ai_context/reports/debug-{timestamp}-{slug}.md
|
|
114
|
+
1. Call Write: ai_context/reports/ai-sprint-debug-{timestamp}-{slug}.md
|
|
115
115
|
2. Update ai_context/memory/learning.md with new pattern
|
|
116
116
|
```
|
|
117
117
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: devops
|
|
3
|
-
description: Expert DevOps engineer for CI/CD, deployment, and infrastructure
|
|
3
|
+
description: Expert DevOps engineer for CI/CD, deployment, and infrastructure
|
|
4
4
|
model: sonnet
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
# DevOps Agent
|
|
8
8
|
|
|
9
|
-
You are an **expert DevOps engineer** specializing in CI/CD pipelines, deployment automation, and infrastructure setup. You use the latest tools
|
|
9
|
+
You are an **expert DevOps engineer** specializing in CI/CD pipelines, deployment automation, and infrastructure setup. You use the latest tools with a security-first approach. Always use `date "+%Y"` to get current year for documentation.
|
|
10
10
|
|
|
11
11
|
## Agent Philosophy
|
|
12
12
|
|
|
@@ -108,7 +108,7 @@ ai_context/
|
|
|
108
108
|
|
|
109
109
|
### Phase 4: Documentation
|
|
110
110
|
```
|
|
111
|
-
1. Call Write: ai_context/reports/deploy-{timestamp}.md
|
|
111
|
+
1. Call Write: ai_context/reports/ai-sprint-deploy-{timestamp}.md
|
|
112
112
|
2. Document rollback procedures
|
|
113
113
|
3. Update ai_context/memory/decisions.md
|
|
114
114
|
```
|
|
@@ -132,7 +132,7 @@ After deployment:
|
|
|
132
132
|
- [ ] Monitoring set up
|
|
133
133
|
- [ ] Staging tested first
|
|
134
134
|
|
|
135
|
-
## Supported Platforms
|
|
135
|
+
## Supported Platforms
|
|
136
136
|
|
|
137
137
|
### CI/CD (Recommended)
|
|
138
138
|
- **GitHub Actions** - Best for GitHub repos, 40+ triggers, ARM/GPU runners
|
|
@@ -165,7 +165,7 @@ After deployment:
|
|
|
165
165
|
- **Pulumi** - Real code (TypeScript/Python/Go)
|
|
166
166
|
- **ArgoCD/FluxCD** - GitOps for Kubernetes
|
|
167
167
|
|
|
168
|
-
## GitHub Actions Pipeline
|
|
168
|
+
## GitHub Actions Pipeline
|
|
169
169
|
|
|
170
170
|
```yaml
|
|
171
171
|
# .github/workflows/ci-cd.yml
|
|
@@ -314,7 +314,7 @@ name = "web"
|
|
|
314
314
|
// wrangler.toml
|
|
315
315
|
name = "app"
|
|
316
316
|
main = "src/index.ts"
|
|
317
|
-
compatibility_date = "
|
|
317
|
+
compatibility_date = "2025-01-01"
|
|
318
318
|
|
|
319
319
|
[env.production]
|
|
320
320
|
routes = [{ pattern = "app.com/*", zone_name = "app.com" }]
|
|
@@ -363,7 +363,7 @@ volumes:
|
|
|
363
363
|
postgres_data:
|
|
364
364
|
```
|
|
365
365
|
|
|
366
|
-
## Secrets Management
|
|
366
|
+
## Secrets Management
|
|
367
367
|
|
|
368
368
|
### Infisical (Open-Source, Recommended)
|
|
369
369
|
```bash
|
|
@@ -509,7 +509,7 @@ spec:
|
|
|
509
509
|
initialDelaySeconds: 5
|
|
510
510
|
```
|
|
511
511
|
|
|
512
|
-
## Monitoring Stack
|
|
512
|
+
## Monitoring Stack
|
|
513
513
|
|
|
514
514
|
### Prometheus + Grafana
|
|
515
515
|
```yaml
|
|
@@ -704,7 +704,7 @@ app.use('/api/', limiter);
|
|
|
704
704
|
❌ No rollback plan
|
|
705
705
|
❌ Skipping staging environment
|
|
706
706
|
|
|
707
|
-
##
|
|
707
|
+
## Best Practices
|
|
708
708
|
|
|
709
709
|
- Start with simplest solution (Vercel/Railway/Render)
|
|
710
710
|
- Use OpenTofu over Terraform (open-source)
|
|
@@ -76,7 +76,7 @@ date "+%y%m%d" # For file naming: 251224
|
|
|
76
76
|
|
|
77
77
|
### Phase 1: Context & Planning
|
|
78
78
|
```
|
|
79
|
-
1. Call Read tool for ai_context/plans/*/plan.md (current plan)
|
|
79
|
+
1. Call Read tool for ai_context/ai-sprint-plans/*/ai-sprint-plan.md (current plan)
|
|
80
80
|
2. Call Read tool for ai_context/memory/learning.md (avoid mistakes)
|
|
81
81
|
3. Call Read tool for existing code in scope
|
|
82
82
|
4. Call Glob to understand project structure
|
|
@@ -208,7 +208,7 @@ Activate these skills for enhanced capabilities:
|
|
|
208
208
|
|
|
209
209
|
Before implementing:
|
|
210
210
|
1. Check `ai_context/memory/learning.md` - Avoid past mistakes
|
|
211
|
-
2. Check `ai_context/plans/` - Follow the plan
|
|
211
|
+
2. Check `ai_context/ai-sprint-plans/` - Follow the plan
|
|
212
212
|
|
|
213
213
|
After implementing:
|
|
214
214
|
1. Update `ai_context/memory/learning.md` if you learned something
|
|
@@ -101,7 +101,7 @@ DO NOT use model knowledge for dates. Always call Bash with date command.
|
|
|
101
101
|
|
|
102
102
|
### Phase 3: Plan Creation
|
|
103
103
|
```
|
|
104
|
-
1. Call Write tool to create ai_context/plans/{timestamp}-feature-name/plan.md
|
|
104
|
+
1. Call Write tool to create ai_context/ai-sprint-plans/{timestamp}-feature-name/ai-sprint-plan.md
|
|
105
105
|
2. Call Write tool for each phase-*.md breakdown
|
|
106
106
|
3. Include security considerations in every phase
|
|
107
107
|
4. Define measurable success criteria
|
|
@@ -182,13 +182,15 @@ After researching:
|
|
|
182
182
|
|
|
183
183
|
**Search Query Patterns:**
|
|
184
184
|
```
|
|
185
|
-
"{topic} best practices
|
|
185
|
+
"{topic} best practices {current_year}" # Always use current year from date command
|
|
186
186
|
"{topic} vs alternatives comparison"
|
|
187
187
|
"{topic} production architecture"
|
|
188
188
|
"{topic} security considerations"
|
|
189
189
|
"{topic} performance optimization"
|
|
190
190
|
```
|
|
191
191
|
|
|
192
|
+
**IMPORTANT**: Before searching, always run `date "+%Y"` to get the current year. Never hardcode years in queries.
|
|
193
|
+
|
|
192
194
|
**Priority Sources:**
|
|
193
195
|
- Official documentation
|
|
194
196
|
- GitHub (stars >1k, recent commits)
|
|
@@ -223,8 +225,8 @@ After researching:
|
|
|
223
225
|
### Technology Overview
|
|
224
226
|
[Comprehensive description]
|
|
225
227
|
|
|
226
|
-
### Current State
|
|
227
|
-
[Latest developments, versions, trends]
|
|
228
|
+
### Current State
|
|
229
|
+
[Latest developments, versions, trends - use current year from `date "+%Y"`]
|
|
228
230
|
|
|
229
231
|
### Best Practices
|
|
230
232
|
[Detailed recommendations with rationale]
|
|
@@ -277,9 +279,10 @@ After researching:
|
|
|
277
279
|
- Validate with community consensus
|
|
278
280
|
|
|
279
281
|
### Currency
|
|
280
|
-
- Prioritize
|
|
282
|
+
- Prioritize current year information (use `date "+%Y"` to get year)
|
|
281
283
|
- Note deprecations and migrations
|
|
282
284
|
- Check for recent updates
|
|
285
|
+
- NEVER hardcode years - always use system date
|
|
283
286
|
|
|
284
287
|
### Completeness
|
|
285
288
|
- Cover all requested aspects
|
|
@@ -301,7 +304,7 @@ When researching complex topics, spawn multiple focused researchers:
|
|
|
301
304
|
|
|
302
305
|
Spawn 4 parallel researchers:
|
|
303
306
|
1. React 18 features + concurrent rendering
|
|
304
|
-
2. State management (Redux vs Zustand vs Jotai
|
|
307
|
+
2. State management (Redux vs Zustand vs Jotai {current_year})
|
|
305
308
|
3. React performance optimization + profiling
|
|
306
309
|
4. React security best practices + XSS prevention
|
|
307
310
|
|
|
@@ -362,32 +365,34 @@ plans/reports/researcher-{YYMMDD}-{HHMM}-{topic-slug}.md
|
|
|
362
365
|
|
|
363
366
|
## Example Research Queries
|
|
364
367
|
|
|
368
|
+
**IMPORTANT**: Always run `date "+%Y"` first and use the result in queries. Examples below show `{YEAR}` as placeholder - replace with actual current year.
|
|
369
|
+
|
|
365
370
|
### Tech Stack Research
|
|
366
371
|
```
|
|
367
|
-
"Next.js 15 vs Remix
|
|
368
|
-
"PostgreSQL vs MongoDB
|
|
372
|
+
"Next.js 15 vs Remix {YEAR} production comparison"
|
|
373
|
+
"PostgreSQL vs MongoDB {YEAR} performance benchmarks"
|
|
369
374
|
"TypeScript 5.3 best practices enterprise"
|
|
370
375
|
```
|
|
371
376
|
|
|
372
377
|
### Architecture Research
|
|
373
378
|
```
|
|
374
|
-
"microservices orchestration patterns
|
|
379
|
+
"microservices orchestration patterns {YEAR}"
|
|
375
380
|
"event-driven architecture AWS best practices"
|
|
376
|
-
"serverless vs containers
|
|
381
|
+
"serverless vs containers {YEAR} cost analysis"
|
|
377
382
|
```
|
|
378
383
|
|
|
379
384
|
### Security Research
|
|
380
385
|
```
|
|
381
|
-
"OWASP Top 10
|
|
382
|
-
"API security JWT vs session
|
|
386
|
+
"OWASP Top 10 {YEAR} mitigation strategies"
|
|
387
|
+
"API security JWT vs session {YEAR}"
|
|
383
388
|
"secrets management Vault vs AWS Secrets Manager"
|
|
384
389
|
```
|
|
385
390
|
|
|
386
391
|
### Testing Research
|
|
387
392
|
```
|
|
388
|
-
"integration testing best practices
|
|
393
|
+
"integration testing best practices {YEAR}"
|
|
389
394
|
"test coverage metrics industry standards"
|
|
390
|
-
"Playwright vs Cypress
|
|
395
|
+
"Playwright vs Cypress {YEAR} comparison"
|
|
391
396
|
```
|
|
392
397
|
|
|
393
398
|
## Success Metrics
|
|
@@ -396,7 +401,7 @@ Research is successful when:
|
|
|
396
401
|
- ✅ All key questions answered
|
|
397
402
|
- ✅ Multiple sources validated
|
|
398
403
|
- ✅ Actionable recommendations provided
|
|
399
|
-
- ✅ Latest information (
|
|
404
|
+
- ✅ Latest information (current year from `date "+%Y"`)
|
|
400
405
|
- ✅ Security implications covered
|
|
401
406
|
- ✅ Implementation guidance included
|
|
402
407
|
- ✅ Unresolved questions listed
|
|
@@ -98,7 +98,7 @@ ai_context/
|
|
|
98
98
|
|
|
99
99
|
### Phase 3: Reporting
|
|
100
100
|
```
|
|
101
|
-
1. Call Write: ai_context/reports/review-{timestamp}.md
|
|
101
|
+
1. Call Write: ai_context/reports/ai-sprint-review-{timestamp}.md
|
|
102
102
|
2. Categorize by severity (Critical/High/Medium/Low)
|
|
103
103
|
3. Provide before/after code examples
|
|
104
104
|
4. Include rationale for each suggestion
|
|
@@ -108,7 +108,7 @@ ai_context/
|
|
|
108
108
|
|
|
109
109
|
### Phase 4: Reporting
|
|
110
110
|
```
|
|
111
|
-
1. Call Write: ai_context/reports/test-coverage-{timestamp}.md
|
|
111
|
+
1. Call Write: ai_context/reports/ai-sprint-test-coverage-{timestamp}.md
|
|
112
112
|
2. Document coverage metrics
|
|
113
113
|
3. Note gaps and recommendations
|
|
114
114
|
```
|
|
@@ -491,7 +491,7 @@ test('no memory leaks in worker', async () => {
|
|
|
491
491
|
|
|
492
492
|
### CI Configuration
|
|
493
493
|
```yaml
|
|
494
|
-
# .github/workflows/test.yml
|
|
494
|
+
# .github/workflows/ai-sprint-test.yml
|
|
495
495
|
name: Tests
|
|
496
496
|
|
|
497
497
|
on: [push, pull_request]
|
|
@@ -507,7 +507,7 @@ jobs:
|
|
|
507
507
|
- run: npm run test:e2e
|
|
508
508
|
|
|
509
509
|
# Upload coverage
|
|
510
|
-
- uses: codecov/codecov-action@v3
|
|
510
|
+
- uses: codecov/ai-sprint-codecov-action@v3
|
|
511
511
|
with:
|
|
512
512
|
files: ./coverage/lcov.info
|
|
513
513
|
|
|
@@ -15,21 +15,21 @@ argument-hint: [feature description]
|
|
|
15
15
|
|
|
16
16
|
### Phase 1: Planning (MANDATORY - Execute First)
|
|
17
17
|
|
|
18
|
-
**⚠️ STOP! Before ANY code, execute `/plan` command:**
|
|
18
|
+
**⚠️ STOP! Before ANY code, execute `/ai-sprint-plan` command:**
|
|
19
19
|
|
|
20
20
|
```
|
|
21
|
-
/plan "$ARGUMENTS"
|
|
21
|
+
/ai-sprint-plan "$ARGUMENTS"
|
|
22
22
|
```
|
|
23
23
|
|
|
24
|
-
The `/plan` command will:
|
|
24
|
+
The `/ai-sprint-plan` command will:
|
|
25
25
|
1. Research best practices and approaches
|
|
26
26
|
2. Ask clarifying questions if needed
|
|
27
27
|
3. Create implementation plan with architecture
|
|
28
|
-
4. Save plan to `ai_context/plans/`
|
|
28
|
+
4. Save plan to `ai_context/ai-sprint-plans/`
|
|
29
29
|
|
|
30
30
|
**Validation Gate:** Plan MUST exist before proceeding.
|
|
31
|
-
- Check: `ai_context/plans/` has new plan directory
|
|
32
|
-
- If NO plan exists → STOP and run `/plan` first
|
|
31
|
+
- Check: `ai_context/ai-sprint-plans/` has new plan directory
|
|
32
|
+
- If NO plan exists → STOP and run `/ai-sprint-plan` first
|
|
33
33
|
|
|
34
34
|
---
|
|
35
35
|
|
|
@@ -37,7 +37,7 @@ The `/plan` command will:
|
|
|
37
37
|
|
|
38
38
|
Only after plan exists, execute:
|
|
39
39
|
```
|
|
40
|
-
/code "implement the plan at ai_context/plans/{plan-path}"
|
|
40
|
+
/ai-sprint-code "implement the plan at ai_context/ai-sprint-plans/{plan-path}"
|
|
41
41
|
```
|
|
42
42
|
|
|
43
43
|
**Requirements:**
|
|
@@ -52,7 +52,7 @@ Only after plan exists, execute:
|
|
|
52
52
|
|
|
53
53
|
After implementation, execute:
|
|
54
54
|
```
|
|
55
|
-
/test
|
|
55
|
+
/ai-sprint-test
|
|
56
56
|
```
|
|
57
57
|
|
|
58
58
|
**Requirements:**
|
|
@@ -62,7 +62,7 @@ After implementation, execute:
|
|
|
62
62
|
- All tests must pass
|
|
63
63
|
|
|
64
64
|
**Validation Gate:** Tests must pass before proceeding.
|
|
65
|
-
- If tests fail → Fix issues → Rerun `/test`
|
|
65
|
+
- If tests fail → Fix issues → Rerun `/ai-sprint-test`
|
|
66
66
|
- Do NOT proceed with failing tests
|
|
67
67
|
|
|
68
68
|
---
|
|
@@ -71,7 +71,7 @@ After implementation, execute:
|
|
|
71
71
|
|
|
72
72
|
After tests pass, execute:
|
|
73
73
|
```
|
|
74
|
-
/review
|
|
74
|
+
/ai-sprint-review
|
|
75
75
|
```
|
|
76
76
|
|
|
77
77
|
**Requirements:**
|
|
@@ -80,7 +80,7 @@ After tests pass, execute:
|
|
|
80
80
|
- No critical issues allowed
|
|
81
81
|
|
|
82
82
|
**Validation Gate:** Review must pass.
|
|
83
|
-
- If critical issues → Fix → Rerun `/review`
|
|
83
|
+
- If critical issues → Fix → Rerun `/ai-sprint-review`
|
|
84
84
|
|
|
85
85
|
---
|
|
86
86
|
|
|
@@ -88,7 +88,7 @@ After tests pass, execute:
|
|
|
88
88
|
|
|
89
89
|
After review passes, execute:
|
|
90
90
|
```
|
|
91
|
-
/secure
|
|
91
|
+
/ai-sprint-secure
|
|
92
92
|
```
|
|
93
93
|
|
|
94
94
|
**Requirements:**
|
|
@@ -97,7 +97,7 @@ After review passes, execute:
|
|
|
97
97
|
- Dependency vulnerability check
|
|
98
98
|
|
|
99
99
|
**Validation Gate:** No high/critical security issues.
|
|
100
|
-
- If issues found → Fix → Rerun `/secure`
|
|
100
|
+
- If issues found → Fix → Rerun `/ai-sprint-secure`
|
|
101
101
|
|
|
102
102
|
---
|
|
103
103
|
|
|
@@ -105,7 +105,7 @@ After review passes, execute:
|
|
|
105
105
|
|
|
106
106
|
After security passes, execute:
|
|
107
107
|
```
|
|
108
|
-
/docs
|
|
108
|
+
/ai-sprint-docs
|
|
109
109
|
```
|
|
110
110
|
|
|
111
111
|
**Requirements:**
|
|
@@ -144,7 +144,7 @@ After all phases complete, provide summary:
|
|
|
144
144
|
|
|
145
145
|
## REMEMBER
|
|
146
146
|
|
|
147
|
-
- **Phase 1 is MANDATORY** - Always run `/plan` first
|
|
147
|
+
- **Phase 1 is MANDATORY** - Always run `/ai-sprint-plan` first
|
|
148
148
|
- **No skipping** - Execute each phase in order
|
|
149
149
|
- **Validation gates** - Do not proceed if a gate fails
|
|
150
150
|
- **Fix and retry** - If any phase fails, fix issues and rerun
|
|
@@ -11,13 +11,13 @@ argument-hint: [plan-path or task description]
|
|
|
11
11
|
|
|
12
12
|
### Step 0: Check for Plan (IMPORTANT)
|
|
13
13
|
|
|
14
|
-
**If argument contains a plan path (e.g., `ai_context/plans/...`):**
|
|
14
|
+
**If argument contains a plan path (e.g., `ai_context/ai-sprint-plans/...`):**
|
|
15
15
|
1. Read the plan: `plan.md` and `phase-*.md` files
|
|
16
16
|
2. Follow implementation phases in order
|
|
17
17
|
3. Mark phases complete as you progress
|
|
18
18
|
|
|
19
19
|
**If no plan exists:**
|
|
20
|
-
- Ask: "No plan found. Run `/plan` first or proceed with direct implementation?"
|
|
20
|
+
- Ask: "No plan found. Run `/ai-sprint-plan` first or proceed with direct implementation?"
|
|
21
21
|
- If direct implementation requested, continue to Step 1
|
|
22
22
|
|
|
23
23
|
---
|
|
@@ -143,7 +143,7 @@ export async function createUser(data) {
|
|
|
143
143
|
|
|
144
144
|
### Example 1: API Endpoint
|
|
145
145
|
```
|
|
146
|
-
/code "create REST API endpoint for user registration with email verification"
|
|
146
|
+
/ai-sprint-code "create REST API endpoint for user registration with email verification"
|
|
147
147
|
```
|
|
148
148
|
|
|
149
149
|
**Generated:**
|
|
@@ -213,7 +213,7 @@ export async function POST(request: Request) {
|
|
|
213
213
|
|
|
214
214
|
### Example 2: Refactoring
|
|
215
215
|
```
|
|
216
|
-
/code "refactor this callback-based code to use async/await"
|
|
216
|
+
/ai-sprint-code "refactor this callback-based code to use async/await"
|
|
217
217
|
```
|
|
218
218
|
|
|
219
219
|
**Before:**
|
|
@@ -261,40 +261,40 @@ async function getUser(id: string): Promise<User> {
|
|
|
261
261
|
|
|
262
262
|
## Next Steps
|
|
263
263
|
|
|
264
|
-
After `/code` completion:
|
|
264
|
+
After `/ai-sprint-code` completion:
|
|
265
265
|
1. Review generated code
|
|
266
|
-
2. Run `/test` to generate tests
|
|
267
|
-
3. Run `/review` for quality check
|
|
268
|
-
4. Run `/secure` for security scan
|
|
266
|
+
2. Run `/ai-sprint-test` to generate tests
|
|
267
|
+
3. Run `/ai-sprint-review` for quality check
|
|
268
|
+
4. Run `/ai-sprint-secure` for security scan
|
|
269
269
|
5. Commit changes
|
|
270
270
|
|
|
271
271
|
## Common Use Cases
|
|
272
272
|
|
|
273
273
|
### New Features
|
|
274
274
|
```
|
|
275
|
-
/code "add pagination to the products API"
|
|
276
|
-
/code "implement password reset functionality"
|
|
277
|
-
/code "create admin dashboard with user management"
|
|
275
|
+
/ai-sprint-code "add pagination to the products API"
|
|
276
|
+
/ai-sprint-code "implement password reset functionality"
|
|
277
|
+
/ai-sprint-code "create admin dashboard with user management"
|
|
278
278
|
```
|
|
279
279
|
|
|
280
280
|
### Refactoring
|
|
281
281
|
```
|
|
282
|
-
/code "convert class components to functional components"
|
|
283
|
-
/code "split this 500-line file into smaller modules"
|
|
284
|
-
/code "replace REST with GraphQL for user API"
|
|
282
|
+
/ai-sprint-code "convert class components to functional components"
|
|
283
|
+
/ai-sprint-code "split this 500-line file into smaller modules"
|
|
284
|
+
/ai-sprint-code "replace REST with GraphQL for user API"
|
|
285
285
|
```
|
|
286
286
|
|
|
287
287
|
### Bug Fixes
|
|
288
288
|
```
|
|
289
|
-
/code "fix the race condition in payment processing"
|
|
290
|
-
/code "resolve memory leak in WebSocket handler"
|
|
289
|
+
/ai-sprint-code "fix the race condition in payment processing"
|
|
290
|
+
/ai-sprint-code "resolve memory leak in WebSocket handler"
|
|
291
291
|
```
|
|
292
292
|
|
|
293
293
|
### Performance
|
|
294
294
|
```
|
|
295
|
-
/code "optimize this N+1 query problem"
|
|
296
|
-
/code "add caching to frequently accessed data"
|
|
297
|
-
/code "implement lazy loading for images"
|
|
295
|
+
/ai-sprint-code "optimize this N+1 query problem"
|
|
296
|
+
/ai-sprint-code "add caching to frequently accessed data"
|
|
297
|
+
/ai-sprint-code "implement lazy loading for images"
|
|
298
298
|
```
|
|
299
299
|
|
|
300
300
|
## Remember
|
|
@@ -7,17 +7,17 @@ argument-hint: [bug description or error message]
|
|
|
7
7
|
|
|
8
8
|
**Objective:** $ARGUMENTS
|
|
9
9
|
|
|
10
|
-
## Command: /debug
|
|
10
|
+
## Command: /ai-sprint-debug
|
|
11
11
|
|
|
12
12
|
Systematically investigate bugs, perform root cause analysis, and provide fixes with regression tests.
|
|
13
13
|
|
|
14
14
|
## Usage
|
|
15
15
|
|
|
16
16
|
```
|
|
17
|
-
/debug "users can't login"
|
|
18
|
-
/debug "500 error on checkout"
|
|
19
|
-
/debug "memory leak in WebSocket handler"
|
|
20
|
-
/debug "database query is slow"
|
|
17
|
+
/ai-sprint-debug "users can't login"
|
|
18
|
+
/ai-sprint-debug "500 error on checkout"
|
|
19
|
+
/ai-sprint-debug "memory leak in WebSocket handler"
|
|
20
|
+
/ai-sprint-debug "database query is slow"
|
|
21
21
|
```
|
|
22
22
|
|
|
23
23
|
## Workflow
|
|
@@ -252,11 +252,11 @@ Before debugging:
|
|
|
252
252
|
|
|
253
253
|
After debugging:
|
|
254
254
|
- Update `ai_context/memory/learning.md` with new bug pattern
|
|
255
|
-
- Save report to `ai_context/reports/debug-{timestamp}-{slug}.md`
|
|
255
|
+
- Save report to `ai_context/reports/ai-sprint-debug-{timestamp}-{slug}.md`
|
|
256
256
|
|
|
257
257
|
## Debug Report
|
|
258
258
|
|
|
259
|
-
Save to: `ai_context/reports/debug-YYMMDD-slug.md`
|
|
259
|
+
Save to: `ai_context/reports/ai-sprint-debug-YYMMDD-slug.md`
|
|
260
260
|
|
|
261
261
|
```markdown
|
|
262
262
|
# Bug Fix Report
|
|
@@ -376,13 +376,13 @@ git bisect reset
|
|
|
376
376
|
|
|
377
377
|
## Integration with Other Commands
|
|
378
378
|
|
|
379
|
-
**/debug** → **/test**
|
|
379
|
+
**/ai-sprint-debug** → **/ai-sprint-test**
|
|
380
380
|
- After fixing bug, add regression test
|
|
381
381
|
|
|
382
|
-
**/debug** → **/review**
|
|
382
|
+
**/ai-sprint-debug** → **/ai-sprint-review**
|
|
383
383
|
- Review fix for quality and security
|
|
384
384
|
|
|
385
|
-
**/debug** → **/secure**
|
|
385
|
+
**/ai-sprint-debug** → **/ai-sprint-secure**
|
|
386
386
|
- If security bug, run security scan
|
|
387
387
|
|
|
388
388
|
## Debug Checklist
|
|
@@ -3,17 +3,17 @@ description: Set up CI/CD pipeline and deployment automation
|
|
|
3
3
|
argument-hint: [optional: platform (github|gitlab|vercel|railway)]
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
## Command: /deploy
|
|
6
|
+
## Command: /ai-sprint-deploy
|
|
7
7
|
|
|
8
8
|
Set up automated CI/CD pipeline and configure deployment to your chosen platform.
|
|
9
9
|
|
|
10
10
|
## Usage
|
|
11
11
|
|
|
12
12
|
```
|
|
13
|
-
/deploy
|
|
14
|
-
/deploy --platform github
|
|
15
|
-
/deploy --platform vercel
|
|
16
|
-
/deploy --platform railway
|
|
13
|
+
/ai-sprint-deploy
|
|
14
|
+
/ai-sprint-deploy --platform github
|
|
15
|
+
/ai-sprint-deploy --platform vercel
|
|
16
|
+
/ai-sprint-deploy --platform railway
|
|
17
17
|
```
|
|
18
18
|
|
|
19
19
|
## Workflow
|
|
@@ -53,7 +53,7 @@ If not specified, suggest based on project:
|
|
|
53
53
|
|
|
54
54
|
### GitHub Actions (CI/CD)
|
|
55
55
|
```yaml
|
|
56
|
-
# .github/workflows/deploy.yml
|
|
56
|
+
# .github/workflows/ai-sprint-deploy.yml
|
|
57
57
|
name: Deploy
|
|
58
58
|
|
|
59
59
|
on:
|
|
@@ -418,7 +418,7 @@ app.use('/api/', limiter);
|
|
|
418
418
|
|
|
419
419
|
## Output
|
|
420
420
|
|
|
421
|
-
After `/deploy` completion:
|
|
421
|
+
After `/ai-sprint-deploy` completion:
|
|
422
422
|
|
|
423
423
|
✅ **CI/CD Pipeline Configured**
|
|
424
424
|
- Automated testing
|
|
@@ -3,17 +3,17 @@ description: Generate and update project documentation
|
|
|
3
3
|
argument-hint: [optional: specific doc type (readme|api|architecture)]
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
## Command: /docs
|
|
6
|
+
## Command: /ai-sprint-docs
|
|
7
7
|
|
|
8
8
|
Generate comprehensive, up-to-date documentation including README, API docs, architecture diagrams, and inline code comments.
|
|
9
9
|
|
|
10
10
|
## Usage
|
|
11
11
|
|
|
12
12
|
```
|
|
13
|
-
/docs
|
|
14
|
-
/docs readme
|
|
15
|
-
/docs api
|
|
16
|
-
/docs architecture
|
|
13
|
+
/ai-sprint-docs
|
|
14
|
+
/ai-sprint-docs readme
|
|
15
|
+
/ai-sprint-docs api
|
|
16
|
+
/ai-sprint-docs architecture
|
|
17
17
|
```
|
|
18
18
|
|
|
19
19
|
## Workflow
|
|
@@ -489,13 +489,13 @@ graph TD
|
|
|
489
489
|
|
|
490
490
|
## Integration with Other Commands
|
|
491
491
|
|
|
492
|
-
**/code** → **/docs**
|
|
492
|
+
**/ai-sprint-code** → **/ai-sprint-docs**
|
|
493
493
|
- After generating code, document it
|
|
494
494
|
|
|
495
|
-
**/review** → **/docs**
|
|
495
|
+
**/ai-sprint-review** → **/ai-sprint-docs**
|
|
496
496
|
- Review identifies missing docs
|
|
497
497
|
|
|
498
|
-
**/test** → **/docs**
|
|
498
|
+
**/ai-sprint-test** → **/ai-sprint-docs**
|
|
499
499
|
- Tests validate doc examples work
|
|
500
500
|
|
|
501
501
|
## Success Criteria
|