@kood/claude-code 0.3.7 → 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 +51 -51
  48. package/templates/nextjs/docs/design.md +183 -183
  49. package/templates/nextjs/docs/guides/conventions.md +86 -86
  50. package/templates/nextjs/docs/guides/getting-started.md +28 -28
  51. package/templates/nextjs/docs/guides/routes.md +32 -32
  52. package/templates/nextjs/docs/library/better-auth/index.md +70 -70
  53. package/templates/nextjs/docs/library/nextjs/app-router.md +43 -43
  54. package/templates/nextjs/docs/library/nextjs/caching.md +73 -73
  55. package/templates/nextjs/docs/library/nextjs/index.md +51 -51
  56. package/templates/nextjs/docs/library/nextjs/middleware.md +41 -41
  57. package/templates/nextjs/docs/library/nextjs/route-handlers.md +31 -31
  58. package/templates/nextjs/docs/library/nextjs/server-actions.md +34 -34
  59. package/templates/nextjs/docs/library/prisma/cloudflare-d1.md +20 -20
  60. package/templates/nextjs/docs/library/prisma/config.md +18 -18
  61. package/templates/nextjs/docs/library/prisma/crud.md +17 -17
  62. package/templates/nextjs/docs/library/prisma/index.md +18 -18
  63. package/templates/nextjs/docs/library/prisma/relations.md +16 -16
  64. package/templates/nextjs/docs/library/prisma/schema.md +23 -23
  65. package/templates/nextjs/docs/library/prisma/setup.md +6 -6
  66. package/templates/nextjs/docs/library/prisma/transactions.md +10 -10
  67. package/templates/nextjs/docs/library/tanstack-query/index.md +6 -6
  68. package/templates/nextjs/docs/library/tanstack-query/invalidation.md +20 -20
  69. package/templates/nextjs/docs/library/tanstack-query/optimistic-updates.md +4 -4
  70. package/templates/nextjs/docs/library/tanstack-query/use-mutation.md +15 -15
  71. package/templates/nextjs/docs/library/tanstack-query/use-query.md +22 -22
  72. package/templates/nextjs/docs/library/zod/complex-types.md +11 -11
  73. package/templates/nextjs/docs/library/zod/index.md +8 -8
  74. package/templates/nextjs/docs/library/zod/transforms.md +11 -11
  75. package/templates/nextjs/docs/library/zod/validation.md +9 -9
  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 -53
  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 +45 -45
  88. package/templates/tanstack-start/docs/guides/routes.md +54 -54
  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
@@ -1,33 +1,33 @@
1
1
  ---
2
- description: 버그 원인 분석 수정. sequential thinking 3-5 + Task (Explore) 필수.
2
+ description: Analyze bug cause and fix. Sequential thinking 3-5 + Task (Explore) required.
3
3
  allowed-tools: Read, Grep, Glob, Task, Edit, Bash(npm:*, yarn:*), mcp__sequential-thinking__sequentialthinking
4
- argument-hint: <버그 설명 또는 에러 메시지>
4
+ argument-hint: <bug description or error message>
5
5
  ---
6
6
 
7
7
  # Bug Fix Command
8
8
 
9
- > 버그 원인 분석, 수정 옵션 제시, 구현까지 처리하는 커맨드.
9
+ > Command for bug cause analysis, fix option presentation, and implementation.
10
10
 
11
- **버그 대상**: $ARGUMENTS
11
+ **Bug Target**: $ARGUMENTS
12
12
 
13
13
  ---
14
14
 
15
15
  <argument_validation>
16
16
 
17
- ## ARGUMENT 필수 확인
17
+ ## ARGUMENT Verification Required
18
18
 
