@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.
Files changed (120) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +1 -1
  3. package/templates/.claude/agents/code-reviewer.md +124 -124
  4. package/templates/.claude/agents/dependency-manager.md +85 -85
  5. package/templates/.claude/agents/deployment-validator.md +56 -56
  6. package/templates/.claude/agents/git-operator.md +64 -64
  7. package/templates/.claude/agents/implementation-executor.md +95 -95
  8. package/templates/.claude/agents/ko-to-en-translator.md +74 -0
  9. package/templates/.claude/agents/lint-fixer.md +78 -78
  10. package/templates/.claude/agents/refactor-advisor.md +122 -122
  11. package/templates/.claude/commands/agent-creator.md +185 -185
  12. package/templates/.claude/commands/bug-fix.md +193 -193
  13. package/templates/.claude/commands/command-creator.md +54 -54
  14. package/templates/.claude/commands/docs-creator.md +57 -57
  15. package/templates/.claude/commands/docs-refactor.md +26 -26
  16. package/templates/.claude/commands/execute.md +12 -12
  17. package/templates/.claude/commands/git-all.md +32 -32
  18. package/templates/.claude/commands/git-session.md +42 -42
  19. package/templates/.claude/commands/git.md +34 -34
  20. package/templates/.claude/commands/lint-fix.md +138 -138
  21. package/templates/.claude/commands/lint-init.md +61 -61
  22. package/templates/.claude/commands/plan.md +260 -260
  23. package/templates/.claude/commands/prd.md +24 -24
  24. package/templates/.claude/commands/pre-deploy.md +109 -109
  25. package/templates/.claude/commands/refactor.md +147 -147
  26. package/templates/.claude/commands/version-update.md +17 -17
  27. package/templates/hono/CLAUDE.md +27 -27
  28. package/templates/hono/docs/architecture.md +24 -24
  29. package/templates/hono/docs/deployment/cloudflare.md +18 -18
  30. package/templates/hono/docs/deployment/docker.md +13 -13
  31. package/templates/hono/docs/deployment/index.md +19 -19
  32. package/templates/hono/docs/deployment/railway.md +32 -32
  33. package/templates/hono/docs/deployment/vercel.md +29 -29
  34. package/templates/hono/docs/guides/conventions.md +57 -57
  35. package/templates/hono/docs/guides/env-setup.md +47 -47
  36. package/templates/hono/docs/guides/getting-started.md +27 -27
  37. package/templates/hono/docs/library/hono/error-handling.md +11 -11
  38. package/templates/hono/docs/library/hono/index.md +4 -4
  39. package/templates/hono/docs/library/hono/middleware.md +18 -18
  40. package/templates/hono/docs/library/hono/rpc.md +7 -7
  41. package/templates/hono/docs/library/hono/validation.md +6 -6
  42. package/templates/hono/docs/library/prisma/cloudflare-d1.md +29 -29
  43. package/templates/hono/docs/library/prisma/config.md +16 -16
  44. package/templates/hono/docs/library/prisma/index.md +32 -32
  45. package/templates/hono/docs/library/t3-env/index.md +22 -22
  46. package/templates/hono/docs/library/zod/index.md +31 -31
  47. package/templates/nextjs/CLAUDE.md +228 -0
  48. package/templates/nextjs/docs/design.md +558 -0
  49. package/templates/nextjs/docs/guides/conventions.md +343 -0
  50. package/templates/nextjs/docs/guides/getting-started.md +367 -0
  51. package/templates/nextjs/docs/guides/routes.md +342 -0
  52. package/templates/nextjs/docs/library/better-auth/index.md +541 -0
  53. package/templates/nextjs/docs/library/nextjs/app-router.md +269 -0
  54. package/templates/nextjs/docs/library/nextjs/caching.md +351 -0
  55. package/templates/nextjs/docs/library/nextjs/index.md +291 -0
  56. package/templates/nextjs/docs/library/nextjs/middleware.md +391 -0
  57. package/templates/nextjs/docs/library/nextjs/route-handlers.md +382 -0
  58. package/templates/nextjs/docs/library/nextjs/server-actions.md +366 -0
  59. package/templates/nextjs/docs/library/prisma/cloudflare-d1.md +76 -0
  60. package/templates/nextjs/docs/library/prisma/config.md +77 -0
  61. package/templates/nextjs/docs/library/prisma/crud.md +90 -0
  62. package/templates/nextjs/docs/library/prisma/index.md +73 -0
  63. package/templates/nextjs/docs/library/prisma/relations.md +69 -0
  64. package/templates/nextjs/docs/library/prisma/schema.md +98 -0
  65. package/templates/nextjs/docs/library/prisma/setup.md +49 -0
  66. package/templates/nextjs/docs/library/prisma/transactions.md +50 -0
  67. package/templates/nextjs/docs/library/tanstack-query/index.md +66 -0
  68. package/templates/nextjs/docs/library/tanstack-query/invalidation.md +54 -0
  69. package/templates/nextjs/docs/library/tanstack-query/optimistic-updates.md +77 -0
  70. package/templates/nextjs/docs/library/tanstack-query/use-mutation.md +63 -0
  71. package/templates/nextjs/docs/library/tanstack-query/use-query.md +70 -0
  72. package/templates/nextjs/docs/library/zod/complex-types.md +61 -0
  73. package/templates/nextjs/docs/library/zod/index.md +56 -0
  74. package/templates/nextjs/docs/library/zod/transforms.md +51 -0
  75. package/templates/nextjs/docs/library/zod/validation.md +70 -0
  76. package/templates/npx/CLAUDE.md +37 -37
  77. package/templates/npx/docs/library/commander/index.md +12 -12
  78. package/templates/npx/docs/library/fs-extra/index.md +9 -9
  79. package/templates/npx/docs/library/prompts/index.md +3 -3
  80. package/templates/npx/docs/references/patterns.md +12 -12
  81. package/templates/tanstack-start/CLAUDE.md +53 -49
  82. package/templates/tanstack-start/docs/architecture.md +128 -128
  83. package/templates/tanstack-start/docs/design.md +169 -169
  84. package/templates/tanstack-start/docs/guides/conventions.md +43 -43
  85. package/templates/tanstack-start/docs/guides/env-setup.md +35 -35
  86. package/templates/tanstack-start/docs/guides/getting-started.md +19 -19
  87. package/templates/tanstack-start/docs/guides/hooks.md +63 -35
  88. package/templates/tanstack-start/docs/guides/routes.md +61 -42
  89. package/templates/tanstack-start/docs/guides/services.md +45 -45
  90. package/templates/tanstack-start/docs/library/better-auth/index.md +68 -68
  91. package/templates/tanstack-start/docs/library/prisma/cloudflare-d1.md +19 -19
  92. package/templates/tanstack-start/docs/library/prisma/config.md +16 -16
  93. package/templates/tanstack-start/docs/library/prisma/crud.md +17 -17
  94. package/templates/tanstack-start/docs/library/prisma/index.md +17 -17
  95. package/templates/tanstack-start/docs/library/prisma/relations.md +16 -16
  96. package/templates/tanstack-start/docs/library/prisma/schema.md +23 -23
  97. package/templates/tanstack-start/docs/library/prisma/setup.md +6 -6
  98. package/templates/tanstack-start/docs/library/prisma/transactions.md +10 -10
  99. package/templates/tanstack-start/docs/library/t3-env/index.md +21 -160
  100. package/templates/tanstack-start/docs/library/tanstack-query/index.md +6 -6
  101. package/templates/tanstack-start/docs/library/tanstack-query/invalidation.md +19 -19
  102. package/templates/tanstack-start/docs/library/tanstack-query/optimistic-updates.md +4 -4
  103. package/templates/tanstack-start/docs/library/tanstack-query/use-mutation.md +14 -14
  104. package/templates/tanstack-start/docs/library/tanstack-query/use-query.md +21 -21
  105. package/templates/tanstack-start/docs/library/tanstack-router/error-handling.md +9 -9
  106. package/templates/tanstack-start/docs/library/tanstack-router/hooks.md +11 -11
  107. package/templates/tanstack-start/docs/library/tanstack-router/index.md +18 -18
  108. package/templates/tanstack-start/docs/library/tanstack-router/navigation.md +17 -17
  109. package/templates/tanstack-start/docs/library/tanstack-router/route-context.md +5 -5
  110. package/templates/tanstack-start/docs/library/tanstack-router/search-params.md +10 -10
  111. package/templates/tanstack-start/docs/library/tanstack-start/auth-patterns.md +8 -8
  112. package/templates/tanstack-start/docs/library/tanstack-start/index.md +15 -15
  113. package/templates/tanstack-start/docs/library/tanstack-start/middleware.md +9 -9
  114. package/templates/tanstack-start/docs/library/tanstack-start/routing.md +6 -6
  115. package/templates/tanstack-start/docs/library/tanstack-start/server-functions.md +18 -18
  116. package/templates/tanstack-start/docs/library/tanstack-start/setup.md +4 -4
  117. package/templates/tanstack-start/docs/library/zod/complex-types.md +11 -11
  118. package/templates/tanstack-start/docs/library/zod/index.md +8 -8
  119. package/templates/tanstack-start/docs/library/zod/transforms.md +11 -11
  120. package/templates/tanstack-start/docs/library/zod/validation.md +9 -9
