kiro-spec-engine 1.3.0 → 1.4.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/CHANGELOG.md +85 -0
- package/README.md +228 -367
- package/README.zh.md +0 -330
- package/docs/README.md +223 -0
- package/docs/command-reference.md +252 -0
- package/docs/examples/add-export-command/design.md +194 -0
- package/docs/examples/add-export-command/requirements.md +110 -0
- package/docs/examples/add-export-command/tasks.md +88 -0
- package/docs/examples/add-rest-api/design.md +855 -0
- package/docs/examples/add-rest-api/requirements.md +323 -0
- package/docs/examples/add-rest-api/tasks.md +355 -0
- package/docs/examples/add-user-dashboard/design.md +192 -0
- package/docs/examples/add-user-dashboard/requirements.md +143 -0
- package/docs/examples/add-user-dashboard/tasks.md +91 -0
- package/docs/faq.md +696 -0
- package/docs/integration-modes.md +529 -0
- package/docs/integration-philosophy.md +313 -0
- package/docs/quick-start-with-ai-tools.md +374 -0
- package/docs/quick-start.md +711 -0
- package/docs/spec-workflow.md +453 -0
- package/docs/tools/claude-guide.md +653 -0
- package/docs/tools/cursor-guide.md +705 -0
- package/docs/tools/generic-guide.md +445 -0
- package/docs/tools/kiro-guide.md +308 -0
- package/docs/tools/vscode-guide.md +444 -0
- package/docs/tools/windsurf-guide.md +390 -0
- package/docs/troubleshooting.md +795 -0
- package/docs/zh/README.md +275 -0
- package/docs/zh/quick-start.md +711 -0
- package/docs/zh/tools/claude-guide.md +348 -0
- package/docs/zh/tools/cursor-guide.md +280 -0
- package/docs/zh/tools/generic-guide.md +498 -0
- package/docs/zh/tools/kiro-guide.md +342 -0
- package/docs/zh/tools/vscode-guide.md +448 -0
- package/docs/zh/tools/windsurf-guide.md +377 -0
- package/package.json +1 -1
|
@@ -0,0 +1,653 @@
|
|
|
1
|
+
# Using kse with Claude Code
|
|
2
|
+
|
|
3
|
+
> Complete guide to integrating kse with Claude Code for AI-assisted development
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
**Version**: 1.0.0
|
|
8
|
+
**Last Updated**: 2026-01-23
|
|
9
|
+
**Tool**: Claude Code (Anthropic)
|
|
10
|
+
**Integration Mode**: Manual Export
|
|
11
|
+
**Estimated Setup Time**: 3 minutes
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
## Overview
|
|
16
|
+
|
|
17
|
+
**Claude Code** is Anthropic's AI coding assistant with a large context window (200K tokens), excellent code understanding, and conversational development capabilities.
|
|
18
|
+
|
|
19
|
+
**kse integration with Claude** uses the **Manual Export** mode, where you export Spec context and paste it into Claude conversations.
|
|
20
|
+
|
|
21
|
+
### Why Use kse with Claude?
|
|
22
|
+
|
|
23
|
+
- ✅ **Large context window** - Can handle entire Specs at once
|
|
24
|
+
- ✅ **Excellent understanding** - Claude deeply understands requirements and design
|
|
25
|
+
- ✅ **Conversational workflow** - Natural back-and-forth development
|
|
26
|
+
- ✅ **Multi-turn implementation** - Complete features across multiple messages
|
|
27
|
+
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
## Integration Mode
|
|
31
|
+
|
|
32
|
+
**Mode:** Manual Export
|
|
33
|
+
|
|
34
|
+
**How it works:**
|
|
35
|
+
1. Create Specs in kse (requirements, design, tasks)
|
|
36
|
+
2. Export context: `kse context export spec-name`
|
|
37
|
+
3. Copy entire context and paste into Claude conversation
|
|
38
|
+
4. Claude implements features based on your Spec
|
|
39
|
+
5. Update task status manually in tasks.md
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
43
|
+
## Setup
|
|
44
|
+
|
|
45
|
+
### Prerequisites
|
|
46
|
+
|
|
47
|
+
- **Claude Code access** ([Get access](https://claude.ai/))
|
|
48
|
+
- **kse installed** globally (`npm install -g kiro-spec-engine`)
|
|
49
|
+
- **Project adopted** by kse (`kse adopt`)
|
|
50
|
+
|
|
51
|
+
### Step 1: Create Shell Alias (Recommended)
|
|
52
|
+
|
|
53
|
+
Add to your `~/.bashrc` or `~/.zshrc`:
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
# Quick export and copy to clipboard
|
|
57
|
+
alias kse-clip='kse context export $1 && cat .kiro/specs/$1/context-export.md | pbcopy && echo "✅ Context copied to clipboard"'
|
|
58
|
+
|
|
59
|
+
# Windows PowerShell (add to $PROFILE)
|
|
60
|
+
function kse-clip { kse context export $args[0]; Get-Content ".kiro\specs\$($args[0])\context-export.md" | Set-Clipboard; Write-Host "✅ Context copied to clipboard" }
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
---
|
|
64
|
+
|
|
65
|
+
## Workflow
|
|
66
|
+
|
|
67
|
+
### Method 1: Full Spec Context (Recommended) ⭐
|
|
68
|
+
|
|
69
|
+
**Best for:** Implementing complete features with multiple tasks
|
|
70
|
+
|
|
71
|
+
**Step 1: Export and copy context**
|
|
72
|
+
```bash
|
|
73
|
+
kse context export 01-00-user-login
|
|
74
|
+
kse-clip 01-00-user-login # Or manually copy
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
**Step 2: Start new Claude conversation**
|
|
78
|
+
Open Claude Code and start a fresh conversation for each feature.
|
|
79
|
+
|
|
80
|
+
**Step 3: Provide context**
|
|
81
|
+
```
|
|
82
|
+
I'm working on a user login feature. Here's the complete Spec:
|
|
83
|
+
|
|
84
|
+
[Paste entire context from context-export.md]
|
|
85
|
+
|
|
86
|
+
Please help me implement this feature following the design document exactly.
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
**Step 4: Implement tasks iteratively**
|
|
90
|
+
```
|
|
91
|
+
You: "Let's start with task 1.1: Set up project dependencies"
|
|
92
|
+
|
|
93
|
+
Claude: [Provides installation commands and setup instructions]
|
|
94
|
+
|
|
95
|
+
You: "Great! Now task 1.2: Create User model and database schema"
|
|
96
|
+
|
|
97
|
+
Claude: [Generates User model code and migration]
|
|
98
|
+
|
|
99
|
+
You: "Perfect! Now task 2.1: Implement ValidationService"
|
|
100
|
+
|
|
101
|
+
Claude: [Generates ValidationService with all methods]
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
**Step 5: Update tasks as you complete them**
|
|
105
|
+
Edit `.kiro/specs/01-00-user-login/tasks.md`:
|
|
106
|
+
```markdown
|
|
107
|
+
- [x] 1.1 Set up project dependencies
|
|
108
|
+
- [x] 1.2 Create User model and database schema
|
|
109
|
+
- [x] 2.1 Implement ValidationService
|
|
110
|
+
- [ ] 2.2 Implement AuthService
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
### Method 2: Task-Specific Context
|
|
114
|
+
|
|
115
|
+
**Best for:** Large Specs or focused implementation
|
|
116
|
+
|
|
117
|
+
**Step 1: Generate task-specific prompt**
|
|
118
|
+
```bash
|
|
119
|
+
kse prompt generate 01-00-user-login 2.1 --tool=claude-code
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
**Step 2: Copy and paste into Claude**
|
|
123
|
+
```
|
|
124
|
+
[Paste task-specific prompt]
|
|
125
|
+
|
|
126
|
+
Please implement this task following the design document.
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
---
|
|
130
|
+
|
|
131
|
+
## Example Workflow
|
|
132
|
+
|
|
133
|
+
### Complete Feature Implementation
|
|
134
|
+
|
|
135
|
+
**Scenario:** Implement user login feature from scratch
|
|
136
|
+
|
|
137
|
+
**1. Create and prepare Spec**
|
|
138
|
+
```bash
|
|
139
|
+
kse create-spec 01-00-user-login
|
|
140
|
+
# Edit requirements.md, design.md, tasks.md
|
|
141
|
+
kse-clip 01-00-user-login
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
**2. Start Claude conversation**
|
|
145
|
+
```
|
|
146
|
+
I'm implementing a user login feature. Here's the complete Spec:
|
|
147
|
+
|
|
148
|
+
[Paste context]
|
|
149
|
+
|
|
150
|
+
This Spec includes:
|
|
151
|
+
- Requirements: What we're building and why
|
|
152
|
+
- Design: Architecture, APIs, components
|
|
153
|
+
- Tasks: Step-by-step implementation plan
|
|
154
|
+
|
|
155
|
+
Please help me implement this following the design exactly.
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
**3. Claude's response**
|
|
159
|
+
```
|
|
160
|
+
I'll help you implement the user login feature according to your Spec.
|
|
161
|
+
I can see you have a well-structured design with:
|
|
162
|
+
- AuthController for handling requests
|
|
163
|
+
- AuthService for business logic
|
|
164
|
+
- ValidationService for input validation
|
|
165
|
+
- UserRepository for database access
|
|
166
|
+
|
|
167
|
+
Let's start with task 1.1: Setting up project dependencies.
|
|
168
|
+
|
|
169
|
+
[Provides npm install commands]
|
|
170
|
+
|
|
171
|
+
Would you like me to proceed with the next task?
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
**4. Continue implementation**
|
|
175
|
+
```
|
|
176
|
+
You: "Yes, let's do task 1.2: Create User model and database schema"
|
|
177
|
+
|
|
178
|
+
Claude: [Generates User model code]
|
|
179
|
+
|
|
180
|
+
You: "Excellent! Can you also generate the database migration?"
|
|
181
|
+
|
|
182
|
+
Claude: [Generates migration file]
|
|
183
|
+
|
|
184
|
+
You: "Perfect! Now task 2.1: Implement ValidationService"
|
|
185
|
+
|
|
186
|
+
Claude: [Generates ValidationService with all methods and tests]
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
**5. Handle edge cases**
|
|
190
|
+
```
|
|
191
|
+
You: "The design mentions rate limiting. Can you add that to the AuthController?"
|
|
192
|
+
|
|
193
|
+
Claude: [Adds rate limiting middleware based on design specs]
|
|
194
|
+
|
|
195
|
+
You: "What about error handling for database connection failures?"
|
|
196
|
+
|
|
197
|
+
Claude: [Adds comprehensive error handling]
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
**6. Review and refine**
|
|
201
|
+
```
|
|
202
|
+
You: "Can you review the AuthService implementation against the design document?"
|
|
203
|
+
|
|
204
|
+
Claude: [Reviews code, suggests improvements]
|
|
205
|
+
|
|
206
|
+
You: "Add JSDoc comments to all public methods"
|
|
207
|
+
|
|
208
|
+
Claude: [Adds documentation]
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
---
|
|
212
|
+
|
|
213
|
+
## Tips & Best Practices
|
|
214
|
+
|
|
215
|
+
### 1. Use Fresh Conversations for Each Feature
|
|
216
|
+
|
|
217
|
+
**Why:** Claude maintains context throughout a conversation. Starting fresh ensures clean context.
|
|
218
|
+
|
|
219
|
+
**Do:**
|
|
220
|
+
```
|
|
221
|
+
Conversation 1: User Login Feature
|
|
222
|
+
Conversation 2: Password Reset Feature
|
|
223
|
+
Conversation 3: User Profile Feature
|
|
224
|
+
```
|
|
225
|
+
|
|
226
|
+
**Don't:**
|
|
227
|
+
```
|
|
228
|
+
Single conversation: All features mixed together
|
|
229
|
+
```
|
|
230
|
+
|
|
231
|
+
### 2. Provide Complete Context Upfront
|
|
232
|
+
|
|
233
|
+
**Good:**
|
|
234
|
+
```
|
|
235
|
+
Here's the complete Spec for user login:
|
|
236
|
+
|
|
237
|
+
[Paste entire context-export.md]
|
|
238
|
+
|
|
239
|
+
Let's implement task 1.1 first.
|
|
240
|
+
```
|
|
241
|
+
|
|
242
|
+
**Not as good:**
|
|
243
|
+
```
|
|
244
|
+
I need to implement user login.
|
|
245
|
+
[No context provided]
|
|
246
|
+
```
|
|
247
|
+
|
|
248
|
+
### 3. Reference the Design Document
|
|
249
|
+
|
|
250
|
+
**When asking for implementation:**
|
|
251
|
+
```
|
|
252
|
+
According to the design document, the AuthService should have three methods:
|
|
253
|
+
1. hashPassword()
|
|
254
|
+
2. authenticate()
|
|
255
|
+
3. generateToken()
|
|
256
|
+
|
|
257
|
+
Please implement these following the specifications exactly.
|
|
258
|
+
```
|
|
259
|
+
|
|
260
|
+
### 4. Implement Incrementally
|
|
261
|
+
|
|
262
|
+
**Good workflow:**
|
|
263
|
+
```
|
|
264
|
+
Task 1.1 → Review → Task 1.2 → Review → Task 2.1 → Review
|
|
265
|
+
```
|
|
266
|
+
|
|
267
|
+
**Avoid:**
|
|
268
|
+
```
|
|
269
|
+
"Implement everything at once"
|
|
270
|
+
```
|
|
271
|
+
|
|
272
|
+
### 5. Ask Claude to Explain Design Decisions
|
|
273
|
+
|
|
274
|
+
```
|
|
275
|
+
You: "Why does the design specify bcrypt with 10 salt rounds?"
|
|
276
|
+
|
|
277
|
+
Claude: [Explains security considerations]
|
|
278
|
+
|
|
279
|
+
You: "What are the trade-offs of using JWT vs sessions?"
|
|
280
|
+
|
|
281
|
+
Claude: [Discusses pros and cons]
|
|
282
|
+
```
|
|
283
|
+
|
|
284
|
+
### 6. Use Claude for Code Review
|
|
285
|
+
|
|
286
|
+
```
|
|
287
|
+
You: "Review this AuthController implementation against the design document. Are there any issues?"
|
|
288
|
+
|
|
289
|
+
Claude: [Provides detailed review with suggestions]
|
|
290
|
+
```
|
|
291
|
+
|
|
292
|
+
### 7. Leverage Claude's Large Context Window
|
|
293
|
+
|
|
294
|
+
**Advantage:** Can handle entire Specs (requirements + design + tasks) in one conversation
|
|
295
|
+
|
|
296
|
+
```
|
|
297
|
+
You can paste:
|
|
298
|
+
- Full requirements.md (5KB)
|
|
299
|
+
- Full design.md (10KB)
|
|
300
|
+
- Full tasks.md (3KB)
|
|
301
|
+
- Additional context (steering rules, coding standards)
|
|
302
|
+
|
|
303
|
+
Total: ~20KB - well within Claude's 200K token limit
|
|
304
|
+
```
|
|
305
|
+
|
|
306
|
+
---
|
|
307
|
+
|
|
308
|
+
## Common Pitfalls
|
|
309
|
+
|
|
310
|
+
### ❌ Pitfall 1: Not Providing Enough Context
|
|
311
|
+
|
|
312
|
+
**Problem:**
|
|
313
|
+
```
|
|
314
|
+
You: "Implement user login"
|
|
315
|
+
Claude: [Makes assumptions, may not match your design]
|
|
316
|
+
```
|
|
317
|
+
|
|
318
|
+
**Solution:**
|
|
319
|
+
```
|
|
320
|
+
You: [Paste complete Spec context]
|
|
321
|
+
"Implement user login following this design exactly"
|
|
322
|
+
```
|
|
323
|
+
|
|
324
|
+
### ❌ Pitfall 2: Mixing Multiple Features in One Conversation
|
|
325
|
+
|
|
326
|
+
**Problem:** Context gets confused, Claude mixes up different features
|
|
327
|
+
|
|
328
|
+
**Solution:** Use separate conversations for each feature/Spec
|
|
329
|
+
|
|
330
|
+
### ❌ Pitfall 3: Not Updating Tasks
|
|
331
|
+
|
|
332
|
+
**Problem:** Lose track of progress
|
|
333
|
+
|
|
334
|
+
**Solution:** Update tasks.md after each completed task
|
|
335
|
+
|
|
336
|
+
### ❌ Pitfall 4: Accepting Code Without Review
|
|
337
|
+
|
|
338
|
+
**Problem:** AI-generated code may have issues
|
|
339
|
+
|
|
340
|
+
**Solution:** Always review code before using it
|
|
341
|
+
|
|
342
|
+
---
|
|
343
|
+
|
|
344
|
+
## Advanced Techniques
|
|
345
|
+
|
|
346
|
+
### 1. Multi-Turn Feature Development
|
|
347
|
+
|
|
348
|
+
**Use Claude's conversation memory:**
|
|
349
|
+
```
|
|
350
|
+
Turn 1: "Implement AuthController"
|
|
351
|
+
Turn 2: "Add error handling to AuthController"
|
|
352
|
+
Turn 3: "Add rate limiting to AuthController"
|
|
353
|
+
Turn 4: "Write tests for AuthController"
|
|
354
|
+
Turn 5: "Refactor AuthController for better testability"
|
|
355
|
+
```
|
|
356
|
+
|
|
357
|
+
Claude remembers previous turns and builds on them.
|
|
358
|
+
|
|
359
|
+
### 2. Design Validation
|
|
360
|
+
|
|
361
|
+
**Before implementation:**
|
|
362
|
+
```
|
|
363
|
+
You: "Review this design document. Are there any issues or improvements you'd suggest?"
|
|
364
|
+
|
|
365
|
+
Claude: [Provides architectural feedback]
|
|
366
|
+
|
|
367
|
+
You: "Good points. Let's update the design to address those concerns."
|
|
368
|
+
```
|
|
369
|
+
|
|
370
|
+
### 3. Test-Driven Development
|
|
371
|
+
|
|
372
|
+
```
|
|
373
|
+
You: "Based on the design, generate comprehensive unit tests for AuthService first"
|
|
374
|
+
|
|
375
|
+
Claude: [Generates tests]
|
|
376
|
+
|
|
377
|
+
You: "Now implement AuthService to make these tests pass"
|
|
378
|
+
|
|
379
|
+
Claude: [Implements code]
|
|
380
|
+
```
|
|
381
|
+
|
|
382
|
+
### 4. Incremental Refactoring
|
|
383
|
+
|
|
384
|
+
```
|
|
385
|
+
You: "The AuthController is getting large. Suggest refactoring options"
|
|
386
|
+
|
|
387
|
+
Claude: [Suggests splitting into smaller components]
|
|
388
|
+
|
|
389
|
+
You: "Let's extract validation logic into a separate middleware"
|
|
390
|
+
|
|
391
|
+
Claude: [Refactors code]
|
|
392
|
+
```
|
|
393
|
+
|
|
394
|
+
### 5. Documentation Generation
|
|
395
|
+
|
|
396
|
+
```
|
|
397
|
+
You: "Generate API documentation for all endpoints in AuthController"
|
|
398
|
+
|
|
399
|
+
Claude: [Creates OpenAPI/Swagger docs]
|
|
400
|
+
|
|
401
|
+
You: "Add JSDoc comments to all methods"
|
|
402
|
+
|
|
403
|
+
Claude: [Adds documentation]
|
|
404
|
+
```
|
|
405
|
+
|
|
406
|
+
---
|
|
407
|
+
|
|
408
|
+
## Example Prompts
|
|
409
|
+
|
|
410
|
+
### Starting Implementation
|
|
411
|
+
```
|
|
412
|
+
I'm implementing a user login feature. Here's the complete Spec:
|
|
413
|
+
|
|
414
|
+
[Paste context-export.md]
|
|
415
|
+
|
|
416
|
+
Key points:
|
|
417
|
+
- Follow the design document exactly
|
|
418
|
+
- Use the specified technology stack (Node.js, Express, bcrypt, JWT)
|
|
419
|
+
- Implement error handling as specified
|
|
420
|
+
- Include all security measures (rate limiting, password hashing)
|
|
421
|
+
|
|
422
|
+
Let's start with task 1.1: "Set up project dependencies"
|
|
423
|
+
```
|
|
424
|
+
|
|
425
|
+
### Implementing a Component
|
|
426
|
+
```
|
|
427
|
+
Based on the design document, implement the AuthService with these methods:
|
|
428
|
+
|
|
429
|
+
1. hashPassword(password: string): Promise<string>
|
|
430
|
+
- Use bcrypt with 10 salt rounds
|
|
431
|
+
- Handle errors appropriately
|
|
432
|
+
|
|
433
|
+
2. authenticate(email: string, password: string): Promise<User | null>
|
|
434
|
+
- Find user by email
|
|
435
|
+
- Compare password hash
|
|
436
|
+
- Return user if valid, null otherwise
|
|
437
|
+
|
|
438
|
+
3. generateToken(user: User): string
|
|
439
|
+
- Create JWT token
|
|
440
|
+
- Include user id and email in payload
|
|
441
|
+
- Set expiration to 24 hours
|
|
442
|
+
|
|
443
|
+
Include comprehensive error handling and JSDoc comments.
|
|
444
|
+
```
|
|
445
|
+
|
|
446
|
+
### Debugging
|
|
447
|
+
```
|
|
448
|
+
I'm getting this error when testing the login endpoint:
|
|
449
|
+
|
|
450
|
+
[Paste error message]
|
|
451
|
+
|
|
452
|
+
Here's the current implementation:
|
|
453
|
+
|
|
454
|
+
[Paste code]
|
|
455
|
+
|
|
456
|
+
According to the design document, it should:
|
|
457
|
+
- Validate inputs
|
|
458
|
+
- Call AuthService.authenticate()
|
|
459
|
+
- Return token on success
|
|
460
|
+
- Return error on failure
|
|
461
|
+
|
|
462
|
+
What's wrong and how do I fix it?
|
|
463
|
+
```
|
|
464
|
+
|
|
465
|
+
### Code Review
|
|
466
|
+
```
|
|
467
|
+
Please review this implementation against the design document:
|
|
468
|
+
|
|
469
|
+
[Paste code]
|
|
470
|
+
|
|
471
|
+
Check for:
|
|
472
|
+
1. Does it follow the design architecture?
|
|
473
|
+
2. Are all requirements implemented?
|
|
474
|
+
3. Is error handling complete?
|
|
475
|
+
4. Are there any security issues?
|
|
476
|
+
5. Is the code maintainable?
|
|
477
|
+
6. Are there any edge cases we missed?
|
|
478
|
+
```
|
|
479
|
+
|
|
480
|
+
---
|
|
481
|
+
|
|
482
|
+
## Troubleshooting
|
|
483
|
+
|
|
484
|
+
### Issue: Claude doesn't follow the design
|
|
485
|
+
|
|
486
|
+
**Solution 1:** Be more explicit
|
|
487
|
+
```
|
|
488
|
+
"Strictly follow the design document. Do not deviate from:
|
|
489
|
+
- The specified API endpoints
|
|
490
|
+
- The component structure
|
|
491
|
+
- The error handling approach
|
|
492
|
+
- The technology choices"
|
|
493
|
+
```
|
|
494
|
+
|
|
495
|
+
**Solution 2:** Quote the design
|
|
496
|
+
```
|
|
497
|
+
"According to the design document, section 'API Design':
|
|
498
|
+
|
|
499
|
+
POST /api/auth/login
|
|
500
|
+
Request: { email: string, password: string }
|
|
501
|
+
Response: { token: string } or { error: string }
|
|
502
|
+
|
|
503
|
+
Please implement exactly as specified."
|
|
504
|
+
```
|
|
505
|
+
|
|
506
|
+
### Issue: Context too large
|
|
507
|
+
|
|
508
|
+
**Solution:** Use task-specific prompts
|
|
509
|
+
```bash
|
|
510
|
+
kse prompt generate 01-00-user-login 2.1 --tool=claude-code --max-length=10000
|
|
511
|
+
```
|
|
512
|
+
|
|
513
|
+
### Issue: Lost context in long conversation
|
|
514
|
+
|
|
515
|
+
**Solution:** Re-paste context
|
|
516
|
+
```
|
|
517
|
+
"Let me re-provide the Spec context to ensure we're aligned:
|
|
518
|
+
|
|
519
|
+
[Paste context again]
|
|
520
|
+
|
|
521
|
+
Now let's continue with task 3.1..."
|
|
522
|
+
```
|
|
523
|
+
|
|
524
|
+
### Issue: Claude suggests different approach than design
|
|
525
|
+
|
|
526
|
+
**Solution:** Acknowledge but redirect
|
|
527
|
+
```
|
|
528
|
+
"I appreciate the suggestion, but for this project we need to follow the design document exactly. Let's implement it as specified, and we can consider improvements later."
|
|
529
|
+
```
|
|
530
|
+
|
|
531
|
+
---
|
|
532
|
+
|
|
533
|
+
## Integration with Development Workflow
|
|
534
|
+
|
|
535
|
+
### With Git
|
|
536
|
+
```bash
|
|
537
|
+
# Commit Spec
|
|
538
|
+
git add .kiro/specs/01-00-user-login/
|
|
539
|
+
git commit -m "Add user login Spec"
|
|
540
|
+
|
|
541
|
+
# Implement with Claude
|
|
542
|
+
# [Use Claude to generate code]
|
|
543
|
+
|
|
544
|
+
# Commit implementation
|
|
545
|
+
git add src/
|
|
546
|
+
git commit -m "Implement user login (tasks 1.1-2.3)"
|
|
547
|
+
```
|
|
548
|
+
|
|
549
|
+
### With Testing
|
|
550
|
+
```bash
|
|
551
|
+
# After Claude generates code
|
|
552
|
+
npm test
|
|
553
|
+
|
|
554
|
+
# If tests fail, ask Claude
|
|
555
|
+
"Tests are failing with this error: [paste error]
|
|
556
|
+
Please fix the implementation."
|
|
557
|
+
```
|
|
558
|
+
|
|
559
|
+
### With Code Review
|
|
560
|
+
```
|
|
561
|
+
# Share context with reviewer
|
|
562
|
+
kse context export 01-00-user-login
|
|
563
|
+
|
|
564
|
+
# Reviewer can see:
|
|
565
|
+
# - What was supposed to be built (requirements)
|
|
566
|
+
# - How it was supposed to be built (design)
|
|
567
|
+
# - What was implemented (tasks)
|
|
568
|
+
```
|
|
569
|
+
|
|
570
|
+
---
|
|
571
|
+
|
|
572
|
+
## Comparison with Other Tools
|
|
573
|
+
|
|
574
|
+
### Claude vs Cursor
|
|
575
|
+
|
|
576
|
+
**Claude advantages:**
|
|
577
|
+
- ✅ Larger context window
|
|
578
|
+
- ✅ Better at understanding complex requirements
|
|
579
|
+
- ✅ More conversational, easier to iterate
|
|
580
|
+
|
|
581
|
+
**Cursor advantages:**
|
|
582
|
+
- ✅ IDE integration
|
|
583
|
+
- ✅ Can directly modify files
|
|
584
|
+
- ✅ Sees your entire codebase
|
|
585
|
+
|
|
586
|
+
**Use Claude when:**
|
|
587
|
+
- Planning and designing
|
|
588
|
+
- Implementing complex logic
|
|
589
|
+
- Need detailed explanations
|
|
590
|
+
- Working on multiple files
|
|
591
|
+
|
|
592
|
+
**Use Cursor when:**
|
|
593
|
+
- Need direct file editing
|
|
594
|
+
- Want IDE integration
|
|
595
|
+
- Prefer visual code changes
|
|
596
|
+
|
|
597
|
+
### Claude vs ChatGPT
|
|
598
|
+
|
|
599
|
+
**Claude advantages:**
|
|
600
|
+
- ✅ Larger context window (200K vs 128K)
|
|
601
|
+
- ✅ Better code understanding
|
|
602
|
+
- ✅ More accurate implementations
|
|
603
|
+
|
|
604
|
+
**ChatGPT advantages:**
|
|
605
|
+
- ✅ Faster responses
|
|
606
|
+
- ✅ More widely available
|
|
607
|
+
|
|
608
|
+
---
|
|
609
|
+
|
|
610
|
+
## Related Documentation
|
|
611
|
+
|
|
612
|
+
- **[Quick Start Guide](../quick-start.md)** - Get started with kse
|
|
613
|
+
- **[Integration Modes](../integration-modes.md)** - Understanding integration modes
|
|
614
|
+
- **[Spec Workflow](../spec-workflow.md)** - Creating effective Specs
|
|
615
|
+
- **[Command Reference](../command-reference.md)** - All kse commands
|
|
616
|
+
|
|
617
|
+
---
|
|
618
|
+
|
|
619
|
+
## Summary
|
|
620
|
+
|
|
621
|
+
**Claude + kse workflow:**
|
|
622
|
+
1. Create Spec in kse (requirements, design, tasks)
|
|
623
|
+
2. Export context: `kse context export spec-name`
|
|
624
|
+
3. Start fresh Claude conversation
|
|
625
|
+
4. Paste complete context
|
|
626
|
+
5. Implement tasks iteratively
|
|
627
|
+
6. Update tasks.md as you complete tasks
|
|
628
|
+
|
|
629
|
+
**Key advantages:**
|
|
630
|
+
- ✅ Large context window handles entire Specs
|
|
631
|
+
- ✅ Excellent code understanding and generation
|
|
632
|
+
- ✅ Natural conversational development
|
|
633
|
+
- ✅ Great for complex features
|
|
634
|
+
|
|
635
|
+
**Best practices:**
|
|
636
|
+
- Use fresh conversations per feature
|
|
637
|
+
- Provide complete context upfront
|
|
638
|
+
- Implement incrementally
|
|
639
|
+
- Reference design document explicitly
|
|
640
|
+
- Review all generated code
|
|
641
|
+
|
|
642
|
+
**Start using kse with Claude:** 🚀
|
|
643
|
+
```bash
|
|
644
|
+
kse adopt
|
|
645
|
+
kse create-spec 01-00-my-feature
|
|
646
|
+
kse-clip 01-00-my-feature
|
|
647
|
+
# Open Claude and paste context
|
|
648
|
+
```
|
|
649
|
+
|
|
650
|
+
---
|
|
651
|
+
|
|
652
|
+
**Version**: 1.0.0
|
|
653
|
+
**Last Updated**: 2026-01-23
|