@kood/claude-code 0.1.2 → 0.1.3

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 (61) hide show
  1. package/dist/index.js +12 -3
  2. package/package.json +2 -2
  3. package/templates/hono/CLAUDE.md +20 -2
  4. package/templates/hono/docs/architecture/architecture.md +909 -0
  5. package/templates/hono/docs/deployment/cloudflare.md +537 -190
  6. package/templates/hono/docs/deployment/docker.md +517 -0
  7. package/templates/hono/docs/deployment/index.md +181 -213
  8. package/templates/hono/docs/deployment/railway.md +416 -0
  9. package/templates/hono/docs/deployment/vercel.md +572 -0
  10. package/templates/hono/docs/git/git.md +285 -0
  11. package/templates/hono/docs/library/ai-sdk/index.md +427 -0
  12. package/templates/hono/docs/library/ai-sdk/openrouter.md +479 -0
  13. package/templates/hono/docs/library/ai-sdk/providers.md +468 -0
  14. package/templates/hono/docs/library/ai-sdk/streaming.md +447 -0
  15. package/templates/hono/docs/library/ai-sdk/structured-output.md +493 -0
  16. package/templates/hono/docs/library/ai-sdk/tools.md +513 -0
  17. package/templates/hono/docs/library/hono/env-setup.md +458 -0
  18. package/templates/hono/docs/library/hono/index.md +1 -0
  19. package/templates/hono/docs/library/pino/index.md +437 -0
  20. package/templates/hono/docs/library/prisma/cloudflare-d1.md +503 -0
  21. package/templates/hono/docs/library/prisma/config.md +362 -0
  22. package/templates/hono/docs/library/prisma/index.md +86 -13
  23. package/templates/hono/docs/skills/gemini-review/SKILL.md +116 -116
  24. package/templates/hono/docs/skills/gemini-review/references/checklists.md +125 -125
  25. package/templates/hono/docs/skills/gemini-review/references/prompt-templates.md +191 -191
  26. package/templates/npx/CLAUDE.md +309 -0
  27. package/templates/npx/docs/git/git.md +307 -0
  28. package/templates/npx/docs/library/commander/index.md +164 -0
  29. package/templates/npx/docs/library/fs-extra/index.md +171 -0
  30. package/templates/npx/docs/library/prompts/index.md +253 -0
  31. package/templates/npx/docs/mcp/index.md +60 -0
  32. package/templates/npx/docs/skills/gemini-review/SKILL.md +220 -0
  33. package/templates/npx/docs/skills/gemini-review/references/checklists.md +134 -0
  34. package/templates/npx/docs/skills/gemini-review/references/prompt-templates.md +301 -0
  35. package/templates/tanstack-start/CLAUDE.md +43 -5
  36. package/templates/tanstack-start/docs/architecture/architecture.md +134 -4
  37. package/templates/tanstack-start/docs/deployment/cloudflare.md +234 -51
  38. package/templates/tanstack-start/docs/deployment/index.md +322 -32
  39. package/templates/tanstack-start/docs/deployment/nitro.md +201 -20
  40. package/templates/tanstack-start/docs/deployment/railway.md +305 -153
  41. package/templates/tanstack-start/docs/deployment/vercel.md +353 -78
  42. package/templates/tanstack-start/docs/git/{index.md → git.md} +81 -7
  43. package/templates/tanstack-start/docs/guides/best-practices.md +203 -1
  44. package/templates/tanstack-start/docs/guides/env-setup.md +450 -0
  45. package/templates/tanstack-start/docs/library/ai-sdk/hooks.md +472 -0
  46. package/templates/tanstack-start/docs/library/ai-sdk/index.md +264 -0
  47. package/templates/tanstack-start/docs/library/ai-sdk/openrouter.md +371 -0
  48. package/templates/tanstack-start/docs/library/ai-sdk/providers.md +403 -0
  49. package/templates/tanstack-start/docs/library/ai-sdk/streaming.md +320 -0
  50. package/templates/tanstack-start/docs/library/ai-sdk/structured-output.md +454 -0
  51. package/templates/tanstack-start/docs/library/ai-sdk/tools.md +473 -0
  52. package/templates/tanstack-start/docs/library/pino/index.md +320 -0
  53. package/templates/tanstack-start/docs/library/prisma/cloudflare-d1.md +404 -0
  54. package/templates/tanstack-start/docs/library/prisma/config.md +377 -0
  55. package/templates/tanstack-start/docs/library/prisma/index.md +3 -1
  56. package/templates/tanstack-start/docs/library/prisma/schema.md +123 -25
  57. package/templates/tanstack-start/docs/library/tanstack-start/server-functions.md +80 -2
  58. package/templates/tanstack-start/docs/skills/gemini-review/SKILL.md +116 -116
  59. package/templates/tanstack-start/docs/skills/gemini-review/references/checklists.md +138 -144
  60. package/templates/tanstack-start/docs/skills/gemini-review/references/prompt-templates.md +186 -187
  61. package/templates/hono/docs/git/index.md +0 -180
