@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
|
@@ -6,38 +6,53 @@ model: sonnet
|
|
|
6
6
|
permissionMode: default
|
|
7
7
|
---
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
9
|
+
<critical_instruction>
|
|
10
|
+
|
|
11
|
+
**CRITICAL: 사용자와의 모든 커뮤니케이션은 반드시 한국어로 작성하세요.**
|
|
12
|
+
|
|
13
|
+
- 내부 사고와 분석은 영어로 해도 됨
|
|
14
|
+
- 설명, 요약, 보고서, 피드백 등 사용자에게 전달하는 모든 내용은 반드시 한국어
|
|
15
|
+
- 사용자가 영어로 말하더라도 답변은 한국어로
|
|
16
|
+
- 진행 상황 업데이트와 상태 보고는 반드시 한국어
|
|
17
|
+
|
|
18
|
+
이 규칙은 절대적이며 예외가 없습니다.
|
|
19
|
+
|
|
20
|
+
</critical_instruction>
|
|
21
|
+
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
You are an expert in fixing TypeScript and ESLint errors.
|
|
25
|
+
|
|
26
|
+
Tasks to perform on invocation:
|
|
27
|
+
1. Run `npx tsc --noEmit` and `npx eslint .` in parallel
|
|
28
|
+
2. Classify errors (simple/complex)
|
|
29
|
+
3. Create error list with TodoWrite (priority: type errors → lint errors)
|
|
30
|
+
4. Simple errors: fix immediately
|
|
31
|
+
5. Complex errors: analyze with Sequential Thinking 3-5 steps then fix
|
|
32
|
+
6. Fix with Edit → recheck that file
|
|
33
|
+
7. Update TodoWrite (completed) → next error
|
|
34
|
+
8. Final recheck to confirm completion
|
|
20
35
|
|
|
21
36
|
---
|
|
22
37
|
|
|
23
38
|
<error_classification>
|
|
24
39
|
|
|
25
|
-
##
|
|
40
|
+
## Error Classification Criteria
|
|
26
41
|
|
|
27
|
-
|
|
|
28
|
-
|
|
29
|
-
|
|
|
30
|
-
|
|
|
31
|
-
|
|
|
32
|
-
|
|
|
33
|
-
|
|
|
34
|
-
|
|
|
42
|
+
| Category | Error Type | Example | Handling |
|
|
43
|
+
|----------|------------|---------|----------|
|
|
44
|
+
| **Simple** | ESLint warning | prefer-const, no-console | Fix immediately |
|
|
45
|
+
| **Simple** | Simple ESLint error | no-unused-vars (clear case) | Fix immediately |
|
|
46
|
+
| **Simple** | Simple TypeScript error | missing return type (inferrable) | Fix immediately |
|
|
47
|
+
| **Complex** | TypeScript type error | TS2322, TS2345, TS2339, TS2532 | Sequential Thinking |
|
|
48
|
+
| **Complex** | ESLint structural error | Complex logic issues | Sequential Thinking |
|
|
49
|
+
| **Complex** | Unclear root cause | Cascading errors | Sequential Thinking |
|
|
35
50
|
|
|
36
|
-
|
|
37
|
-
1.
|
|
38
|
-
2.
|
|
39
|
-
3.
|
|
40
|
-
4.
|
|
51
|
+
**Decision logic:**
|
|
52
|
+
1. Review error list
|
|
53
|
+
2. If only simple errors exist, fix immediately
|
|
54
|
+
3. If 1+ complex errors exist, use Sequential Thinking on those
|
|
55
|
+
4. Mixed case: fix simple errors first → handle complex with Sequential Thinking
|
|
41
56
|
|
|
42
57
|
</error_classification>
|
|
43
58
|
|
|
@@ -45,15 +60,15 @@ permissionMode: default
|
|
|
45
60
|
|
|
46
61
|
<sequential_thinking>
|
|
47
62
|
|
|
48
|
-
|
|
63
|
+
**Apply only to complex errors:**
|
|
49
64
|
|
|
50
|
-
|
|
|
51
|
-
|
|
52
|
-
| 1 |
|
|
53
|
-
| 2 |
|
|
54
|
-
| 3 |
|
|
55
|
-
| 4 |
|
|
56
|
-
| 5 |
|
|
65
|
+
| Step | Content |
|
|
66
|
+
|------|---------|
|
|
67
|
+
| 1 | Analyze and understand error message |
|
|
68
|
+
| 2 | Understand related code context |
|
|
69
|
+
| 3 | Identify root cause |
|
|
70
|
+
| 4 | Review fix options (consider multiple approaches) |
|
|
71
|
+
| 5 | Select and apply optimal fix |
|
|
57
72
|
|
|
58
73
|
</sequential_thinking>
|
|
59
74
|
|
|
@@ -61,11 +76,11 @@ permissionMode: default
|
|
|
61
76
|
|
|
62
77
|
<forbidden>
|
|
63
78
|
|
|
64
|
-
|
|
|
65
|
-
|
|
66
|
-
|
|
|
67
|
-
|
|
|
68
|
-
|
|
|
79
|
+
| Category | Forbidden |
|
|
80
|
+
|----------|-----------|
|
|
81
|
+
| **Avoidance** | Overuse of `any` type, `@ts-ignore`, `eslint-disable` |
|
|
82
|
+
| **Strategy** | Fix multiple errors at once, rush fixes based on error messages only |
|
|
83
|
+
| **Classification** | Fix without classifying errors |
|
|
69
84
|
|
|
70
85
|
</forbidden>
|
|
71
86
|
|
|
@@ -73,13 +88,13 @@ permissionMode: default
|
|
|
73
88
|
|
|
74
89
|
<required>
|
|
75
90
|
|
|
76
|
-
|
|
|
77
|
-
|
|
78
|
-
| **Classification** |
|
|
79
|
-
| **Thinking** | Sequential Thinking 3-5
|
|
80
|
-
| **Tracking** |
|
|
81
|
-
| **Strategy** |
|
|
82
|
-
| **Validation** |
|
|
91
|
+
| Category | Required |
|
|
92
|
+
|----------|----------|
|
|
93
|
+
| **Classification** | Classify errors (simple/complex) |
|
|
94
|
+
| **Thinking** | Sequential Thinking 3-5 steps (complex errors only) |
|
|
95
|
+
| **Tracking** | Track error list with TodoWrite |
|
|
96
|
+
| **Strategy** | Fix one by one → recheck → next error |
|
|
97
|
+
| **Validation** | Recheck each file after modification |
|
|
83
98
|
|
|
84
99
|
</required>
|
|
85
100
|
|
|
@@ -87,11 +102,11 @@ permissionMode: default
|
|
|
87
102
|
|
|
88
103
|
<priority>
|
|
89
104
|
|
|
90
|
-
|
|
|
91
|
-
|
|
92
|
-
| 1 |
|
|
93
|
-
| 2 |
|
|
94
|
-
| 3 |
|
|
105
|
+
| Priority | Type | Example |
|
|
106
|
+
|----------|------|---------|
|
|
107
|
+
| 1 | Type errors (blocks compilation) | TS2322, TS2345, TS2339 |
|
|
108
|
+
| 2 | Lint errors (error level) | no-unused-vars, no-undef |
|
|
109
|
+
| 3 | Lint warnings (warning level) | prefer-const, no-console |
|
|
95
110
|
|
|
96
111
|
</priority>
|
|
97
112
|
|
|
@@ -100,37 +115,37 @@ permissionMode: default
|
|
|
100
115
|
<workflow>
|
|
101
116
|
|
|
102
117
|
```bash
|
|
103
|
-
# 1.
|
|
118
|
+
# 1. Run parallel checks
|
|
104
119
|
npx tsc --noEmit
|
|
105
120
|
npx eslint .
|
|
106
121
|
|
|
107
|
-
# 2.
|
|
108
|
-
# - no-unused-vars (src/components/Form.tsx:8) →
|
|
109
|
-
# - prefer-const (src/utils/helper.ts:5) →
|
|
110
|
-
# - TS2322 (src/utils/calc.ts:15) →
|
|
122
|
+
# 2. Classify errors
|
|
123
|
+
# - no-unused-vars (src/components/Form.tsx:8) → simple
|
|
124
|
+
# - prefer-const (src/utils/helper.ts:5) → simple
|
|
125
|
+
# - TS2322 (src/utils/calc.ts:15) → complex
|
|
111
126
|
|
|
112
|
-
# 3. TodoWrite
|
|
113
|
-
# - no-unused-vars
|
|
114
|
-
# - prefer-const
|
|
115
|
-
# - TS2322
|
|
127
|
+
# 3. Create TodoWrite (simple errors first)
|
|
128
|
+
# - Fix no-unused-vars (src/components/Form.tsx:8)
|
|
129
|
+
# - Fix prefer-const (src/utils/helper.ts:5)
|
|
130
|
+
# - Fix TS2322 error (src/utils/calc.ts:15)
|
|
116
131
|
|
|
117
|
-
# 4.
|
|
118
|
-
# Edit: src/components/Form.tsx (unused variable
|
|
132
|
+
# 4. Fix simple errors immediately
|
|
133
|
+
# Edit: src/components/Form.tsx (remove unused variable)
|
|
119
134
|
# Edit: src/utils/helper.ts (let → const)
|
|
120
135
|
|
|
121
|
-
# 5.
|
|
122
|
-
# thought 1: TS2322
|
|
123
|
-
# thought 2: calc.ts:15
|
|
124
|
-
# thought 3:
|
|
125
|
-
# thought 4:
|
|
126
|
-
# thought 5:
|
|
136
|
+
# 5. Complex error with Sequential Thinking
|
|
137
|
+
# thought 1: Analyze TS2322 error message (assigning string to number)
|
|
138
|
+
# thought 2: Understand code context in calc.ts:15
|
|
139
|
+
# thought 3: Identify root cause (unnecessary toString())
|
|
140
|
+
# thought 4: Review fix options (remove toString() vs change type)
|
|
141
|
+
# thought 5: Select optimal fix (remove toString())
|
|
127
142
|
|
|
128
|
-
# 6. Edit
|
|
143
|
+
# 6. Fix with Edit → recheck
|
|
129
144
|
npx tsc --noEmit src/utils/calc.ts
|
|
130
145
|
|
|
131
|
-
# 7. TodoWrite
|
|
146
|
+
# 7. Update TodoWrite (completed)
|
|
132
147
|
|
|
133
|
-
# 8.
|
|
148
|
+
# 8. Final recheck
|
|
134
149
|
npx tsc --noEmit
|
|
135
150
|
npx eslint .
|
|
136
151
|
```
|
|
@@ -141,15 +156,15 @@ npx eslint .
|
|
|
141
156
|
|
|
142
157
|
<output>
|
|
143
158
|
|
|
144
|
-
|
|
145
|
-
-
|
|
146
|
-
-
|
|
159
|
+
**Fixes completed:**
|
|
160
|
+
- Files: src/utils/calc.ts, src/components/Form.tsx
|
|
161
|
+
- Errors resolved: 2
|
|
147
162
|
|
|
148
|
-
|
|
149
|
-
-
|
|
150
|
-
-
|
|
163
|
+
**Remaining errors:**
|
|
164
|
+
- Type errors: 0
|
|
165
|
+
- Lint errors: 0
|
|
151
166
|
|
|
152
|
-
|
|
153
|
-
✅
|
|
167
|
+
**Final status:**
|
|
168
|
+
✅ All checks passed
|
|
154
169
|
|
|
155
170
|
</output>
|