ai-sprint-kit 1.1.8 → 1.2.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 +19 -47
- package/package.json +1 -1
- package/templates/.claude/agents/debugger.md +1 -1
- package/templates/.claude/agents/devops.md +1 -1
- 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/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/templates/README.md
CHANGED
|
@@ -10,15 +10,15 @@ This framework provides 9 specialized AI agents and 10 essential commands for au
|
|
|
10
10
|
|
|
11
11
|
```bash
|
|
12
12
|
# Full automation (recommended)
|
|
13
|
-
/auto "build user authentication system"
|
|
13
|
+
/ai-sprint-auto "build user authentication system"
|
|
14
14
|
|
|
15
15
|
# Or step-by-step
|
|
16
|
-
/plan "implement JWT authentication"
|
|
17
|
-
/code "implement the plan"
|
|
18
|
-
/test
|
|
19
|
-
/review
|
|
20
|
-
/secure
|
|
21
|
-
/deploy
|
|
16
|
+
/ai-sprint-plan "implement JWT authentication"
|
|
17
|
+
/ai-sprint-code "implement the plan"
|
|
18
|
+
/ai-sprint-test
|
|
19
|
+
/ai-sprint-review
|
|
20
|
+
/ai-sprint-secure
|
|
21
|
+
/ai-sprint-deploy
|
|
22
22
|
```
|
|
23
23
|
|
|
24
24
|
## MCP Tools (Optional)
|
|
@@ -72,17 +72,17 @@ See `CLAUDE.md` for detailed MCP configuration.
|
|
|
72
72
|
- **researcher** - Technology research with web search
|
|
73
73
|
|
|
74
74
|
### Commands (11)
|
|
75
|
-
- `/plan` - Create implementation architecture
|
|
76
|
-
- `/code` - Generate or refactor code
|
|
77
|
-
- `/test` - Generate and run tests (80%+ coverage required)
|
|
78
|
-
- `/review` - Analyze code quality
|
|
79
|
-
- `/secure` - Scan for vulnerabilities, secrets, dependencies
|
|
80
|
-
- `/deploy` - Configure CI/CD & deployment
|
|
81
|
-
- `/docs` - Generate documentation
|
|
82
|
-
- `/debug` - Investigate bugs & errors
|
|
83
|
-
- `/scan` - Scan codebase and update AI context
|
|
84
|
-
- `/validate` - Comprehensive check (tests + review + security)
|
|
85
|
-
- `/auto` - Full autonomous cycle
|
|
75
|
+
- `/ai-sprint-plan` - Create implementation architecture
|
|
76
|
+
- `/ai-sprint-code` - Generate or refactor code
|
|
77
|
+
- `/ai-sprint-test` - Generate and run tests (80%+ coverage required)
|
|
78
|
+
- `/ai-sprint-review` - Analyze code quality
|
|
79
|
+
- `/ai-sprint-secure` - Scan for vulnerabilities, secrets, dependencies
|
|
80
|
+
- `/ai-sprint-deploy` - Configure CI/CD & deployment
|
|
81
|
+
- `/ai-sprint-docs` - Generate documentation
|
|
82
|
+
- `/ai-sprint-debug` - Investigate bugs & errors
|
|
83
|
+
- `/ai-sprint-scan` - Scan codebase and update AI context
|
|
84
|
+
- `/ai-sprint-validate` - Comprehensive check (tests + review + security)
|
|
85
|
+
- `/ai-sprint-auto` - Full autonomous cycle
|
|
86
86
|
|
|
87
87
|
### Skills (5)
|
|
88
88
|
Skills enhance agent capabilities with specialized knowledge:
|
|
@@ -120,7 +120,7 @@ When you run `ai-sprint-kit init` on a project with existing source code, it aut
|
|
|
120
120
|
### Manual Scanning
|
|
121
121
|
```bash
|
|
122
122
|
# Update codebase context after changes
|
|
123
|
-
/scan
|
|
123
|
+
/ai-sprint-scan
|
|
124
124
|
|
|
125
125
|
# Or use CLI directly
|
|
126
126
|
ai-sprint-kit scan
|
|
@@ -199,23 +199,23 @@ Without jq, statusline shows basic "🚀 AI Sprint" text.
|
|
|
199
199
|
|
|
200
200
|
### Recommended: Full Automation
|
|
201
201
|
```bash
|
|
202
|
-
/auto "feature description"
|
|
202
|
+
/ai-sprint-auto "feature description"
|
|
203
203
|
```
|
|
204
204
|
Executes: plan → code → test → review → security → docs
|
|
205
205
|
|
|
206
206
|
### Manual Step-by-Step
|
|
207
207
|
```bash
|
|
208
|
-
/plan "implement registration system" # Architecture
|
|
209
|
-
/code "implement the plan" # Generate code
|
|
210
|
-
/test # Tests + coverage
|
|
211
|
-
/review # Quality analysis
|
|
212
|
-
/secure # Security scan
|
|
213
|
-
/deploy # CI/CD setup
|
|
208
|
+
/ai-sprint-plan "implement registration system" # Architecture
|
|
209
|
+
/ai-sprint-code "implement the plan" # Generate code
|
|
210
|
+
/ai-sprint-test # Tests + coverage
|
|
211
|
+
/ai-sprint-review # Quality analysis
|
|
212
|
+
/ai-sprint-secure # Security scan
|
|
213
|
+
/ai-sprint-deploy # CI/CD setup
|
|
214
214
|
```
|
|
215
215
|
|
|
216
216
|
### Validation Before Commit
|
|
217
217
|
```bash
|
|
218
|
-
/validate # tests + review + security
|
|
218
|
+
/ai-sprint-validate # tests + review + security
|
|
219
219
|
```
|
|
220
220
|
|
|
221
221
|
## Configuration
|
|
@@ -255,27 +255,27 @@ ANTHROPIC_API_KEY=your_key
|
|
|
255
255
|
- OWASP Top 10 compliance
|
|
256
256
|
|
|
257
257
|
### Pre-Commit Gate
|
|
258
|
-
Run `/validate` before committing. Fixes all issues before pushing.
|
|
258
|
+
Run `/ai-sprint-validate` before committing. Fixes all issues before pushing.
|
|
259
259
|
|
|
260
260
|
## Examples
|
|
261
261
|
|
|
262
262
|
### Example 1: Complete Feature
|
|
263
263
|
```bash
|
|
264
|
-
/auto "implement password reset with email verification"
|
|
264
|
+
/ai-sprint-auto "implement password reset with email verification"
|
|
265
265
|
```
|
|
266
266
|
|
|
267
267
|
### Example 2: Step-by-Step with Review
|
|
268
268
|
```bash
|
|
269
|
-
/plan "design GraphQL API for posts"
|
|
270
|
-
/code "implement GraphQL schema and resolvers"
|
|
271
|
-
/test "generate integration tests"
|
|
272
|
-
/review
|
|
273
|
-
/secure src/
|
|
269
|
+
/ai-sprint-plan "design GraphQL API for posts"
|
|
270
|
+
/ai-sprint-code "implement GraphQL schema and resolvers"
|
|
271
|
+
/ai-sprint-test "generate integration tests"
|
|
272
|
+
/ai-sprint-review
|
|
273
|
+
/ai-sprint-secure src/
|
|
274
274
|
```
|
|
275
275
|
|
|
276
276
|
### Example 3: Security Audit
|
|
277
277
|
```bash
|
|
278
|
-
/secure .
|
|
278
|
+
/ai-sprint-secure .
|
|
279
279
|
```
|
|
280
280
|
Scans codebase for vulnerabilities, secrets, dependencies.
|
|
281
281
|
|
|
@@ -311,7 +311,7 @@ Command workflow steps...
|
|
|
311
311
|
| Security scan fails | Install: `pip install snyk semgrep detect-secrets`. Get API tokens. Update `.env` |
|
|
312
312
|
| Tests don't run | Verify test framework installed. Check test file patterns. Ensure coverage tools available |
|
|
313
313
|
| Agent not found | Verify `.claude/agents/` directory. Check agent name in frontmatter. Restart Claude |
|
|
314
|
-
| Low code coverage | Use `/test` to auto-generate tests for uncovered code |
|
|
314
|
+
| Low code coverage | Use `/ai-sprint-test` to auto-generate tests for uncovered code |
|
|
315
315
|
| Deployment blocked | Check approval gates in `.claude/settings.json`. Review security findings |
|
|
316
316
|
|
|
317
317
|
## Key Principles
|
|
@@ -327,5 +327,5 @@ Command workflow steps...
|
|
|
327
327
|
1. Copy this template to your project
|
|
328
328
|
2. Update `.claude/settings.json` for your stack
|
|
329
329
|
3. Configure environment variables in `.env`
|
|
330
|
-
4. Start with `/auto "your first feature"`
|
|
330
|
+
4. Start with `/ai-sprint-auto "your first feature"`
|
|
331
331
|
5. Monitor `ai_context/memory/learning.md` for lessons
|
|
@@ -38,8 +38,8 @@ AI Sprint คือเครื่องมือที่ช่วยให้
|
|
|
38
38
|
# 1. เปิด Claude Code
|
|
39
39
|
claude
|
|
40
40
|
|
|
41
|
-
# 2. ลองใช้คำสั่ง /auto (ทำทุกอย่างอัตโนมัติ)
|
|
42
|
-
/auto "สร้าง API สำหรับแสดงข้อมูลสินค้า"
|
|
41
|
+
# 2. ลองใช้คำสั่ง /ai-sprint-auto (ทำทุกอย่างอัตโนมัติ)
|
|
42
|
+
/ai-sprint-auto "สร้าง API สำหรับแสดงข้อมูลสินค้า"
|
|
43
43
|
```
|
|
44
44
|
|
|
45
45
|
เพียงเท่านี้ AI จะสร้างโค้ด, ทดสอบ, และตรวจสอบความปลอดภัยให้อัตโนมัติ!
|
|
@@ -68,7 +68,7 @@ claude
|
|
|
68
68
|
วิธีที่ง่ายที่สุด - บอก AI ว่าอยากได้อะไร แล้วให้ทำทุกอย่างเอง:
|
|
69
69
|
|
|
70
70
|
```bash
|
|
71
|
-
/auto "สร้างระบบลงทะเบียนสมาชิกด้วยอีเมลและรหัสผ่าน"
|
|
71
|
+
/ai-sprint-auto "สร้างระบบลงทะเบียนสมาชิกด้วยอีเมลและรหัสผ่าน"
|
|
72
72
|
```
|
|
73
73
|
|
|
74
74
|
**AI จะทำอะไรบ้าง:**
|
|
@@ -87,20 +87,20 @@ claude
|
|
|
87
87
|
|
|
88
88
|
```bash
|
|
89
89
|
# ขั้นที่ 1: วางแผน
|
|
90
|
-
/plan "สร้างระบบลงทะเบียนสมาชิก"
|
|
91
|
-
# ดูแผนใน ai_context/plans/ แล้วค่อยไปต่อ
|
|
90
|
+
/ai-sprint-plan "สร้างระบบลงทะเบียนสมาชิก"
|
|
91
|
+
# ดูแผนใน ai_context/ai-sprint-plans/ แล้วค่อยไปต่อ
|
|
92
92
|
|
|
93
93
|
# ขั้นที่ 2: เขียนโค้ด
|
|
94
|
-
/code "สร้างระบบตามแผนที่วางไว้"
|
|
94
|
+
/ai-sprint-code "สร้างระบบตามแผนที่วางไว้"
|
|
95
95
|
|
|
96
96
|
# ขั้นที่ 3: ทดสอบ
|
|
97
|
-
/test
|
|
97
|
+
/ai-sprint-test
|
|
98
98
|
|
|
99
99
|
# ขั้นที่ 4: ตรวจสอบคุณภาพ
|
|
100
|
-
/review
|
|
100
|
+
/ai-sprint-review
|
|
101
101
|
|
|
102
102
|
# ขั้นที่ 5: ตรวจสอบความปลอดภัย
|
|
103
|
-
/secure
|
|
103
|
+
/ai-sprint-secure
|
|
104
104
|
```
|
|
105
105
|
|
|
106
106
|
**เหมาะกับ:** งานซับซ้อน, เมื่อต้องการตรวจสอบทุกขั้นตอน
|
|
@@ -111,13 +111,13 @@ claude
|
|
|
111
111
|
|
|
112
112
|
```bash
|
|
113
113
|
# ขั้นที่ 1: หาสาเหตุ
|
|
114
|
-
/debug "หน้าลงทะเบียนแสดง Error 500 ตอนกดสมัคร"
|
|
114
|
+
/ai-sprint-debug "หน้าลงทะเบียนแสดง Error 500 ตอนกดสมัคร"
|
|
115
115
|
|
|
116
116
|
# ขั้นที่ 2: แก้ไข
|
|
117
|
-
/code "แก้ไขปัญหาตามที่วิเคราะห์"
|
|
117
|
+
/ai-sprint-code "แก้ไขปัญหาตามที่วิเคราะห์"
|
|
118
118
|
|
|
119
119
|
# ขั้นที่ 3: ทดสอบว่าแก้ได้จริง
|
|
120
|
-
/test
|
|
120
|
+
/ai-sprint-test
|
|
121
121
|
```
|
|
122
122
|
|
|
123
123
|
### วิธีที่ 4: ตรวจสอบก่อนส่งงาน
|
|
@@ -125,7 +125,7 @@ claude
|
|
|
125
125
|
**ทำทุกครั้ง** ก่อนบันทึกโค้ดลง Git:
|
|
126
126
|
|
|
127
127
|
```bash
|
|
128
|
-
/validate
|
|
128
|
+
/ai-sprint-validate
|
|
129
129
|
```
|
|
130
130
|
|
|
131
131
|
คำสั่งนี้จะ:
|
|
@@ -139,37 +139,37 @@ claude
|
|
|
139
139
|
|
|
140
140
|
## คำสั่งทั้งหมด
|
|
141
141
|
|
|
142
|
-
### /plan - วางแผนการทำงาน
|
|
142
|
+
### /ai-sprint-plan - วางแผนการทำงาน
|
|
143
143
|
|
|
144
144
|
บอก AI ว่าอยากสร้างอะไร แล้วให้วางแผนก่อน
|
|
145
145
|
|
|
146
146
|
```bash
|
|
147
|
-
/plan "สร้างระบบตะกร้าสินค้า"
|
|
148
|
-
/plan "เพิ่มระบบ Login ด้วย Google"
|
|
147
|
+
/ai-sprint-plan "สร้างระบบตะกร้าสินค้า"
|
|
148
|
+
/ai-sprint-plan "เพิ่มระบบ Login ด้วย Google"
|
|
149
149
|
```
|
|
150
150
|
|
|
151
|
-
**ผลลัพธ์:** ได้แผนการทำงานใน `ai_context/plans/`
|
|
151
|
+
**ผลลัพธ์:** ได้แผนการทำงานใน `ai_context/ai-sprint-plans/`
|
|
152
152
|
|
|
153
153
|
---
|
|
154
154
|
|
|
155
|
-
### /code - เขียนโค้ด
|
|
155
|
+
### /ai-sprint-code - เขียนโค้ด
|
|
156
156
|
|
|
157
157
|
ให้ AI เขียนหรือแก้ไขโค้ด
|
|
158
158
|
|
|
159
159
|
```bash
|
|
160
|
-
/code "สร้างระบบตามแผนที่วางไว้"
|
|
161
|
-
/code "เพิ่มปุ่มออกจากระบบ"
|
|
162
|
-
/code "แก้ไขหน้าแสดงสินค้าให้โหลดเร็วขึ้น"
|
|
160
|
+
/ai-sprint-code "สร้างระบบตามแผนที่วางไว้"
|
|
161
|
+
/ai-sprint-code "เพิ่มปุ่มออกจากระบบ"
|
|
162
|
+
/ai-sprint-code "แก้ไขหน้าแสดงสินค้าให้โหลดเร็วขึ้น"
|
|
163
163
|
```
|
|
164
164
|
|
|
165
165
|
---
|
|
166
166
|
|
|
167
|
-
### /test - ทดสอบโค้ด
|
|
167
|
+
### /ai-sprint-test - ทดสอบโค้ด
|
|
168
168
|
|
|
169
169
|
สร้างและรันการทดสอบอัตโนมัติ
|
|
170
170
|
|
|
171
171
|
```bash
|
|
172
|
-
/test
|
|
172
|
+
/ai-sprint-test
|
|
173
173
|
```
|
|
174
174
|
|
|
175
175
|
**สิ่งที่ได้:**
|
|
@@ -179,12 +179,12 @@ claude
|
|
|
179
179
|
|
|
180
180
|
---
|
|
181
181
|
|
|
182
|
-
### /review - ตรวจสอบคุณภาพ
|
|
182
|
+
### /ai-sprint-review - ตรวจสอบคุณภาพ
|
|
183
183
|
|
|
184
184
|
ให้ AI ตรวจสอบว่าโค้ดเขียนดีหรือไม่
|
|
185
185
|
|
|
186
186
|
```bash
|
|
187
|
-
/review
|
|
187
|
+
/ai-sprint-review
|
|
188
188
|
```
|
|
189
189
|
|
|
190
190
|
**AI จะดู:**
|
|
@@ -195,12 +195,12 @@ claude
|
|
|
195
195
|
|
|
196
196
|
---
|
|
197
197
|
|
|
198
|
-
### /secure - ตรวจสอบความปลอดภัย
|
|
198
|
+
### /ai-sprint-secure - ตรวจสอบความปลอดภัย
|
|
199
199
|
|
|
200
200
|
ตรวจหาช่องโหว่และปัญหาด้านความปลอดภัย
|
|
201
201
|
|
|
202
202
|
```bash
|
|
203
|
-
/secure
|
|
203
|
+
/ai-sprint-secure
|
|
204
204
|
```
|
|
205
205
|
|
|
206
206
|
**AI จะตรวจ:**
|
|
@@ -210,57 +210,57 @@ claude
|
|
|
210
210
|
|
|
211
211
|
---
|
|
212
212
|
|
|
213
|
-
### /deploy - ตั้งค่าการ Deploy
|
|
213
|
+
### /ai-sprint-deploy - ตั้งค่าการ Deploy
|
|
214
214
|
|
|
215
215
|
ตั้งค่าระบบ CI/CD สำหรับ Deploy อัตโนมัติ
|
|
216
216
|
|
|
217
217
|
```bash
|
|
218
|
-
/deploy
|
|
218
|
+
/ai-sprint-deploy
|
|
219
219
|
```
|
|
220
220
|
|
|
221
221
|
---
|
|
222
222
|
|
|
223
|
-
### /docs - สร้างเอกสาร
|
|
223
|
+
### /ai-sprint-docs - สร้างเอกสาร
|
|
224
224
|
|
|
225
225
|
สร้างเอกสารอธิบายโค้ดอัตโนมัติ
|
|
226
226
|
|
|
227
227
|
```bash
|
|
228
|
-
/docs
|
|
228
|
+
/ai-sprint-docs
|
|
229
229
|
```
|
|
230
230
|
|
|
231
231
|
---
|
|
232
232
|
|
|
233
|
-
### /debug - หาสาเหตุปัญหา
|
|
233
|
+
### /ai-sprint-debug - หาสาเหตุปัญหา
|
|
234
234
|
|
|
235
235
|
เมื่อโปรแกรมมีบัค ให้ AI ช่วยหาสาเหตุ
|
|
236
236
|
|
|
237
237
|
```bash
|
|
238
|
-
/debug "หน้าเว็บโหลดช้ามากเมื่อมีสินค้าเยอะ"
|
|
239
|
-
/debug "ระบบล็อกอินใช้ไม่ได้"
|
|
238
|
+
/ai-sprint-debug "หน้าเว็บโหลดช้ามากเมื่อมีสินค้าเยอะ"
|
|
239
|
+
/ai-sprint-debug "ระบบล็อกอินใช้ไม่ได้"
|
|
240
240
|
```
|
|
241
241
|
|
|
242
242
|
**ผลลัพธ์:** รายงานวิเคราะห์สาเหตุและวิธีแก้ไข
|
|
243
243
|
|
|
244
244
|
---
|
|
245
245
|
|
|
246
|
-
### /validate - ตรวจสอบก่อนส่งงาน
|
|
246
|
+
### /ai-sprint-validate - ตรวจสอบก่อนส่งงาน
|
|
247
247
|
|
|
248
248
|
รวมการทดสอบ + ตรวจคุณภาพ + ตรวจความปลอดภัย
|
|
249
249
|
|
|
250
250
|
```bash
|
|
251
|
-
/validate
|
|
251
|
+
/ai-sprint-validate
|
|
252
252
|
```
|
|
253
253
|
|
|
254
254
|
**ใช้ทุกครั้งก่อนบันทึกโค้ด!**
|
|
255
255
|
|
|
256
256
|
---
|
|
257
257
|
|
|
258
|
-
### /auto - ทำทุกอย่างอัตโนมัติ
|
|
258
|
+
### /ai-sprint-auto - ทำทุกอย่างอัตโนมัติ
|
|
259
259
|
|
|
260
260
|
คำสั่งเดียวทำครบทุกขั้นตอน
|
|
261
261
|
|
|
262
262
|
```bash
|
|
263
|
-
/auto "สร้างหน้าแสดงรายการสั่งซื้อ"
|
|
263
|
+
/ai-sprint-auto "สร้างหน้าแสดงรายการสั่งซื้อ"
|
|
264
264
|
```
|
|
265
265
|
|
|
266
266
|
**AI จะทำ:** วางแผน → เขียนโค้ด → ทดสอบ → ตรวจคุณภาพ → ตรวจความปลอดภัย → สร้างเอกสาร
|
|
@@ -321,15 +321,15 @@ cp .mcp.json.example .mcp.json
|
|
|
321
321
|
สำหรับงานที่ซับซ้อน ให้วางแผนก่อนเขียนโค้ด:
|
|
322
322
|
|
|
323
323
|
```bash
|
|
324
|
-
/plan "อธิบายสิ่งที่ต้องการ"
|
|
324
|
+
/ai-sprint-plan "อธิบายสิ่งที่ต้องการ"
|
|
325
325
|
# ดูแผนก่อน แล้วค่อย
|
|
326
|
-
/code "สร้างตามแผน"
|
|
326
|
+
/ai-sprint-code "สร้างตามแผน"
|
|
327
327
|
```
|
|
328
328
|
|
|
329
|
-
### 2. ใช้ /validate ทุกครั้งก่อนบันทึก
|
|
329
|
+
### 2. ใช้ /ai-sprint-validate ทุกครั้งก่อนบันทึก
|
|
330
330
|
|
|
331
331
|
```bash
|
|
332
|
-
/validate
|
|
332
|
+
/ai-sprint-validate
|
|
333
333
|
# ถ้าผ่าน ค่อยบันทึกโค้ด
|
|
334
334
|
git add .
|
|
335
335
|
git commit -m "เพิ่มฟีเจอร์ใหม่"
|
|
@@ -344,12 +344,12 @@ AI จะบันทึกผลการทำงานไว้ใน `ai_con
|
|
|
344
344
|
cat ai_context/reports/security-*.md
|
|
345
345
|
```
|
|
346
346
|
|
|
347
|
-
### 4. ใช้ /auto สำหรับงานง่ายๆ
|
|
347
|
+
### 4. ใช้ /ai-sprint-auto สำหรับงานง่ายๆ
|
|
348
348
|
|
|
349
|
-
ฟีเจอร์เล็กๆ ใช้ /auto ได้เลย:
|
|
349
|
+
ฟีเจอร์เล็กๆ ใช้ /ai-sprint-auto ได้เลย:
|
|
350
350
|
|
|
351
351
|
```bash
|
|
352
|
-
/auto "เพิ่มปุ่มกลับหน้าแรก"
|
|
352
|
+
/ai-sprint-auto "เพิ่มปุ่มกลับหน้าแรก"
|
|
353
353
|
```
|
|
354
354
|
|
|
355
355
|
### 5. ใช้ทีละขั้นตอนสำหรับงานซับซ้อน
|
|
@@ -357,13 +357,13 @@ cat ai_context/reports/security-*.md
|
|
|
357
357
|
งานใหญ่ๆ ควรทำทีละขั้น:
|
|
358
358
|
|
|
359
359
|
```bash
|
|
360
|
-
/plan "ระบบซับซ้อน"
|
|
360
|
+
/ai-sprint-plan "ระบบซับซ้อน"
|
|
361
361
|
# ดูแผน
|
|
362
|
-
/code "ทำส่วนที่ 1"
|
|
363
|
-
/test
|
|
364
|
-
/code "ทำส่วนที่ 2"
|
|
365
|
-
/test
|
|
366
|
-
/validate
|
|
362
|
+
/ai-sprint-code "ทำส่วนที่ 1"
|
|
363
|
+
/ai-sprint-test
|
|
364
|
+
/ai-sprint-code "ทำส่วนที่ 2"
|
|
365
|
+
/ai-sprint-test
|
|
366
|
+
/ai-sprint-validate
|
|
367
367
|
```
|
|
368
368
|
|
|
369
369
|
---
|
|
@@ -374,17 +374,17 @@ cat ai_context/reports/security-*.md
|
|
|
374
374
|
|
|
375
375
|
```bash
|
|
376
376
|
# ดูว่าผิดพลาดตรงไหน
|
|
377
|
-
/test
|
|
377
|
+
/ai-sprint-test
|
|
378
378
|
|
|
379
379
|
# ให้ AI ช่วยหาสาเหตุ
|
|
380
|
-
/debug "การทดสอบ X ไม่ผ่าน แสดง Error Y"
|
|
380
|
+
/ai-sprint-debug "การทดสอบ X ไม่ผ่าน แสดง Error Y"
|
|
381
381
|
```
|
|
382
382
|
|
|
383
383
|
### ความครอบคลุมการทดสอบต่ำ
|
|
384
384
|
|
|
385
385
|
```bash
|
|
386
386
|
# สร้างการทดสอบเพิ่ม
|
|
387
|
-
/test "สร้างการทดสอบเพิ่มสำหรับฟังก์ชันที่ยังไม่ได้ทดสอบ"
|
|
387
|
+
/ai-sprint-test "สร้างการทดสอบเพิ่มสำหรับฟังก์ชันที่ยังไม่ได้ทดสอบ"
|
|
388
388
|
```
|
|
389
389
|
|
|
390
390
|
### พบปัญหาความปลอดภัย
|
|
@@ -394,10 +394,10 @@ cat ai_context/reports/security-*.md
|
|
|
394
394
|
cat ai_context/reports/security-*.md
|
|
395
395
|
|
|
396
396
|
# แก้ไข
|
|
397
|
-
/code "แก้ไขปัญหาความปลอดภัยตามรายงาน"
|
|
397
|
+
/ai-sprint-code "แก้ไขปัญหาความปลอดภัยตามรายงาน"
|
|
398
398
|
|
|
399
399
|
# ตรวจสอบอีกครั้ง
|
|
400
|
-
/secure
|
|
400
|
+
/ai-sprint-secure
|
|
401
401
|
```
|
|
402
402
|
|
|
403
403
|
### คำสั่งไม่ทำงาน
|
|
@@ -433,14 +433,14 @@ grep "YOUR_" .mcp.json
|
|
|
433
433
|
|
|
434
434
|
| ต้องการทำอะไร | ใช้คำสั่ง |
|
|
435
435
|
|--------------|---------|
|
|
436
|
-
| ทำทุกอย่างอัตโนมัติ | `/auto "คำอธิบาย"` |
|
|
437
|
-
| วางแผนก่อน | `/plan "คำอธิบาย"` |
|
|
438
|
-
| เขียนโค้ด | `/code "สิ่งที่ต้องการ"` |
|
|
439
|
-
| ทดสอบ | `/test` |
|
|
440
|
-
| ตรวจคุณภาพ | `/review` |
|
|
441
|
-
| ตรวจความปลอดภัย | `/secure` |
|
|
442
|
-
| หาสาเหตุบัค | `/debug "ปัญหาที่เจอ"` |
|
|
443
|
-
| ตรวจก่อนส่งงาน | `/validate` |
|
|
436
|
+
| ทำทุกอย่างอัตโนมัติ | `/ai-sprint-auto "คำอธิบาย"` |
|
|
437
|
+
| วางแผนก่อน | `/ai-sprint-plan "คำอธิบาย"` |
|
|
438
|
+
| เขียนโค้ด | `/ai-sprint-code "สิ่งที่ต้องการ"` |
|
|
439
|
+
| ทดสอบ | `/ai-sprint-test` |
|
|
440
|
+
| ตรวจคุณภาพ | `/ai-sprint-review` |
|
|
441
|
+
| ตรวจความปลอดภัย | `/ai-sprint-secure` |
|
|
442
|
+
| หาสาเหตุบัค | `/ai-sprint-debug "ปัญหาที่เจอ"` |
|
|
443
|
+
| ตรวจก่อนส่งงาน | `/ai-sprint-validate` |
|
|
444
444
|
|
|
445
445
|
---
|
|
446
446
|
|