@kood/claude-code 0.5.4 → 0.5.5

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 (94) hide show
  1. package/dist/index.js +6 -2
  2. package/package.json +1 -1
  3. package/templates/.claude/agents/document-writer.md +2 -2
  4. package/templates/.claude/skills/docs-creator/SKILL.md +2 -2
  5. package/templates/.claude/skills/docs-refactor/SKILL.md +1 -1
  6. package/templates/.claude/skills/plan/SKILL.md +15 -15
  7. package/templates/hono/CLAUDE.md +28 -28
  8. package/templates/hono/docs/architecture.md +24 -24
  9. package/templates/hono/docs/deployment/cloudflare.md +18 -18
  10. package/templates/hono/docs/deployment/docker.md +13 -13
  11. package/templates/hono/docs/deployment/index.md +19 -19
  12. package/templates/hono/docs/deployment/railway.md +32 -32
  13. package/templates/hono/docs/deployment/vercel.md +29 -29
  14. package/templates/hono/docs/guides/conventions.md +57 -57
  15. package/templates/hono/docs/guides/env-setup.md +47 -47
  16. package/templates/hono/docs/guides/getting-started.md +27 -27
  17. package/templates/hono/docs/library/hono/error-handling.md +11 -11
  18. package/templates/hono/docs/library/hono/index.md +4 -4
  19. package/templates/hono/docs/library/hono/middleware.md +18 -18
  20. package/templates/hono/docs/library/hono/rpc.md +7 -7
  21. package/templates/hono/docs/library/hono/validation.md +6 -6
  22. package/templates/hono/docs/library/prisma/cloudflare-d1.md +29 -29
  23. package/templates/hono/docs/library/prisma/config.md +16 -16
  24. package/templates/hono/docs/library/prisma/index.md +32 -32
  25. package/templates/hono/docs/library/t3-env/index.md +22 -22
  26. package/templates/hono/docs/library/zod/index.md +31 -31
  27. package/templates/nextjs/CLAUDE.md +54 -54
  28. package/templates/nextjs/docs/architecture.md +146 -146
  29. package/templates/nextjs/docs/design.md +183 -183
  30. package/templates/nextjs/docs/guides/conventions.md +86 -86
  31. package/templates/nextjs/docs/guides/getting-started.md +28 -28
  32. package/templates/nextjs/docs/guides/routes.md +32 -32
  33. package/templates/nextjs/docs/library/better-auth/index.md +70 -70
  34. package/templates/nextjs/docs/library/nextjs/app-router.md +43 -43
  35. package/templates/nextjs/docs/library/nextjs/caching.md +73 -73
  36. package/templates/nextjs/docs/library/nextjs/index.md +51 -51
  37. package/templates/nextjs/docs/library/nextjs/middleware.md +41 -41
  38. package/templates/nextjs/docs/library/nextjs/route-handlers.md +31 -31
  39. package/templates/nextjs/docs/library/nextjs/server-actions.md +34 -34
  40. package/templates/nextjs/docs/library/prisma/cloudflare-d1.md +20 -20
  41. package/templates/nextjs/docs/library/prisma/config.md +18 -18
  42. package/templates/nextjs/docs/library/prisma/crud.md +17 -17
  43. package/templates/nextjs/docs/library/prisma/index.md +18 -18
  44. package/templates/nextjs/docs/library/prisma/relations.md +16 -16
  45. package/templates/nextjs/docs/library/prisma/schema.md +23 -23
  46. package/templates/nextjs/docs/library/prisma/setup.md +6 -6
  47. package/templates/nextjs/docs/library/prisma/transactions.md +10 -10
  48. package/templates/nextjs/docs/library/tanstack-query/index.md +6 -6
  49. package/templates/nextjs/docs/library/tanstack-query/invalidation.md +20 -20
  50. package/templates/nextjs/docs/library/tanstack-query/optimistic-updates.md +4 -4
  51. package/templates/nextjs/docs/library/tanstack-query/use-mutation.md +15 -15
  52. package/templates/nextjs/docs/library/tanstack-query/use-query.md +22 -22
  53. package/templates/nextjs/docs/library/zod/complex-types.md +11 -11
  54. package/templates/nextjs/docs/library/zod/index.md +8 -8
  55. package/templates/nextjs/docs/library/zod/transforms.md +11 -11
  56. package/templates/nextjs/docs/library/zod/validation.md +9 -9
  57. package/templates/npx/CLAUDE.md +38 -38
  58. package/templates/npx/docs/library/commander/index.md +12 -12
  59. package/templates/npx/docs/library/fs-extra/index.md +9 -9
  60. package/templates/npx/docs/library/prompts/index.md +3 -3
  61. package/templates/npx/docs/references/patterns.md +12 -12
  62. package/templates/tanstack-start/CLAUDE.md +54 -54
  63. package/templates/tanstack-start/docs/architecture.md +128 -128
  64. package/templates/tanstack-start/docs/design.md +169 -169
  65. package/templates/tanstack-start/docs/guides/conventions.md +43 -43
  66. package/templates/tanstack-start/docs/guides/env-setup.md +35 -35
  67. package/templates/tanstack-start/docs/guides/getting-started.md +19 -19
  68. package/templates/tanstack-start/docs/guides/hooks.md +45 -45
  69. package/templates/tanstack-start/docs/guides/routes.md +54 -54
  70. package/templates/tanstack-start/docs/guides/services.md +45 -45
  71. package/templates/tanstack-start/docs/library/prisma/cloudflare-d1.md +19 -19
  72. package/templates/tanstack-start/docs/library/prisma/config.md +16 -16
  73. package/templates/tanstack-start/docs/library/prisma/crud.md +17 -17
  74. package/templates/tanstack-start/docs/library/prisma/relations.md +16 -16
  75. package/templates/tanstack-start/docs/library/prisma/schema.md +23 -23
  76. package/templates/tanstack-start/docs/library/prisma/setup.md +6 -6
  77. package/templates/tanstack-start/docs/library/prisma/transactions.md +10 -10
  78. package/templates/tanstack-start/docs/library/tanstack-query/invalidation.md +19 -19
  79. package/templates/tanstack-start/docs/library/tanstack-query/optimistic-updates.md +4 -4
  80. package/templates/tanstack-start/docs/library/tanstack-query/use-mutation.md +14 -14
  81. package/templates/tanstack-start/docs/library/tanstack-query/use-query.md +21 -21
  82. package/templates/tanstack-start/docs/library/tanstack-router/error-handling.md +9 -9
  83. package/templates/tanstack-start/docs/library/tanstack-router/hooks.md +11 -11
  84. package/templates/tanstack-start/docs/library/tanstack-router/navigation.md +17 -17
  85. package/templates/tanstack-start/docs/library/tanstack-router/route-context.md +5 -5
  86. package/templates/tanstack-start/docs/library/tanstack-router/search-params.md +10 -10
  87. package/templates/tanstack-start/docs/library/tanstack-start/auth-patterns.md +8 -8
  88. package/templates/tanstack-start/docs/library/tanstack-start/middleware.md +9 -9
  89. package/templates/tanstack-start/docs/library/tanstack-start/routing.md +6 -6
  90. package/templates/tanstack-start/docs/library/tanstack-start/server-functions.md +18 -18
  91. package/templates/tanstack-start/docs/library/tanstack-start/setup.md +4 -4
  92. package/templates/tanstack-start/docs/library/zod/complex-types.md +11 -11
  93. package/templates/tanstack-start/docs/library/zod/transforms.md +11 -11
  94. package/templates/tanstack-start/docs/library/zod/validation.md +9 -9