@@ -1,293 +1,292 @@
1
- # Prompt Templates for Gemini Review
1
+ # Gemini 리뷰 프롬프트 템플릿
2
2
 
3
- ## Command Patterns
3
+ ## 명령어 패턴
4
4
 
5
- All commands use the fixed model `gemini-3-pro-preview` with JSON output for parsing.
5
+ 모든 명령어는 고정 모델 `gemini-2.5-pro`와 JSON 출력 사용.
6
6
 
7
- ### Basic Pattern
7
+ ### 기본 패턴
8
8
  ```bash
9
- gemini -m gemini-3-pro-preview -p "{prompt}" --output-format json
9
+ gemini -m gemini-2.5-pro -p "{prompt}" --output-format json
10
10
  ```
11
11
 
12
- ### File Piping Pattern
12
+ ### 파일 파이핑 패턴
13
13
  ```bash
14
- cat {file_path} | gemini -m gemini-3-pro-preview -p "{instructions}" --output-format json
14
+ cat {file_path} | gemini -m gemini-2.5-pro -p "{instructions}" --output-format json
15
15
  ```
16
16
 
17
- ### Multi-line Heredoc Pattern
17
+ ### 멀티라인 Heredoc 패턴
18
18
  ```bash
19
- gemini -m gemini-3-pro-preview --output-format json -p "$(cat << 'EOF'
19
+ gemini -m gemini-2.5-pro --output-format json -p "$(cat << 'EOF'
20
20
  {multi_line_prompt}
21
21
  EOF
22
22
  )"
23
23
  ```
24
24
 
25
- ### Response Parsing
25
+ ### 응답 파싱
26
26
  ```bash
27
- result=$(gemini -m gemini-3-pro-preview -p "..." --output-format json)
27
+ result=$(gemini -m gemini-2.5-pro -p "..." --output-format json)
28
28
  review_content=$(echo "$result" | jq -r '.response')
29
29
  echo "$review_content"
30
30
  ```
31
31
 
32
32
  ---
33
33
 
34
- ## Plan Review Template
34
+ ## 계획 리뷰 템플릿
35
35
 
36
36
  ```bash
37
- gemini -m gemini-3-pro-preview --output-format json -p "$(cat << 'EOF'
38
- [PLAN REVIEW REQUEST]
37
+ gemini -m gemini-2.5-pro --output-format json -p "$(cat << 'EOF'
38
+ [계획 리뷰 요청]
39
39
 
40
- ## Context
41
- Project: {project_name}
42
- Tech Stack: {tech_stack}
43
- Current State: {current_state_description}
40
+ ## 컨텍스트
41
+ 프로젝트: {project_name}
42
+ 기술 스택: {tech_stack}
43
+ 현재 상태: {current_state_description}
44
44
 
45
- ## Implementation Plan
45
+ ## 구현 계획
46
46
  {plan_content}
47
47
 
48
- ## Review Checklist
48
+ ## 리뷰 체크리스트
49
49
  {checklist_items}
50
50
 
51
- ## Review Instructions
52
- Analyze this implementation plan and provide feedback on:
51
+ ## 리뷰 지침
52
+ 구현 계획을 분석하여 다음에 대한 피드백을 제공해주세요:
53
53
 
54
- 1. **Completeness**
55
- - Are all requirements addressed?
56
- - Any missing steps or considerations?
54
+ 1. **완전성**
55
+ - 모든 요구사항이 다뤄졌는가?
56
+ - 누락된 단계나 고려사항이 있는가?
57
57
 
58
- 2. **Logic & Feasibility**
59
- - Will this approach work as intended?
60
- - Any logical flaws or contradictions?
58
+ 2. **로직 실현 가능성**
59
+ - 접근방식이 의도대로 작동할 것인가?
60
+ - 논리적 결함이나 모순이 있는가?
61
61
 
62
- 3. **Edge Cases**
63
- - What edge cases might be missed?
64
- - How should they be handled?
62
+ 3. **엣지 케이스**
63
+ - 놓칠 있는 엣지 케이스는?
64
+ - 어떻게 처리해야 하는가?
65
65
 
66
- 4. **Risks & Issues**
67
- - Potential problems during implementation?
68
- - Dependencies or blockers?
66
+ 4. **위험 이슈**
67
+ - 구현 발생할 수 있는 문제는?
68
+ - 의존성이나 블로커가 있는가?
69
69
 
70
- 5. **Alternatives**
71
- - Better approaches available?
72
- - Trade-offs to consider?
70
+ 5. **대안**
71
+ - 나은 접근방식이 있는가?
72
+ - 고려해야 트레이드오프는?
73
73
 
74
- Respond with:
75
- - ✅ Strengths of the plan
76
- - ⚠️ Concerns or issues found
77
- - 💡 Suggestions for improvement
78
- - 🔄 Alternative approaches (if any)
74
+ 응답 형식:
75
+ - ✅ 계획의 강점
76
+ - ⚠️ 발견된 우려사항 또는 이슈
77
+ - 💡 개선 제안
78
+ - 🔄 대안적 접근방식 (있다면)
79
79
  EOF
80
80
  )"
81
81
  ```