19
19
  ```
20
- $ARGUMENTS 없음 즉시 질문:
20
+ No $ARGUMENTS → Ask immediately:
21
21
 
22
- "어떤 버그를 수정해야 하나요? 구체적으로 알려주세요.
22
+ "What bug needs fixing? Please provide details.
23
23
 
24
- 예시:
25
- - 에러 메시지 발생 위치
26
- - 예상 동작 vs 실제 동작
27
- - 재현 방법
28
- - 관련 파일 경로"
24
+ Examples:
25
+ - Error message and location
26
+ - Expected vs actual behavior
27
+ - How to reproduce
28
+ - Relevant file paths"
29
29
 
30
- $ARGUMENTS 있음 다음 단계 진행
30
+ Has $ARGUMENTS → Proceed to next step
31
31
  ```
32
32
 
33
33
  </argument_validation>
@@ -36,19 +36,19 @@ $ARGUMENTS 있음 → 다음 단계 진행
36
36
 
37
37
  <workflow>
38
38
 
39
- ## 실행 흐름
39
+ ## Execution Flow
40
40
 
41
- | 단계 | 작업 | 도구 |
41
+ | Step | Task | Tool |
42
42
  |------|------|------|
43
- | 1. 입력 확인 | ARGUMENT 검증, 없으면 질문 | - |
44
- | 2. 복잡도 판단 | Sequential Thinking으로 분석 범위 결정 | sequentialthinking (1단계) |
45
- | 3. 버그 재현 | 에러 재현, 관련 파일 파악 | Read/Grep/Glob |
46
- | 4. 원인 분석 | Task (Explore) 관련 코드 탐색 | Task (Explore) |
47
- | 5. 옵션 도출 | 수정 방법 2-3 도출 | sequentialthinking (2-4단계) |
48
- | 6. 옵션 제시 | 장단점, 영향 범위 제시 | - |
49
- | 7. 사용자 선택 | 수정 방법 선택 대기 | - |
50
- | 8. 구현 | 선택된 방법으로 코드 수정 | Edit |
51
- | 9. 검증 | 테스트 실행, 빌드 확인 | Bash |
43
+ | 1. Input Verify | Validate ARGUMENT, ask if missing | - |
44
+ | 2. Complexity Judge | Determine analysis scope with Sequential Thinking | sequentialthinking (step 1) |
45
+ | 3. Reproduce Bug | Reproduce error, identify related files | Read/Grep/Glob |
46
+ | 4. Analyze Cause | Explore related code with Task (Explore) | Task (Explore) |
47
+ | 5. Derive Options | Generate 2-3 fix methods | sequentialthinking (steps 2-4) |
48
+ | 6. Present Options | Show pros/cons and impact scope | - |
49
+ | 7. User Choice | Wait for user to select fix method | - |
50
+ | 8. Implement | Fix code with selected method | Edit |
51
+ | 9. Verify | Run tests, confirm build | Bash |
52
52
 
53
53
  </workflow>
54
54
 
@@ -56,43 +56,43 @@ $ARGUMENTS 있음 → 다음 단계 진행
56
56
 
57
57
  <thinking_strategy>
58
58
 
59
- ## Sequential Thinking 가이드
59
+ ## Sequential Thinking Guide
60
60
 
61
- ### 복잡도 판단 (thought 1)
61
+ ### Complexity Judgment (thought 1)
62
62
 
63
63
  ```
64
- thought 1: 복잡도 판단
65
- - 에러 유형: syntax/runtime/logic/type
66
- - 영향 범위: 단일 파일 vs 다중 파일
67
- - 의존성: 외부 라이브러리, API 연동
68
- - 재현 가능성: 항상 발생 vs 간헐적
64
+ thought 1: Complexity judgment
65
+ - Error type: syntax/runtime/logic/type
66
+ - Impact scope: single file vs multiple files
67
+ - Dependencies: external libraries, API integration
68
+ - Reproducibility: always vs intermittent
69
69
  ```
70
70
 
71
- ### 복잡도별 전략
71
+ ### Complexity Strategy
72
72
 
