@kood/claude-code 0.4.1 → 0.5.1

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 (149) hide show
  1. package/dist/index.js +69 -12
  2. package/package.json +2 -1
  3. package/templates/.claude/PARALLEL_AGENTS.md +737 -0
  4. package/templates/.claude/agents/analyst.md +416 -0
  5. package/templates/.claude/agents/architect.md +569 -0
  6. package/templates/.claude/agents/code-reviewer.md +132 -133
  7. package/templates/.claude/agents/dependency-manager.md +93 -94
  8. package/templates/.claude/agents/deployment-validator.md +64 -65
  9. package/templates/.claude/agents/designer.md +655 -0
  10. package/templates/.claude/agents/document-writer.md +500 -0
  11. package/templates/.claude/agents/explore.md +499 -0
  12. package/templates/.claude/agents/git-operator.md +74 -75
  13. package/templates/.claude/agents/implementation-executor.md +138 -109
  14. package/templates/.claude/agents/ko-to-en-translator.md +18 -22
  15. package/templates/.claude/agents/lint-fixer.md +250 -93
  16. package/templates/.claude/agents/planner.md +356 -0
  17. package/templates/.claude/agents/refactor-advisor.md +135 -136
  18. package/templates/.claude/commands/bug-fix.md +296 -207
  19. package/templates/.claude/commands/git-all.md +199 -46
  20. package/templates/.claude/commands/git-session.md +113 -57
  21. package/templates/.claude/commands/lint-fix.md +219 -153
  22. package/templates/.claude/commands/lint-init.md +113 -76
  23. package/templates/.claude/commands/pre-deploy.md +190 -124
  24. package/templates/.claude/commands/refactor.md +407 -162
  25. package/templates/.claude/commands/version-update.md +138 -37
  26. package/templates/.claude/instructions/context-engineering/ANTHROPIC_CONTEXT_ENGINEERING.md +178 -0
  27. package/templates/.claude/instructions/context-engineering/references/claude-4x.md +215 -0
  28. package/templates/.claude/instructions/context-engineering/references/core-principles.md +137 -0
  29. package/templates/.claude/instructions/context-engineering/references/examples.md +351 -0
  30. package/templates/.claude/instructions/context-engineering/references/techniques.md +162 -0
  31. package/templates/.claude/instructions/parallel-agent-execution.md +874 -0
  32. package/templates/.claude/skills/docs-creator/AGENTS.md +238 -0
  33. package/templates/.claude/{commands/docs-creator.md → skills/docs-creator/SKILL.md} +61 -75
  34. package/templates/.claude/skills/docs-refactor/AGENTS.md +270 -0
  35. package/templates/.claude/{commands/docs-refactor.md → skills/docs-refactor/SKILL.md} +30 -44
  36. package/templates/.claude/skills/execute/SKILL.md +451 -0
  37. package/templates/.claude/skills/figma-to-code/AGENTS.md +287 -0
  38. package/templates/.claude/skills/figma-to-code/SKILL.md +225 -225
  39. package/templates/.claude/skills/figma-to-code/references/design-tokens.md +75 -73
  40. package/templates/.claude/skills/figma-to-code/references/figma-mcp-tools.md +73 -73
  41. package/templates/.claude/skills/figma-to-code/references/layout-mapping.md +104 -104
  42. package/templates/.claude/skills/figma-to-code/references/responsive-design.md +99 -99
  43. package/templates/.claude/skills/figma-to-code/references/verification.md +91 -91
  44. package/templates/.claude/skills/global-uiux-design/AGENTS.md +317 -0
  45. package/templates/.claude/skills/global-uiux-design/SKILL.md +738 -0
  46. package/templates/.claude/skills/global-uiux-design/references/accessibility.md +401 -0
  47. package/templates/.claude/skills/global-uiux-design/references/color-system.md +275 -0
  48. package/templates/.claude/skills/global-uiux-design/references/design-philosophy.md +206 -0
  49. package/templates/.claude/skills/global-uiux-design/references/design-systems.md +446 -0
  50. package/templates/.claude/skills/korea-uiux-design/AGENTS.md +307 -0
  51. package/templates/.claude/skills/korea-uiux-design/SKILL.md +170 -0
  52. package/templates/.claude/skills/nextjs-react-best-practices/AGENTS.md +95 -116
  53. package/templates/.claude/skills/nextjs-react-best-practices/SKILL.md +134 -152
  54. package/templates/.claude/skills/nextjs-react-best-practices/rules/advanced-event-handler-refs.md +6 -6
  55. package/templates/.claude/skills/nextjs-react-best-practices/rules/advanced-use-latest.md +5 -5
  56. package/templates/.claude/skills/nextjs-react-best-practices/rules/async-api-routes.md +5 -5
  57. package/templates/.claude/skills/nextjs-react-best-practices/rules/async-defer-await.md +22 -22
  58. package/templates/.claude/skills/nextjs-react-best-practices/rules/async-dependencies.md +5 -5
  59. package/templates/.claude/skills/nextjs-react-best-practices/rules/async-parallel.md +4 -4
  60. package/templates/.claude/skills/nextjs-react-best-practices/rules/async-suspense-boundaries.md +21 -21
  61. package/templates/.claude/skills/nextjs-react-best-practices/rules/bundle-barrel-imports.md +18 -18
  62. package/templates/.claude/skills/nextjs-react-best-practices/rules/bundle-conditional.md +4 -4
  63. package/templates/.claude/skills/nextjs-react-best-practices/rules/bundle-defer-third-party.md +4 -4
  64. package/templates/.claude/skills/nextjs-react-best-practices/rules/bundle-dynamic-imports.md +4 -4
  65. package/templates/.claude/skills/nextjs-react-best-practices/rules/bundle-preload.md +5 -5
  66. package/templates/.claude/skills/nextjs-react-best-practices/rules/client-event-listeners.md +9 -9
  67. package/templates/.claude/skills/nextjs-react-best-practices/rules/client-swr-dedup.md +7 -7
  68. package/templates/.claude/skills/nextjs-react-best-practices/rules/js-batch-dom-css.md +13 -13
  69. package/templates/.claude/skills/nextjs-react-best-practices/rules/js-cache-function-results.md +14 -14
  70. package/templates/.claude/skills/nextjs-react-best-practices/rules/js-cache-property-access.md +4 -4
  71. package/templates/.claude/skills/nextjs-react-best-practices/rules/js-cache-storage.md +10 -10
  72. package/templates/.claude/skills/nextjs-react-best-practices/rules/js-combine-iterations.md +4 -4
  73. package/templates/.claude/skills/nextjs-react-best-practices/rules/js-early-exit.md +7 -7
  74. package/templates/.claude/skills/nextjs-react-best-practices/rules/js-hoist-regexp.md +6 -6
  75. package/templates/.claude/skills/nextjs-react-best-practices/rules/js-index-maps.md +6 -6
  76. package/templates/.claude/skills/nextjs-react-best-practices/rules/js-length-check-first.md +14 -14
  77. package/templates/.claude/skills/nextjs-react-best-practices/rules/js-min-max-loop.md +16 -16
  78. package/templates/.claude/skills/nextjs-react-best-practices/rules/js-set-map-lookups.md +4 -4
  79. package/templates/.claude/skills/nextjs-react-best-practices/rules/js-tosorted-immutable.md +17 -17
  80. package/templates/.claude/skills/nextjs-react-best-practices/rules/rendering-activity.md +4 -4
  81. package/templates/.claude/skills/nextjs-react-best-practices/rules/rendering-animate-svg-wrapper.md +11 -11
  82. package/templates/.claude/skills/nextjs-react-best-practices/rules/rendering-conditional-render.md +8 -8
  83. package/templates/.claude/skills/nextjs-react-best-practices/rules/rendering-content-visibility.md +4 -4
  84. package/templates/.claude/skills/nextjs-react-best-practices/rules/rendering-hoist-jsx.md +6 -6
  85. package/templates/.claude/skills/nextjs-react-best-practices/rules/rendering-hydration-no-flicker.md +14 -14
  86. package/templates/.claude/skills/nextjs-react-best-practices/rules/rendering-svg-precision.md +5 -5
  87. package/templates/.claude/skills/nextjs-react-best-practices/rules/rerender-defer-reads.md +4 -4
  88. package/templates/.claude/skills/nextjs-react-best-practices/rules/rerender-dependencies.md +7 -7
  89. package/templates/.claude/skills/nextjs-react-best-practices/rules/rerender-derived-state.md +5 -5
  90. package/templates/.claude/skills/nextjs-react-best-practices/rules/rerender-functional-setstate.md +34 -34
  91. package/templates/.claude/skills/nextjs-react-best-practices/rules/rerender-lazy-state-init.md +15 -15
  92. package/templates/.claude/skills/nextjs-react-best-practices/rules/rerender-memo.md +5 -5
  93. package/templates/.claude/skills/nextjs-react-best-practices/rules/rerender-transitions.md +4 -4
  94. package/templates/.claude/skills/nextjs-react-best-practices/rules/server-after-nonblocking.md +24 -24
  95. package/templates/.claude/skills/nextjs-react-best-practices/rules/server-cache-lru.md +10 -10
  96. package/templates/.claude/skills/nextjs-react-best-practices/rules/server-cache-react.md +4 -4
  97. package/templates/.claude/skills/nextjs-react-best-practices/rules/server-parallel-fetching.md +5 -5
  98. package/templates/.claude/skills/nextjs-react-best-practices/rules/server-serialization.md +6 -6
  99. package/templates/.claude/skills/plan/SKILL.md +594 -0
  100. package/templates/.claude/skills/prd/SKILL.md +496 -0
  101. package/templates/.claude/skills/ralph/AGENTS.md +393 -0
  102. package/templates/.claude/skills/ralph/SKILL.md +1035 -0
  103. package/templates/.claude/skills/tanstack-start-react-best-practices/AGENTS.md +100 -121
  104. package/templates/.claude/skills/tanstack-start-react-best-practices/SKILL.md +139 -157
  105. package/templates/.claude/skills/tanstack-start-react-best-practices/rules/async-defer-await.md +22 -22
  106. package/templates/.claude/skills/tanstack-start-react-best-practices/rules/async-dependencies.md +5 -5
  107. package/templates/.claude/skills/tanstack-start-react-best-practices/rules/async-loader.md +7 -7
  108. package/templates/.claude/skills/tanstack-start-react-best-practices/rules/async-parallel.md +4 -4
  109. package/templates/.claude/skills/tanstack-start-react-best-practices/rules/bundle-barrel-imports.md +18 -18
  110. package/templates/.claude/skills/tanstack-start-react-best-practices/rules/bundle-conditional.md +4 -4
  111. package/templates/.claude/skills/tanstack-start-react-best-practices/rules/bundle-defer-third-party.md +4 -4
  112. package/templates/.claude/skills/tanstack-start-react-best-practices/rules/bundle-lazy-routes.md +12 -12
  113. package/templates/.claude/skills/tanstack-start-react-best-practices/rules/bundle-preload.md +5 -5
  114. package/templates/.claude/skills/tanstack-start-react-best-practices/rules/client-event-listeners.md +9 -9
  115. package/templates/.claude/skills/tanstack-start-react-best-practices/rules/client-tanstack-query.md +12 -12
  116. package/templates/.claude/skills/tanstack-start-react-best-practices/rules/js-batch-dom-css.md +13 -13
  117. package/templates/.claude/skills/tanstack-start-react-best-practices/rules/js-cache-function-results.md +14 -14
  118. package/templates/.claude/skills/tanstack-start-react-best-practices/rules/js-cache-property-access.md +4 -4
  119. package/templates/.claude/skills/tanstack-start-react-best-practices/rules/js-cache-storage.md +10 -10
  120. package/templates/.claude/skills/tanstack-start-react-best-practices/rules/js-combine-iterations.md +4 -4
  121. package/templates/.claude/skills/tanstack-start-react-best-practices/rules/js-early-exit.md +7 -7
  122. package/templates/.claude/skills/tanstack-start-react-best-practices/rules/js-hoist-regexp.md +6 -6
  123. package/templates/.claude/skills/tanstack-start-react-best-practices/rules/js-index-maps.md +6 -6
  124. package/templates/.claude/skills/tanstack-start-react-best-practices/rules/js-length-check-first.md +14 -14
  125. package/templates/.claude/skills/tanstack-start-react-best-practices/rules/js-min-max-loop.md +16 -16
  126. package/templates/.claude/skills/tanstack-start-react-best-practices/rules/js-set-map-lookups.md +4 -4
  127. package/templates/.claude/skills/tanstack-start-react-best-practices/rules/js-tosorted-immutable.md +17 -17
  128. package/templates/.claude/skills/tanstack-start-react-best-practices/rules/rendering-animate-svg-wrapper.md +11 -11
  129. package/templates/.claude/skills/tanstack-start-react-best-practices/rules/rendering-conditional-render.md +8 -8
  130. package/templates/.claude/skills/tanstack-start-react-best-practices/rules/rendering-content-visibility.md +4 -4
  131. package/templates/.claude/skills/tanstack-start-react-best-practices/rules/rendering-hoist-jsx.md +6 -6
  132. package/templates/.claude/skills/tanstack-start-react-best-practices/rules/rendering-svg-precision.md +5 -5
  133. package/templates/.claude/skills/tanstack-start-react-best-practices/rules/rerender-defer-reads.md +4 -4
  134. package/templates/.claude/skills/tanstack-start-react-best-practices/rules/rerender-dependencies.md +7 -7
  135. package/templates/.claude/skills/tanstack-start-react-best-practices/rules/rerender-derived-state.md +5 -5
  136. package/templates/.claude/skills/tanstack-start-react-best-practices/rules/rerender-functional-setstate.md +34 -34
  137. package/templates/.claude/skills/tanstack-start-react-best-practices/rules/rerender-lazy-state-init.md +15 -15
  138. package/templates/.claude/skills/tanstack-start-react-best-practices/rules/rerender-memo.md +5 -5
  139. package/templates/.claude/skills/tanstack-start-react-best-practices/rules/rerender-transitions.md +4 -4
  140. package/templates/.claude/skills/tanstack-start-react-best-practices/rules/server-cache-lru.md +12 -12
  141. package/templates/.claude/skills/tanstack-start-react-best-practices/rules/server-deferred-data.md +14 -14
  142. package/templates/.claude/skills/tanstack-start-react-best-practices/rules/server-parallel-fetching.md +9 -9
  143. package/templates/.claude/skills/tanstack-start-react-best-practices/rules/server-serialization.md +6 -6
  144. package/templates/.claude/commands/agent-creator.md +0 -370
  145. package/templates/.claude/commands/command-creator.md +0 -524
  146. package/templates/.claude/commands/execute.md +0 -469
  147. package/templates/.claude/commands/git.md +0 -98
  148. package/templates/.claude/commands/plan.md +0 -526
  149. package/templates/.claude/commands/prd.md +0 -629
