@kood/claude-code 0.3.7 → 0.3.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/templates/.claude/agents/code-reviewer.md +138 -123
- package/templates/.claude/agents/dependency-manager.md +99 -84
- package/templates/.claude/agents/deployment-validator.md +70 -55
- package/templates/.claude/agents/git-operator.md +78 -63
- package/templates/.claude/agents/implementation-executor.md +109 -94
- package/templates/.claude/agents/ko-to-en-translator.md +74 -0
- package/templates/.claude/agents/lint-fixer.md +93 -78
- package/templates/.claude/agents/refactor-advisor.md +136 -121
- package/templates/.claude/commands/agent-creator.md +199 -184
- package/templates/.claude/commands/bug-fix.md +207 -192
- package/templates/.claude/commands/command-creator.md +69 -53
- package/templates/.claude/commands/docs-creator.md +72 -56
- package/templates/.claude/commands/docs-refactor.md +41 -25
- package/templates/.claude/commands/execute.md +27 -11
- package/templates/.claude/commands/git-all.md +46 -31
- package/templates/.claude/commands/git-session.md +57 -41
- package/templates/.claude/commands/git.md +49 -33
- package/templates/.claude/commands/lint-fix.md +153 -137
- package/templates/.claude/commands/lint-init.md +76 -60
- package/templates/.claude/commands/plan.md +275 -259
- package/templates/.claude/commands/prd.md +39 -23
- package/templates/.claude/commands/pre-deploy.md +124 -108
- package/templates/.claude/commands/refactor.md +162 -146
- package/templates/.claude/commands/version-update.md +32 -16
- package/templates/hono/CLAUDE.md +28 -27
- package/templates/hono/docs/architecture.md +24 -24
- package/templates/hono/docs/deployment/cloudflare.md +18 -18
- package/templates/hono/docs/deployment/docker.md +13 -13
- package/templates/hono/docs/deployment/index.md +19 -19
- package/templates/hono/docs/deployment/railway.md +32 -32
- package/templates/hono/docs/deployment/vercel.md +29 -29
- package/templates/hono/docs/guides/conventions.md +57 -57
- package/templates/hono/docs/guides/env-setup.md +47 -47
- package/templates/hono/docs/guides/getting-started.md +27 -27
- package/templates/hono/docs/library/hono/error-handling.md +11 -11
- package/templates/hono/docs/library/hono/index.md +4 -4
- package/templates/hono/docs/library/hono/middleware.md +18 -18
- package/templates/hono/docs/library/hono/rpc.md +7 -7
- package/templates/hono/docs/library/hono/validation.md +6 -6
- package/templates/hono/docs/library/prisma/cloudflare-d1.md +29 -29
- package/templates/hono/docs/library/prisma/config.md +16 -16
- package/templates/hono/docs/library/prisma/index.md +32 -32
- package/templates/hono/docs/library/t3-env/index.md +22 -22
- package/templates/hono/docs/library/zod/index.md +31 -31
- package/templates/nextjs/CLAUDE.md +54 -51
- package/templates/nextjs/docs/architecture.md +812 -0
- package/templates/nextjs/docs/design.md +183 -183
- package/templates/nextjs/docs/guides/conventions.md +86 -86
- package/templates/nextjs/docs/guides/getting-started.md +28 -28
- package/templates/nextjs/docs/guides/routes.md +32 -32
- package/templates/nextjs/docs/library/better-auth/index.md +70 -70
- package/templates/nextjs/docs/library/nextjs/app-router.md +43 -43
- package/templates/nextjs/docs/library/nextjs/caching.md +73 -73
- package/templates/nextjs/docs/library/nextjs/index.md +51 -51
- package/templates/nextjs/docs/library/nextjs/middleware.md +41 -41
- package/templates/nextjs/docs/library/nextjs/route-handlers.md +31 -31
- package/templates/nextjs/docs/library/nextjs/server-actions.md +34 -34
- package/templates/nextjs/docs/library/prisma/cloudflare-d1.md +20 -20
- package/templates/nextjs/docs/library/prisma/config.md +18 -18
- package/templates/nextjs/docs/library/prisma/crud.md +17 -17
- package/templates/nextjs/docs/library/prisma/index.md +18 -18
- package/templates/nextjs/docs/library/prisma/relations.md +16 -16
- package/templates/nextjs/docs/library/prisma/schema.md +23 -23
- package/templates/nextjs/docs/library/prisma/setup.md +6 -6
- package/templates/nextjs/docs/library/prisma/transactions.md +10 -10
- package/templates/nextjs/docs/library/tanstack-query/index.md +6 -6
- package/templates/nextjs/docs/library/tanstack-query/invalidation.md +20 -20
- package/templates/nextjs/docs/library/tanstack-query/optimistic-updates.md +4 -4
- package/templates/nextjs/docs/library/tanstack-query/use-mutation.md +15 -15
- package/templates/nextjs/docs/library/tanstack-query/use-query.md +22 -22
- package/templates/nextjs/docs/library/zod/complex-types.md +11 -11
- package/templates/nextjs/docs/library/zod/index.md +8 -8
- package/templates/nextjs/docs/library/zod/transforms.md +11 -11
- package/templates/nextjs/docs/library/zod/validation.md +9 -9
- package/templates/npx/CLAUDE.md +38 -37
- package/templates/npx/docs/library/commander/index.md +12 -12
- package/templates/npx/docs/library/fs-extra/index.md +9 -9
- package/templates/npx/docs/library/prompts/index.md +3 -3
- package/templates/npx/docs/references/patterns.md +12 -12
- package/templates/tanstack-start/CLAUDE.md +54 -53
- package/templates/tanstack-start/docs/architecture.md +128 -128
- package/templates/tanstack-start/docs/design.md +169 -169
- package/templates/tanstack-start/docs/guides/conventions.md +43 -43
- package/templates/tanstack-start/docs/guides/env-setup.md +35 -35
- package/templates/tanstack-start/docs/guides/getting-started.md +19 -19
- package/templates/tanstack-start/docs/guides/hooks.md +45 -45
- package/templates/tanstack-start/docs/guides/routes.md +54 -54
- package/templates/tanstack-start/docs/guides/services.md +45 -45
- package/templates/tanstack-start/docs/library/better-auth/index.md +68 -68
- package/templates/tanstack-start/docs/library/prisma/cloudflare-d1.md +19 -19
- package/templates/tanstack-start/docs/library/prisma/config.md +16 -16
- package/templates/tanstack-start/docs/library/prisma/crud.md +17 -17
- package/templates/tanstack-start/docs/library/prisma/index.md +17 -17
- package/templates/tanstack-start/docs/library/prisma/relations.md +16 -16
- package/templates/tanstack-start/docs/library/prisma/schema.md +23 -23
- package/templates/tanstack-start/docs/library/prisma/setup.md +6 -6
- package/templates/tanstack-start/docs/library/prisma/transactions.md +10 -10
- package/templates/tanstack-start/docs/library/t3-env/index.md +21 -160
- package/templates/tanstack-start/docs/library/tanstack-query/index.md +6 -6
- package/templates/tanstack-start/docs/library/tanstack-query/invalidation.md +19 -19
- package/templates/tanstack-start/docs/library/tanstack-query/optimistic-updates.md +4 -4
- package/templates/tanstack-start/docs/library/tanstack-query/use-mutation.md +14 -14
- package/templates/tanstack-start/docs/library/tanstack-query/use-query.md +21 -21
- package/templates/tanstack-start/docs/library/tanstack-router/error-handling.md +9 -9
- package/templates/tanstack-start/docs/library/tanstack-router/hooks.md +11 -11
- package/templates/tanstack-start/docs/library/tanstack-router/index.md +18 -18
- package/templates/tanstack-start/docs/library/tanstack-router/navigation.md +17 -17
- package/templates/tanstack-start/docs/library/tanstack-router/route-context.md +5 -5
- package/templates/tanstack-start/docs/library/tanstack-router/search-params.md +10 -10
- package/templates/tanstack-start/docs/library/tanstack-start/auth-patterns.md +8 -8
- package/templates/tanstack-start/docs/library/tanstack-start/index.md +15 -15
- package/templates/tanstack-start/docs/library/tanstack-start/middleware.md +9 -9
- package/templates/tanstack-start/docs/library/tanstack-start/routing.md +6 -6
- package/templates/tanstack-start/docs/library/tanstack-start/server-functions.md +18 -18
- package/templates/tanstack-start/docs/library/tanstack-start/setup.md +4 -4
- package/templates/tanstack-start/docs/library/zod/complex-types.md +11 -11
- package/templates/tanstack-start/docs/library/zod/index.md +8 -8
- package/templates/tanstack-start/docs/library/zod/transforms.md +11 -11
- package/templates/tanstack-start/docs/library/zod/validation.md +9 -9
|
@@ -1,68 +1,84 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: tsc/eslint 오류 검사 및 하나씩 꼼꼼히 수정. @lint-fixer 에이전트 필수 사용.
|
|
3
3
|
allowed-tools: Task
|
|
4
|
-
argument-hint: [
|
|
4
|
+
argument-hint: [file/directory paths...]
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
+
<critical_instruction>
|
|
8
|
+
|
|
9
|
+
**CRITICAL: 사용자와의 모든 커뮤니케이션은 반드시 한국어로 작성하세요.**
|
|
10
|
+
|
|
11
|
+
- 내부 사고와 분석은 영어로 해도 됨
|
|
12
|
+
- 설명, 요약, 보고서, 피드백 등 사용자에게 전달하는 모든 내용은 반드시 한국어
|
|
13
|
+
- 사용자가 영어로 말하더라도 답변은 한국어로
|
|
14
|
+
- 진행 상황 업데이트와 상태 보고는 반드시 한국어
|
|
15
|
+
|
|
16
|
+
이 규칙은 절대적이며 예외가 없습니다.
|
|
17
|
+
|
|
18
|
+
</critical_instruction>
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
|
|
7
23
|
# Lint Fix Command
|
|
8
24
|
|
|
9
|
-
>
|
|
25
|
+
> Automatically fix tsc/eslint errors using the @lint-fixer agent.
|
|
10
26
|
|
|
11
27
|
---
|
|
12
28
|
|
|
13
29
|
<critical_requirements>
|
|
14
30
|
|
|
15
|
-
## ⚠️ CRITICAL:
|
|
31
|
+
## ⚠️ CRITICAL: Required checks before proceeding
|
|
16
32
|
|
|
17
|
-
|
|
33
|
+
**This command must use the @lint-fixer agent.**
|
|
18
34
|
|
|
19
|
-
### MANDATORY:
|
|
35
|
+
### MANDATORY: Call @lint-fixer with Task tool
|
|
20
36
|
|
|
21
37
|
```typescript
|
|
22
38
|
Task({
|
|
23
39
|
subagent_type: 'lint-fixer',
|
|
24
|
-
description: 'tsc/eslint
|
|
40
|
+
description: 'Fix tsc/eslint errors',
|
|
25
41
|
prompt: `
|
|
26
|
-
$ARGUMENTS
|
|
27
|
-
${$ARGUMENTS ?
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
1. tsc + eslint
|
|
31
|
-
2.
|
|
32
|
-
3.
|
|
33
|
-
4.
|
|
34
|
-
5.
|
|
35
|
-
6.
|
|
42
|
+
Handle $ARGUMENTS:
|
|
43
|
+
${$ARGUMENTS ? `Specific paths: ${$ARGUMENTS}` : 'Check entire project'}
|
|
44
|
+
|
|
45
|
+
Tasks to perform:
|
|
46
|
+
1. Run tsc + eslint in parallel
|
|
47
|
+
2. Classify errors (simple/complex)
|
|
48
|
+
3. Create error list with TodoWrite
|
|
49
|
+
4. Simple errors: fix immediately
|
|
50
|
+
5. Complex errors: analyze with Sequential Thinking then fix
|
|
51
|
+
6. Verify with full recheck
|
|
36
52
|
`
|
|
37
53
|
})
|
|
38
54
|
```
|
|
39
55
|
|
|
40
|
-
**❌
|
|
41
|
-
-
|
|
42
|
-
- @lint-fixer
|
|
43
|
-
-
|
|
56
|
+
**❌ Absolutely forbidden:**
|
|
57
|
+
- Execute tsc/eslint directly with Bash tool and manually fix
|
|
58
|
+
- Fix errors without @lint-fixer
|
|
59
|
+
- Analyze/fix errors directly in command
|
|
44
60
|
|
|
45
|
-
**✅
|
|
46
|
-
-
|
|
47
|
-
-
|
|
48
|
-
-
|
|
61
|
+
**✅ Required:**
|
|
62
|
+
- Call @lint-fixer agent with Task tool
|
|
63
|
+
- Delegate all lint work to agent
|
|
64
|
+
- Agent automatically judges simple/complex and handles accordingly
|
|
49
65
|
|
|
50
|
-
**@lint-fixer
|
|
51
|
-
-
|
|
52
|
-
-
|
|
53
|
-
-
|
|
54
|
-
-
|
|
66
|
+
**@lint-fixer agent benefits:**
|
|
67
|
+
- Simple errors fixed immediately (no Sequential Thinking needed)
|
|
68
|
+
- Complex errors analyzed with Sequential Thinking only (efficient)
|
|
69
|
+
- Auto-track progress with TodoWrite
|
|
70
|
+
- Auto-prioritize (type errors → lint errors)
|
|
55
71
|
|
|
56
72
|
---
|
|
57
73
|
|
|
58
|
-
|
|
74
|
+
**Self-check before proceeding:**
|
|
59
75
|
```text
|
|
60
|
-
□ Task
|
|
61
|
-
□ @lint-fixer
|
|
62
|
-
□
|
|
76
|
+
□ Task tool ready to use?
|
|
77
|
+
□ Delegating work to @lint-fixer agent?
|
|
78
|
+
□ Not executing tsc/eslint directly with Bash?
|
|
63
79
|
```
|
|
64
80
|
|
|
65
|
-
**⚠️
|
|
81
|
+
**⚠️ Do not start if checklist is not complete.**
|
|
66
82
|
|
|
67
83
|
</critical_requirements>
|
|
68
84
|
|
|
@@ -70,11 +86,11 @@ Task({
|
|
|
70
86
|
|
|
71
87
|
<forbidden>
|
|
72
88
|
|
|
73
|
-
|
|
|
74
|
-
|
|
75
|
-
|
|
|
76
|
-
|
|
|
77
|
-
|
|
|
89
|
+
| Category | Forbidden |
|
|
90
|
+
|----------|-----------|
|
|
91
|
+
| **Avoidance** | Excessive `any` type, `@ts-ignore`, `eslint-disable` |
|
|
92
|
+
| **Strategy** | Fix multiple errors simultaneously, fix hastily based on error message alone |
|
|
93
|
+
| **Analysis** | Fix without Sequential Thinking |
|
|
78
94
|
|
|
79
95
|
</forbidden>
|
|
80
96
|
|
|
@@ -82,34 +98,34 @@ Task({
|
|
|
82
98
|
|
|
83
99
|
<agent_usage>
|
|
84
100
|
|
|
85
|
-
## @lint-fixer Agent
|
|
101
|
+
## @lint-fixer Agent Usage
|
|
86
102
|
|
|
87
|
-
|
|
88
|
-
- 10
|
|
89
|
-
-
|
|
90
|
-
-
|
|
103
|
+
**When to use:**
|
|
104
|
+
- 10+ errors
|
|
105
|
+
- Multiple complex type errors
|
|
106
|
+
- Want automatic fixing in background
|
|
91
107
|
|
|
92
|
-
|
|
108
|
+
**How to call:**
|
|
93
109
|
```bash
|
|
94
110
|
@lint-fixer
|
|
95
|
-
#
|
|
96
|
-
"lint
|
|
111
|
+
# or natural language
|
|
112
|
+
"Fix lint errors automatically"
|
|
97
113
|
```
|
|
98
114
|
|
|
99
|
-
|
|
100
|
-
-
|
|
101
|
-
-
|
|
102
|
-
-
|
|
115
|
+
**Benefits:**
|
|
116
|
+
- Simple errors fixed immediately (no Sequential Thinking needed)
|
|
117
|
+
- Complex errors analyzed with Sequential Thinking only (efficient)
|
|
118
|
+
- Run in independent context (can parallelize with main work)
|
|
103
119
|
|
|
104
|
-
|
|
120
|
+
**Direct fix vs Agent:**
|
|
105
121
|
|
|
106
|
-
|
|
|
107
|
-
|
|
108
|
-
| 1-5
|
|
109
|
-
| 10
|
|
110
|
-
|
|
|
111
|
-
|
|
|
112
|
-
|
|
|
122
|
+
| Situation | Recommended |
|
|
123
|
+
|-----------|-------------|
|
|
124
|
+
| 1-5 simple errors | Direct fix (command) |
|
|
125
|
+
| 10+ errors | @lint-fixer |
|
|
126
|
+
| Multiple complex type errors | @lint-fixer |
|
|
127
|
+
| Quick fix needed | Direct fix |
|
|
128
|
+
| Background execution | @lint-fixer |
|
|
113
129
|
|
|
114
130
|
</agent_usage>
|
|
115
131
|
|
|
@@ -117,13 +133,13 @@ Task({
|
|
|
117
133
|
|
|
118
134
|
<required>
|
|
119
135
|
|
|
120
|
-
|
|
|
121
|
-
|
|
122
|
-
| **Thinking** | Sequential Thinking 3-5
|
|
123
|
-
| **Tracking** |
|
|
124
|
-
| **Strategy** |
|
|
125
|
-
| **Validation** |
|
|
126
|
-
| **Parallel** | 5
|
|
136
|
+
| Category | Required |
|
|
137
|
+
|----------|----------|
|
|
138
|
+
| **Thinking** | Sequential Thinking 3-5 steps per error |
|
|
139
|
+
| **Tracking** | Track error list with TodoWrite |
|
|
140
|
+
| **Strategy** | Fix one → recheck → next error |
|
|
141
|
+
| **Validation** | Recheck each file after fixing |
|
|
142
|
+
| **Parallel** | 5+ independent errors → parallel analysis with Task |
|
|
127
143
|
|
|
128
144
|
</required>
|
|
129
145
|
|
|
@@ -131,22 +147,22 @@ Task({
|
|
|
131
147
|
|
|
132
148
|
<workflow>
|
|
133
149
|
|
|
134
|
-
1.
|
|
150
|
+
1. **Check**
|
|
135
151
|
```bash
|
|
136
152
|
npx tsc --noEmit
|
|
137
153
|
npx eslint .
|
|
138
154
|
```
|
|
139
155
|
|
|
140
|
-
2. **TodoWrite
|
|
141
|
-
-
|
|
156
|
+
2. **Create TodoWrite**
|
|
157
|
+
- Organize error list
|
|
142
158
|
|
|
143
|
-
3.
|
|
144
|
-
- Sequential Thinking 3-5
|
|
145
|
-
-
|
|
146
|
-
-
|
|
147
|
-
- TodoWrite
|
|
159
|
+
3. **Sequential fix** (per error)
|
|
160
|
+
- Sequential Thinking 3-5 steps
|
|
161
|
+
- Apply fix
|
|
162
|
+
- Recheck file
|
|
163
|
+
- Update TodoWrite (completed)
|
|
148
164
|
|
|
149
|
-
4.
|
|
165
|
+
4. **Full recheck**
|
|
150
166
|
|
|
151
167
|
</workflow>
|
|
152
168
|
|
|
@@ -154,24 +170,24 @@ Task({
|
|
|
154
170
|
|
|
155
171
|
<sequential_thinking>
|
|
156
172
|
|
|
157
|
-
|
|
173
|
+
**Required for each error:**
|
|
158
174
|
|
|
159
|
-
|
|
|
160
|
-
|
|
161
|
-
| 1 |
|
|
162
|
-
| 2 |
|
|
163
|
-
| 3 |
|
|
164
|
-
| 4 |
|
|
165
|
-
| 5 |
|
|
175
|
+
| Step | Content |
|
|
176
|
+
|------|---------|
|
|
177
|
+
| 1 | Analyze and understand error message |
|
|
178
|
+
| 2 | Identify relevant code context |
|
|
179
|
+
| 3 | Identify root cause |
|
|
180
|
+
| 4 | Review fix options (consider multiple) |
|
|
181
|
+
| 5 | Select and apply optimal fix |
|
|
166
182
|
|
|
167
|
-
|
|
183
|
+
**Parameters:**
|
|
168
184
|
|
|
169
185
|
```typescript
|
|
170
186
|
{
|
|
171
|
-
thought: "
|
|
187
|
+
thought: "Current thinking content",
|
|
172
188
|
nextThoughtNeeded: true | false,
|
|
173
|
-
thoughtNumber: 1, //
|
|
174
|
-
totalThoughts: 5 //
|
|
189
|
+
thoughtNumber: 1, // current step
|
|
190
|
+
totalThoughts: 5 // expected total steps (dynamic)
|
|
175
191
|
}
|
|
176
192
|
```
|
|
177
193
|
|
|
@@ -181,28 +197,28 @@ Task({
|
|
|
181
197
|
|
|
182
198
|
<parallel_strategy>
|
|
183
199
|
|
|
184
|
-
**5
|
|
200
|
+
**With 5+ errors:**
|
|
185
201
|
|
|
186
202
|
```
|
|
187
|
-
1.
|
|
188
|
-
2.
|
|
189
|
-
3.
|
|
203
|
+
1. Identify independent error groups
|
|
204
|
+
2. Parallel analysis with Task (multiple Task calls in single message)
|
|
205
|
+
3. Combine results then sequential fix
|
|
190
206
|
```
|
|
191
207
|
|
|
192
|
-
|
|
208
|
+
**Rules:**
|
|
193
209
|
|
|
194
|
-
|
|
|
195
|
-
|
|
196
|
-
|
|
|
197
|
-
|
|
|
198
|
-
|
|
|
210
|
+
| Rule | Description |
|
|
211
|
+
|------|-------------|
|
|
212
|
+
| Check independence | Same file/related type → sequential |
|
|
213
|
+
| Parallel analysis only | Always sequential fix application |
|
|
214
|
+
| Validate results | Conflicts → resolve with Sequential Thinking |
|
|
199
215
|
|
|
200
216
|
**subagent_type:**
|
|
201
217
|
|
|
202
|
-
|
|
|
203
|
-
|
|
204
|
-
| `Explore` |
|
|
205
|
-
| `general-purpose` |
|
|
218
|
+
| Type | Purpose |
|
|
219
|
+
|------|---------|
|
|
220
|
+
| `Explore` | Explore code context related to error |
|
|
221
|
+
| `general-purpose` | Deep analysis of complex type errors |
|
|
206
222
|
|
|
207
223
|
</parallel_strategy>
|
|
208
224
|
|
|
@@ -210,29 +226,29 @@ Task({
|
|
|
210
226
|
|
|
211
227
|
<commands>
|
|
212
228
|
|
|
213
|
-
|
|
229
|
+
**Check:**
|
|
214
230
|
|
|
215
231
|
```bash
|
|
216
|
-
# TypeScript (
|
|
232
|
+
# TypeScript (all)
|
|
217
233
|
npx tsc --noEmit
|
|
218
234
|
|
|
219
|
-
# TypeScript (
|
|
235
|
+
# TypeScript (specific file)
|
|
220
236
|
npx tsc --noEmit $ARGUMENTS
|
|
221
237
|
|
|
222
|
-
# ESLint (
|
|
238
|
+
# ESLint (all)
|
|
223
239
|
npx eslint .
|
|
224
240
|
|
|
225
|
-
# ESLint (
|
|
241
|
+
# ESLint (specific file/directory)
|
|
226
242
|
npx eslint $ARGUMENTS
|
|
227
243
|
```
|
|
228
244
|
|
|
229
|
-
|
|
245
|
+
**Argument handling:**
|
|
230
246
|
|
|
231
|
-
|
|
|
232
|
-
|
|
233
|
-
|
|
|
234
|
-
|
|
|
235
|
-
|
|
|
247
|
+
| Argument | Action |
|
|
248
|
+
|----------|--------|
|
|
249
|
+
| None | Check entire project |
|
|
250
|
+
| File path | Check that file only |
|
|
251
|
+
| Directory | Check that directory only |
|
|
236
252
|
|
|
237
253
|
</commands>
|
|
238
254
|
|
|
@@ -240,46 +256,46 @@ npx eslint $ARGUMENTS
|
|
|
240
256
|
|
|
241
257
|
<examples>
|
|
242
258
|
|
|
243
|
-
**Example 1: Sequential Thinking
|
|
259
|
+
**Example 1: Sequential Thinking workflow**
|
|
244
260
|
|
|
245
261
|
```
|
|
246
|
-
1. npx tsc --noEmit
|
|
262
|
+
1. Run npx tsc --noEmit
|
|
247
263
|
→ TS2322: Type 'string' is not assignable to type 'number'
|
|
248
264
|
|
|
249
|
-
2. Sequential Thinking
|
|
250
|
-
thought 1: "TS2322
|
|
251
|
-
thought 2: "
|
|
252
|
-
thought 3: "
|
|
253
|
-
thought 4: "
|
|
254
|
-
thought 5: "
|
|
265
|
+
2. Start Sequential Thinking:
|
|
266
|
+
thought 1: "TS2322 error. Assigning string to number"
|
|
267
|
+
thought 2: "Need to check variable type and value in file"
|
|
268
|
+
thought 3: "Function return type is number but returning string"
|
|
269
|
+
thought 4: "Fix options: 1) Fix return value 2) Change type"
|
|
270
|
+
thought 5: "Fixing return value to correct number is appropriate"
|
|
255
271
|
|
|
256
|
-
3.
|
|
272
|
+
3. Apply fix with Edit
|
|
257
273
|
|
|
258
|
-
4. npx tsc --noEmit $FILE
|
|
274
|
+
4. Recheck with npx tsc --noEmit $FILE → confirm resolution
|
|
259
275
|
|
|
260
|
-
5. TodoWrite
|
|
276
|
+
5. Update TodoWrite (completed) → next error
|
|
261
277
|
```
|
|
262
278
|
|
|
263
|
-
**Example 2:
|
|
279
|
+
**Example 2: Parallel processing (5+ errors)**
|
|
264
280
|
|
|
265
281
|
```
|
|
266
|
-
|
|
282
|
+
Found 3 independent file errors:
|
|
267
283
|
|
|
268
|
-
Task 1: "src/utils/api.ts
|
|
269
|
-
Task 2: "
|
|
270
|
-
Task 3: "src/hooks/useAuth.ts
|
|
284
|
+
Task 1: "Analyze TS2322 in src/utils/api.ts - type mismatch cause and fix"
|
|
285
|
+
Task 2: "Analyze ESLint no-unused-vars in src/components/Form.tsx"
|
|
286
|
+
Task 3: "Analyze TS2532 in src/hooks/useAuth.ts - undefined check location"
|
|
271
287
|
|
|
272
|
-
→ 3
|
|
273
|
-
→
|
|
274
|
-
→
|
|
288
|
+
→ Run 3 Tasks in parallel (single message)
|
|
289
|
+
→ Combine results then use Sequential Thinking to determine fix order
|
|
290
|
+
→ Apply sequential fixes
|
|
275
291
|
```
|
|
276
292
|
|
|
277
|
-
**Example 3:
|
|
293
|
+
**Example 3: Priority**
|
|
278
294
|
|
|
279
|
-
|
|
|
280
|
-
|
|
281
|
-
| 1 |
|
|
282
|
-
| 2 |
|
|
283
|
-
| 3 |
|
|
295
|
+
| Priority | Type | Example |
|
|
296
|
+
|----------|------|---------|
|
|
297
|
+
| 1 | Type errors (blocks compile) | TS2322, TS2345 |
|
|
298
|
+
| 2 | Lint errors (error level) | no-unused-vars |
|
|
299
|
+
| 3 | Lint warnings (warning level) | prefer-const |
|
|
284
300
|
|
|
285
301
|
</examples>
|