73
- | 복잡도 | 사고 횟수 | 판단 기준 | 사고 패턴 |
74
- |--------|----------|----------|------------|
75
- | **간단** | 3 | 명확한 에러, 1-2 파일 | 복잡도 판단 원인 분석수정 방법 |
76
- | **보통** | 5 | 논리 오류, 3-5 파일 | 복잡도 판단 재현원인 분석 옵션 비교추천안 |
77
- | **복잡** | 7+ | 간헐적 오류, 다중 모듈 | 복잡도 판단 재현 시도심층 분석옵션 탐색비교추천안 |
73
+ | Complexity | Thoughts | Criteria | Pattern |
74
+ |------------|----------|----------|---------|
75
+ | **Simple** | 3 | Clear error, 1-2 files | JudgeAnalyze causeFix method |
76
+ | **Normal** | 5 | Logic error, 3-5 files | JudgeReproduceAnalyzeCompare optionsRecommend |
77
+ | **Complex** | 7+ | Intermittent error, multi-module | JudgeTry reproduceDeep analyzeExplore optionsCompareRecommend |
78
78
 
79
- ### 보통 복잡도 패턴 (5단계)
79
+ ### Normal Complexity Pattern (5 steps)
80
80
 
81
81
  ```
82
- thought 1: 복잡도 판단 분석 범위
83
- thought 2: 버그 재현 에러 메시지 분석
84
- thought 3: 관련 코드 탐색 원인 파악
85
- thought 4: 수정 방법 2-3 비교 분석
86
- thought 5: 최종 추천안 근거
82
+ thought 1: Complexity judgment and analysis scope
83
+ thought 2: Bug reproduction and error message analysis
84
+ thought 3: Related code exploration and cause identification
85
+ thought 4: Compare 2-3 fix methods
86
+ thought 5: Final recommendation and rationale
87
87
  ```
88
88
 
89
- ### 핵심 원칙
89
+ ### Core Principles
90
90
 
91
91
  ```text
92
- 사고 과정을 출력해야 실제로 생각이 일어남
93
- 복잡도가 불확실하면 높게 책정 (3→5로 확장 가능)
94
- thought에서 구체적 분석 필요 (추상적 설명 금지)
95
- 필요 isRevision으로 이전 사고 수정
92
+ Output thinking process for actual thinking to happen
93
+ Judge high when uncertain (expandable 3→5)
94
+ Concrete analysis required in each thought (no abstract)
95
+ Use isRevision to modify previous thought if needed
96
96
  ```
97
97
 
98
98
  </thinking_strategy>
@@ -101,65 +101,65 @@ thought 5: 최종 추천안 및 근거
101
101
 
102
102
  <exploration>
103
103
 
104
- ## Task (Explore) 활용
104
+ ## Task (Explore) Usage
105
105
 
106
- ### 탐색 전략
106
+ ### Exploration Strategy
107
107
 
108
- | 버그 유형 | 탐색 대상 | prompt 예시 |
109
- |----------|----------|-------------|
110
- | **타입 에러** | 타입 정의, 사용처 | "타입 X 정의 위치 사용 파일 탐색" |
111
- | **런타임 에러** | 함수 호출 체인 | "함수 Y 호출 경로 관련 파일" |
112
- | **논리 오류** | 상태 관리, 데이터 흐름 | "상태 Z 변경 위치 영향 범위" |
113
- | **API 에러** | 엔드포인트, 요청/응답 | "API /path 관련 코드 구조" |
108
+ | Bug Type | Explore Target | Prompt Example |
109
+ |----------|-----------------|-----------------|
110
+ | **Type Error** | Type definition, usage | "Find type X definition and usage files" |
111
+ | **Runtime Error** | Function call chain | "Find function Y call path and related files" |
112
+ | **Logic Error** | State management, data flow | "Find where state Z changes and its impact" |
113
+ | **API Error** | Endpoint, request/response | "Find API /path related code structure" |
114
114
 
115
- ### Task 호출 패턴
115
+ ### Task Invocation Pattern
116
116
 
117
- **단일 탐색:**
117
+ **Single Exploration:**
118
118
 