@@ -4,17 +4,17 @@
4
4
 
5
5
  <context>
6
6
 
7
- **Purpose:** Next.js App Router-based web application development guidelines
7
+ **Purpose:** Next.js App Router 기반 애플리케이션 개발 지침
8
8
 
9
- **Scope:** Full-stack React application implementation
9
+ **Scope:** Full-stack React 애플리케이션 구현
10
10
 
11
11
  **Key Features:**
12
12
  - App Router (file-based routing)
13
- - Server Actions (type-safe API)
13
+ - Server Actions (타입 안전 API)
14
14
  - Server/Client Components
15
15
  - Route Handlers (REST API)
16
16
  - Middleware
17
- - Built-in Optimization (images, fonts, scripts)
17
+ - Built-in Optimization (이미지, 폰트, 스크립트)
18
18
  - Deployment (Vercel, Docker, Node.js)
19
19
 
20
20
  </context>
@@ -35,14 +35,14 @@
35
35
 
36
36
  <forbidden>
37
37
 
38
- | Category | Forbidden Actions |
39
- |----------|-------------------|
40
- | **Git Commits** | AI markers (`Generated with Claude Code`, `🤖`, `Co-Authored-By:`), multi-line messages, emojis |
41
- | **Prisma** | Auto-running `db push/migrate/generate`, unauthorized `schema.prisma` modifications |
42
- | **Server Actions** | Direct definition in client components, usage without try-catch, missing Zod validation (POST/PUT/PATCH) |
43
- | **Route Handlers** | Creation outside `/app/api/`, creation when Server Actions are suitable |
44
- | **Client** | Direct Server Action calls (use TanStack Query), missing `"use client"` |
45
- | **Code Search** | Bash grep/rg/find commands (use ast-grep or dedicated tools) |
38
+ | 분류 | 금지 행동 |
39
+ |------|----------|
40
+ | **Git 커밋** | AI 표시 (`Generated with Claude Code`, `🤖`, `Co-Authored-By:`), 여러 메시지, 이모지 |
41
+ | **Prisma** | `db push/migrate/generate` 자동 실행, `schema.prisma` 무단 수정 |
42
+ | **Server Actions** | 클라이언트 컴포넌트에서 직접 정의, try-catch 없이 사용, Zod 검증 누락 (POST/PUT/PATCH) |
43
+ | **Route Handlers** | `/app/api/` 외부에 생성, Server Actions 대체 가능한 경우 생성 |
44
+ | **클라이언트** | Server Action 직접 호출 (TanStack Query 사용), `"use client"` 누락 |
45
+ | **코드 검색** | Bash grep/rg/find 명령어 (ast-grep 또는 전용 도구 사용) |
46
46
 