@@ -4,17 +4,17 @@
4
4
 
5
5
  <context>
6
6
 
7
- **Purpose:** TanStack Start ν”„λ ˆμž„μ›Œν¬ κ°œλ°œμ„ μœ„ν•œ μž‘μ—… μ§€μΉ¨
7
+ **Purpose:** Work guidelines for TanStack Start framework development
8
8
 
9
- **Scope:** Full-stack React μ• ν”Œλ¦¬μΌ€μ΄μ…˜ κ΅¬ν˜„
9
+ **Scope:** Full-stack React application implementation
10
10
 
11
11
  **Key Features:**
12
12
  - File-based routing (TanStack Router)
13
- - Server Functions (νƒ€μž… μ•ˆμ „ API)
13
+ - Server Functions (type-safe API)
14
14
  - SSR + Streaming
15
- - TanStack Query 톡합
16
- - Middleware 체계
17
- - Deployment μœ μ—°μ„± (Vercel, Cloudflare, Nitro)
15
+ - TanStack Query integration
16
+ - Middleware system
17
+ - Deployment flexibility (Vercel, Cloudflare, Nitro)
18
18
 
19
19
  </context>
20
20
 
@@ -36,14 +36,14 @@
36
36
 
37
37
  <forbidden>
38
38
 
39
- | λΆ„λ₯˜ | κΈˆμ§€ 행동 |
40
- |------|----------|
41
- | **Git 컀밋** | AI ν‘œμ‹œ (`Generated with Claude Code`, `πŸ€–`, `Co-Authored-By:`), μ—¬λŸ¬ 쀄 λ©”μ‹œμ§€, 이λͺ¨μ§€ |
42
- | **Prisma** | `db push/migrate/generate` μžλ™ μ‹€ν–‰, `schema.prisma` 무단 μˆ˜μ • |
43
- | **API λΌμš°ν„°** | `/api` κ²½λ‘œμ— λΌμš°ν„° 생성 (Server Functions μ‚¬μš©) |
44
- | **Server Fn** | handler λ‚΄λΆ€μ—μ„œ μˆ˜λ™ 검증/인증, `.validator()` μ‚¬μš© (`.inputValidator()` μ‚¬μš©) |
45
- | **ν΄λΌμ΄μ–ΈνŠΈ** | Server Function 직접 호좜 (TanStack Query μ‚¬μš©) |
46
- | **μ½”λ“œ 검색** | Bash의 grep/rg/find λͺ…λ Ήμ–΄ (ast-grep λ˜λŠ” μ „μš© 도ꡬ μ‚¬μš©) |
39
+ | Category | Forbidden Actions |
40
+ |----------|-------------------|
41
+ | **Git Commits** | AI markers (`Generated with Claude Code`, `πŸ€–`, `Co-Authored-By:`), multi-line messages, emojis |
42
+ | **Prisma** | Auto-running `db push/migrate/generate`, unauthorized `schema.prisma` modifications |
43
+ | **API Routes** | Creating routes in `/api` path (use Server Functions instead) |
44
+ | **Server Fn** | Manual validation/auth inside handler, using `.validator()` (use `.inputValidator()` instead) |
45
+ | **Client** | Direct Server Function calls (use TanStack Query) |
46
+ | **Code Search** | Bash grep/rg/find commands (use ast-grep or dedicated tools) |
47
47
 
