@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
|
@@ -3,19 +3,35 @@ description: 프로젝트 분석 후 ESLint flat config 설정
|
|
|
3
3
|
allowed-tools: Read, Write, Edit, Glob, Bash, mcp__sequential-thinking__sequentialthinking
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
+
|
|
7
|
+
<critical_instruction>
|
|
8
|
+
|
|
9
|
+
**CRITICAL: 사용자와의 모든 커뮤니케이션은 반드시 한국어로 작성하세요.**
|
|
10
|
+
|
|
11
|
+
- 내부 사고와 분석은 영어로 해도 됨
|
|
12
|
+
- 설명, 요약, 보고서, 피드백 등 사용자에게 전달하는 모든 내용은 반드시 한국어
|
|
13
|
+
- 사용자가 영어로 말하더라도 답변은 한국어로
|
|
14
|
+
- 진행 상황 업데이트와 상태 보고는 반드시 한국어
|
|
15
|
+
|
|
16
|
+
이 규칙은 절대적이며 예외가 없습니다.
|
|
17
|
+
|
|
18
|
+
</critical_instruction>
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
6
22
|
@../instructions/sequential-thinking-guide.md
|
|
7
23
|
|
|
8
24
|
# Lint Init Command
|
|
9
25
|
|
|
10
|
-
|
|
26
|
+
Analyze project → automatically generate ESLint flat config.
|
|
11
27
|
|
|
12
28
|
<requirements>
|
|
13
29
|
|
|
14
|
-
|
|
|
15
|
-
|
|
16
|
-
| **Thinking** | Sequential 5-7
|
|
30
|
+
| Category | Required |
|
|
31
|
+
|----------|----------|
|
|
32
|
+
| **Thinking** | Sequential 5-7 steps (@sequential-thinking-guide.md) |
|
|
17
33
|
| **Config** | ESLint v9+ flat config (`eslint.config.js`) |
|
|
18
|
-
| **Detection** |
|
|
34
|
+
| **Detection** | Auto-detect language/framework/runtime |
|
|
19
35
|
|
|
20
36
|
</requirements>
|
|
21
37
|
|
|
@@ -24,28 +40,28 @@ allowed-tools: Read, Write, Edit, Glob, Bash, mcp__sequential-thinking__sequenti
|
|
|
24
40
|
<workflow>
|
|
25
41
|
|
|
26
42
|
<step number="1">
|
|
27
|
-
<action>Sequential Thinking
|
|
28
|
-
<detail
|
|
43
|
+
<action>Start Sequential Thinking</action>
|
|
44
|
+
<detail>Analyze project structure, dependencies, existing config (5-7 steps)</detail>
|
|
29
45
|
</step>
|
|
30
46
|
|
|
31
47
|
<step number="2">
|
|
32
|
-
<action
|
|
33
|
-
<tools>Read (package.json, tsconfig.json,
|
|
48
|
+
<action>Collect core files</action>
|
|
49
|
+
<tools>Read (package.json, tsconfig.json, existing ESLint config)</tools>
|
|
34
50
|
</step>
|
|
35
51
|
|
|
36
52
|
<step number="3">
|
|
37
|
-
<action
|
|
38
|
-
<detail
|
|
53
|
+
<action>Detect project characteristics</action>
|
|
54
|
+
<detail>Language (TS/JS), runtime (Node/Browser), framework (React/Vue/etc.)</detail>
|
|
39
55
|
</step>
|
|
40
56
|
|
|
41
57
|
<step number="4">
|
|
42
|
-
<action>ESLint
|
|
58
|
+
<action>Generate ESLint config</action>
|
|
43
59
|
<deliverable>eslint.config.js</deliverable>
|
|
44
60
|
</step>
|
|
45
61
|
|
|
46
62
|
<step number="5">
|
|
47
|
-
<action
|
|
48
|
-
<detail
|
|
63
|
+
<action>Guide package installation</action>
|
|
64
|
+
<detail>Required packages list + npm/yarn/pnpm commands</detail>
|
|
49
65
|
</step>
|
|
50
66
|
|
|
51
67
|
</workflow>
|
|
@@ -54,30 +70,30 @@ allowed-tools: Read, Write, Edit, Glob, Bash, mcp__sequential-thinking__sequenti
|
|
|
54
70
|
|
|
55
71
|
<detection>
|
|
56
72
|
|
|
57
|
-
##
|
|
73
|
+
## Project Characteristic Detection
|
|
58
74
|
|
|
59
|
-
###
|
|
75
|
+
### Language
|
|
60
76
|
|
|
61
|
-
|
|
|
62
|
-
|
|
63
|
-
| `tsconfig.json`
|
|
77
|
+
| Condition | Judgment |
|
|
78
|
+
|-----------|----------|
|
|
79
|
+
| `tsconfig.json` exists | TypeScript |
|
|
64
80
|
| `devDependencies.typescript` | TypeScript |
|
|
65
|
-
| `src/**/*.{ts,tsx}`
|
|
66
|
-
|
|
|
81
|
+
| `src/**/*.{ts,tsx}` files | TypeScript |
|
|
82
|
+
| Otherwise | JavaScript |
|
|
67
83
|
|
|
68
|
-
###
|
|
84
|
+
### Framework
|
|
69
85
|
|
|
70
|
-
|
|
|
71
|
-
|
|
86
|
+
| Dependency | Framework | Additional Plugins |
|
|
87
|
+
|------------|-----------|-------------------|
|
|
72
88
|
| `react` | React | `eslint-plugin-react`, `eslint-plugin-react-hooks` |
|
|
73
|
-
| `next` | Next.js | React + Next.js
|
|
89
|
+
| `next` | Next.js | React + Next.js rules |
|
|
74
90
|
| `vue` | Vue | `eslint-plugin-vue`, `vue-eslint-parser` |
|
|
75
|
-
| `express`, `hono`, `fastify` | Node.js
|
|
91
|
+
| `express`, `hono`, `fastify` | Node.js server | - |
|
|
76
92
|
|
|
77
|
-
###
|
|
93
|
+
### Runtime
|
|
78
94
|
|
|
79
|
-
|
|
|
80
|
-
|
|
95
|
+
| Condition | globals |
|
|
96
|
+
|-----------|---------|
|
|
81
97
|
| `express`, `fastify`, `hono` | `globals.node` |
|
|
82
98
|
| `react`, `vue`, `angular` | `globals.browser` |
|
|
83
99
|
| `next`, `nuxt` | `globals.node` + `globals.browser` |
|
|
@@ -88,9 +104,9 @@ allowed-tools: Read, Write, Edit, Glob, Bash, mcp__sequential-thinking__sequenti
|
|
|
88
104
|
|
|
89
105
|
<templates>
|
|
90
106
|
|
|
91
|
-
## ESLint Flat Config
|
|
107
|
+
## ESLint Flat Config Patterns
|
|
92
108
|
|
|
93
|
-
###
|
|
109
|
+
### Basic structure (TypeScript + Node.js)
|
|
94
110
|
|
|
95
111
|
```javascript
|
|
96
112
|
import eslint from '@eslint/js'
|
|
@@ -129,10 +145,10 @@ export default [
|
|
|
129
145
|
]
|
|
130
146
|
```
|
|
131
147
|
|
|
132
|
-
###
|
|
148
|
+
### When adding React
|
|
133
149
|
|
|
134
150
|
```javascript
|
|
135
|
-
//
|
|
151
|
+
// Add to basic structure above:
|
|
136
152
|
import reactPlugin from 'eslint-plugin-react'
|
|
137
153
|
import reactHooksPlugin from 'eslint-plugin-react-hooks'
|
|
138
154
|
|
|
@@ -149,7 +165,7 @@ export default [
|
|
|
149
165
|
react: { version: 'detect' },
|
|
150
166
|
},
|
|
151
167
|
rules: {
|
|
152
|
-
// ...
|
|
168
|
+
// ... above rules +
|
|
153
169
|
...reactPlugin.configs.recommended.rules,
|
|
154
170
|
...reactHooksPlugin.configs.recommended.rules,
|
|
155
171
|
'react/react-in-jsx-scope': 'off',
|
|
@@ -159,7 +175,7 @@ export default [
|
|
|
159
175
|
]
|
|
160
176
|
```
|
|
161
177
|
|
|
162
|
-
### JavaScript
|
|
178
|
+
### JavaScript only
|
|
163
179
|
|
|
164
180
|
```javascript
|
|
165
181
|
import eslint from '@eslint/js'
|
|
@@ -192,19 +208,19 @@ export default [
|
|
|
192
208
|
|
|
193
209
|
<packages>
|
|
194
210
|
|
|
195
|
-
##
|
|
211
|
+
## Required packages
|
|
196
212
|
|
|
197
|
-
|
|
|
198
|
-
|
|
199
|
-
|
|
|
200
|
-
| **TypeScript** |
|
|
201
|
-
| **React** |
|
|
202
|
-
| **Vue** |
|
|
213
|
+
| Condition | Packages |
|
|
214
|
+
|-----------|----------|
|
|
215
|
+
| **Base** | `eslint @eslint/js globals` |
|
|
216
|
+
| **TypeScript** | Above + `@typescript-eslint/parser @typescript-eslint/eslint-plugin` |
|
|
217
|
+
| **React** | Above + `eslint-plugin-react eslint-plugin-react-hooks` |
|
|
218
|
+
| **Vue** | Above + `eslint-plugin-vue vue-eslint-parser` |
|
|
203
219
|
|
|
204
|
-
###
|
|
220
|
+
### Installation commands
|
|
205
221
|
|
|
206
222
|
```bash
|
|
207
|
-
#
|
|
223
|
+
# Base (JavaScript)
|
|
208
224
|
npm install -D eslint @eslint/js globals
|
|
209
225
|
|
|
210
226
|
# TypeScript
|
|
@@ -220,18 +236,18 @@ npm install -D eslint @eslint/js globals @typescript-eslint/parser @typescript-e
|
|
|
220
236
|
|
|
221
237
|
<migration>
|
|
222
238
|
|
|
223
|
-
##
|
|
239
|
+
## Handle existing configuration
|
|
224
240
|
|
|
225
|
-
|
|
|
226
|
-
|
|
227
|
-
| `.eslintrc.{json,js,yml}` | flat config
|
|
228
|
-
| `package.json` `eslintConfig` | flat config
|
|
241
|
+
| File | Action |
|
|
242
|
+
|------|--------|
|
|
243
|
+
| `.eslintrc.{json,js,yml}` | Convert to flat config → backup and remove |
|
|
244
|
+
| `package.json` `eslintConfig` | Convert to flat config → remove from `package.json` |
|
|
229
245
|
|
|
230
|
-
|
|
231
|
-
1.
|
|
232
|
-
2. flat config
|
|
233
|
-
3.
|
|
234
|
-
4. `eslint.config.js`
|
|
246
|
+
**Conversion method:**
|
|
247
|
+
1. Extract existing `rules`, `extends`, `plugins`
|
|
248
|
+
2. Convert to flat config format
|
|
249
|
+
3. Backup original (`.eslintrc.backup`)
|
|
250
|
+
4. Create `eslint.config.js`
|
|
235
251
|
|
|
236
252
|
</migration>
|
|
237
253
|
|
|
@@ -239,7 +255,7 @@ npm install -D eslint @eslint/js globals @typescript-eslint/parser @typescript-e
|
|
|
239
255
|
|
|
240
256
|
<scripts>
|
|
241
257
|
|
|
242
|
-
## package.json
|
|
258
|
+
## package.json scripts
|
|
243
259
|
|
|
244
260
|
```json
|
|
245
261
|
{
|
|
@@ -250,7 +266,7 @@ npm install -D eslint @eslint/js globals @typescript-eslint/parser @typescript-e
|
|
|
250
266
|
}
|
|
251
267
|
```
|
|
252
268
|
|
|
253
|
-
|
|
269
|
+
Suggest automatic addition after configuration complete.
|
|
254
270
|
|
|
255
271
|
</scripts>
|
|
256
272
|
|
|
@@ -258,16 +274,16 @@ npm install -D eslint @eslint/js globals @typescript-eslint/parser @typescript-e
|
|
|
258
274
|
|
|
259
275
|
<validation>
|
|
260
276
|
|
|
261
|
-
##
|
|
277
|
+
## Validation steps
|
|
262
278
|
|
|
263
279
|
```bash
|
|
264
|
-
# 1.
|
|
280
|
+
# 1. Verify config syntax
|
|
265
281
|
npx eslint --print-config src/index.ts
|
|
266
282
|
|
|
267
|
-
# 2.
|
|
283
|
+
# 2. Run lint
|
|
268
284
|
npm run lint
|
|
269
285
|
|
|
270
|
-
# 3.
|
|
286
|
+
# 3. Test auto fix
|
|
271
287
|
npm run lint:fix
|
|
272
288
|
```
|
|
273
289
|
|