47
47
  </forbidden>
48
48
 
@@ -50,18 +50,18 @@
50
50
 
51
51
  <required>
52
52
 
53
- | Task | Required Actions |
54
- |------|------------------|
55
- | **Before Starting** | Read relevant docs (UI → design, API → nextjs, DB → prisma, auth → next-auth) |
56
- | **Document Search** | Use serena mcp (document indexing/search, context length optimization) |
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, architectural decisions) |
60
- | **Server Actions** | `"use server"` declaration, Zod validation (POST/PUT/PATCH), try-catch + revalidatePath/redirect |
61
- | **Client API** | Call Server Actions via TanStack Query (`useQuery`/`useMutation`) |
62
- | **Custom Hook Order** | State → Global Hooks (useParams, useRouter, useSearchParams) → 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 required for all elements |
53
+ | 작업 | 필수 행동 |
54
+ |------|----------|
55
+ | **작업 시작 전** | 관련 docs 읽기 (UI → design, API → nextjs, DB → prisma, 인증 → next-auth) |
56
+ | **문서 검색** | serena mcp 사용 (문서 인덱싱/검색, context 길이 최적화) |
57
+ | **코드 검색** | ast-grep 사용 (함수/컴포넌트/패턴 검색) |
58
+ | **복잡한 작업** | Sequential Thinking MCP (5+ 단계 작업) |
59
+ | **대규모 수정** | gemini-review (3+ 파일 변경, 아키텍처 결정) |
60
+ | **Server Actions** | `"use server"` 선언, Zod 검증 (POST/PUT/PATCH), try-catch + revalidatePath/redirect |
61
+ | **클라이언트 API** | TanStack Query (`useQuery`/`useMutation`) Server Action 호출 |
62
+ | **Custom Hook 순서** | State → Global Hooks (useParams, useRouter, useSearchParams) → React Query → Handlers → Memo → Effect |
63
+ | **코드 작성** | UTF-8 인코딩, 코드 묶음별 한글 주석, const 함수 선언 |
64
+ | **Prisma** | Multi-File 구조 (`prisma/schema/`), 모든 요소 한글 주석 필수 |
65
65
 
66
66
  </required>
67
67
 
@@ -69,15 +69,15 @@
69
69
 
70
70
  <tech_stack>
71
71
 
72
- | Technology | Version | Note |
73
- |------------|---------|------|
74
- | Next.js | **15.x** | App Router only |
72
+ | 기술 | 버전 | 주의 |
73
+ |------|------|------|
74
+ | Next.js | **15.x** | App Router 전용 |
75
75
  | React | **19.x** | Server Components |
76
76
  | TypeScript | 5.x | strict |
77
77
  | Tailwind CSS | 4.x | @theme |
78
- | Prisma | **7.x** | `prisma-client`, output required |
78
+ | Prisma | **7.x** | `prisma-client`, output 필수 |
79
79
  | Zod | **4.x** | `z.email()`, `z.url()` |
80
- | NextAuth.js | **5.x** (Auth.js) | App Router support |
80
+ | NextAuth.js | **5.x** (Auth.js) | App Router 지원 |
81
81
  | TanStack Query | 5.x | - |
82
82
 
83
83
  </tech_stack>
@@ -92,41 +92,41 @@ src/
92
92
  │ ├── page.tsx # Home page
93
93
  │ ├── [slug]/
94
94
  │ │ ├── page.tsx # Dynamic route
95
- │ │ ├── _components/ # Page-specific components (required)
96
- │ │ ├── _hooks/ # Page-specific hooks (required)
97
- │ │ └── _actions/ # Page-specific Server Actions (required)
95
+ │ │ ├── _components/ # 페이지 전용 컴포넌트 (필수)
96
+ │ │ ├── _hooks/ # 페이지 전용 (필수)
97
+ │ │ └── _actions/ # 페이지 전용 Server Actions (필수)
98
98
  │ ├── api/