48
48
  </forbidden>
49
49
 
@@ -51,17 +51,17 @@
51
51
 
52
52
  <required>
53
53
 
54
- | μž‘μ—… | ν•„μˆ˜ 행동 |
55
- |------|----------|
56
- | **μž‘μ—… μ‹œμž‘ μ „** | κ΄€λ ¨ docs 읽기 (UI β†’ design, API β†’ tanstack-start, DB β†’ prisma, 인증 β†’ better-auth) |
57
- | **μ½”λ“œ 검색** | ast-grep μ‚¬μš© (ν•¨μˆ˜/μ»΄ν¬λ„ŒνŠΈ/νŒ¨ν„΄ 검색) |
58
- | **λ³΅μž‘ν•œ μž‘μ—…** | Sequential Thinking MCP (5+ 단계 μž‘μ—…) |
59
- | **λŒ€κ·œλͺ¨ μˆ˜μ •** | gemini-review (3+ 파일 λ³€κ²½, μ•„ν‚€ν…μ²˜ κ²°μ •) |
60
- | **Server Function** | POST/PUT/PATCH β†’ `.inputValidator()` ν•„μˆ˜, 인증 ν•„μš” μ‹œ β†’ `.middleware()` ν•„μˆ˜ |
61
- | **ν΄λΌμ΄μ–ΈνŠΈ API** | TanStack Query (`useQuery`/`useMutation`)둜 Server Function 호좜 |
62
- | **Custom Hook μˆœμ„œ** | State β†’ Global Hooks (useParams, useNavigate) β†’ React Query β†’ Handlers β†’ Memo β†’ Effect |
63
- | **μ½”λ“œ μž‘μ„±** | UTF-8 인코딩, μ½”λ“œ λ¬ΆμŒλ³„ ν•œκΈ€ 주석, const ν•¨μˆ˜ μ„ μ–Έ |
64
- | **Prisma** | Multi-File ꡬ쑰 (`prisma/schema/`), λͺ¨λ“  μš”μ†Œ ν•œκΈ€ 주석 ν•„μˆ˜ |
54
+ | Task | Required Actions |
55
+ |------|-----------------|
56
+ | **Before Starting** | Read related docs (UI β†’ design, API β†’ tanstack-start, DB β†’ prisma, Auth β†’ better-auth) |
57
+ | **Code Search** | Use ast-grep (function/component/pattern search) |
58
+ | **Complex Tasks** | Sequential Thinking MCP (5+ step tasks) |
59
+ | **Large Changes** | gemini-review (3+ file changes, architecture decisions) |
60
+ | **Server Function** | POST/PUT/PATCH β†’ `.inputValidator()` required, Auth needed β†’ `.middleware()` required |
61
+ | **Client API** | Call Server Functions via TanStack Query (`useQuery`/`useMutation`) |
62
+ | **Custom Hook Order** | State β†’ Global Hooks (useParams, useNavigate) β†’ React Query β†’ Handlers β†’ Memo β†’ Effect |
63
+ | **Code Writing** | UTF-8 encoding, Korean comments per code block, const function declarations |
64
+ | **Prisma** | Multi-File structure (`prisma/schema/`), Korean comments on all elements required |
65
65
 