82
82
 
83
83
  ---
84
84
 
85
- ## Code Review Template
85
+ ## 코드 리뷰 템플릿
86
86
 
87
- ### Option A: Inline Code
87
+ ### 옵션 A: 인라인 코드
88
88
  ```bash
89
- gemini -m gemini-3-pro-preview --output-format json -p "$(cat << 'EOF'
90
- [CODE REVIEW REQUEST]
89
+ gemini -m gemini-2.5-pro --output-format json -p "$(cat << 'EOF'
90
+ [코드 리뷰 요청]
91
91
 
92
- ## Context
93
- File: {file_path}
94
- Language: {language}
95
- Tech Stack: {tech_stack}
96
- Purpose: {purpose_description}
92
+ ## 컨텍스트
93
+ 파일: {file_path}
94
+ 언어: {language}
95
+ 기술 스택: {tech_stack}
96
+ 목적: {purpose_description}
97
97
 
98
- ## Code to Review
98
+ ## 리뷰할 코드
99
99
  ```{language}
100
100
  {code_content}
101
101
  ```
102
102
 
103
- ## Review Checklist
103
+ ## 리뷰 체크리스트
104
104
  {checklist_items}
105
105
 
106
- ## Review Instructions
107
- Perform a thorough code review focusing on:
108
-
109
- 1. **Bugs & Logic Errors**
110
- - Incorrect logic or algorithms
111
- - Off-by-one errors
112
- - Null/undefined handling
113
- - Type mismatches
114
-
115
- 2. **Security Vulnerabilities**
116
- - Injection risks (SQL, XSS, etc.)
117
- - Authentication/authorization gaps
118
- - Data exposure risks
119
- - Input validation issues
120
-
121
- 3. **Performance Issues**
122
- - Inefficient algorithms (specify Big-O if problematic)
123
- - N+1 queries
124
- - Memory leaks
125
- - Unnecessary operations
126
-
127
- 4. **Best Practices**
128
- - Code organization
129
- - Naming conventions
130
- - Error handling patterns
131
- - Testing considerations
132
-
133
- 5. **Maintainability**
134
- - Code clarity
135
- - Documentation needs
136
- - Coupling and cohesion
137
- - Future extensibility
138
-
139
- For each issue found, provide:
140
- - 🔴 CRITICAL / 🟡 IMPORTANT / 🟢 MINOR
141
- - Location (line number or function name)
142
- - Description of the issue
143
- - Suggested fix with code example
106
+ ## 리뷰 지침
107
+ 다음에 초점을 맞춰 철저한 코드 리뷰를 수행해주세요:
108
+
109
+ 1. **버그 로직 오류**
110
+ - 잘못된 로직 또는 알고리즘
111
+ - Off-by-one 에러
112
+ - Null/undefined 처리
113
+ - 타입 불일치
114
+
115
+ 2. **보안 취약점**
116
+ - 인젝션 위험 (SQL, XSS )
117
+ - 인증/인가
118
+ - 데이터 노출 위험
119
+ - 입력 유효성 검사 이슈
120
+
121
+ 3. **성능 이슈**
122
+ - 비효율적인 알고리즘 (문제 Big-O 명시)
123
+ - N+1 쿼리
124
+ - 메모리 누수
125
+ - 불필요한 연산
126
+
127
+ 4. **베스트 프랙티스**
128
+ - 코드 구성
129
+ - 명명 규칙
130
+ - 에러 처리 패턴
131
+ - 테스트 고려사항
132
+
133
+ 5. **유지보수성**
134
+ - 코드 명확성
135
+ - 문서화 필요성
136
+ - 결합도와 응집도
137
+ - 향후 확장성
138
+
139
+ 발견된 이슈에 대해 다음을 제공:
140
+ - 🔴 심각 / 🟡 중요 / 🟢 경미
141
+ - 위치 (라인 번호 또는 함수명)
142
+ - 이슈 설명
143
+ - 코드 예시와 함께 수정 제안
144
144
  EOF
145
145
  )"
146
146
  ```