119
119
  ```typescript
120
120
  Task({
121
121
  subagent_type: 'Explore',
122
- description: '에러 관련 코드 탐색',
122
+ description: 'Explore error-related code',
123
123
  prompt: `
124
- 에러 발생 관련 코드 구조 파악:
125
- - 에러가 발생하는 정확한 위치
126
- - 관련 함수/컴포넌트
127
- - 의존하는 모듈/라이브러리
128
- - 최근 수정 이력 (git blame)
124
+ Understand error-related code structure:
125
+ - Exact location where error occurs
126
+ - Related functions/components
127
+ - Dependent modules/libraries
128
+ - Recent change history (git blame)
129
129
  `
130
130
  })
131
131
  ```
132
132
 
133
- **병렬 탐색 (복잡한 경우):**
133
+ **Parallel Exploration (complex cases):**
134
134
 
135
135
  ```typescript
136
- // 단일 메시지에 다중 Task 호출
136
+ // Multiple Task calls in single message
137
137
  Task({
138
138
  subagent_type: 'Explore',
139
- prompt: '프론트엔드 에러 발생 컴포넌트 분석'
139
+ prompt: 'Analyze frontend error component'
140
140
  })
141
141
 
142
142
  Task({
143
143
  subagent_type: 'Explore',
144
- prompt: '백엔드 API 엔드포인트 분석'
144
+ prompt: 'Analyze backend API endpoint'
145
145
  })
146
146
 
147
147
  Task({
148
148
  subagent_type: 'Explore',
149
- prompt: '타입 정의 인터페이스 분석'
149
+ prompt: 'Analyze type definitions and interfaces'
150
150
  })
151
151
 
152
- // → 결과 취합 원인 파악
152
+ // → Collect results and identify cause
153
153
  ```
154
154
 
155
- ### 탐색 체크리스트
155
+ ### Exploration Checklist
156
156
 
157
157
  ```text
158
- 에러 발생 정확한 위치
159
- 관련 함수/클래스/컴포넌트
160
- 데이터 흐름 상태 변경
161
- 외부 의존성 (라이브러리, API)
162
- 최근 변경 사항 (git log/blame)
158
+ Exact error location
159
+ Related functions/classes/components
160
+ Data flow and state changes
161
+ External dependencies (libraries, APIs)
162
+ Recent changes (git log/blame)
163
163
  ```
164
164
 
165
165
  </exploration>