66
66
  </required>
67
67
 
@@ -69,14 +69,14 @@
69
69
 
70
70
  <tech_stack>
71
71
 
72
- | 기술 | 버전 | 주의 |
73
- |------|------|------|
74
- | TanStack Start | μ΅œμ‹  | - |
72
+ | Tech | Version | Notes |
73
+ |------|---------|-------|
74
+ | TanStack Start | Latest | - |
75
75
  | TypeScript | 5.x | strict |
76
76
  | Tailwind CSS | 4.x | @theme |
77
- | Prisma | **7.x** | `prisma-client`, output ν•„μˆ˜ |
77
+ | Prisma | **7.x** | `prisma-client`, output required |
78
78
  | Zod | **4.x** | `z.email()`, `z.url()` |
79
- | Better Auth | μ΅œμ‹  | - |
79
+ | Better Auth | Latest | - |
80
80
  | TanStack Query | 5.x | - |
81
81
 
82
82
  </tech_stack>
@@ -88,32 +88,36 @@
88
88
  src/
89
89
  β”œβ”€β”€ routes/ # __root.tsx, index.tsx, $slug.tsx
90
90
  β”‚ └── [path]/
91
- β”‚ β”œβ”€β”€ -components/ # νŽ˜μ΄μ§€ μ „μš©
92
- β”‚ └── -functions/ # νŽ˜μ΄μ§€ μ „μš© Server Functions
93
- β”œβ”€β”€ functions/ # 곡톡 Server Functions
91
+ β”‚ β”œβ”€β”€ -components/ # Page-specific (required)
92
+ β”‚ β”œβ”€β”€ -hooks/ # Page-specific Custom Hooks (required)
93
+ β”‚ └── -functions/ # Page-specific Server Functions (required)
94
+ β”œβ”€β”€ functions/ # Shared Server Functions
94
95
  β”œβ”€β”€ components/ui/