147
147
 
148
- ### Option B: Piping File Content
148
+ ### 옵션 B: 파일 내용 파이핑
149
149
  ```bash
150
- cat {file_path} | gemini -m gemini-3-pro-preview --output-format json -p "Review this {language} code ({tech_stack} project) for:
151
- 1. Bugs and logic errors
152
- 2. Security vulnerabilities
153
- 3. Performance issues
154
- 4. Best practices violations
155
- 5. Maintainability concerns
156
-
157
- For each issue: specify severity (🔴 CRITICAL/🟡 IMPORTANT/🟢 MINOR), location, description, and suggested fix with code."
150
+ cat {file_path} | gemini -m gemini-2.5-pro --output-format json -p " {language} 코드 ({tech_stack} 프로젝트) 다음 관점에서 리뷰해주세요:
151
+ 1. 버그 로직 오류
152
+ 2. 보안 취약점
153
+ 3. 성능 이슈
154
+ 4. 베스트 프랙티스 위반
155
+ 5. 유지보수성 우려
156
+
157
+ 이슈에 대해: 심각도 (🔴 심각/🟡 중요/🟢 경미), 위치, 설명, 코드와 함께 수정 제안을 명시해주세요."
158
158
  ```
159
159
 
160
160
  ---
161
161
 
162
- ## Architecture Review Template
162
+ ## 아키텍처 리뷰 템플릿
163
163
 
