ai-sprint-kit 1.1.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/README.md +299 -0
- package/bin/cli.js +135 -0
- package/lib/installer.js +205 -0
- package/lib/scanner.js +341 -0
- package/package.json +55 -0
- package/templates/.claude/.env.example +13 -0
- package/templates/.claude/agents/debugger.md +667 -0
- package/templates/.claude/agents/devops.md +727 -0
- package/templates/.claude/agents/docs.md +661 -0
- package/templates/.claude/agents/implementer.md +235 -0
- package/templates/.claude/agents/planner.md +243 -0
- package/templates/.claude/agents/researcher.md +448 -0
- package/templates/.claude/agents/reviewer.md +610 -0
- package/templates/.claude/agents/security.md +202 -0
- package/templates/.claude/agents/tester.md +604 -0
- package/templates/.claude/commands/auto.md +85 -0
- package/templates/.claude/commands/code.md +301 -0
- package/templates/.claude/commands/debug.md +449 -0
- package/templates/.claude/commands/deploy.md +475 -0
- package/templates/.claude/commands/docs.md +519 -0
- package/templates/.claude/commands/plan.md +57 -0
- package/templates/.claude/commands/review.md +412 -0
- package/templates/.claude/commands/scan.md +146 -0
- package/templates/.claude/commands/secure.md +88 -0
- package/templates/.claude/commands/test.md +352 -0
- package/templates/.claude/commands/validate.md +238 -0
- package/templates/.claude/settings.json +27 -0
- package/templates/.claude/skills/codebase-context/SKILL.md +68 -0
- package/templates/.claude/skills/codebase-context/references/reading-context.md +68 -0
- package/templates/.claude/skills/codebase-context/references/refresh-triggers.md +82 -0
- package/templates/.claude/skills/implementation/SKILL.md +70 -0
- package/templates/.claude/skills/implementation/references/error-handling.md +106 -0
- package/templates/.claude/skills/implementation/references/security-patterns.md +73 -0
- package/templates/.claude/skills/implementation/references/validation-patterns.md +107 -0
- package/templates/.claude/skills/memory/SKILL.md +67 -0
- package/templates/.claude/skills/memory/references/decisions-format.md +68 -0
- package/templates/.claude/skills/memory/references/learning-format.md +74 -0
- package/templates/.claude/skills/planning/SKILL.md +72 -0
- package/templates/.claude/skills/planning/references/plan-templates.md +81 -0
- package/templates/.claude/skills/planning/references/research-phase.md +62 -0
- package/templates/.claude/skills/planning/references/solution-design.md +66 -0
- package/templates/.claude/skills/quality-assurance/SKILL.md +79 -0
- package/templates/.claude/skills/quality-assurance/references/review-checklist.md +72 -0
- package/templates/.claude/skills/quality-assurance/references/security-checklist.md +70 -0
- package/templates/.claude/skills/quality-assurance/references/testing-strategy.md +85 -0
- package/templates/.claude/statusline.sh +126 -0
- package/templates/.claude/workflows/development-rules.md +97 -0
- package/templates/.claude/workflows/orchestration-protocol.md +194 -0
- package/templates/.mcp.json.example +36 -0
- package/templates/CLAUDE.md +409 -0
- package/templates/README.md +331 -0
- package/templates/ai_context/codebase/.gitkeep +0 -0
- package/templates/ai_context/memory/active.md +15 -0
- package/templates/ai_context/memory/decisions.md +18 -0
- package/templates/ai_context/memory/learning.md +22 -0
- package/templates/ai_context/plans/.gitkeep +0 -0
- package/templates/ai_context/reports/.gitkeep +0 -0
- package/templates/docs/user-guide-th.md +454 -0
- package/templates/docs/user-guide.md +595 -0
|
@@ -0,0 +1,595 @@
|
|
|
1
|
+
# AI Sprint User Guide
|
|
2
|
+
|
|
3
|
+
Complete guide to using the autonomous development framework with Claude Code.
|
|
4
|
+
|
|
5
|
+
## Table of Contents
|
|
6
|
+
|
|
7
|
+
1. [Getting Started](#getting-started)
|
|
8
|
+
2. [Workflow Tutorials](#workflow-tutorials)
|
|
9
|
+
3. [Command Reference](#command-reference)
|
|
10
|
+
4. [MCP Tools Setup](#mcp-tools-setup)
|
|
11
|
+
5. [Best Practices](#best-practices)
|
|
12
|
+
6. [Troubleshooting](#troubleshooting)
|
|
13
|
+
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
## Getting Started
|
|
17
|
+
|
|
18
|
+
### Prerequisites
|
|
19
|
+
|
|
20
|
+
- Claude Code CLI installed
|
|
21
|
+
- Node.js 18+
|
|
22
|
+
- Python 3.8+ (optional, for security scanning)
|
|
23
|
+
|
|
24
|
+
### First Steps After Installation
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
# 1. Start Claude Code
|
|
28
|
+
claude
|
|
29
|
+
|
|
30
|
+
# 2. Try the /auto command for full automation
|
|
31
|
+
/auto "create a hello world API endpoint"
|
|
32
|
+
|
|
33
|
+
# 3. Or step-by-step approach
|
|
34
|
+
/plan "create REST API endpoint"
|
|
35
|
+
/code "implement the plan"
|
|
36
|
+
/test
|
|
37
|
+
/validate
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
### Project Structure
|
|
41
|
+
|
|
42
|
+
After installation, your project has:
|
|
43
|
+
|
|
44
|
+
```
|
|
45
|
+
your-project/
|
|
46
|
+
├── .claude/
|
|
47
|
+
│ ├── agents/ # 9 AI agents
|
|
48
|
+
│ ├── commands/ # 10 slash commands
|
|
49
|
+
│ ├── workflows/ # Development rules
|
|
50
|
+
│ └── settings.json # Configuration
|
|
51
|
+
├── ai_context/
|
|
52
|
+
│ ├── plans/ # Implementation plans
|
|
53
|
+
│ ├── reports/ # Agent outputs
|
|
54
|
+
│ └── memory/ # Learning system
|
|
55
|
+
├── docs/ # This guide
|
|
56
|
+
├── CLAUDE.md # Framework instructions
|
|
57
|
+
└── .mcp.json.example # MCP configuration template
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
---
|
|
61
|
+
|
|
62
|
+
## Workflow Tutorials
|
|
63
|
+
|
|
64
|
+
### Tutorial 1: Building a New Feature (Full Auto)
|
|
65
|
+
|
|
66
|
+
The simplest way - let the framework handle everything:
|
|
67
|
+
|
|
68
|
+
```bash
|
|
69
|
+
/auto "implement user registration with email and password"
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
This automatically runs: plan → code → test → review → security → docs
|
|
73
|
+
|
|
74
|
+
**When to use:** New features, prototypes, straightforward implementations.
|
|
75
|
+
|
|
76
|
+
### Tutorial 2: Building a Feature (Step-by-Step)
|
|
77
|
+
|
|
78
|
+
For more control over each phase:
|
|
79
|
+
|
|
80
|
+
```bash
|
|
81
|
+
# Step 1: Create the plan
|
|
82
|
+
/plan "implement user registration with email verification"
|
|
83
|
+
# Review the plan in ai_context/plans/
|
|
84
|
+
|
|
85
|
+
# Step 2: Generate code
|
|
86
|
+
/code "implement the registration feature from the plan"
|
|
87
|
+
|
|
88
|
+
# Step 3: Generate and run tests
|
|
89
|
+
/test
|
|
90
|
+
|
|
91
|
+
# Step 4: Review code quality
|
|
92
|
+
/review
|
|
93
|
+
|
|
94
|
+
# Step 5: Security scan
|
|
95
|
+
/secure
|
|
96
|
+
|
|
97
|
+
# Step 6: Generate documentation
|
|
98
|
+
/docs
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
**When to use:** Complex features, learning the framework, when you need review at each step.
|
|
102
|
+
|
|
103
|
+
### Tutorial 3: Fixing a Bug
|
|
104
|
+
|
|
105
|
+
```bash
|
|
106
|
+
# Step 1: Investigate the issue
|
|
107
|
+
/debug "users getting 500 error when submitting registration form"
|
|
108
|
+
# Review the analysis in ai_context/reports/
|
|
109
|
+
|
|
110
|
+
# Step 2: Implement the fix
|
|
111
|
+
/code "fix the registration error based on debug analysis"
|
|
112
|
+
|
|
113
|
+
# Step 3: Verify fix
|
|
114
|
+
/test
|
|
115
|
+
/validate
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
### Tutorial 4: Security Audit
|
|
119
|
+
|
|
120
|
+
```bash
|
|
121
|
+
# Scan entire codebase
|
|
122
|
+
/secure
|
|
123
|
+
|
|
124
|
+
# Scan specific directory
|
|
125
|
+
/secure src/auth/
|
|
126
|
+
|
|
127
|
+
# Review findings in ai_context/reports/security-*.md
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
### Tutorial 5: Pre-Commit Validation
|
|
131
|
+
|
|
132
|
+
Always run before pushing code:
|
|
133
|
+
|
|
134
|
+
```bash
|
|
135
|
+
/validate
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
This runs: tests + code review + security scan. Blocks if:
|
|
139
|
+
- Tests fail
|
|
140
|
+
- Coverage < 80%
|
|
141
|
+
- Security issues found
|
|
142
|
+
|
|
143
|
+
### Tutorial 6: Adding to Existing Project
|
|
144
|
+
|
|
145
|
+
```bash
|
|
146
|
+
# Install framework
|
|
147
|
+
npx ai-sprint init
|
|
148
|
+
|
|
149
|
+
# Scan existing code for issues
|
|
150
|
+
/secure
|
|
151
|
+
|
|
152
|
+
# Review code quality
|
|
153
|
+
/review
|
|
154
|
+
|
|
155
|
+
# Generate missing documentation
|
|
156
|
+
/docs
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
---
|
|
160
|
+
|
|
161
|
+
## Command Reference
|
|
162
|
+
|
|
163
|
+
### /plan - Architecture & Planning
|
|
164
|
+
|
|
165
|
+
Creates implementation plans with architecture decisions.
|
|
166
|
+
|
|
167
|
+
```bash
|
|
168
|
+
# Basic usage
|
|
169
|
+
/plan "implement feature description"
|
|
170
|
+
|
|
171
|
+
# Examples
|
|
172
|
+
/plan "add OAuth2 authentication with Google and GitHub"
|
|
173
|
+
/plan "create microservices architecture for order processing"
|
|
174
|
+
/plan "implement real-time notifications using WebSockets"
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
**Output:** `ai_context/plans/{timestamp}-{feature}/plan.md`
|
|
178
|
+
|
|
179
|
+
**Best for:** New features, architectural changes, complex implementations.
|
|
180
|
+
|
|
181
|
+
---
|
|
182
|
+
|
|
183
|
+
### /code - Code Generation
|
|
184
|
+
|
|
185
|
+
Generates or refactors code based on plans or descriptions.
|
|
186
|
+
|
|
187
|
+
```bash
|
|
188
|
+
# Basic usage
|
|
189
|
+
/code "what to implement"
|
|
190
|
+
|
|
191
|
+
# Examples
|
|
192
|
+
/code "implement the authentication plan"
|
|
193
|
+
/code "refactor the user service to use dependency injection"
|
|
194
|
+
/code "add input validation to all API endpoints"
|
|
195
|
+
```
|
|
196
|
+
|
|
197
|
+
**Best for:** Implementation, refactoring, adding functionality.
|
|
198
|
+
|
|
199
|
+
---
|
|
200
|
+
|
|
201
|
+
### /test - Testing
|
|
202
|
+
|
|
203
|
+
Generates tests and runs them with coverage.
|
|
204
|
+
|
|
205
|
+
```bash
|
|
206
|
+
# Basic usage
|
|
207
|
+
/test
|
|
208
|
+
|
|
209
|
+
# With specific focus
|
|
210
|
+
/test "focus on edge cases for user registration"
|
|
211
|
+
/test "add integration tests for payment API"
|
|
212
|
+
```
|
|
213
|
+
|
|
214
|
+
**Output:** `ai_context/reports/test-*.md`
|
|
215
|
+
|
|
216
|
+
**Requirements:** 80%+ coverage required.
|
|
217
|
+
|
|
218
|
+
---
|
|
219
|
+
|
|
220
|
+
### /review - Code Review
|
|
221
|
+
|
|
222
|
+
Analyzes code quality and best practices.
|
|
223
|
+
|
|
224
|
+
```bash
|
|
225
|
+
# Review all recent changes
|
|
226
|
+
/review
|
|
227
|
+
|
|
228
|
+
# Review specific files or directories
|
|
229
|
+
/review src/services/
|
|
230
|
+
/review src/auth/login.ts
|
|
231
|
+
```
|
|
232
|
+
|
|
233
|
+
**Output:** `ai_context/reports/review-*.md`
|
|
234
|
+
|
|
235
|
+
**Checks:**
|
|
236
|
+
- Code quality and patterns
|
|
237
|
+
- Error handling
|
|
238
|
+
- Performance issues
|
|
239
|
+
- Security concerns
|
|
240
|
+
- Documentation gaps
|
|
241
|
+
|
|
242
|
+
---
|
|
243
|
+
|
|
244
|
+
### /secure - Security Scanning
|
|
245
|
+
|
|
246
|
+
Comprehensive security analysis.
|
|
247
|
+
|
|
248
|
+
```bash
|
|
249
|
+
# Scan entire project
|
|
250
|
+
/secure
|
|
251
|
+
|
|
252
|
+
# Scan specific directory
|
|
253
|
+
/secure src/
|
|
254
|
+
/secure src/auth/
|
|
255
|
+
```
|
|
256
|
+
|
|
257
|
+
**Output:** `ai_context/reports/security-*.md`
|
|
258
|
+
|
|
259
|
+
**Scans:**
|
|
260
|
+
- SAST (static analysis)
|
|
261
|
+
- Secret detection
|
|
262
|
+
- Dependency vulnerabilities
|
|
263
|
+
- OWASP Top 10 compliance
|
|
264
|
+
|
|
265
|
+
---
|
|
266
|
+
|
|
267
|
+
### /deploy - CI/CD Setup
|
|
268
|
+
|
|
269
|
+
Configures deployment pipelines.
|
|
270
|
+
|
|
271
|
+
```bash
|
|
272
|
+
# Basic setup
|
|
273
|
+
/deploy
|
|
274
|
+
|
|
275
|
+
# Platform-specific
|
|
276
|
+
/deploy --platform github
|
|
277
|
+
/deploy --platform gitlab
|
|
278
|
+
/deploy --platform azure
|
|
279
|
+
```
|
|
280
|
+
|
|
281
|
+
**Creates:** CI/CD configuration files for your platform.
|
|
282
|
+
|
|
283
|
+
---
|
|
284
|
+
|
|
285
|
+
### /docs - Documentation
|
|
286
|
+
|
|
287
|
+
Generates technical documentation.
|
|
288
|
+
|
|
289
|
+
```bash
|
|
290
|
+
# Generate all docs
|
|
291
|
+
/docs
|
|
292
|
+
|
|
293
|
+
# Focus on specific areas
|
|
294
|
+
/docs "API documentation"
|
|
295
|
+
/docs "update README with new features"
|
|
296
|
+
```
|
|
297
|
+
|
|
298
|
+
**Output:** `ai_context/docs/` and project `docs/`
|
|
299
|
+
|
|
300
|
+
---
|
|
301
|
+
|
|
302
|
+
### /debug - Debugging
|
|
303
|
+
|
|
304
|
+
Investigates issues and bugs.
|
|
305
|
+
|
|
306
|
+
```bash
|
|
307
|
+
# Describe the problem
|
|
308
|
+
/debug "500 error when user submits form"
|
|
309
|
+
/debug "memory leak in background job processor"
|
|
310
|
+
/debug "slow API response times on /users endpoint"
|
|
311
|
+
```
|
|
312
|
+
|
|
313
|
+
**Output:** `ai_context/reports/debug-*.md`
|
|
314
|
+
|
|
315
|
+
**Provides:**
|
|
316
|
+
- Root cause analysis
|
|
317
|
+
- Code path investigation
|
|
318
|
+
- Fix recommendations
|
|
319
|
+
|
|
320
|
+
---
|
|
321
|
+
|
|
322
|
+
### /validate - Pre-Commit Gate
|
|
323
|
+
|
|
324
|
+
Runs comprehensive validation before commit.
|
|
325
|
+
|
|
326
|
+
```bash
|
|
327
|
+
/validate
|
|
328
|
+
```
|
|
329
|
+
|
|
330
|
+
**Runs:** tests + review + security
|
|
331
|
+
|
|
332
|
+
**Blocks if:**
|
|
333
|
+
- Any tests fail
|
|
334
|
+
- Coverage < 80%
|
|
335
|
+
- Critical security issues
|
|
336
|
+
|
|
337
|
+
**Always run before pushing code.**
|
|
338
|
+
|
|
339
|
+
---
|
|
340
|
+
|
|
341
|
+
### /auto - Full Automation
|
|
342
|
+
|
|
343
|
+
Complete development cycle in one command.
|
|
344
|
+
|
|
345
|
+
```bash
|
|
346
|
+
/auto "feature description"
|
|
347
|
+
|
|
348
|
+
# Examples
|
|
349
|
+
/auto "implement shopping cart with add, remove, checkout"
|
|
350
|
+
/auto "create admin dashboard for user management"
|
|
351
|
+
/auto "add rate limiting to all API endpoints"
|
|
352
|
+
```
|
|
353
|
+
|
|
354
|
+
**Runs:** plan → code → test → review → security → docs
|
|
355
|
+
|
|
356
|
+
**Best for:** New features with clear requirements.
|
|
357
|
+
|
|
358
|
+
---
|
|
359
|
+
|
|
360
|
+
## MCP Tools Setup
|
|
361
|
+
|
|
362
|
+
MCP (Model Context Protocol) servers enhance agent capabilities with external tools.
|
|
363
|
+
|
|
364
|
+
### Quick Setup
|
|
365
|
+
|
|
366
|
+
```bash
|
|
367
|
+
# 1. Copy the example config
|
|
368
|
+
cp .mcp.json.example .mcp.json
|
|
369
|
+
|
|
370
|
+
# 2. Edit .mcp.json and add your API keys
|
|
371
|
+
```
|
|
372
|
+
|
|
373
|
+
### Available MCP Tools
|
|
374
|
+
|
|
375
|
+
| Tool | Purpose | Get API Key |
|
|
376
|
+
|------|---------|-------------|
|
|
377
|
+
| **exa** | Clean web search (fewer tokens) | https://exa.ai |
|
|
378
|
+
| **context7** | Library documentation | https://context7.com |
|
|
379
|
+
| **chrome-devtools** | Browser debugging | No key needed |
|
|
380
|
+
| **sequential-thinking** | Complex reasoning | No key needed |
|
|
381
|
+
| **time** | Timezone operations | No key needed |
|
|
382
|
+
| **human-mcp** | Image/video/audio AI | https://makersuite.google.com |
|
|
383
|
+
|
|
384
|
+
### Configuration Example
|
|
385
|
+
|
|
386
|
+
Edit `.mcp.json`:
|
|
387
|
+
|
|
388
|
+
```json
|
|
389
|
+
{
|
|
390
|
+
"mcpServers": {
|
|
391
|
+
"exa": {
|
|
392
|
+
"command": "npx",
|
|
393
|
+
"args": ["-y", "exa-mcp-server"],
|
|
394
|
+
"env": {
|
|
395
|
+
"EXA_API_KEY": "your-actual-exa-key"
|
|
396
|
+
}
|
|
397
|
+
},
|
|
398
|
+
"context7": {
|
|
399
|
+
"command": "npx",
|
|
400
|
+
"args": ["-y", "@upstash/context7-mcp", "--api-key", "your-actual-context7-key"]
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
```
|
|
405
|
+
|
|
406
|
+
### Which Agents Use Which Tools?
|
|
407
|
+
|
|
408
|
+
| Agent | Primary MCP Tools | Use Case |
|
|
409
|
+
|-------|-------------------|----------|
|
|
410
|
+
| researcher | exa, context7 | Web search, library docs |
|
|
411
|
+
| planner | exa, context7, sequential-thinking | Research, complex planning |
|
|
412
|
+
| security | exa, sequential-thinking | CVE lookup, vulnerability analysis |
|
|
413
|
+
| tester | chrome-devtools | Browser testing |
|
|
414
|
+
| debugger | chrome-devtools, sequential-thinking | Browser debugging, root cause |
|
|
415
|
+
| reviewer | sequential-thinking | Complex code analysis |
|
|
416
|
+
| docs | context7 | Library documentation |
|
|
417
|
+
| devops | time | Timestamps, scheduling |
|
|
418
|
+
| implementer | context7, sequential-thinking | Docs lookup, complex logic |
|
|
419
|
+
|
|
420
|
+
### Benefits of MCP Tools
|
|
421
|
+
|
|
422
|
+
**Exa Search:**
|
|
423
|
+
- Returns clean, structured results
|
|
424
|
+
- Uses fewer tokens than raw HTML parsing
|
|
425
|
+
- Better for technical research
|
|
426
|
+
|
|
427
|
+
**Context7:**
|
|
428
|
+
- Up-to-date library documentation
|
|
429
|
+
- API references and examples
|
|
430
|
+
- Version-specific information
|
|
431
|
+
|
|
432
|
+
**Chrome DevTools:**
|
|
433
|
+
- Real browser debugging
|
|
434
|
+
- DOM inspection
|
|
435
|
+
- Network monitoring
|
|
436
|
+
|
|
437
|
+
---
|
|
438
|
+
|
|
439
|
+
## Best Practices
|
|
440
|
+
|
|
441
|
+
### 1. Start with /plan
|
|
442
|
+
|
|
443
|
+
Always plan before coding for complex features:
|
|
444
|
+
|
|
445
|
+
```bash
|
|
446
|
+
/plan "describe your feature"
|
|
447
|
+
# Review the plan
|
|
448
|
+
/code "implement the plan"
|
|
449
|
+
```
|
|
450
|
+
|
|
451
|
+
### 2. Use /validate Before Every Commit
|
|
452
|
+
|
|
453
|
+
```bash
|
|
454
|
+
# Before git commit
|
|
455
|
+
/validate
|
|
456
|
+
git add .
|
|
457
|
+
git commit -m "feat: your feature"
|
|
458
|
+
```
|
|
459
|
+
|
|
460
|
+
### 3. Check Memory for Context
|
|
461
|
+
|
|
462
|
+
The framework learns from past sessions:
|
|
463
|
+
|
|
464
|
+
```bash
|
|
465
|
+
# View lessons learned
|
|
466
|
+
cat ai_context/memory/learning.md
|
|
467
|
+
|
|
468
|
+
# View past decisions
|
|
469
|
+
cat ai_context/memory/decisions.md
|
|
470
|
+
```
|
|
471
|
+
|
|
472
|
+
### 4. Review Security Reports
|
|
473
|
+
|
|
474
|
+
After every `/secure` scan:
|
|
475
|
+
|
|
476
|
+
```bash
|
|
477
|
+
# Check reports
|
|
478
|
+
ls ai_context/reports/security-*.md
|
|
479
|
+
cat ai_context/reports/security-latest.md
|
|
480
|
+
```
|
|
481
|
+
|
|
482
|
+
### 5. Configure MCP Tools
|
|
483
|
+
|
|
484
|
+
Set up at least:
|
|
485
|
+
- **exa** - For better web search
|
|
486
|
+
- **context7** - For library documentation
|
|
487
|
+
|
|
488
|
+
### 6. Use /auto for Simple Features
|
|
489
|
+
|
|
490
|
+
For straightforward features, use full automation:
|
|
491
|
+
|
|
492
|
+
```bash
|
|
493
|
+
/auto "add logout button to navbar"
|
|
494
|
+
```
|
|
495
|
+
|
|
496
|
+
### 7. Use Step-by-Step for Complex Features
|
|
497
|
+
|
|
498
|
+
For complex features, maintain control:
|
|
499
|
+
|
|
500
|
+
```bash
|
|
501
|
+
/plan "complex feature"
|
|
502
|
+
# Review plan
|
|
503
|
+
/code "implement phase 1"
|
|
504
|
+
/test
|
|
505
|
+
/code "implement phase 2"
|
|
506
|
+
/test
|
|
507
|
+
/validate
|
|
508
|
+
```
|
|
509
|
+
|
|
510
|
+
---
|
|
511
|
+
|
|
512
|
+
## Troubleshooting
|
|
513
|
+
|
|
514
|
+
### Tests Failing
|
|
515
|
+
|
|
516
|
+
```bash
|
|
517
|
+
# Run tests to see errors
|
|
518
|
+
/test
|
|
519
|
+
|
|
520
|
+
# Debug specific failures
|
|
521
|
+
/debug "test X is failing with error Y"
|
|
522
|
+
```
|
|
523
|
+
|
|
524
|
+
### Low Coverage
|
|
525
|
+
|
|
526
|
+
```bash
|
|
527
|
+
# Generate more tests
|
|
528
|
+
/test "increase coverage for uncovered functions"
|
|
529
|
+
```
|
|
530
|
+
|
|
531
|
+
### Security Issues Found
|
|
532
|
+
|
|
533
|
+
```bash
|
|
534
|
+
# View the report
|
|
535
|
+
cat ai_context/reports/security-*.md
|
|
536
|
+
|
|
537
|
+
# Fix issues
|
|
538
|
+
/code "fix security issues from the security scan"
|
|
539
|
+
|
|
540
|
+
# Rescan
|
|
541
|
+
/secure
|
|
542
|
+
```
|
|
543
|
+
|
|
544
|
+
### Agent Not Responding
|
|
545
|
+
|
|
546
|
+
```bash
|
|
547
|
+
# Restart Claude Code
|
|
548
|
+
exit
|
|
549
|
+
claude
|
|
550
|
+
```
|
|
551
|
+
|
|
552
|
+
### MCP Tools Not Working
|
|
553
|
+
|
|
554
|
+
```bash
|
|
555
|
+
# Verify .mcp.json exists
|
|
556
|
+
cat .mcp.json
|
|
557
|
+
|
|
558
|
+
# Check for valid API keys (not placeholders)
|
|
559
|
+
grep "YOUR_" .mcp.json # Should return nothing
|
|
560
|
+
```
|
|
561
|
+
|
|
562
|
+
### Commands Not Found
|
|
563
|
+
|
|
564
|
+
Ensure you're in a project with `.claude/` directory:
|
|
565
|
+
|
|
566
|
+
```bash
|
|
567
|
+
ls .claude/commands/
|
|
568
|
+
```
|
|
569
|
+
|
|
570
|
+
If missing, reinstall:
|
|
571
|
+
|
|
572
|
+
```bash
|
|
573
|
+
npx ai-sprint init --force
|
|
574
|
+
```
|
|
575
|
+
|
|
576
|
+
---
|
|
577
|
+
|
|
578
|
+
## Quick Reference
|
|
579
|
+
|
|
580
|
+
| Task | Command |
|
|
581
|
+
|------|---------|
|
|
582
|
+
| Full automation | `/auto "feature"` |
|
|
583
|
+
| Plan feature | `/plan "feature"` |
|
|
584
|
+
| Write code | `/code "what to build"` |
|
|
585
|
+
| Run tests | `/test` |
|
|
586
|
+
| Code review | `/review` |
|
|
587
|
+
| Security scan | `/secure` |
|
|
588
|
+
| Setup CI/CD | `/deploy` |
|
|
589
|
+
| Generate docs | `/docs` |
|
|
590
|
+
| Debug issue | `/debug "problem"` |
|
|
591
|
+
| Pre-commit check | `/validate` |
|
|
592
|
+
|
|
593
|
+
---
|
|
594
|
+
|
|
595
|
+
**Need help?** Check `CLAUDE.md` for detailed framework instructions.
|