@@ -168,70 +168,70 @@ Task({
168
168
 
169
169
  <option_presentation>
170
170
 
171
- ## 옵션 제시 형식
171
+ ## Option Presentation Format
172
172
 
173
- ### 옵션 2-3 제시
173
+ ### Present 2-3 Options
174
174
 
175
175
  ```markdown
176
- ## 버그 분석 결과
176
+ ## Bug Analysis Results
177
177
 
178
- **원인:** [원인 설명]
178
+ **Cause:** [Cause explanation]
179
179
 
180
- **영향 범위:** [파일 모듈 목록]
180
+ **Impact Scope:** [File and module list]
181
181
 
182
182
  ---
183
183
 
184
- ### 옵션 1: [수정 방법] (추천)
184
+ ### Option 1: [Fix Method] (Recommended)
185
185
 
186
- **수정 내용:**
187
- - 변경 사항 1
188
- - 변경 사항 2
186
+ **Fix Content:**
187
+ - Change 1
188
+ - Change 2
189
189
 
190
- | 장점 | 단점 |
190
+ | Pros | Cons |
191
191
  |------|------|
192
- | 장점 1 | 단점 1 |
193
- | 장점 2 | 단점 2 |
192
+ | Pro 1 | Con 1 |
193
+ | Pro 2 | Con 2 |
194
194
 
195
- **수정 파일:**
195
+ **Files to Fix:**
196
196
  - `src/file1.ts:line`
197
197
  - `src/file2.ts:line`
198
198
 
199
- **리스크:** 낮음
199
+ **Risk:** Low
200
200
 
201
201
  ---
202
202
 
203
- ### 옵션 2: [수정 방법]
203
+ ### Option 2: [Fix Method]
204
204
 
205
- **수정 내용:**
205
+ **Fix Content:**
206
206
  ...
207
207
 
208
- | 장점 | 단점 |
208
+ | Pros | Cons |
209
209
  |------|------|
210
210
  | ... | ... |
211
211
 
212
- **수정 파일:**
212
+ **Files to Fix:**
213
213
  ...
214
214
 
215
- **리스크:** 중간
215
+ **Risk:** Medium
216
216
 
217
217
  ---
218
218
 
219
- ### 옵션 3: [수정 방법] (임시 해결)
219
+ ### Option 3: [Fix Method] (Temporary)
220
220
 
221
- **수정 내용:**
221
+ **Fix Content:**
222
222
  ...
223
223
 
224
- **리스크:** 높음 (근본 해결 아님)
224
+ **Risk:** High (not root cause fix)
225
225
 
226
226
  ---
227
227
 
228
- ## 추천 근거
228
+ ## Recommendation and Rationale
229
229
 
230
- 옵션 1을 추천합니다.
231
- - 근거 1
232
- - 근거 2
230
+ Recommend Option 1.
231
+ - Rationale 1
232
+ - Rationale 2
233
233
 
234
- 어떤 옵션으로 수정하시겠습니까? (1/2/3)
234
+ Which option to use? (1/2/3)
235
235
  ```
236
236
 
237
237
  </option_presentation>
@@ -240,43 +240,43 @@ Task({
240
240
 
241
241
  <implementation>
242
242
 
243
- ## 구현 가이드
243
+ ## Implementation Guide
244
244
 
245
- ### 수정 단계
245
+ ### Fix Steps
246
246
 
247
247
  ```
248
- 1. 사용자 옵션 선택 대기
249
- 2. Edit 도구로 코드 수정
250
- 3. 수정 내용 설명
251
- 4. 테스트/빌드 실행 (선택)
252
- 5. 결과 확인
248
+ 1. Wait for user option selection
249
+ 2. Fix code with Edit tool
250
+ 3. Explain changes
251
+ 4. Run tests/build (optional)
252
+ 5. Verify results
253
253
  ```
254
254
 
255
- ### 수정 후 검증
255
+ ### Post-Fix Verification
256
256
 
257
257
  ```bash
258
- # 타입 체크
258
+ # Type check
259
259
  npm run typecheck
260
- # 또는
260
+ # Or
261
261
  tsc --noEmit
262
262
 
263
- # 테스트 실행
263
+ # Run tests
264
264
  npm test
265
- # 또는
266
- npm test -- <관련 테스트 파일>
265
+ # Or
266
+ npm test -- <related test file>
267
267
 
268
- # 빌드 확인
268
+ # Verify build
269
269
  npm run build
270
270
  ```
271
271
 
272
- ### 검증 체크리스트
272
+ ### Verification Checklist
273
273
 
274
274
  ```text
275
- 에러 해결 확인
276
- 기존 기능 영향 없음
277
- 타입 에러 없음
278
- 테스트 통과
279
- 빌드 성공
275
+ Error resolved
276
+ Existing functionality intact
277
+ No type errors
278
+ Tests pass
279
+ Build succeeds
280
280
  ```
281
281
 
282
282
  </implementation>
@@ -285,30 +285,30 @@ npm run build
285
285
 
286
286
  <validation>
287
287
 
288
- ## 검증 체크리스트
288
+ ## Validation Checklist
289
289
 
290
- 실행 전 확인:
290
+ Before execution:
291
291
 
292
292
  ```text
293
- ✅ ARGUMENT 확인 (없으면 질문)
294
- ✅ Sequential Thinking 최소 3단계
295
- ✅ Task (Explore)로 코드 탐색
296
- 원인 분석 명확히
297
- 옵션 최소 2개, 권장 3
298
- 옵션에 장단점 명시
299
- 수정 파일 위치 명시 (line 포함)
293
+ Verify ARGUMENT (ask if missing)
294
+ ✅ Sequential Thinking minimum 3 steps
295
+ Code exploration with Task (Explore)
296
+ Cause analysis clear
297
+ Minimum 2 options, recommend 3
298
+ Specify pros/cons for each option
299
+ Specify file location to fix (include line)
300
300
  ```
301
301
 
302
- 절대 금지:
302
+ Absolute prohibitions:
303
303
 
304
304
  ```text
305
- ARGUMENT 없이 분석 시작
306
- ❌ Sequential Thinking 3단계 미만
307
- 코드 탐색 없이 추측으로 수정
308
- 옵션 1개만 제시
309
- 사용자 선택 없이 수정 시작
310
- 수정 검증 생략
311
- 장단점 없이 수정 방법만 나열
305
+ Start analysis without ARGUMENT
306
+ Less than 3 Sequential Thinking steps
307
+ Fix by guess without code exploration
308
+ Present only 1 option
309
+ Start fixing without user choice
310
+ Skip verification after fix
311
+ List fix methods without pros/cons
312
312
  ```
313
313
 
314
314
  </validation>
@@ -317,90 +317,90 @@ npm run build
317
317
 
318
318
  <examples>
319
319
 
320
- ## 실전 예시
320
+ ## Real-world Examples
321
321
 
322
- ### 예시 1: 타입 에러
322
+ ### Example 1: Type Error
323
323
 
324
324
  ```bash
325
- 사용자: /bug-fix Property 'name' does not exist on type 'User'
325
+ User: /bug-fix Property 'name' does not exist on type 'User'
326
326
 
327
- 1. Sequential Thinking (3단계):
328
- thought 1: "타입 에러 - 간단, User 타입 정의 확인"
329
- thought 2: "User 타입 사용처 탐색 필요"
330
- thought 3: "옵션 2개: 타입 정의 수정 vs 사용처 수정"
327
+ 1. Sequential Thinking (3 steps):
328
+ thought 1: "Type error - simple, check User type definition"
329
+ thought 2: "Need to explore User type and usage locations"
330
+ thought 3: "2 options: modify type definition vs modify usage"
331
331
 
332
- 2. Task 탐색:
333
- Task (Explore): "User 타입 정의 위치 사용 파일 탐색"
334
- → src/types/user.ts, src/components/UserProfile.tsx 파악
332
+ 2. Task Exploration:
333
+ Task (Explore): "Find User type definition location and usage files"
334
+ Identified src/types/user.ts, src/components/UserProfile.tsx
335
335
 
336
- 3. 원인 분석:
337
- User 타입에 name 속성 누락
336
+ 3. Cause Analysis:
337
+ name property missing from User type
338
338
 
339
- 4. 옵션 제시:
340
- 옵션 1: User 타입에 name 속성 추가 (추천)
341
- - 장점: 근본 해결
342
- - 단점: 없음
339
+ 4. Option Presentation:
340
+ Option 1: Add name property to User type (Recommended)
341
+ - Pro: Root cause fix
342
+ - Con: None
343
343
 
344
- 옵션 2: 사용처에서 name 제거
345
- - 장점: 빠른 수정
346
- - 단점: 기능 손실
344
+ Option 2: Remove name from usage
345
+ - Pro: Quick fix
346
+ - Con: Feature loss
347
347
 
348
- 5. 사용자 선택: 1
348
+ 5. User Selection: 1
349
349
 
350
350
  6. Edit:
351
351
  src/types/user.ts:3
352
352
  + name: string;
353
353
 
354
- 7. 검증:
355
- npm run typecheck → 성공
354
+ 7. Verification:
355
+ npm run typecheck → Success
356
356
  ```
357
357
 
358
- ### 예시 2: 런타임 에러
358
+ ### Example 2: Runtime Error
359
359
 
360
360
  ```bash
361
- 사용자: /bug-fix Cannot read property 'data' of undefined
361
+ User: /bug-fix Cannot read property 'data' of undefined
362
362
 
363
- 1. Sequential Thinking (5단계):
364
- thought 1: "런타임 에러 - 보통 복잡도, null/undefined 체크 누락"
365
- thought 2: "에러 발생 위치 파악 필요, 스택 트레이스 확인"
366
- thought 3: "관련 코드 탐색: API 호출, 데이터 접근 패턴"
367
- thought 4: "수정 방법: optional chaining, null 체크, 초기화"
368
- thought 5: "optional chaining 추천 - 간결하고 안전"
363
+ 1. Sequential Thinking (5 steps):
364
+ thought 1: "Runtime error - normal complexity, missing null check"
365
+ thought 2: "Need to identify error location, check stack trace"
366
+ thought 3: "Explore related code: API calls, data access patterns"
367
+ thought 4: "Fix methods: optional chaining, null check, init"
368
+ thought 5: "Recommend optional chaining - concise and safe"
369
369
 
370
- 2. Task 탐색:
371
- Task (Explore): "undefined 에러 발생 코드 데이터 흐름 분석"
372
- → src/hooks/useUserData.ts:15, API 응답 체크 누락
370
+ 2. Task Exploration:
371
+ Task (Explore): "Analyze error code and data flow"
372
+ Found src/hooks/useUserData.ts:15, missing API response check
373
373
 
374
- 3. 원인 분석:
375
- API 응답 실패 response가 undefined
374
+ 3. Cause Analysis:
375
+ response is undefined when API call fails
376
376
 
377
- 4. 옵션:
378
- 옵션 1: optional chaining 사용 (추천)
379
- 옵션 2: if 문으로 null 체크
380
- 옵션 3: try-catch로 감싸기
377
+ 4. Options:
378
+ Option 1: Use optional chaining (Recommended)
379
+ Option 2: Null check with if statement
380
+ Option 3: Wrap with try-catch
381
381
 
382
- 5. 선택 구현검증
382
+ 5. After selection Implementation Verification
383
383
  ```
384
384
 
385
- ### 예시 3: 논리 오류
385
+ ### Example 3: Logic Error
386
386
 
387
387
  ```bash
388
- 사용자: /bug-fix 사용자 목록이 중복으로 표시됨
388
+ User: /bug-fix User list showing duplicates
389
389
 
390
- 1. Sequential Thinking (5단계):
391
- thought 1: "논리 오류 - 보통 복잡도, 상태 관리 이슈"
392
- thought 2: "리렌더링 또는 데이터 fetch 중복 추측"
393
- thought 3: "관련 컴포넌트 상태 관리 코드 탐색"
394
- thought 4: "옵션: useEffect 의존성 수정, 중복 제거 로직 추가"
395
- thought 5: "useEffect 의존성 수정 추천"
390
+ 1. Sequential Thinking (5 steps):
391
+ thought 1: "Logic error - normal complexity, state management issue"
392
+ thought 2: "Suspect duplicate rerender or data fetch"
393
+ thought 3: "Explore related component and state management code"
394
+ thought 4: "Options: fix useEffect dependencies, add duplicate logic"
395
+ thought 5: "Recommend useEffect dependency fix"
396
396
 
397
- 2. Task 탐색:
398
- Task (Explore): "사용자 목록 렌더링 컴포넌트 상태 관리"
399
- → UserList.tsx, useEffect 의존성 배열 문제 발견
397
+ 2. Task Exploration:
398
+ Task (Explore): "Analyze user list render and state management"
399
+ Found UserList.tsx, useEffect dependency array issue
400
400
 
401
- 3. 원인: useEffect 의존성 배열 누락으로 매번 fetch
401
+ 3. Cause: useEffect missing dependency, fetching every render
402
402
 
403
- 4. 옵션 제시선택구현검증
403
+ 4. Option presentationSelectionImplementationVerification
404
404
  ```
405
405
 
406
406
  </examples>