95
96
  β”œβ”€β”€ middleware/
96
97
  β”œβ”€β”€ database/prisma.ts
97
98
  └── lib/
98
99
  ```
99
100
 
100
- 곡톡 β†’ `@/functions/`, 라우트 μ „μš© β†’ `routes/[경둜]/-functions/`
101
+ **Required Rules:**
102
+ - Each page must have `-components/`, `-hooks/`, `-functions/` folders (regardless of line count)
103
+ - Custom Hooks **must always** be separated into `-hooks/` folder regardless of page size
104
+ - Shared functions β†’ `@/functions/`, Route-specific β†’ `routes/[path]/-functions/`
101
105
  </structure>
102
106
 
103
107
  ---
104
108
 
105
109
  <conventions>
106
110
 
107
- 파일λͺ…: kebab-case, Routes: `__root.tsx`, `$param.tsx`
108
- TypeScript: const μ„ μ–Έ, λͺ…μ‹œμ  return type, interface(객체)/type(μœ λ‹ˆμ˜¨), anyβ†’unknown
109
- Import μˆœμ„œ: μ™ΈλΆ€ β†’ @/ β†’ μƒλŒ€κ²½λ‘œ β†’ type
111
+ Filenames: kebab-case, Routes: `__root.tsx`, `$param.tsx`
112
+ TypeScript: const declarations, explicit return types, interface (objects)/type (unions), any→unknown
113
+ Import order: external β†’ @/ β†’ relative β†’ type
110
114
 
111
115
  Prisma Multi-File:
112
116
  ```
113
117
  prisma/schema/
114
118
  β”œβ”€β”€ +base.prisma # datasource, generator
115
- β”œβ”€β”€ +enum.prisma # enum
116
- └── [model].prisma # λͺ¨λΈλ³„ (ν•œκΈ€ 주석!)
119
+ β”œβ”€β”€ +enum.prisma # enums
120
+ └── [model].prisma # per model (Korean comments!)
117
121
  ```
118
122
 
119
123
  </conventions>
@@ -123,12 +127,12 @@ prisma/schema/
123
127
  <quick_patterns>
124
128
 
125
129
  ```typescript
126
- // Server Function (GET + 인증)
130
+ // Server Function (GET + Auth)
127
131
  export const getUsers = createServerFn({ method: 'GET' })
128
132
  .middleware([authMiddleware])
129
133
  .handler(async () => prisma.user.findMany())
130
134
 
131
- // Server Function (POST + Validation + 인증)
135
+ // Server Function (POST + Validation + Auth)
132
136
  export const createUser = createServerFn({ method: 'POST' })
133
137
  .middleware([authMiddleware])
134
138
  .inputValidator(createUserSchema)
@@ -161,12 +165,12 @@ const mutation = useMutation({
161
165
 
162
166
  <ui_ux>
163
167
 
164
- | 원칙 | κ°’ |
165
- |------|------|
166
- | 색상 | 60-30-10 (λ°°κ²½-보쑰-κ°•μ‘°) |
167
- | 간격 | 8px κ·Έλ¦¬λ“œ |
168
- | μ ‘κ·Όμ„± | WCAG AA (λŒ€λΉ„ 4.5:1+) |
169
- | 폰트 | 2-3개 |
168
+ | Principle | Value |
169
+ |-----------|-------|
170
+ | Colors | 60-30-10 (background-secondary-accent) |
171
+ | Spacing | 8px grid |
172
+ | Accessibility | WCAG AA (4.5:1+ contrast) |
173
+ | Fonts | 2-3 fonts |
170
174
  | Safe Area | tailwindcss-safe-area |
171
175
 
172
176
  </ui_ux>
@@ -176,8 +180,8 @@ const mutation = useMutation({
176
180
  <docs_structure>
177
181
  ```
178
182
  docs/
179
- β”œβ”€β”€ guides/ # μ‹œμž‘ν•˜κΈ°, κ·œμΉ™, νŒ¨ν„΄
183
+ β”œβ”€β”€ guides/ # Getting started, conventions, patterns
180
184
  β”œβ”€β”€ library/ # tanstack-start/router/query, prisma, better-auth, t3-env, zod
181
- └── design.md # UI/UX κ°€μ΄λ“œ
185
+ └── design.md # UI/UX guide
182
186
  ```
183
187
  </docs_structure>