164
164
  ```bash
165
- gemini -m gemini-3-pro-preview --output-format json -p "$(cat << 'EOF'
166
- [ARCHITECTURE REVIEW REQUEST]
165
+ gemini -m gemini-2.5-pro --output-format json -p "$(cat << 'EOF'
166
+ [아키텍처 리뷰 요청]
167
167
 
168
- ## System Overview
169
- Name: {system_name}
170
- Purpose: {system_purpose}
171
- Tech Stack: {tech_stack}
172
- Scale: {expected_scale}
168
+ ## 시스템 개요
169
+ 이름: {system_name}
170
+ 목적: {system_purpose}
171
+ 기술 스택: {tech_stack}
172
+ 규모: {expected_scale}
173
173
 
174
- ## Current/Proposed Architecture
174
+ ## 현재/제안 아키텍처
175
175
  {architecture_description}
176
176
 
177
- ## Components
177
+ ## 컴포넌트
178
178
  {components_list}
179
179
 
180
- ## Data Flow
180
+ ## 데이터 흐름
181
181
  {data_flow_description}
182
182
 
183
- ## Specific Questions
183
+ ## 구체적인 질문
184
184
  {specific_questions}
185
185
 
186
- ## Review Instructions
187
- Evaluate this architecture considering:
188
-
189
- 1. **Scalability**
190
- - Can it handle expected load?
191
- - Horizontal vs vertical scaling options?
192
- - Bottlenecks identified?
193
-
194
- 2. **Reliability**
195
- - Single points of failure?
196
- - Fault tolerance mechanisms?
197
- - Recovery strategies?
198
-
199
- 3. **Maintainability**
200
- - Component coupling?
201
- - Deployment complexity?
202
- - Operational overhead?
203
-
204
- 4. **Security**
205
- - Attack surface?
206
- - Data protection?
207
- - Access control boundaries?
208
-
209
- 5. **Cost Efficiency**
210
- - Resource utilization?
211
- - Scaling costs?
212
- - Operational costs?
213
-
214
- 6. **Trade-offs**
215
- - What are we sacrificing?
216
- - Alternative architectures?
217
- - Migration path considerations?
218
-
219
- Respond with:
220
- - 📊 Overall assessment
221
- - ✅ Architectural strengths
222
- - ⚠️ Concerns and risks
223
- - 💡 Recommendations
224
- - 🔄 Alternative approaches worth considering
186
+ ## 리뷰 지침
187
+ 다음을 고려하여 아키텍처를 평가해주세요:
188
+
189
+ 1. **확장성**
190
+ - 예상 로드를 처리할 있는가?
191
+ - 수평 vs 수직 스케일링 옵션은?
192
+ - 확인된 병목 지점은?
193
+
194
+ 2. **신뢰성**
195
+ - 단일 장애 지점이 있는가?
196
+ - 내결함성 메커니즘은?
197
+ - 복구 전략은?
198
+
199
+ 3. **유지보수성**
200
+ - 컴포넌트 결합도는?
201
+ - 배포 복잡성은?
202
+ - 운영 오버헤드는?
203
+
204
+ 4. **보안**
205
+ - 공격 표면은?
206
+ - 데이터 보호는?
207
+ - 접근 제어 경계는?
208
+
209
+ 5. **비용 효율성**
210
+ - 리소스 활용도는?
211
+ - 스케일링 비용은?
212
+ - 운영 비용은?
213
+
214
+ 6. **트레이드오프**
215
+ - 무엇을 희생하고 있는가?
216
+ - 대안적 아키텍처는?
217
+ - 마이그레이션 경로 고려사항은?
218
+
219
+ 응답 형식:
220
+ - 📊 전체 평가
221
+ - ✅ 아키텍처 강점
222
+ - ⚠️ 우려사항 위험
223
+ - 💡 권장사항
224
+ - 🔄 고려할 가치가 있는 대안적 접근방식
225
225
  EOF
226
226
  )"
227
227
  ```
228
228
 
229
229
  ---
230
230
 
231
- ## FastAPI-Specific Additions
231
+ ## TanStack Start 특화 추가사항
232
232
 
233
- When tech_stack is `fastapi`, append to the relevant template:
233
+ tech_stack `tanstack-start`일 관련 템플릿에 추가:
234
234
 
235
235
  ```
236
- ## FastAPI-Specific Review Points
237
- - Pydantic model design and validation
238
- - Async/await correctness
239
- - Dependency injection usage
240
- - OpenAPI documentation quality
241
- - Middleware and exception handler patterns
242
- - Database session management
243
- - Background task handling
236
+ ## TanStack Start 특화 리뷰 포인트
237
+ - 파일 기반 라우팅 구조와 중첩
238
+ - createServerFn 사용 및 보안
239
+ - TanStack Query 통합 패턴
240
+ - SSR/CSR 선택의 적절성
241
+ - 로더와 서버 함수 데이터 페칭 전략
242
+ - 하이드레이션 처리
243
+ - TypeScript 타입 안전성
244
244
  ```
245
245
 
246
246
  ---
247
247
 
248
- ## Next.js-Specific Additions
248
+ ## FastAPI 특화 추가사항
249
249
 
250
- When tech_stack is `nextjs`, append to the relevant template:
250
+ tech_stack `fastapi`일 관련 템플릿에 추가:
251
251
 
252
252
  ```
253
- ## Next.js-Specific Review Points
254
- - Rendering strategy appropriateness (SSR/SSG/ISR/CSR)
255
- - Data fetching patterns
256
- - Route organization
257
- - Image and font optimization
258
- - Bundle size impact
259
- - SEO metadata handling
260
- - API route security
261
- - TypeScript type safety
253
+ ## FastAPI 특화 리뷰 포인트
254
+ - Pydantic 모델 설계 및 유효성 검사
255
+ - async/await 정확성
256
+ - 의존성 주입 사용
257
+ - OpenAPI 문서 품질
258
+ - 미들웨어 예외 핸들러 패턴
259
+ - 데이터베이스 세션 관리
260
+ - 백그라운드 태스크 처리
262
261
  ```
263
262
 
264
263
  ---
265
264
 