99
99
  │ │ └── [endpoint]/
100
100
  │ │ └── route.ts # Route Handler (REST API)
101
- │ └── _actions/ # Shared Server Actions
102
- ├── components/ui/ # Shared UI components (Server Components)
101
+ │ └── _actions/ # 공통 Server Actions
102
+ ├── components/ui/ # 공통 UI 컴포넌트 (Server Components)
103
103
  ├── middleware.ts # Middleware
104
104
  ├── database/prisma.ts
105
105
  └── lib/
106
106
  ```
107
107
 
108
- **Required Rules:**
109
- - Each page MUST have `_components/`, `_hooks/`, `_actions/` folders (regardless of line count)
110
- - Custom Hooks MUST be separated into `_hooks/` folder regardless of page size
111
- - Server Components by default use `"use client"` only when necessary
112
- - Server Actions: global (`app/_actions/`) or page-specific (`[route]/_actions/`)
113
- - Route Handlers only in `/app/api/` path
108
+ **필수 규칙:**
109
+ - 페이지당 `_components/`, `_hooks/`, `_actions/` 폴더 필수 ( 무관)
110
+ - Custom Hook은 페이지 크기와 무관하게 **반드시** `_hooks/` 폴더에 분리
111
+ - Server Components 기본 → `"use client"` 명시 필요 시만 사용
112
+ - Server Actions 글로벌(`app/_actions/`) 또는 페이지 전용(`[route]/_actions/`)에 분리
113
+ - Route Handlers `/app/api/` 경로에만 생성
114
114
  </structure>
115
115
 
116
116
  ---
117
117
 
118
118
  <conventions>
119
119
 
120
- File names: kebab-case, Routes: `page.tsx`, `layout.tsx`, `[slug]/page.tsx`
121
- TypeScript: const declarations, explicit return types, interface (objects)/type (unions), any→unknown
122
- Import order: external → @/ → relative → type
120
+ 파일명: kebab-case, Routes: `page.tsx`, `layout.tsx`, `[slug]/page.tsx`
121
+ TypeScript: const 선언, 명시적 return type, interface(객체)/type(유니온), any→unknown
122
+ Import 순서: 외부 → @/ → 상대경로 → type
123
123
 
124
124
  Prisma Multi-File:
125
125
  ```
126
126
  prisma/schema/
127
127
  ├── +base.prisma # datasource, generator
128
128
  ├── +enum.prisma # enum
129
- └── [model].prisma # per model (Korean comments required!)
129
+ └── [model].prisma # 모델별 (한글 주석!)
130
130
  ```
131
131
 
132
132
  </conventions>
@@ -136,7 +136,7 @@ prisma/schema/
136
136
  <quick_patterns>
137
137
 
138
138
  ```typescript
139
- // Server Action (file top)
139
+ // Server Action (파일 상단)
140
140
  "use server"
141
141
 
142
142
  export async function createPost(formData: FormData) {
@@ -150,7 +150,7 @@ export async function createPost(formData: FormData) {
150
150
  return post
151
151
  }
152
152
 
153
- // Server Action (with auth)
153
+ // Server Action (인증)
154
154
  "use server"
155
155
 
156
156
  import { auth } from "@/lib/auth"
@@ -209,12 +209,12 @@ export default async function PostsPage() {
209
209
 
210
210
  <ui_ux>
211
211
 
212
- | Principle | Value |
213
- |-----------|-------|
214
- | Color | 60-30-10 (background-secondary-accent) |
215
- | Spacing | 8px grid |
216
- | Accessibility | WCAG AA (contrast 4.5:1+) |
217
- | Fonts | 2-3 types |
212
+ | 원칙 | |
213
+ |------|------|
214
+ | 색상 | 60-30-10 (배경-보조-강조) |
215
+ | 간격 | 8px 그리드 |
216
+ | 접근성 | WCAG AA (대비 4.5:1+) |
217
+ | 폰트 | 2-3 |
218
218
  | Safe Area | tailwindcss-safe-area |
219
219
 
220
220
  </ui_ux>
@@ -224,8 +224,8 @@ export default async function PostsPage() {
224
224
  <docs_structure>
225
225
  ```
226
226
  docs/
227
- ├── guides/ # Getting started, conventions, patterns
227
+ ├── guides/ # 시작하기, 규칙, 패턴
228
228
  ├── library/ # nextjs, prisma, next-auth, tanstack-query, zod
229
- └── design.md # UI/UX guide
229
+ └── design.md # UI/UX 가이드
230
230
  ```
231
231
  </docs_structure>