@kood/claude-code 0.3.7 → 0.3.8
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 +124 -124
- package/templates/.claude/agents/dependency-manager.md +85 -85
- package/templates/.claude/agents/deployment-validator.md +56 -56
- package/templates/.claude/agents/git-operator.md +64 -64
- package/templates/.claude/agents/implementation-executor.md +95 -95
- package/templates/.claude/agents/ko-to-en-translator.md +74 -0
- package/templates/.claude/agents/lint-fixer.md +78 -78
- package/templates/.claude/agents/refactor-advisor.md +122 -122
- package/templates/.claude/commands/agent-creator.md +185 -185
- package/templates/.claude/commands/bug-fix.md +193 -193
- package/templates/.claude/commands/command-creator.md +54 -54
- package/templates/.claude/commands/docs-creator.md +57 -57
- package/templates/.claude/commands/docs-refactor.md +26 -26
- package/templates/.claude/commands/execute.md +12 -12
- package/templates/.claude/commands/git-all.md +32 -32
- package/templates/.claude/commands/git-session.md +42 -42
- package/templates/.claude/commands/git.md +34 -34
- package/templates/.claude/commands/lint-fix.md +138 -138
- package/templates/.claude/commands/lint-init.md +61 -61
- package/templates/.claude/commands/plan.md +260 -260
- package/templates/.claude/commands/prd.md +24 -24
- package/templates/.claude/commands/pre-deploy.md +109 -109
- package/templates/.claude/commands/refactor.md +147 -147
- package/templates/.claude/commands/version-update.md +17 -17
- package/templates/hono/CLAUDE.md +27 -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 +51 -51
- 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 +37 -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 +53 -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,68 @@
|
|
|
1
1
|
---
|
|
2
|
-
description: tsc/eslint
|
|
2
|
+
description: Check and fix tsc/eslint errors one by one. @lint-fixer agent required.
|
|
3
3
|
allowed-tools: Task
|
|
4
|
-
argument-hint: [
|
|
4
|
+
argument-hint: [file/directory paths...]
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
# Lint Fix Command
|
|
8
8
|
|
|
9
|
-
>
|
|
9
|
+
> Automatically fix tsc/eslint errors using the @lint-fixer agent.
|
|
10
10
|
|
|
11
11
|
---
|
|
12
12
|
|
|
13
13
|
<critical_requirements>
|
|
14
14
|
|
|
15
|
-
## ⚠️ CRITICAL:
|
|
15
|
+
## ⚠️ CRITICAL: Required checks before proceeding
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
**This command must use the @lint-fixer agent.**
|
|
18
18
|
|
|
19
|
-
### MANDATORY:
|
|
19
|
+
### MANDATORY: Call @lint-fixer with Task tool
|
|
20
20
|
|
|
21
21
|
```typescript
|
|
22
22
|
Task({
|
|
23
23
|
subagent_type: 'lint-fixer',
|
|
24
|
-
description: 'tsc/eslint
|
|
24
|
+
description: 'Fix tsc/eslint errors',
|
|
25
25
|
prompt: `
|
|
26
|
-
$ARGUMENTS
|
|
27
|
-
${$ARGUMENTS ?
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
1. tsc + eslint
|
|
31
|
-
2.
|
|
32
|
-
3.
|
|
33
|
-
4.
|
|
34
|
-
5.
|
|
35
|
-
6.
|
|
26
|
+
Handle $ARGUMENTS:
|
|
27
|
+
${$ARGUMENTS ? `Specific paths: ${$ARGUMENTS}` : 'Check entire project'}
|
|
28
|
+
|
|
29
|
+
Tasks to perform:
|
|
30
|
+
1. Run tsc + eslint in parallel
|
|
31
|
+
2. Classify errors (simple/complex)
|
|
32
|
+
3. Create error list with TodoWrite
|
|
33
|
+
4. Simple errors: fix immediately
|
|
34
|
+
5. Complex errors: analyze with Sequential Thinking then fix
|
|
35
|
+
6. Verify with full recheck
|
|
36
36
|
`
|
|
37
37
|
})
|
|
38
38
|
```
|
|
39
39
|
|
|
40
|
-
**❌
|
|
41
|
-
-
|
|
42
|
-
- @lint-fixer
|
|
43
|
-
-
|
|
40
|
+
**❌ Absolutely forbidden:**
|
|
41
|
+
- Execute tsc/eslint directly with Bash tool and manually fix
|
|
42
|
+
- Fix errors without @lint-fixer
|
|
43
|
+
- Analyze/fix errors directly in command
|
|
44
44
|
|
|
45
|
-
**✅
|
|
46
|
-
-
|
|
47
|
-
-
|
|
48
|
-
-
|
|
45
|
+
**✅ Required:**
|
|
46
|
+
- Call @lint-fixer agent with Task tool
|
|
47
|
+
- Delegate all lint work to agent
|
|
48
|
+
- Agent automatically judges simple/complex and handles accordingly
|
|
49
49
|
|
|
50
|
-
**@lint-fixer
|
|
51
|
-
-
|
|
52
|
-
-
|
|
53
|
-
-
|
|
54
|
-
-
|
|
50
|
+
**@lint-fixer agent benefits:**
|
|
51
|
+
- Simple errors fixed immediately (no Sequential Thinking needed)
|
|
52
|
+
- Complex errors analyzed with Sequential Thinking only (efficient)
|
|
53
|
+
- Auto-track progress with TodoWrite
|
|
54
|
+
- Auto-prioritize (type errors → lint errors)
|
|
55
55
|
|
|
56
56
|
---
|
|
57
57
|
|
|
58
|
-
|
|
58
|
+
**Self-check before proceeding:**
|
|
59
59
|
```text
|
|
60
|
-
□ Task
|
|
61
|
-
□ @lint-fixer
|
|
62
|
-
□
|
|
60
|
+
□ Task tool ready to use?
|
|
61
|
+
□ Delegating work to @lint-fixer agent?
|
|
62
|
+
□ Not executing tsc/eslint directly with Bash?
|
|
63
63
|
```
|
|
64
64
|
|
|
65
|
-
**⚠️
|
|
65
|
+
**⚠️ Do not start if checklist is not complete.**
|
|
66
66
|
|
|
67
67
|
</critical_requirements>
|
|
68
68
|
|
|
@@ -70,11 +70,11 @@ Task({
|
|
|
70
70
|
|
|
71
71
|
<forbidden>
|
|
72
72
|
|
|
73
|
-
|
|
|
74
|
-
|
|
75
|
-
|
|
|
76
|
-
|
|
|
77
|
-
|
|
|
73
|
+
| Category | Forbidden |
|
|
74
|
+
|----------|-----------|
|
|
75
|
+
| **Avoidance** | Excessive `any` type, `@ts-ignore`, `eslint-disable` |
|
|
76
|
+
| **Strategy** | Fix multiple errors simultaneously, fix hastily based on error message alone |
|
|
77
|
+
| **Analysis** | Fix without Sequential Thinking |
|
|
78
78
|
|
|
79
79
|
</forbidden>
|
|
80
80
|
|
|
@@ -82,34 +82,34 @@ Task({
|
|
|
82
82
|
|
|
83
83
|
<agent_usage>
|
|
84
84
|
|
|
85
|
-
## @lint-fixer Agent
|
|
85
|
+
## @lint-fixer Agent Usage
|
|
86
86
|
|
|
87
|
-
|
|
88
|
-
- 10
|
|
89
|
-
-
|
|
90
|
-
-
|
|
87
|
+
**When to use:**
|
|
88
|
+
- 10+ errors
|
|
89
|
+
- Multiple complex type errors
|
|
90
|
+
- Want automatic fixing in background
|
|
91
91
|
|
|
92
|
-
|
|
92
|
+
**How to call:**
|
|
93
93
|
```bash
|
|
94
94
|
@lint-fixer
|
|
95
|
-
#
|
|
96
|
-
"lint
|
|
95
|
+
# or natural language
|
|
96
|
+
"Fix lint errors automatically"
|
|
97
97
|
```
|
|
98
98
|
|
|
99
|
-
|
|
100
|
-
-
|
|
101
|
-
-
|
|
102
|
-
-
|
|
99
|
+
**Benefits:**
|
|
100
|
+
- Simple errors fixed immediately (no Sequential Thinking needed)
|
|
101
|
+
- Complex errors analyzed with Sequential Thinking only (efficient)
|
|
102
|
+
- Run in independent context (can parallelize with main work)
|
|
103
103
|
|
|
104
|
-
|
|
104
|
+
**Direct fix vs Agent:**
|
|
105
105
|
|
|
106
|
-
|
|
|
107
|
-
|
|
108
|
-
| 1-5
|
|
109
|
-
| 10
|
|
110
|
-
|
|
|
111
|
-
|
|
|
112
|
-
|
|
|
106
|
+
| Situation | Recommended |
|
|
107
|
+
|-----------|-------------|
|
|
108
|
+
| 1-5 simple errors | Direct fix (command) |
|
|
109
|
+
| 10+ errors | @lint-fixer |
|
|
110
|
+
| Multiple complex type errors | @lint-fixer |
|
|
111
|
+
| Quick fix needed | Direct fix |
|
|
112
|
+
| Background execution | @lint-fixer |
|
|
113
113
|
|
|
114
114
|
</agent_usage>
|
|
115
115
|
|
|
@@ -117,13 +117,13 @@ Task({
|
|
|
117
117
|
|
|
118
118
|
<required>
|
|
119
119
|
|
|
120
|
-
|
|
|
121
|
-
|
|
122
|
-
| **Thinking** | Sequential Thinking 3-5
|
|
123
|
-
| **Tracking** |
|
|
124
|
-
| **Strategy** |
|
|
125
|
-
| **Validation** |
|
|
126
|
-
| **Parallel** | 5
|
|
120
|
+
| Category | Required |
|
|
121
|
+
|----------|----------|
|
|
122
|
+
| **Thinking** | Sequential Thinking 3-5 steps per error |
|
|
123
|
+
| **Tracking** | Track error list with TodoWrite |
|
|
124
|
+
| **Strategy** | Fix one → recheck → next error |
|
|
125
|
+
| **Validation** | Recheck each file after fixing |
|
|
126
|
+
| **Parallel** | 5+ independent errors → parallel analysis with Task |
|
|
127
127
|
|
|
128
128
|
</required>
|
|
129
129
|
|
|
@@ -131,22 +131,22 @@ Task({
|
|
|
131
131
|
|
|
132
132
|
<workflow>
|
|
133
133
|
|
|
134
|
-
1.
|
|
134
|
+
1. **Check**
|
|
135
135
|
```bash
|
|
136
136
|
npx tsc --noEmit
|
|
137
137
|
npx eslint .
|
|
138
138
|
```
|
|
139
139
|
|
|
140
|
-
2. **TodoWrite
|
|
141
|
-
-
|
|
140
|
+
2. **Create TodoWrite**
|
|
141
|
+
- Organize error list
|
|
142
142
|
|
|
143
|
-
3.
|
|
144
|
-
- Sequential Thinking 3-5
|
|
145
|
-
-
|
|
146
|
-
-
|
|
147
|
-
- TodoWrite
|
|
143
|
+
3. **Sequential fix** (per error)
|
|
144
|
+
- Sequential Thinking 3-5 steps
|
|
145
|
+
- Apply fix
|
|
146
|
+
- Recheck file
|
|
147
|
+
- Update TodoWrite (completed)
|
|
148
148
|
|
|
149
|
-
4.
|
|
149
|
+
4. **Full recheck**
|
|
150
150
|
|
|
151
151
|
</workflow>
|
|
152
152
|
|
|
@@ -154,24 +154,24 @@ Task({
|
|
|
154
154
|
|
|
155
155
|
<sequential_thinking>
|
|
156
156
|
|
|
157
|
-
|
|
157
|
+
**Required for each error:**
|
|
158
158
|
|
|
159
|
-
|
|
|
160
|
-
|
|
161
|
-
| 1 |
|
|
162
|
-
| 2 |
|
|
163
|
-
| 3 |
|
|
164
|
-
| 4 |
|
|
165
|
-
| 5 |
|
|
159
|
+
| Step | Content |
|
|
160
|
+
|------|---------|
|
|
161
|
+
| 1 | Analyze and understand error message |
|
|
162
|
+
| 2 | Identify relevant code context |
|
|
163
|
+
| 3 | Identify root cause |
|
|
164
|
+
| 4 | Review fix options (consider multiple) |
|
|
165
|
+
| 5 | Select and apply optimal fix |
|
|
166
166
|
|
|
167
|
-
|
|
167
|
+
**Parameters:**
|
|
168
168
|
|
|
169
169
|
```typescript
|
|
170
170
|
{
|
|
171
|
-
thought: "
|
|
171
|
+
thought: "Current thinking content",
|
|
172
172
|
nextThoughtNeeded: true | false,
|
|
173
|
-
thoughtNumber: 1, //
|
|
174
|
-
totalThoughts: 5 //
|
|
173
|
+
thoughtNumber: 1, // current step
|
|
174
|
+
totalThoughts: 5 // expected total steps (dynamic)
|
|
175
175
|
}
|
|
176
176
|
```
|
|
177
177
|
|
|
@@ -181,28 +181,28 @@ Task({
|
|
|
181
181
|
|
|
182
182
|
<parallel_strategy>
|
|
183
183
|
|
|
184
|
-
**5
|
|
184
|
+
**With 5+ errors:**
|
|
185
185
|
|
|
186
186
|
```
|
|
187
|
-
1.
|
|
188
|
-
2.
|
|
189
|
-
3.
|
|
187
|
+
1. Identify independent error groups
|
|
188
|
+
2. Parallel analysis with Task (multiple Task calls in single message)
|
|
189
|
+
3. Combine results then sequential fix
|
|
190
190
|
```
|
|
191
191
|
|
|
192
|
-
|
|
192
|
+
**Rules:**
|
|
193
193
|
|
|
194
|
-
|
|
|
195
|
-
|
|
196
|
-
|
|
|
197
|
-
|
|
|
198
|
-
|
|
|
194
|
+
| Rule | Description |
|
|
195
|
+
|------|-------------|
|
|
196
|
+
| Check independence | Same file/related type → sequential |
|
|
197
|
+
| Parallel analysis only | Always sequential fix application |
|
|
198
|
+
| Validate results | Conflicts → resolve with Sequential Thinking |
|
|
199
199
|
|
|
200
200
|
**subagent_type:**
|
|
201
201
|
|
|
202
|
-
|
|
|
203
|
-
|
|
204
|
-
| `Explore` |
|
|
205
|
-
| `general-purpose` |
|
|
202
|
+
| Type | Purpose |
|
|
203
|
+
|------|---------|
|
|
204
|
+
| `Explore` | Explore code context related to error |
|
|
205
|
+
| `general-purpose` | Deep analysis of complex type errors |
|
|
206
206
|
|
|
207
207
|
</parallel_strategy>
|
|
208
208
|
|
|
@@ -210,29 +210,29 @@ Task({
|
|
|
210
210
|
|
|
211
211
|
<commands>
|
|
212
212
|
|
|
213
|
-
|
|
213
|
+
**Check:**
|
|
214
214
|
|
|
215
215
|
```bash
|
|
216
|
-
# TypeScript (
|
|
216
|
+
# TypeScript (all)
|
|
217
217
|
npx tsc --noEmit
|
|
218
218
|
|
|
219
|
-
# TypeScript (
|
|
219
|
+
# TypeScript (specific file)
|
|
220
220
|
npx tsc --noEmit $ARGUMENTS
|
|
221
221
|
|
|
222
|
-
# ESLint (
|
|
222
|
+
# ESLint (all)
|
|
223
223
|
npx eslint .
|
|
224
224
|
|
|
225
|
-
# ESLint (
|
|
225
|
+
# ESLint (specific file/directory)
|
|
226
226
|
npx eslint $ARGUMENTS
|
|
227
227
|
```
|
|
228
228
|
|
|
229
|
-
|
|
229
|
+
**Argument handling:**
|
|
230
230
|
|
|
231
|
-
|
|
|
232
|
-
|
|
233
|
-
|
|
|
234
|
-
|
|
|
235
|
-
|
|
|
231
|
+
| Argument | Action |
|
|
232
|
+
|----------|--------|
|
|
233
|
+
| None | Check entire project |
|
|
234
|
+
| File path | Check that file only |
|
|
235
|
+
| Directory | Check that directory only |
|
|
236
236
|
|
|
237
237
|
</commands>
|
|
238
238
|
|
|
@@ -240,46 +240,46 @@ npx eslint $ARGUMENTS
|
|
|
240
240
|
|
|
241
241
|
<examples>
|
|
242
242
|
|
|
243
|
-
**Example 1: Sequential Thinking
|
|
243
|
+
**Example 1: Sequential Thinking workflow**
|
|
244
244
|
|
|
245
245
|
```
|
|
246
|
-
1. npx tsc --noEmit
|
|
246
|
+
1. Run npx tsc --noEmit
|
|
247
247
|
→ TS2322: Type 'string' is not assignable to type 'number'
|
|
248
248
|
|
|
249
|
-
2. Sequential Thinking
|
|
250
|
-
thought 1: "TS2322
|
|
251
|
-
thought 2: "
|
|
252
|
-
thought 3: "
|
|
253
|
-
thought 4: "
|
|
254
|
-
thought 5: "
|
|
249
|
+
2. Start Sequential Thinking:
|
|
250
|
+
thought 1: "TS2322 error. Assigning string to number"
|
|
251
|
+
thought 2: "Need to check variable type and value in file"
|
|
252
|
+
thought 3: "Function return type is number but returning string"
|
|
253
|
+
thought 4: "Fix options: 1) Fix return value 2) Change type"
|
|
254
|
+
thought 5: "Fixing return value to correct number is appropriate"
|
|
255
255
|
|
|
256
|
-
3.
|
|
256
|
+
3. Apply fix with Edit
|
|
257
257
|
|
|
258
|
-
4. npx tsc --noEmit $FILE
|
|
258
|
+
4. Recheck with npx tsc --noEmit $FILE → confirm resolution
|
|
259
259
|
|
|
260
|
-
5. TodoWrite
|
|
260
|
+
5. Update TodoWrite (completed) → next error
|
|
261
261
|
```
|
|
262
262
|
|
|
263
|
-
**Example 2:
|
|
263
|
+
**Example 2: Parallel processing (5+ errors)**
|
|
264
264
|
|
|
265
265
|
```
|
|
266
|
-
|
|
266
|
+
Found 3 independent file errors:
|
|
267
267
|
|
|
268
|
-
Task 1: "src/utils/api.ts
|
|
269
|
-
Task 2: "
|
|
270
|
-
Task 3: "src/hooks/useAuth.ts
|
|
268
|
+
Task 1: "Analyze TS2322 in src/utils/api.ts - type mismatch cause and fix"
|
|
269
|
+
Task 2: "Analyze ESLint no-unused-vars in src/components/Form.tsx"
|
|
270
|
+
Task 3: "Analyze TS2532 in src/hooks/useAuth.ts - undefined check location"
|
|
271
271
|
|
|
272
|
-
→ 3
|
|
273
|
-
→
|
|
274
|
-
→
|
|
272
|
+
→ Run 3 Tasks in parallel (single message)
|
|
273
|
+
→ Combine results then use Sequential Thinking to determine fix order
|
|
274
|
+
→ Apply sequential fixes
|
|
275
275
|
```
|
|
276
276
|
|
|
277
|
-
**Example 3:
|
|
277
|
+
**Example 3: Priority**
|
|
278
278
|
|
|
279
|
-
|
|
|
280
|
-
|
|
281
|
-
| 1 |
|
|
282
|
-
| 2 |
|
|
283
|
-
| 3 |
|
|
279
|
+
| Priority | Type | Example |
|
|
280
|
+
|----------|------|---------|
|
|
281
|
+
| 1 | Type errors (blocks compile) | TS2322, TS2345 |
|
|
282
|
+
| 2 | Lint errors (error level) | no-unused-vars |
|
|
283
|
+
| 3 | Lint warnings (warning level) | prefer-const |
|
|
284
284
|
|
|
285
285
|
</examples>
|