@@ -1,469 +0,0 @@
1
- ---
2
- description: 계획 실행 또는 간단한 작업 수행. ultrathink + sequential thinking 2-5 + TodoWrite 필수.
3
- allowed-tools: Read, Glob, Grep, Bash, Task, Edit, Write, TodoWrite, mcp__sequential-thinking__sequentialthinking
4
- argument-hint: <task to execute or plan filename>
5
- ---
6
-
7
- <critical_instruction>
8
-
9
- **CRITICAL: 사용자와의 모든 커뮤니케이션은 반드시 한국어로 작성하세요.**
10
-
11
- - 내부 사고와 분석은 영어로 해도 됨
12
- - 설명, 요약, 보고서, 피드백 등 사용자에게 전달하는 모든 내용은 반드시 한국어
13
- - 사용자가 영어로 말하더라도 답변은 한국어로
14
- - 진행 상황 업데이트와 상태 보고는 반드시 한국어
15
-
16
- 이 규칙은 절대적이며 예외가 없습니다.
17
-
18
- </critical_instruction>
19
-
20
- ---
21
-
22
-
23
- # Execute Command
24
-
25
- > Command to analyze and implement immediately. Execute directly without presenting options.
26
-
27
- **Execution Target**: $ARGUMENTS
28
-
29
- ---
30
-
31
- <argument_validation>
32
-
33
- ## ARGUMENT Verification Required
34
-
35
- ```
36
- No $ARGUMENTS → Ask immediately:
37
-
38
- "What needs to be executed? Please provide details.
39
-
40
- Examples:
41
- - .claude/plans/*.md plan files
42
- - Specific tasks (add feature, fix bug, refactor)
43
- - Simple code changes"
44
-
45
- Has $ARGUMENTS → Proceed to next step
46
- ```
47
-
48
- </argument_validation>
49
-
50
- ---
51
-
52
- <workflow>
53
-
54
- ## 실행 흐름
55
-
56
- | 단계 | 작업 | 도구 |
57
- |------|------|------|
58
- | 1. 입력 확인 | ARGUMENT 검증, 계획 파일 또는 작업 내용 | - |
59
- | 2. 복잡도 판단 | Sequential Thinking으로 분석 범위 결정 | sequentialthinking (1단계) |
60
- | 3. 코드베이스 탐색 | 현재 상태 파악, 관련 파일 탐색 | Task (Explore) + Read/Grep |
61
- | 4. 최적 접근법 결정 | 가능한 방법 분석 → 최선 선택 | sequentialthinking (2-4단계) |
62
- | 5. 즉시 구현 | TodoWrite → 단계별 구현 → 검증 | Edit/Write + TodoWrite |
63
-
64
- </workflow>
65
-
66
- ---
67
-
68
- <agent_usage>
69
-
70
- ## @implementation-executor Agent 활용
71
-
72
- **언제 사용:**
73
- - 복잡한 기능 구현 (5개 이상 파일)
74
- - 아키텍처 변경 필요
75
- - 백그라운드에서 독립적 구현
76
- - 메인 에이전트가 다른 작업 병행
77
-
78
- **호출 방법:**
79
- ```bash
80
- @implementation-executor
81
- # 또는 자연어
82
- "사용자 프로필 편집 기능 구현해줘"
83
- "실시간 알림 추가해줘"
84
- ```
85
-
86
- **장점:**
87
- - Sequential Thinking으로 복잡도 자동 판단 (2-5단계)
88
- - Task(Explore)로 코드베이스 자동 탐색
89
- - TodoWrite로 진행 상황 실시간 추적
90
- - 옵션 제시 없이 최적 방법으로 즉시 구현
91
- - 독립적 context에서 실행 (메인 작업 병렬 가능)
92
-
93
- **직접 구현 vs Agent:**
94
-
95
- | 상황 | 권장 방법 |
96
- |------|----------|
97
- | 1-2개 파일, 간단한 수정 | 직접 구현 (command) |
98
- | 3-5개 파일, 보통 복잡도 | 직접 구현 또는 agent |
99
- | 5개 이상 파일, 복잡 | @implementation-executor |
100
- | 아키텍처 변경 | @implementation-executor |
101
- | 메인이 다른 작업 중 | @implementation-executor |
102
-
103
- **execute command와의 차이:**
104
- - execute: 사용자가 직접 호출하는 command
105
- - @implementation-executor: agent로 백그라운드 실행 가능
106
-
107
- </agent_usage>
108
-
109
- ---
110
-
111
- <thinking_strategy>
112
-
113
- ## Sequential Thinking 가이드
114
-
115
- ### 복잡도 판단 (thought 1)
116
-
117
- ```
118
- thought 1: 복잡도 판단
119
- - 작업 범위: 파일 수, 변경 규모
120
- - 의존성: 다른 코드에 영향, 테스트 필요성
121
- - 리스크: 기존 기능 영향, 롤백 가능성
122
- - 기술적 난이도: 새로운 패턴, 복잡한 로직
123
- ```
124
-
125
- ### 복잡도별 전략
126
-
127
- | 복잡도 | 사고 횟수 | 판단 기준 | 사고 패턴 |
128
- |--------|----------|----------|----------|
129
- | **간단** | 2 | 1개 파일, 명확한 변경 | 복잡도 판단 → 즉시 구현 |
130
- | **보통** | 3-4 | 2-3개 파일, 로직 추가 | 복잡도 판단 → 현재 상태 → 접근 방식 → 구현 |
131
- | **복잡** | 5+ | 다중 모듈, 아키텍처 변경 | 복잡도 판단 → 심층 분석 → 접근 방식 → 상세 계획 → 단계별 구현 |
132
-
133
- ### 보통 복잡도 패턴 (3-4단계)
134
-
135
- ```
136
- thought 1: 복잡도 판단 및 분석 범위 결정
137
- thought 2: 현재 상태 분석 (코드, 아키텍처)
138
- thought 3: 최적 접근 방식 선택 및 구현 계획
139
- thought 4: 단계별 구현 순서 확정
140
- ```
141
-
142
- ### 복잡한 경우 패턴 (5단계)
143
-
144
- ```
145
- thought 1: 복잡도 판단
146
- thought 2: 현재 상태 심층 분석
147
- thought 3: 가능한 접근 방식 탐색 및 최선 선택
148
- thought 4: 상세 구현 계획 수립
149
- thought 5: 단계별 실행 순서 및 검증 방법
150
- ```
151
-
152
- ### 핵심 원칙
153
-
154
- ```text
155
- ✅ 사고 과정을 출력해야 실제로 생각이 일어남
156
- ✅ 복잡도가 불확실하면 높게 책정 (3→5로 확장 가능)
157
- ✅ 각 thought에서 구체적 분석 필요 (추상적 설명 금지)
158
- ✅ 최적 접근법을 내부적으로 결정 (옵션 제시 없이)
159
- ✅ 필요 시 isRevision으로 이전 사고 수정
160
- ```
161
-
162
- </thinking_strategy>
163
-
164
- ---
165
-
166
- <codebase_exploration>
167
-
168
- ## Task Subagent 활용
169
-
170
- ### Subagent 선택
171
-
172
- | subagent_type | 용도 | 예시 |
173
- |---------------|------|------|
174
- | **Explore** | 코드베이스 구조 파악, 관련 파일 탐색 | "현재 인증 구조 분석" |
175
- | **general-purpose** | 복잡한 분석, 다중 시스템 연관 | "여러 모듈 간 의존성 분석" |
176
-
177
- ### Task 호출 패턴
178
-
179
- **단일 탐색:**
180
-
181
- ```typescript
182
- Task({
183
- subagent_type: 'Explore',
184
- description: '현재 인증 구조 분석',
185
- prompt: `
186
- 현재 인증 관련 코드 구조 파악.
187
- - 사용 중인 라이브러리
188
- - 세션 관리 방식
189
- - 수정이 필요한 파일 목록
190
- `
191
- })
192
- ```
193
-
194
- **병렬 탐색 (복잡한 경우):**
195
-
196
- ```typescript
197
- // 단일 메시지에 다중 Task 호출
198
- Task({
199
- subagent_type: 'Explore',
200
- prompt: '프론트엔드 인증 구조 분석'
201
- })
202
-
203
- Task({
204
- subagent_type: 'Explore',
205
- prompt: '백엔드 API 인증 엔드포인트 분석'
206
- })
207
-
208
- Task({
209
- subagent_type: 'Explore',
210
- prompt: '데이터베이스 세션 스키마 분석'
211
- })
212
-
213
- // → 결과 취합 후 구현 시작
214
- ```
215
-
216
- ### 탐색 체크리스트
217
-
218
- ```text
219
- ✅ 현재 구현 방식 파악
220
- ✅ 사용 중인 라이브러리/프레임워크 버전
221
- ✅ 관련 파일 및 디렉토리 위치
222
- ✅ 의존성 및 연관 모듈
223
- ✅ 기존 제약사항 (보안, 성능, 호환성)
224
- ```
225
-
226
- </codebase_exploration>
227
-
228
- ---
229
-
230
- <implementation_strategy>
231
-
232
- ## 즉시 구현 전략
233
-
234
- ### TodoWrite 필수 사용
235
-
236
- **복잡도별 TodoWrite 사용:**
237
-
238
- | 복잡도 | TodoWrite | 이유 |
239
- |--------|----------|------|
240
- | **간단** | 선택적 | 1-2개 파일, 명확한 작업 |
241
- | **보통** | 필수 | 3-5개 파일, 여러 단계 |
242
- | **복잡** | 필수 | 다중 모듈, 단계별 추적 필수 |
243
-
244
- **TodoWrite 패턴:**
245
-
246
- ```typescript
247
- TodoWrite({
248
- todos: [
249
- { content: '현재 구조 분석', status: 'in_progress', activeForm: '현재 구조 분석 중' },
250
- { content: 'API 엔드포인트 구현', status: 'pending', activeForm: 'API 엔드포인트 구현 중' },
251
- { content: '프론트엔드 통합', status: 'pending', activeForm: '프론트엔드 통합 중' },
252
- { content: '테스트 실행', status: 'pending', activeForm: '테스트 실행 중' },
253
- ]
254
- })
255
- ```
256
-
257
- ### 단계별 구현 원칙
258
-
259
- ```text
260
- ✅ 한 번에 하나씩: 한 작업 완료 → 다음 작업
261
- ✅ 즉시 완료 표시: 작업 완료 시 바로 completed
262
- ✅ 검증 후 진행: 각 단계 완료 후 동작 확인
263
- ✅ 에러 처리: 실패 시 원인 분석 → 수정 → 재시도
264
- ```
265
-
266
- ### 구현 체크리스트
267
-
268
- ```text
269
- ✅ 코드 작성 전 관련 파일 Read
270
- ✅ Edit/Write 도구로 코드 수정
271
- ✅ 각 단계 완료 후 검증 (테스트, 빌드)
272
- ✅ TodoWrite 상태 실시간 업데이트
273
- ✅ 진행 상황 간결하게 보고
274
- ```
275
-
276
- </implementation_strategy>
277
-
278
- ---
279
-
280
- <validation>
281
-
282
- ## 검증 체크리스트
283
-
284
- 실행 전 확인:
285
-
286
- ```text
287
- ✅ ARGUMENT 확인 (없으면 질문)
288
- ✅ Sequential Thinking 최소 2단계
289
- ✅ Task (Explore)로 코드베이스 탐색 (필요 시)
290
- ✅ 최적 접근법 내부적으로 결정
291
- ✅ TodoWrite로 구현 단계 추적 (보통 이상)
292
- ✅ 단계별 구현 및 검증
293
- ```
294
-
295
- 절대 금지:
296
-
297
- ```text
298
- ❌ ARGUMENT 없이 구현 시작
299
- ❌ Sequential Thinking 2단계 미만
300
- ❌ 코드 탐색 없이 추측으로 구현
301
- ❌ 옵션 제시 후 사용자 선택 대기 (바로 실행)
302
- ❌ TodoWrite 없이 복잡한 작업 수행
303
- ❌ 단계별 검증 없이 일괄 구현
304
- ❌ 테스트 실패 상태로 커밋
305
- ```
306
-
307
- </validation>
308
-
309
- ---
310
-
311
- <examples>
312
-
313
- ## 실전 예시
314
-
315
- ### 예시 1: 계획 기반 실행
316
-
317
- ```bash
318
- 사용자: /execute session-auth
319
-
320
- 1. 입력 확인:
321
- .claude/plans/session-auth.md 존재 확인 → 계획 파일 읽기
322
-
323
- 2. Sequential Thinking (4단계):
324
- thought 1: "계획 파일 기반 실행 - 보통 복잡도, 여러 모듈 수정"
325
- thought 2: "계획 내용 분석: 세션 스토어 → 미들웨어 → API → 테스트"
326
- thought 3: "점진적 구현 전략: 각 단계별로 검증하며 진행"
327
- thought 4: "단계별 실행 순서: 스토어 설정 → 미들웨어 → API 수정 → 테스트"
328
-
329
- 3. TodoWrite 생성:
330
- - 세션 스토어 설정 (Redis)
331
- - 세션 미들웨어 구현
332
- - API 엔드포인트 수정
333
- - 테스트 실행 및 검증
334
-
335
- 4. 단계별 구현:
336
- - [in_progress] 세션 스토어 설정
337
- → src/lib/session.ts 작성
338
- → [completed]
339
-
340
- - [in_progress] 세션 미들웨어 구현
341
- → src/middleware/session.ts 작성
342
- → [completed]
343
-
344
- - [in_progress] API 엔드포인트 수정
345
- → src/api/auth/*.ts 수정
346
- → [completed]
347
-
348
- - [in_progress] 테스트 실행
349
- → npm test
350
- → [completed]
351
-
352
- 5. 커밋:
353
- git commit -m "feat: 세션 기반 인증 구현"
354
- ```
355
-
356
- ### 예시 2: 직접 실행 (간단)
357
-
358
- ```bash
359
- 사용자: /execute 로그인 버튼 색상을 파란색으로 변경
360
-
361
- 1. Sequential Thinking (2단계):
362
- thought 1: "단순 스타일 변경 - 간단, 1개 파일"
363
- thought 2: "LoginButton 컴포넌트 찾기 → 색상 변경"
364
-
365
- 2. Task 탐색:
366
- Glob: **/LoginButton.tsx
367
- → src/components/LoginButton.tsx 발견
368
-
369
- 3. 구현 (TodoWrite 생략):
370
- - Read: src/components/LoginButton.tsx
371
- - Edit: className 수정 (bg-gray-500 → bg-blue-500)
372
- - 시각적 확인
373
-
374
- 4. 커밋:
375
- git commit -m "style: 로그인 버튼 색상 변경"
376
- ```
377
-
378
- ### 예시 3: 직접 실행 (보통)
379
-
380
- ```bash
381
- 사용자: /execute 사용자 프로필 편집 기능 추가
382
-
383
- 1. Sequential Thinking (4단계):
384
- thought 1: "프로필 편집 - 보통 복잡도, 3-4개 파일 (컴포넌트, API, 스키마)"
385
- thought 2: "현재 프로필 관련 구조 파악 필요"
386
- thought 3: "접근 방식: 프론트엔드 폼 → Server Function → DB 업데이트"
387
- thought 4: "단계: 폼 컴포넌트 → 검증 스키마 → Server Function → 테스트"
388
-
389
- 2. Task 탐색:
390
- Task (Explore): "프로필 관련 코드 구조 분석"
391
- → src/routes/profile/, src/functions/user.ts 파악
392
-
393
- 3. TodoWrite 생성:
394
- - 프로필 편집 폼 컴포넌트
395
- - Zod 검증 스키마
396
- - Server Function (updateProfile)
397
- - 테스트
398
-
399
- 4. 단계별 구현:
400
- - [in_progress] 프로필 편집 폼 컴포넌트
401
- → src/routes/profile/-components/EditProfileForm.tsx 작성
402
- → [completed]
403
-
404
- - [in_progress] Zod 검증 스키마
405
- → src/lib/schemas/profile.ts 작성
406
- → [completed]
407
-
408
- - [in_progress] Server Function
409
- → src/functions/user.ts에 updateProfile 추가
410
- → [completed]
411
-
412
- - [in_progress] 테스트
413
- → npm test
414
- → [completed]
415
-
416
- 5. 커밋:
417
- git commit -m "feat: 사용자 프로필 편집 기능 추가"
418
- ```
419
-
420
- ### 예시 4: 직접 실행 (복잡)
421
-
422
- ```bash
423
- 사용자: /execute 실시간 알림 기능 추가
424
-
425
- 1. Sequential Thinking (5단계):
426
- thought 1: "실시간 알림 - 복잡, 새 기술 스택 추가 (WebSocket)"
427
- thought 2: "현재 통신 구조: REST API만, 실시간 통신 없음"
428
- thought 3: "접근 방식: WebSocket 서버 + 클라이언트 훅 + 알림 UI"
429
- thought 4: "WebSocket이 양방향이라 최적, Socket.io 사용"
430
- thought 5: "단계: Socket.io 설치 → 서버 설정 → 클라이언트 훅 → UI → 테스트"
431
-
432
- 2. Task 탐색:
433
- Task (Explore): "현재 서버 구조 및 클라이언트 통신 방식"
434
- → server.ts, API 구조 파악
435
-
436
- 3. TodoWrite 생성:
437
- - Socket.io 설치
438
- - WebSocket 서버 설정
439
- - useNotifications 훅
440
- - 알림 UI 컴포넌트
441
- - 통합 테스트
442
-
443
- 4. 단계별 구현:
444
- - [in_progress] Socket.io 설치
445
- → npm install socket.io socket.io-client
446
- → [completed]
447
-
448
- - [in_progress] WebSocket 서버 설정
449
- → src/server/socket.ts 작성
450
- → server.ts 통합
451
- → [completed]
452
-
453
- - [in_progress] useNotifications 훅
454
- → src/hooks/useNotifications.ts 작성
455
- → [completed]
456
-
457
- - [in_progress] 알림 UI 컴포넌트
458
- → src/components/NotificationBell.tsx 작성
459
- → [completed]
460
-
461
- - [in_progress] 통합 테스트
462
- → 알림 전송 → 클라이언트 수신 확인
463
- → [completed]
464
-
465
- 5. 커밋:
466
- git commit -m "feat: 실시간 알림 기능 추가 (WebSocket)"
467
- ```
468
-
469
- </examples>
@@ -1,98 +0,0 @@
1
- ---
2
- description: Git 상태 확인 및 커밋 작업
3
- argument-hint: [push|pull|commit instructions...]
4
- ---
5
-
6
-
7
- <critical_instruction>
8
-
9
- **CRITICAL: 사용자와의 모든 커뮤니케이션은 반드시 한국어로 작성하세요.**
10
-
11
- - 내부 사고와 분석은 영어로 해도 됨
12
- - 설명, 요약, 보고서, 피드백 등 사용자에게 전달하는 모든 내용은 반드시 한국어
13
- - 사용자가 영어로 말하더라도 답변은 한국어로
14
- - 진행 상황 업데이트와 상태 보고는 반드시 한국어
15
-
16
- 이 규칙은 절대적이며 예외가 없습니다.
17
-
18
- </critical_instruction>
19
-
20
- ---
21
-
22
- # Git Command
23
-
24
- > Perform Git operations using @git-operator agent.
25
-
26
- ---
27
-
28
- <critical_requirements>
29
-
30
- ## ⚠️ CRITICAL: Verification required before start
31
-
32
- **This command MUST use the @git-operator agent.**
33
-
34
- ### MANDATORY: Call @git-operator with Task tool
35
-
36
- ```typescript
37
- Task({
38
- subagent_type: 'git-operator',
39
- description: 'Git commit operation',
40
- prompt: `
41
- Process $ARGUMENTS:
42
- [User arguments or default behavior description]
43
- `
44
- })
45
- ```
46
-
47
- **❌ Absolutely forbidden:**
48
- - Execute git commands directly with Bash tool
49
- - Commit/push without @git-operator
50
- - Directly analyze files in command
51
-
52
- **✅ Required:**
53
- - Call @git-operator agent with Task tool
54
- - Delegate all git operations to agent
55
-
56
- ---
57
-
58
- **Self-check before proceeding:**
59
- ```text
60
- □ Task tool ready to use?
61
- □ Delegate to @git-operator agent?
62
- □ Not executing git directly with Bash?
63
- ```
64
-
65
- **⚠️ Do not start unless checklist passes.**
66
-
67
- </critical_requirements>
68
-
69
- ---
70
-
71
- <mode>
72
-
73
- **Default Mode**: Selective commit
74
-
75
- - Commit some changes only
76
- - Push is optional (only when specified)
77
-
78
- </mode>
79
-
80
- ---
81
-
82
- <arguments>
83
-
84
- **Has $ARGUMENTS**: Execute those instructions first
85
-
86
- | Example | Action |
87
- |---------|--------|
88
- | `push` | Commit then push |
89
- | `pull` | Run git pull first |
90
- | `login-feature-only` | Commit only that file |
91
-
92
- **No $ARGUMENTS**: Default behavior
93
-
94
- 1. Analyze git status, git diff
95
- 2. Group into logical units
96
- 3. Selective commit
97
-
98
- </arguments>