@kood/claude-code 0.3.8 → 0.3.10

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 (37) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +1 -1
  3. package/templates/.claude/agents/code-reviewer.md +16 -1
  4. package/templates/.claude/agents/dependency-manager.md +16 -1
  5. package/templates/.claude/agents/deployment-validator.md +16 -1
  6. package/templates/.claude/agents/git-operator.md +16 -1
  7. package/templates/.claude/agents/implementation-executor.md +16 -1
  8. package/templates/.claude/agents/lint-fixer.md +16 -1
  9. package/templates/.claude/agents/refactor-advisor.md +16 -1
  10. package/templates/.claude/commands/agent-creator.md +16 -1
  11. package/templates/.claude/commands/bug-fix.md +16 -1
  12. package/templates/.claude/commands/command-creator.md +17 -1
  13. package/templates/.claude/commands/docs-creator.md +17 -1
  14. package/templates/.claude/commands/docs-refactor.md +17 -1
  15. package/templates/.claude/commands/execute.md +17 -1
  16. package/templates/.claude/commands/git-all.md +16 -1
  17. package/templates/.claude/commands/git-session.md +17 -1
  18. package/templates/.claude/commands/git.md +17 -1
  19. package/templates/.claude/commands/lint-fix.md +17 -1
  20. package/templates/.claude/commands/lint-init.md +17 -1
  21. package/templates/.claude/commands/plan.md +17 -1
  22. package/templates/.claude/commands/prd.md +17 -1
  23. package/templates/.claude/commands/pre-deploy.md +17 -1
  24. package/templates/.claude/commands/refactor.md +17 -1
  25. package/templates/.claude/commands/version-update.md +17 -1
  26. package/templates/hono/CLAUDE.md +1 -0
  27. package/templates/nextjs/CLAUDE.md +12 -9
  28. package/templates/nextjs/docs/architecture.md +812 -0
  29. package/templates/npx/CLAUDE.md +1 -0
  30. package/templates/tanstack-start/CLAUDE.md +1 -0
  31. package/templates/tanstack-start/docs/library/better-auth/index.md +225 -185
  32. package/templates/tanstack-start/docs/library/prisma/index.md +1025 -41
  33. package/templates/tanstack-start/docs/library/t3-env/index.md +207 -40
  34. package/templates/tanstack-start/docs/library/tanstack-query/index.md +878 -42
  35. package/templates/tanstack-start/docs/library/tanstack-router/index.md +602 -54
  36. package/templates/tanstack-start/docs/library/tanstack-start/index.md +1334 -33
  37. package/templates/tanstack-start/docs/library/zod/index.md +674 -31
@@ -53,14 +53,15 @@
53
53
  | Task | Required Actions |
54
54
  |------|------------------|
55
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) |
56
57
  | **Code Search** | Use ast-grep (function/component/pattern search) |
57
58
  | **Complex Tasks** | Sequential Thinking MCP (5+ step tasks) |
58
59
  | **Large Changes** | gemini-review (3+ file changes, architectural decisions) |
59
60
  | **Server Actions** | `"use server"` declaration, Zod validation (POST/PUT/PATCH), try-catch + revalidatePath/redirect |
60
61
  | **Client API** | Call Server Actions via TanStack Query (`useQuery`/`useMutation`) |
61
62
  | **Custom Hook Order** | State → Global Hooks (useParams, useRouter, useSearchParams) → React Query → Handlers → Memo → Effect |
62
- | **Code Writing** | UTF-8 encoding, comments per code block, const function declarations |
63
- | **Prisma** | Multi-File structure (`prisma/schema/`), all elements require comments |
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 |
64
65
 
65
66
  </required>
66
67
 
@@ -91,22 +92,24 @@ src/
91
92
  │ ├── page.tsx # Home page
92
93
  │ ├── [slug]/
93
94
  │ │ ├── page.tsx # Dynamic route
94
- │ │ └── -components/ # Page-specific Client Components
95
+ │ │ ├── _components/ # Page-specific components (required)
96
+ │ │ ├── _hooks/ # Page-specific hooks (required)
97
+ │ │ └── _actions/ # Page-specific Server Actions (required)
95
98
  │ ├── api/
96
99
  │ │ └── [endpoint]/
97
100
  │ │ └── route.ts # Route Handler (REST API)
98
- │ └── _components/ # Shared Client Components
99
- ├── actions/ # Server Actions (shared)
100
- ├── components/ui/ # UI components (Server Components)
101
+ │ └── _actions/ # Shared Server Actions
102
+ ├── components/ui/ # Shared UI components (Server Components)
101
103
  ├── middleware.ts # Middleware
102
104
  ├── database/prisma.ts
103
105
  └── lib/
104
106
  ```
105
107
 
106
108
  **Required Rules:**
107
- - Recommended `-components/` folder per page (page-specific Client Components)
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
108
111
  - Server Components by default → use `"use client"` only when necessary
109
- - Server Actions in `actions/` folder or at file top (`"use server"`)
112
+ - Server Actions: global (`app/_actions/`) or page-specific (`[route]/_actions/`)
110
113
  - Route Handlers only in `/app/api/` path
111
114
  </structure>
112
115
 
@@ -123,7 +126,7 @@ Prisma Multi-File:
123
126
  prisma/schema/
124
127
  ├── +base.prisma # datasource, generator
125
128
  ├── +enum.prisma # enum
126
- └── [model].prisma # per model (with comments!)
129
+ └── [model].prisma # per model (Korean comments required!)
127
130
  ```
128
131
 
129
132
  </conventions>