266
- ## Quick Review Templates
265
+ ## 빠른 리뷰 템플릿
267
266
 
268
- ### Security Quick Check
267
+ ### 보안 빠른 체크
269
268
  ```bash
270
- cat {file_path} | gemini -m gemini-3-pro-preview -p "Security audit this code. Find: injection vulnerabilities, auth issues, data exposure risks, input validation gaps. List each with severity and fix." --output-format json
269
+ cat {file_path} | gemini -m gemini-2.5-pro -p " 코드를 보안 감사해주세요. 찾을 것: 인젝션 취약점, 인증 이슈, 데이터 노출 위험, 입력 유효성 검사 갭. 각각 심각도와 수정안과 함께 나열해주세요." --output-format json
271
270
  ```
272
271
 
273
- ### Performance Quick Check
272
+ ### 성능 빠른 체크
274
273
  ```bash
275
- cat {file_path} | gemini -m gemini-3-pro-preview -p "Performance review this code. Find: inefficient algorithms (note Big-O), N+1 queries, memory issues, unnecessary operations. Suggest optimizations." --output-format json
274
+ cat {file_path} | gemini -m gemini-2.5-pro -p " 코드를 성능 리뷰해주세요. 찾을 것: 비효율적인 알고리즘 (Big-O 명시), N+1 쿼리, 메모리 이슈, 불필요한 연산. 최적화를 제안해주세요." --output-format json
276
275
  ```
277
276
 
278
- ### Bug Hunt
277
+ ### 버그 헌팅
279
278
  ```bash
280
- cat {file_path} | gemini -m gemini-3-pro-preview -p "Find bugs in this code: logic errors, edge cases, null handling, race conditions, type issues. For each bug, show the fix." --output-format json
279
+ cat {file_path} | gemini -m gemini-2.5-pro -p " 코드에서 버그를 찾아주세요: 로직 오류, 엣지 케이스, null 처리, 레이스 컨디션, 타입 이슈. 버그에 대해 수정안을 보여주세요." --output-format json
281
280
  ```
282
281
 
283
282
  ---
284
283
 
285
- ## Template Usage Instructions
284
+ ## 템플릿 사용 가이드
286
285
 
