@kood/claude-code 0.3.6 → 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 +228 -0
- package/templates/nextjs/docs/design.md +558 -0
- package/templates/nextjs/docs/guides/conventions.md +343 -0
- package/templates/nextjs/docs/guides/getting-started.md +367 -0
- package/templates/nextjs/docs/guides/routes.md +342 -0
- package/templates/nextjs/docs/library/better-auth/index.md +541 -0
- package/templates/nextjs/docs/library/nextjs/app-router.md +269 -0
- package/templates/nextjs/docs/library/nextjs/caching.md +351 -0
- package/templates/nextjs/docs/library/nextjs/index.md +291 -0
- package/templates/nextjs/docs/library/nextjs/middleware.md +391 -0
- package/templates/nextjs/docs/library/nextjs/route-handlers.md +382 -0
- package/templates/nextjs/docs/library/nextjs/server-actions.md +366 -0
- package/templates/nextjs/docs/library/prisma/cloudflare-d1.md +76 -0
- package/templates/nextjs/docs/library/prisma/config.md +77 -0
- package/templates/nextjs/docs/library/prisma/crud.md +90 -0
- package/templates/nextjs/docs/library/prisma/index.md +73 -0
- package/templates/nextjs/docs/library/prisma/relations.md +69 -0
- package/templates/nextjs/docs/library/prisma/schema.md +98 -0
- package/templates/nextjs/docs/library/prisma/setup.md +49 -0
- package/templates/nextjs/docs/library/prisma/transactions.md +50 -0
- package/templates/nextjs/docs/library/tanstack-query/index.md +66 -0
- package/templates/nextjs/docs/library/tanstack-query/invalidation.md +54 -0
- package/templates/nextjs/docs/library/tanstack-query/optimistic-updates.md +77 -0
- package/templates/nextjs/docs/library/tanstack-query/use-mutation.md +63 -0
- package/templates/nextjs/docs/library/tanstack-query/use-query.md +70 -0
- package/templates/nextjs/docs/library/zod/complex-types.md +61 -0
- package/templates/nextjs/docs/library/zod/index.md +56 -0
- package/templates/nextjs/docs/library/zod/transforms.md +51 -0
- package/templates/nextjs/docs/library/zod/validation.md +70 -0
- 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 -49
- 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 +63 -35
- package/templates/tanstack-start/docs/guides/routes.md +61 -42
- 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,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
description:
|
|
2
|
+
description: Analyze project and configure ESLint flat config
|
|
3
3
|
allowed-tools: Read, Write, Edit, Glob, Bash, mcp__sequential-thinking__sequentialthinking
|
|
4
4
|
---
|
|
5
5
|
|
|
@@ -7,15 +7,15 @@ allowed-tools: Read, Write, Edit, Glob, Bash, mcp__sequential-thinking__sequenti
|
|
|
7
7
|
|
|
8
8
|
# Lint Init Command
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
Analyze project → automatically generate ESLint flat config.
|
|
11
11
|
|
|
12
12
|
<requirements>
|
|
13
13
|
|
|
14
|
-
|
|
|
15
|
-
|
|
16
|
-
| **Thinking** | Sequential 5-7
|
|
14
|
+
| Category | Required |
|
|
15
|
+
|----------|----------|
|
|
16
|
+
| **Thinking** | Sequential 5-7 steps (@sequential-thinking-guide.md) |
|
|
17
17
|
| **Config** | ESLint v9+ flat config (`eslint.config.js`) |
|
|
18
|
-
| **Detection** |
|
|
18
|
+
| **Detection** | Auto-detect language/framework/runtime |
|
|
19
19
|
|
|
20
20
|
</requirements>
|
|
21
21
|
|
|
@@ -24,28 +24,28 @@ allowed-tools: Read, Write, Edit, Glob, Bash, mcp__sequential-thinking__sequenti
|
|
|
24
24
|
<workflow>
|
|
25
25
|
|
|
26
26
|
<step number="1">
|
|
27
|
-
<action>Sequential Thinking
|
|
28
|
-
<detail
|
|
27
|
+
<action>Start Sequential Thinking</action>
|
|
28
|
+
<detail>Analyze project structure, dependencies, existing config (5-7 steps)</detail>
|
|
29
29
|
</step>
|
|
30
30
|
|
|
31
31
|
<step number="2">
|
|
32
|
-
<action
|
|
33
|
-
<tools>Read (package.json, tsconfig.json,
|
|
32
|
+
<action>Collect core files</action>
|
|
33
|
+
<tools>Read (package.json, tsconfig.json, existing ESLint config)</tools>
|
|
34
34
|
</step>
|
|
35
35
|
|
|
36
36
|
<step number="3">
|
|
37
|
-
<action
|
|
38
|
-
<detail
|
|
37
|
+
<action>Detect project characteristics</action>
|
|
38
|
+
<detail>Language (TS/JS), runtime (Node/Browser), framework (React/Vue/etc.)</detail>
|
|
39
39
|
</step>
|
|
40
40
|
|
|
41
41
|
<step number="4">
|
|
42
|
-
<action>ESLint
|
|
42
|
+
<action>Generate ESLint config</action>
|
|
43
43
|
<deliverable>eslint.config.js</deliverable>
|
|
44
44
|
</step>
|
|
45
45
|
|
|
46
46
|
<step number="5">
|
|
47
|
-
<action
|
|
48
|
-
<detail
|
|
47
|
+
<action>Guide package installation</action>
|
|
48
|
+
<detail>Required packages list + npm/yarn/pnpm commands</detail>
|
|
49
49
|
</step>
|
|
50
50
|
|
|
51
51
|
</workflow>
|
|
@@ -54,30 +54,30 @@ allowed-tools: Read, Write, Edit, Glob, Bash, mcp__sequential-thinking__sequenti
|
|
|
54
54
|
|
|
55
55
|
<detection>
|
|
56
56
|
|
|
57
|
-
##
|
|
57
|
+
## Project Characteristic Detection
|
|
58
58
|
|
|
59
|
-
###
|
|
59
|
+
### Language
|
|
60
60
|
|
|
61
|
-
|
|
|
62
|
-
|
|
63
|
-
| `tsconfig.json`
|
|
61
|
+
| Condition | Judgment |
|
|
62
|
+
|-----------|----------|
|
|
63
|
+
| `tsconfig.json` exists | TypeScript |
|
|
64
64
|
| `devDependencies.typescript` | TypeScript |
|
|
65
|
-
| `src/**/*.{ts,tsx}`
|
|
66
|
-
|
|
|
65
|
+
| `src/**/*.{ts,tsx}` files | TypeScript |
|
|
66
|
+
| Otherwise | JavaScript |
|
|
67
67
|
|
|
68
|
-
###
|
|
68
|
+
### Framework
|
|
69
69
|
|
|
70
|
-
|
|
|
71
|
-
|
|
70
|
+
| Dependency | Framework | Additional Plugins |
|
|
71
|
+
|------------|-----------|-------------------|
|
|
72
72
|
| `react` | React | `eslint-plugin-react`, `eslint-plugin-react-hooks` |
|
|
73
|
-
| `next` | Next.js | React + Next.js
|
|
73
|
+
| `next` | Next.js | React + Next.js rules |
|
|
74
74
|
| `vue` | Vue | `eslint-plugin-vue`, `vue-eslint-parser` |
|
|
75
|
-
| `express`, `hono`, `fastify` | Node.js
|
|
75
|
+
| `express`, `hono`, `fastify` | Node.js server | - |
|
|
76
76
|
|
|
77
|
-
###
|
|
77
|
+
### Runtime
|
|
78
78
|
|
|
79
|
-
|
|
|
80
|
-
|
|
79
|
+
| Condition | globals |
|
|
80
|
+
|-----------|---------|
|
|
81
81
|
| `express`, `fastify`, `hono` | `globals.node` |
|
|
82
82
|
| `react`, `vue`, `angular` | `globals.browser` |
|
|
83
83
|
| `next`, `nuxt` | `globals.node` + `globals.browser` |
|
|
@@ -88,9 +88,9 @@ allowed-tools: Read, Write, Edit, Glob, Bash, mcp__sequential-thinking__sequenti
|
|
|
88
88
|
|
|
89
89
|
<templates>
|
|
90
90
|
|
|
91
|
-
## ESLint Flat Config
|
|
91
|
+
## ESLint Flat Config Patterns
|
|
92
92
|
|
|
93
|
-
###
|
|
93
|
+
### Basic structure (TypeScript + Node.js)
|
|
94
94
|
|
|
95
95
|
```javascript
|
|
96
96
|
import eslint from '@eslint/js'
|
|
@@ -129,10 +129,10 @@ export default [
|
|
|
129
129
|
]
|
|
130
130
|
```
|
|
131
131
|
|
|
132
|
-
###
|
|
132
|
+
### When adding React
|
|
133
133
|
|
|
134
134
|
```javascript
|
|
135
|
-
//
|
|
135
|
+
// Add to basic structure above:
|
|
136
136
|
import reactPlugin from 'eslint-plugin-react'
|
|
137
137
|
import reactHooksPlugin from 'eslint-plugin-react-hooks'
|
|
138
138
|
|
|
@@ -149,7 +149,7 @@ export default [
|
|
|
149
149
|
react: { version: 'detect' },
|
|
150
150
|
},
|
|
151
151
|
rules: {
|
|
152
|
-
// ...
|
|
152
|
+
// ... above rules +
|
|
153
153
|
...reactPlugin.configs.recommended.rules,
|
|
154
154
|
...reactHooksPlugin.configs.recommended.rules,
|
|
155
155
|
'react/react-in-jsx-scope': 'off',
|
|
@@ -159,7 +159,7 @@ export default [
|
|
|
159
159
|
]
|
|
160
160
|
```
|
|
161
161
|
|
|
162
|
-
### JavaScript
|
|
162
|
+
### JavaScript only
|
|
163
163
|
|
|
164
164
|
```javascript
|
|
165
165
|
import eslint from '@eslint/js'
|
|
@@ -192,19 +192,19 @@ export default [
|
|
|
192
192
|
|
|
193
193
|
<packages>
|
|
194
194
|
|
|
195
|
-
##
|
|
195
|
+
## Required packages
|
|
196
196
|
|
|
197
|
-
|
|
|
198
|
-
|
|
199
|
-
|
|
|
200
|
-
| **TypeScript** |
|
|
201
|
-
| **React** |
|
|
202
|
-
| **Vue** |
|
|
197
|
+
| Condition | Packages |
|
|
198
|
+
|-----------|----------|
|
|
199
|
+
| **Base** | `eslint @eslint/js globals` |
|
|
200
|
+
| **TypeScript** | Above + `@typescript-eslint/parser @typescript-eslint/eslint-plugin` |
|
|
201
|
+
| **React** | Above + `eslint-plugin-react eslint-plugin-react-hooks` |
|
|
202
|
+
| **Vue** | Above + `eslint-plugin-vue vue-eslint-parser` |
|
|
203
203
|
|
|
204
|
-
###
|
|
204
|
+
### Installation commands
|
|
205
205
|
|
|
206
206
|
```bash
|
|
207
|
-
#
|
|
207
|
+
# Base (JavaScript)
|
|
208
208
|
npm install -D eslint @eslint/js globals
|
|
209
209
|
|
|
210
210
|
# TypeScript
|
|
@@ -220,18 +220,18 @@ npm install -D eslint @eslint/js globals @typescript-eslint/parser @typescript-e
|
|
|
220
220
|
|
|
221
221
|
<migration>
|
|
222
222
|
|
|
223
|
-
##
|
|
223
|
+
## Handle existing configuration
|
|
224
224
|
|
|
225
|
-
|
|
|
226
|
-
|
|
227
|
-
| `.eslintrc.{json,js,yml}` | flat config
|
|
228
|
-
| `package.json` `eslintConfig` | flat config
|
|
225
|
+
| File | Action |
|
|
226
|
+
|------|--------|
|
|
227
|
+
| `.eslintrc.{json,js,yml}` | Convert to flat config → backup and remove |
|
|
228
|
+
| `package.json` `eslintConfig` | Convert to flat config → remove from `package.json` |
|
|
229
229
|
|
|
230
|
-
|
|
231
|
-
1.
|
|
232
|
-
2. flat config
|
|
233
|
-
3.
|
|
234
|
-
4. `eslint.config.js`
|
|
230
|
+
**Conversion method:**
|
|
231
|
+
1. Extract existing `rules`, `extends`, `plugins`
|
|
232
|
+
2. Convert to flat config format
|
|
233
|
+
3. Backup original (`.eslintrc.backup`)
|
|
234
|
+
4. Create `eslint.config.js`
|
|
235
235
|
|
|
236
236
|
</migration>
|
|
237
237
|
|
|
@@ -239,7 +239,7 @@ npm install -D eslint @eslint/js globals @typescript-eslint/parser @typescript-e
|
|
|
239
239
|
|
|
240
240
|
<scripts>
|
|
241
241
|
|
|
242
|
-
## package.json
|
|
242
|
+
## package.json scripts
|
|
243
243
|
|
|
244
244
|
```json
|
|
245
245
|
{
|
|
@@ -250,7 +250,7 @@ npm install -D eslint @eslint/js globals @typescript-eslint/parser @typescript-e
|
|
|
250
250
|
}
|
|
251
251
|
```
|
|
252
252
|
|
|
253
|
-
|
|
253
|
+
Suggest automatic addition after configuration complete.
|
|
254
254
|
|
|
255
255
|
</scripts>
|
|
256
256
|
|
|
@@ -258,16 +258,16 @@ npm install -D eslint @eslint/js globals @typescript-eslint/parser @typescript-e
|
|
|
258
258
|
|
|
259
259
|
<validation>
|
|
260
260
|
|
|
261
|
-
##
|
|
261
|
+
## Validation steps
|
|
262
262
|
|
|
263
263
|
```bash
|
|
264
|
-
# 1.
|
|
264
|
+
# 1. Verify config syntax
|
|
265
265
|
npx eslint --print-config src/index.ts
|
|
266
266
|
|
|
267
|
-
# 2.
|
|
267
|
+
# 2. Run lint
|
|
268
268
|
npm run lint
|
|
269
269
|
|
|
270
|
-
# 3.
|
|
270
|
+
# 3. Test auto fix
|
|
271
271
|
npm run lint:fix
|
|
272
272
|
```
|
|
273
273
|
|