287
- 1. Select the appropriate base template (plan/code/architecture)
288
- 2. Fill in all `{placeholder}` fields with actual content
289
- 3. Load the relevant checklist from `checklists.md` based on tech stack
290
- 4. Append tech-stack-specific additions if applicable
291
- 5. Execute via Gemini CLI
292
- 6. Parse JSON response to extract `.response` field
293
- 7. Present both raw Gemini response and Claude's analysis
286
+ 1. 적절한 기본 템플릿 선택 (plan/code/architecture)
287
+ 2. 모든 `{placeholder}` 필드를 실제 내용으로 채움
288
+ 3. 기술 스택에 따라 `checklists.md`에서 관련 체크리스트 로드
289
+ 4. 해당 기술 스택 특화 추가사항 첨부
290
+ 5. Gemini CLI로 실행
291
+ 6. JSON 응답을 파싱하여 `.response` 필드 추출
292
+ 7. Gemini 원본 응답과 Claude 분석 모두 제시
@@ -1,180 +0,0 @@
1
- # Git 커밋 컨벤션
2
-
3
- > 프로젝트 Git 워크플로우 및 커밋 메시지 규칙
4
-
5
- ---
6
-
7
- ## ⛔ 절대 금지 사항
8
-
9
- ```
10
- ❌ "Generated with Claude Code" 포함 금지
11
- ❌ "🤖" 또는 AI 관련 이모지 포함 금지
12
- ❌ "Co-Authored-By:" 헤더 포함 금지
13
- ❌ AI/봇이 작성했다는 어떤 표시도 금지
14
- ❌ 커밋 메시지 여러 줄 작성 금지
15
- ❌ 커밋 메시지에 이모지 사용 금지
16
- ```
17
-
18
- ---
19
-
20
- ## 커밋 메시지 형식
21
-
22
- ### 기본 형식
23
-
24
- ```
25
- <prefix>: <설명>
26
- ```
27
-
28
- - **한 줄만 작성**
29
- - **본문 없음**
30
- - **마침표 없음**
31
- - **이모지 없음**
32
-
33
- ### Prefix 목록
34
-
35
- | Prefix | 용도 | 예시 |
36
- |--------|------|------|
37
- | `feat` | 새 기능 | `feat: 사용자 인증 API 추가` |
38
- | `fix` | 버그 수정 | `fix: JWT 토큰 검증 오류 수정` |
39
- | `refactor` | 리팩토링 | `refactor: 사용자 서비스 구조 개선` |
40
- | `style` | 코드 스타일 | `style: prettier 적용` |
41
- | `docs` | 문서 | `docs: API 문서 업데이트` |
42
- | `test` | 테스트 | `test: 인증 미들웨어 테스트 추가` |
43
- | `chore` | 기타 작업 | `chore: 의존성 업데이트` |
44
- | `perf` | 성능 개선 | `perf: 쿼리 최적화` |
45
- | `ci` | CI/CD | `ci: GitHub Actions 설정` |
46
-
47
- ---
48
-
49
- ## 좋은 예시 vs 나쁜 예시
50
-
51
- ### ✅ 좋은 예시
52
-
53
- ```bash
54
- feat: 사용자 로그인 API 추가
55
- fix: 세션 만료 오류 수정
56
- docs: README 업데이트
57
- refactor: 인증 미들웨어 분리
58
- test: 사용자 CRUD 테스트 추가
59
- ```
60
-
61
- ### ❌ 나쁜 예시
62
-
63
- ```bash
64
- # 이모지 사용
65
- 🚀 feat: 새 기능 추가
66
-
67
- # 여러 줄
68
- feat: 새 기능 추가
69
-
70
- 상세 설명...
71
-
72
- # AI 표시
73
- feat: 로그인 기능 추가
74
-
75
- Generated with Claude Code
76
-
77
- # Co-Authored-By 포함
78
- feat: 기능 추가
79
-
80
- Co-Authored-By: Claude <noreply@anthropic.com>
81
-
82
- # 마침표 사용
83
- feat: 새 기능 추가.
84
-
85
- # 모호한 설명
86
- fix: 버그 수정
87
- chore: 업데이트
88
- ```
89
-
90
- ---
91
-
92
- ## 커밋 명령어
93
-
94
- ### 기본 커밋
95
-
96
- ```bash
97
- git add .
98
- git commit -m "feat: 사용자 인증 API 추가"
99
- ```
100
-
101
- ### 파일 지정 커밋
102
-
103
- ```bash
104
- git add src/routes/users.ts src/validators/user.ts
105
- git commit -m "feat: 사용자 CRUD API 구현"
106
- ```
107
-
108
- ---
109
-
110
- ## 브랜치 전략
111
-
112
- ### 브랜치 네이밍
113
-
114
- ```
115
- feature/<기능명>
116
- fix/<버그명>
117
- refactor/<대상>
118
- docs/<문서명>
119
- ```
120
-
121
- ### 예시
122
-
123
- ```bash
124
- git checkout -b feature/user-auth
125
- git checkout -b fix/jwt-validation
126
- git checkout -b refactor/middleware-structure
127
- git checkout -b docs/api-reference
128
- ```
129
-
130
- ---
131
-
132
- ## 워크플로우
133
-
134
- ### 1. 브랜치 생성
135
-
136
- ```bash
137
- git checkout -b feature/new-feature
138
- ```
139
-
140
- ### 2. 작업 및 커밋
141
-
142
- ```bash
143
- # 작업 진행
144
- git add .
145
- git commit -m "feat: 새 기능 구현"
146
- ```
147
-
148
- ### 3. 푸시
149
-
150
- ```bash
151
- git push origin feature/new-feature
152
- ```
153
-
154
- ### 4. PR 생성
155
-
156
- ```bash
157
- # GitHub에서 PR 생성
158
- # 또는 gh CLI 사용
159
- gh pr create --title "feat: 새 기능 추가" --body "설명"
160
- ```
161
-
162
- ---
163
-
164
- ## 커밋 전 체크리스트
165
-
166
- ```
167
- □ 커밋 메시지가 한 줄인가?
168
- □ 적절한 prefix를 사용했는가?
169
- □ 이모지가 없는가?
170
- □ AI 관련 표시가 없는가?
171
- □ Co-Authored-By가 없는가?
172
- □ 마침표가 없는가?
173
- □ 설명이 명확한가?
174
- ```
175
-
176
- ---
177
-
178
- ## 관련 문서
179
-
180
- - [CLAUDE.md](../../CLAUDE.md)