@kood/claude-code 0.2.4 → 0.3.0
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.
- package/dist/index.js +13 -8
- package/package.json +1 -1
- package/templates/.claude/agents/code-reviewer.md +371 -19
- package/templates/.claude/agents/dependency-manager.md +197 -0
- package/templates/.claude/agents/deployment-validator.md +136 -0
- package/templates/.claude/agents/git-operator.md +147 -0
- package/templates/.claude/agents/implementation-executor.md +202 -0
- package/templates/.claude/agents/lint-fixer.md +155 -0
- package/templates/.claude/agents/refactor-advisor.md +339 -29
- package/templates/.claude/commands/agent-creator.md +355 -0
- package/templates/.claude/commands/docs-creator.md +404 -163
- package/templates/.claude/commands/docs-refactor.md +400 -113
- package/templates/.claude/commands/execute.md +357 -185
- package/templates/.claude/commands/git-all.md +16 -70
- package/templates/.claude/commands/git-session.md +36 -68
- package/templates/.claude/commands/git.md +20 -69
- package/templates/.claude/commands/lint-fix.md +164 -107
- package/templates/.claude/commands/lint-init.md +142 -168
- package/templates/.claude/commands/plan.md +300 -84
- package/templates/.claude/commands/prd.md +613 -0
- package/templates/.claude/commands/pre-deploy.md +242 -0
- package/templates/.claude/commands/subagent-creator.md +118 -0
- package/templates/.claude/commands/version-update.md +45 -57
- package/templates/hono/CLAUDE.md +99 -54
- package/templates/hono/docs/guides/conventions.md +352 -0
- package/templates/hono/docs/guides/env-setup.md +347 -0
- package/templates/hono/docs/guides/getting-started.md +239 -0
- package/templates/hono/docs/library/hono/error-handling.md +20 -29
- package/templates/hono/docs/library/hono/index.md +25 -52
- package/templates/hono/docs/library/hono/middleware.md +16 -75
- package/templates/hono/docs/library/hono/rpc.md +7 -35
- package/templates/hono/docs/library/hono/validation.md +25 -45
- package/templates/hono/docs/library/t3-env/index.md +374 -0
- package/templates/npx/CLAUDE.md +165 -65
- package/templates/npx/docs/library/commander/index.md +10 -73
- package/templates/npx/docs/library/fs-extra/index.md +21 -113
- package/templates/npx/docs/library/prompts/index.md +30 -176
- package/templates/npx/docs/references/patterns.md +75 -48
- package/templates/tanstack-start/CLAUDE.md +101 -77
- package/templates/tanstack-start/docs/architecture.md +427 -0
- package/templates/tanstack-start/docs/design.md +558 -0
- package/templates/tanstack-start/docs/guides/conventions.md +132 -32
- package/templates/tanstack-start/docs/guides/env-setup.md +127 -62
- package/templates/tanstack-start/docs/guides/getting-started.md +81 -20
- package/templates/tanstack-start/docs/guides/hooks.md +241 -36
- package/templates/tanstack-start/docs/guides/routes.md +213 -61
- package/templates/tanstack-start/docs/guides/services.md +260 -24
- package/templates/tanstack-start/docs/library/better-auth/index.md +469 -16
- package/templates/tanstack-start/docs/library/t3-env/index.md +307 -0
- package/templates/tanstack-start/docs/library/tanstack-query/index.md +12 -21
- package/templates/tanstack-start/docs/library/tanstack-query/invalidation.md +22 -35
- package/templates/tanstack-start/docs/library/tanstack-query/optimistic-updates.md +7 -24
- package/templates/tanstack-start/docs/library/tanstack-query/use-mutation.md +26 -39
- package/templates/tanstack-start/docs/library/tanstack-query/use-query.md +23 -26
- package/templates/tanstack-start/docs/library/tanstack-router/error-handling.md +32 -147
- package/templates/tanstack-start/docs/library/tanstack-router/hooks.md +25 -167
- package/templates/tanstack-start/docs/library/tanstack-router/index.md +39 -74
- package/templates/tanstack-start/docs/library/tanstack-router/navigation.md +46 -116
- package/templates/tanstack-start/docs/library/tanstack-router/route-context.md +35 -154
- package/templates/tanstack-start/docs/library/tanstack-router/search-params.md +32 -171
- package/templates/tanstack-start/docs/library/tanstack-start/auth-patterns.md +7 -15
- package/templates/tanstack-start/docs/library/tanstack-start/routing.md +16 -23
- package/templates/tanstack-start/docs/library/zod/complex-types.md +12 -31
- package/templates/tanstack-start/docs/library/zod/index.md +18 -35
- package/templates/tanstack-start/docs/library/zod/transforms.md +11 -25
- package/templates/tanstack-start/docs/library/zod/validation.md +12 -34
- package/templates/.claude/agents/debug-detective.md +0 -37
- package/templates/.claude/agents/test-writer.md +0 -41
- package/templates/.claude/commands/feedback.md +0 -199
- package/templates/.claude/commands/ts-fix.md +0 -176
- package/templates/.claude/skills/command-creator/LICENSE.txt +0 -202
- package/templates/.claude/skills/command-creator/SKILL.md +0 -245
- package/templates/.claude/skills/command-creator/scripts/init_command.py +0 -244
- package/templates/.claude/skills/command-creator/scripts/package_command.py +0 -125
- package/templates/.claude/skills/command-creator/scripts/quick_validate.py +0 -143
- package/templates/.claude/skills/frontend-design/SKILL.md +0 -310
- package/templates/.claude/skills/frontend-design/references/animation-patterns.md +0 -446
- package/templates/.claude/skills/frontend-design/references/colors-2026.md +0 -244
- package/templates/.claude/skills/frontend-design/references/typography-2026.md +0 -302
- package/templates/.claude/skills/gemini-review/SKILL.md +0 -118
- package/templates/.claude/skills/gemini-review/references/checklists.md +0 -129
- package/templates/.claude/skills/gemini-review/references/prompt-templates.md +0 -274
- package/templates/.claude/skills/skill-creator/LICENSE.txt +0 -202
- package/templates/.claude/skills/skill-creator/SKILL.md +0 -184
- package/templates/.claude/skills/skill-creator/scripts/init_skill.py +0 -303
- package/templates/.claude/skills/skill-creator/scripts/package_skill.py +0 -110
- package/templates/.claude/skills/skill-creator/scripts/quick_validate.py +0 -65
- package/templates/hono/docs/library/ai-sdk/index.md +0 -190
- package/templates/hono/docs/library/ai-sdk/openrouter.md +0 -111
- package/templates/hono/docs/library/ai-sdk/providers.md +0 -102
- package/templates/hono/docs/library/ai-sdk/streaming.md +0 -146
- package/templates/hono/docs/library/ai-sdk/structured-output.md +0 -161
- package/templates/hono/docs/library/ai-sdk/tools.md +0 -144
- package/templates/hono/docs/library/drizzle/cloudflare-d1.md +0 -247
- package/templates/hono/docs/library/drizzle/config.md +0 -167
- package/templates/hono/docs/library/drizzle/index.md +0 -259
- package/templates/hono/docs/library/hono/env-setup.md +0 -169
- package/templates/hono/docs/library/pino/index.md +0 -146
- package/templates/tanstack-start/docs/architecture/architecture.md +0 -243
- package/templates/tanstack-start/docs/deployment/cloudflare.md +0 -132
- package/templates/tanstack-start/docs/deployment/index.md +0 -163
- package/templates/tanstack-start/docs/deployment/nitro.md +0 -110
- package/templates/tanstack-start/docs/deployment/railway.md +0 -147
- package/templates/tanstack-start/docs/deployment/vercel.md +0 -135
- package/templates/tanstack-start/docs/design/components.md +0 -175
- package/templates/tanstack-start/docs/design/index.md +0 -151
- package/templates/tanstack-start/docs/design/safe-area.md +0 -118
- package/templates/tanstack-start/docs/design/tailwind-setup.md +0 -156
- package/templates/tanstack-start/docs/library/ai-sdk/hooks.md +0 -472
- package/templates/tanstack-start/docs/library/ai-sdk/index.md +0 -264
- package/templates/tanstack-start/docs/library/ai-sdk/openrouter.md +0 -371
- package/templates/tanstack-start/docs/library/ai-sdk/providers.md +0 -403
- package/templates/tanstack-start/docs/library/ai-sdk/streaming.md +0 -320
- package/templates/tanstack-start/docs/library/ai-sdk/structured-output.md +0 -454
- package/templates/tanstack-start/docs/library/ai-sdk/tools.md +0 -473
- package/templates/tanstack-start/docs/library/better-auth/2fa.md +0 -48
- package/templates/tanstack-start/docs/library/better-auth/advanced.md +0 -55
- package/templates/tanstack-start/docs/library/better-auth/plugins.md +0 -34
- package/templates/tanstack-start/docs/library/better-auth/session.md +0 -47
- package/templates/tanstack-start/docs/library/better-auth/setup.md +0 -41
- package/templates/tanstack-start/docs/library/drizzle/cloudflare-d1.md +0 -147
- package/templates/tanstack-start/docs/library/drizzle/config.md +0 -118
- package/templates/tanstack-start/docs/library/drizzle/crud.md +0 -205
- package/templates/tanstack-start/docs/library/drizzle/index.md +0 -79
- package/templates/tanstack-start/docs/library/drizzle/relations.md +0 -202
- package/templates/tanstack-start/docs/library/drizzle/schema.md +0 -154
- package/templates/tanstack-start/docs/library/drizzle/setup.md +0 -96
- package/templates/tanstack-start/docs/library/drizzle/transactions.md +0 -127
- package/templates/tanstack-start/docs/library/pino/index.md +0 -320
- /package/templates/hono/docs/{architecture/architecture.md → architecture.md} +0 -0
|
@@ -1,274 +0,0 @@
|
|
|
1
|
-
# Gemini 리뷰 프롬프트 템플릿
|
|
2
|
-
|
|
3
|
-
## 명령어 패턴
|
|
4
|
-
|
|
5
|
-
모든 명령어는 고정 모델 `gemini-2.5-pro`와 JSON 출력 사용.
|
|
6
|
-
|
|
7
|
-
### 기본 패턴
|
|
8
|
-
```bash
|
|
9
|
-
gemini -m gemini-2.5-pro -p "{prompt}" --output-format json
|
|
10
|
-
```
|
|
11
|
-
|
|
12
|
-
### 파일 파이핑 패턴
|
|
13
|
-
```bash
|
|
14
|
-
cat {file_path} | gemini -m gemini-2.5-pro -p "{instructions}" --output-format json
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
### 멀티라인 Heredoc 패턴
|
|
18
|
-
```bash
|
|
19
|
-
gemini -m gemini-2.5-pro --output-format json -p "$(cat << 'EOF'
|
|
20
|
-
{multi_line_prompt}
|
|
21
|
-
EOF
|
|
22
|
-
)"
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
### 응답 파싱
|
|
26
|
-
```bash
|
|
27
|
-
result=$(gemini -m gemini-2.5-pro -p "..." --output-format json)
|
|
28
|
-
review_content=$(echo "$result" | jq -r '.response')
|
|
29
|
-
echo "$review_content"
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
---
|
|
33
|
-
|
|
34
|
-
## 계획 리뷰 템플릿
|
|
35
|
-
|
|
36
|
-
```bash
|
|
37
|
-
gemini -m gemini-2.5-pro --output-format json -p "$(cat << 'EOF'
|
|
38
|
-
[계획 리뷰 요청]
|
|
39
|
-
|
|
40
|
-
## 컨텍스트
|
|
41
|
-
프로젝트: {project_name}
|
|
42
|
-
기술 스택: {tech_stack}
|
|
43
|
-
현재 상태: {current_state_description}
|
|
44
|
-
|
|
45
|
-
## 구현 계획
|
|
46
|
-
{plan_content}
|
|
47
|
-
|
|
48
|
-
## 리뷰 체크리스트
|
|
49
|
-
{checklist_items}
|
|
50
|
-
|
|
51
|
-
## 리뷰 지침
|
|
52
|
-
이 구현 계획을 분석하여 다음에 대한 피드백을 제공해주세요:
|
|
53
|
-
|
|
54
|
-
1. **완전성**
|
|
55
|
-
- 모든 요구사항이 다뤄졌는가?
|
|
56
|
-
- 누락된 단계나 고려사항이 있는가?
|
|
57
|
-
|
|
58
|
-
2. **로직 및 실현 가능성**
|
|
59
|
-
- 이 접근방식이 의도대로 작동할 것인가?
|
|
60
|
-
- 논리적 결함이나 모순이 있는가?
|
|
61
|
-
|
|
62
|
-
3. **엣지 케이스**
|
|
63
|
-
- 놓칠 수 있는 엣지 케이스는?
|
|
64
|
-
- 어떻게 처리해야 하는가?
|
|
65
|
-
|
|
66
|
-
4. **위험 및 이슈**
|
|
67
|
-
- 구현 중 발생할 수 있는 문제는?
|
|
68
|
-
- 의존성이나 블로커가 있는가?
|
|
69
|
-
|
|
70
|
-
5. **대안**
|
|
71
|
-
- 더 나은 접근방식이 있는가?
|
|
72
|
-
- 고려해야 할 트레이드오프는?
|
|
73
|
-
|
|
74
|
-
응답 형식:
|
|
75
|
-
- ✅ 계획의 강점
|
|
76
|
-
- ⚠️ 발견된 우려사항 또는 이슈
|
|
77
|
-
- 💡 개선 제안
|
|
78
|
-
- 🔄 대안적 접근방식 (있다면)
|
|
79
|
-
EOF
|
|
80
|
-
)"
|
|
81
|
-
```
|
|
82
|
-
|
|
83
|
-
---
|
|
84
|
-
|
|
85
|
-
## 코드 리뷰 템플릿
|
|
86
|
-
|
|
87
|
-
### 옵션 A: 인라인 코드
|
|
88
|
-
```bash
|
|
89
|
-
gemini -m gemini-2.5-pro --output-format json -p "$(cat << 'EOF'
|
|
90
|
-
[코드 리뷰 요청]
|
|
91
|
-
|
|
92
|
-
## 컨텍스트
|
|
93
|
-
파일: {file_path}
|
|
94
|
-
언어: {language}
|
|
95
|
-
기술 스택: {tech_stack}
|
|
96
|
-
목적: {purpose_description}
|
|
97
|
-
|
|
98
|
-
## 리뷰할 코드
|
|
99
|
-
```{language}
|
|
100
|
-
{code_content}
|
|
101
|
-
```
|
|
102
|
-
|
|
103
|
-
## 리뷰 체크리스트
|
|
104
|
-
{checklist_items}
|
|
105
|
-
|
|
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
|
-
EOF
|
|
145
|
-
)"
|
|
146
|
-
```
|
|
147
|
-
|
|
148
|
-
### 옵션 B: 파일 내용 파이핑
|
|
149
|
-
```bash
|
|
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
|
-
```
|
|
159
|
-
|
|
160
|
-
---
|
|
161
|
-
|
|
162
|
-
## 아키텍처 리뷰 템플릿
|
|
163
|
-
|
|
164
|
-
```bash
|
|
165
|
-
gemini -m gemini-2.5-pro --output-format json -p "$(cat << 'EOF'
|
|
166
|
-
[아키텍처 리뷰 요청]
|
|
167
|
-
|
|
168
|
-
## 시스템 개요
|
|
169
|
-
이름: {system_name}
|
|
170
|
-
목적: {system_purpose}
|
|
171
|
-
기술 스택: {tech_stack}
|
|
172
|
-
규모: {expected_scale}
|
|
173
|
-
|
|
174
|
-
## 현재/제안 아키텍처
|
|
175
|
-
{architecture_description}
|
|
176
|
-
|
|
177
|
-
## 컴포넌트
|
|
178
|
-
{components_list}
|
|
179
|
-
|
|
180
|
-
## 데이터 흐름
|
|
181
|
-
{data_flow_description}
|
|
182
|
-
|
|
183
|
-
## 구체적인 질문
|
|
184
|
-
{specific_questions}
|
|
185
|
-
|
|
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
|
-
EOF
|
|
226
|
-
)"
|
|
227
|
-
```
|
|
228
|
-
|
|
229
|
-
---
|
|
230
|
-
|
|
231
|
-
## 기술 스택 컨텍스트 추가
|
|
232
|
-
|
|
233
|
-
특정 기술 스택에 대한 리뷰 시 다음 형식으로 컨텍스트 추가:
|
|
234
|
-
|
|
235
|
-
```
|
|
236
|
-
## 기술 스택 특화 리뷰 포인트
|
|
237
|
-
- {해당 스택의 핵심 패턴}
|
|
238
|
-
- {프레임워크 규칙 준수 여부}
|
|
239
|
-
- {보안 고려사항}
|
|
240
|
-
- {성능 최적화 포인트}
|
|
241
|
-
- {타입 안전성}
|
|
242
|
-
```
|
|
243
|
-
|
|
244
|
-
**예시** (프론트엔드 - React/Next.js/Vue 등):
|
|
245
|
-
- 컴포넌트 구조 및 재사용성
|
|
246
|
-
- 훅/컴포저블 사용 패턴
|
|
247
|
-
- 상태 관리 방식
|
|
248
|
-
- 렌더링 최적화
|
|
249
|
-
|
|
250
|
-
**예시** (백엔드 - Express/FastAPI/NestJS 등):
|
|
251
|
-
- 미들웨어/의존성 주입
|
|
252
|
-
- 라우터/컨트롤러 구성
|
|
253
|
-
- 에러 핸들링 패턴
|
|
254
|
-
- 데이터베이스 세션 관리
|
|
255
|
-
|
|
256
|
-
---
|
|
257
|
-
|
|
258
|
-
## 빠른 리뷰 템플릿
|
|
259
|
-
|
|
260
|
-
### 보안 빠른 체크
|
|
261
|
-
```bash
|
|
262
|
-
cat {file_path} | gemini -m gemini-2.5-pro -p "이 코드를 보안 감사해주세요. 찾을 것: 인젝션 취약점, 인증 이슈, 데이터 노출 위험, 입력 유효성 검사 갭. 각각 심각도와 수정안과 함께 나열해주세요." --output-format json
|
|
263
|
-
```
|
|
264
|
-
|
|
265
|
-
### 성능 빠른 체크
|
|
266
|
-
```bash
|
|
267
|
-
cat {file_path} | gemini -m gemini-2.5-pro -p "이 코드를 성능 리뷰해주세요. 찾을 것: 비효율적인 알고리즘 (Big-O 명시), N+1 쿼리, 메모리 이슈, 불필요한 연산. 최적화를 제안해주세요." --output-format json
|
|
268
|
-
```
|
|
269
|
-
|
|
270
|
-
### 버그 헌팅
|
|
271
|
-
```bash
|
|
272
|
-
cat {file_path} | gemini -m gemini-2.5-pro -p "이 코드에서 버그를 찾아주세요: 로직 오류, 엣지 케이스, null 처리, 레이스 컨디션, 타입 이슈. 각 버그에 대해 수정안을 보여주세요." --output-format json
|
|
273
|
-
```
|
|
274
|
-
|
|
@@ -1,202 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
Apache License
|
|
3
|
-
Version 2.0, January 2004
|
|
4
|
-
http://www.apache.org/licenses/
|
|
5
|
-
|
|
6
|
-
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
-
|
|
8
|
-
1. Definitions.
|
|
9
|
-
|
|
10
|
-
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
-
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
-
|
|
13
|
-
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
-
the copyright owner that is granting the License.
|
|
15
|
-
|
|
16
|
-
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
-
other entities that control, are controlled by, or are under common
|
|
18
|
-
control with that entity. For the purposes of this definition,
|
|
19
|
-
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
-
direction or management of such entity, whether by contract or
|
|
21
|
-
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
-
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
-
|
|
24
|
-
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
-
exercising permissions granted by this License.
|
|
26
|
-
|
|
27
|
-
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
-
including but not limited to software source code, documentation
|
|
29
|
-
source, and configuration files.
|
|
30
|
-
|
|
31
|
-
"Object" form shall mean any form resulting from mechanical
|
|
32
|
-
transformation or translation of a Source form, including but
|
|
33
|
-
not limited to compiled object code, generated documentation,
|
|
34
|
-
and conversions to other media types.
|
|
35
|
-
|
|
36
|
-
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
-
Object form, made available under the License, as indicated by a
|
|
38
|
-
copyright notice that is included in or attached to the work
|
|
39
|
-
(an example is provided in the Appendix below).
|
|
40
|
-
|
|
41
|
-
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
-
form, that is based on (or derived from) the Work and for which the
|
|
43
|
-
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
-
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
-
of this License, Derivative Works shall not include works that remain
|
|
46
|
-
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
-
the Work and Derivative Works thereof.
|
|
48
|
-
|
|
49
|
-
"Contribution" shall mean any work of authorship, including
|
|
50
|
-
the original version of the Work and any modifications or additions
|
|
51
|
-
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
-
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
-
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
-
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
-
means any form of electronic, verbal, or written communication sent
|
|
56
|
-
to the Licensor or its representatives, including but not limited to
|
|
57
|
-
communication on electronic mailing lists, source code control systems,
|
|
58
|
-
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
-
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
-
excluding communication that is conspicuously marked or otherwise
|
|
61
|
-
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
-
|
|
63
|
-
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
-
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
-
subsequently incorporated within the Work.
|
|
66
|
-
|
|
67
|
-
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
-
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
-
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
-
Work and such Derivative Works in Source or Object form.
|
|
73
|
-
|
|
74
|
-
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
-
(except as stated in this section) patent license to make, have made,
|
|
78
|
-
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
-
where such license applies only to those patent claims licensable
|
|
80
|
-
by such Contributor that are necessarily infringed by their
|
|
81
|
-
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
-
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
-
institute patent litigation against any entity (including a
|
|
84
|
-
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
-
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
-
or contributory patent infringement, then any patent licenses
|
|
87
|
-
granted to You under this License for that Work shall terminate
|
|
88
|
-
as of the date such litigation is filed.
|
|
89
|
-
|
|
90
|
-
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
-
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
-
modifications, and in Source or Object form, provided that You
|
|
93
|
-
meet the following conditions:
|
|
94
|
-
|
|
95
|
-
(a) You must give any other recipients of the Work or
|
|
96
|
-
Derivative Works a copy of this License; and
|
|
97
|
-
|
|
98
|
-
(b) You must cause any modified files to carry prominent notices
|
|
99
|
-
stating that You changed the files; and
|
|
100
|
-
|
|
101
|
-
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
-
that You distribute, all copyright, patent, trademark, and
|
|
103
|
-
attribution notices from the Source form of the Work,
|
|
104
|
-
excluding those notices that do not pertain to any part of
|
|
105
|
-
the Derivative Works; and
|
|
106
|
-
|
|
107
|
-
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
-
distribution, then any Derivative Works that You distribute must
|
|
109
|
-
include a readable copy of the attribution notices contained
|
|
110
|
-
within such NOTICE file, excluding those notices that do not
|
|
111
|
-
pertain to any part of the Derivative Works, in at least one
|
|
112
|
-
of the following places: within a NOTICE text file distributed
|
|
113
|
-
as part of the Derivative Works; within the Source form or
|
|
114
|
-
documentation, if provided along with the Derivative Works; or,
|
|
115
|
-
within a display generated by the Derivative Works, if and
|
|
116
|
-
wherever such third-party notices normally appear. The contents
|
|
117
|
-
of the NOTICE file are for informational purposes only and
|
|
118
|
-
do not modify the License. You may add Your own attribution
|
|
119
|
-
notices within Derivative Works that You distribute, alongside
|
|
120
|
-
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
-
that such additional attribution notices cannot be construed
|
|
122
|
-
as modifying the License.
|
|
123
|
-
|
|
124
|
-
You may add Your own copyright statement to Your modifications and
|
|
125
|
-
may provide additional or different license terms and conditions
|
|
126
|
-
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
-
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
-
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
-
the conditions stated in this License.
|
|
130
|
-
|
|
131
|
-
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
-
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
-
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
-
this License, without any additional terms or conditions.
|
|
135
|
-
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
-
the terms of any separate license agreement you may have executed
|
|
137
|
-
with Licensor regarding such Contributions.
|
|
138
|
-
|
|
139
|
-
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
-
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
-
except as required for reasonable and customary use in describing the
|
|
142
|
-
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
-
|
|
144
|
-
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
-
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
-
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
-
implied, including, without limitation, any warranties or conditions
|
|
149
|
-
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
-
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
-
appropriateness of using or redistributing the Work and assume any
|
|
152
|
-
risks associated with Your exercise of permissions under this License.
|
|
153
|
-
|
|
154
|
-
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
-
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
-
unless required by applicable law (such as deliberate and grossly
|
|
157
|
-
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
-
liable to You for damages, including any direct, indirect, special,
|
|
159
|
-
incidental, or consequential damages of any character arising as a
|
|
160
|
-
result of this License or out of the use or inability to use the
|
|
161
|
-
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
-
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
-
other commercial damages or losses), even if such Contributor
|
|
164
|
-
has been advised of the possibility of such damages.
|
|
165
|
-
|
|
166
|
-
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
-
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
-
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
-
or other liability obligations and/or rights consistent with this
|
|
170
|
-
License. However, in accepting such obligations, You may act only
|
|
171
|
-
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
-
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
-
defend, and hold each Contributor harmless for any liability
|
|
174
|
-
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
-
of your accepting any such warranty or additional liability.
|
|
176
|
-
|
|
177
|
-
END OF TERMS AND CONDITIONS
|
|
178
|
-
|
|
179
|
-
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
-
|
|
181
|
-
To apply the Apache License to your work, attach the following
|
|
182
|
-
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
-
replaced with your own identifying information. (Don't include
|
|
184
|
-
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
-
comment syntax for the file format. We also recommend that a
|
|
186
|
-
file or class name and description of purpose be included on the
|
|
187
|
-
same "printed page" as the copyright notice for easier
|
|
188
|
-
identification within third-party archives.
|
|
189
|
-
|
|
190
|
-
Copyright [yyyy] [name of copyright owner]
|
|
191
|
-
|
|
192
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
-
you may not use this file except in compliance with the License.
|
|
194
|
-
You may obtain a copy of the License at
|
|
195
|
-
|
|
196
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
-
|
|
198
|
-
Unless required by applicable law or agreed to in writing, software
|
|
199
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
-
See the License for the specific language governing permissions and
|
|
202
|
-
limitations under the License.
|
|
@@ -1,184 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: skill-creator
|
|
3
|
-
description: 스킬 생성 가이드. 새로운 스킬을 만들거나 기존 스킬을 수정할 때 사용. (project)
|
|
4
|
-
license: Complete terms in LICENSE.txt
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# Skill Creator
|
|
8
|
-
|
|
9
|
-
Claude 기능 확장을 위한 스킬 생성 가이드.
|
|
10
|
-
|
|
11
|
-
## 스킬 개요
|
|
12
|
-
|
|
13
|
-
스킬은 특화된 지식, 워크플로우, 도구를 제공하는 모듈. Claude를 범용 에이전트에서 전문 에이전트로 변환.
|
|
14
|
-
|
|
15
|
-
### 스킬 제공 요소
|
|
16
|
-
|
|
17
|
-
| 요소 | 설명 |
|
|
18
|
-
|------|------|
|
|
19
|
-
| 워크플로우 | 특정 도메인의 다단계 절차 |
|
|
20
|
-
| 도구 통합 | 파일 형식, API 작업 지침 |
|
|
21
|
-
| 도메인 전문성 | 회사별 지식, 스키마, 비즈니스 로직 |
|
|
22
|
-
| 번들 리소스 | 스크립트, 참조 문서, 에셋 |
|
|
23
|
-
|
|
24
|
-
### 스킬 구조
|
|
25
|
-
|
|
26
|
-
```
|
|
27
|
-
skill-name/
|
|
28
|
-
├── SKILL.md (필수)
|
|
29
|
-
│ ├── YAML frontmatter (name, description 필수)
|
|
30
|
-
│ └── Markdown 지침
|
|
31
|
-
└── 번들 리소스 (선택)
|
|
32
|
-
├── scripts/ - 실행 가능 코드
|
|
33
|
-
├── references/ - 참조 문서
|
|
34
|
-
└── assets/ - 출력용 파일 (템플릿, 이미지 등)
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
### 번들 리소스
|
|
38
|
-
|
|
39
|
-
| 디렉토리 | 용도 | 예시 |
|
|
40
|
-
|----------|------|------|
|
|
41
|
-
| `scripts/` | 반복 작업용 결정론적 코드 | `rotate_pdf.py` |
|
|
42
|
-
| `references/` | 컨텍스트에 로드될 문서 | `schema.md`, `api_docs.md` |
|
|
43
|
-
| `assets/` | 출력에 사용될 파일 | `logo.png`, `template.pptx` |
|
|
44
|
-
|
|
45
|
-
**references 원칙**: SKILL.md는 간결하게, 상세 정보는 references로 분리. 대용량 파일(>10k 단어)은 grep 패턴 포함.
|
|
46
|
-
|
|
47
|
-
### 점진적 로딩
|
|
48
|
-
|
|
49
|
-
| 레벨 | 내용 | 크기 |
|
|
50
|
-
|------|------|------|
|
|
51
|
-
| 메타데이터 | name + description | ~100 단어 |
|
|
52
|
-
| SKILL.md 본문 | 스킬 트리거 시 | <5k 단어 |
|
|
53
|
-
| 번들 리소스 | 필요 시 로드 | 무제한 |
|
|
54
|
-
|
|
55
|
-
### Description 작성
|
|
56
|
-
|
|
57
|
-
description은 스킬 발견의 핵심. 100+ 스킬 중에서 선택됨.
|
|
58
|
-
|
|
59
|
-
```yaml
|
|
60
|
-
# Good - 구체적 + 트리거 포함
|
|
61
|
-
description: PDF 텍스트/표 추출, 폼 작성. PDF 작업 시 사용. (project)
|
|
62
|
-
|
|
63
|
-
# Bad - 모호함
|
|
64
|
-
description: 문서 처리
|
|
65
|
-
```
|
|
66
|
-
|
|
67
|
-
**규칙:**
|
|
68
|
-
- 3인칭 작성 (시스템 프롬프트에 주입됨)
|
|
69
|
-
- 무엇을 하는지 + 언제 사용하는지
|
|
70
|
-
- 구체적 키워드 포함
|
|
71
|
-
- scope 명시: `(project)`, `(user)`, `(managed)`
|
|
72
|
-
|
|
73
|
-
## 생성 프로세스
|
|
74
|
-
|
|
75
|
-
### 1단계: 사용 사례 파악
|
|
76
|
-
|
|
77
|
-
스킬 사용 패턴 이해. 질문 예시:
|
|
78
|
-
- "어떤 기능을 지원해야 하나?"
|
|
79
|
-
- "사용 예시를 보여줄 수 있나?"
|
|
80
|
-
- "스킬을 트리거할 사용자 요청은?"
|
|
81
|
-
|
|
82
|
-
### 2단계: 재사용 콘텐츠 계획
|
|
83
|
-
|
|
84
|
-
각 사용 사례 분석:
|
|
85
|
-
1. 처음부터 실행하는 방법 고려
|
|
86
|
-
2. 반복 실행 시 유용한 스크립트/참조/에셋 식별
|
|
87
|
-
|
|
88
|
-
**예시**:
|
|
89
|
-
- `pdf-editor`: PDF 회전 코드 반복 → `scripts/rotate_pdf.py`
|
|
90
|
-
- `frontend-builder`: 보일러플레이트 반복 → `assets/hello-world/`
|
|
91
|
-
- `big-query`: 스키마 재탐색 반복 → `references/schema.md`
|
|
92
|
-
|
|
93
|
-
### 3단계: 스킬 초기화
|
|
94
|
-
|
|
95
|
-
새 스킬 생성 시 init 스크립트 실행:
|
|
96
|
-
|
|
97
|
-
```bash
|
|
98
|
-
scripts/init_skill.py <skill-name> --path <output-directory>
|
|
99
|
-
```
|
|
100
|
-
|
|
101
|
-
생성 내용: SKILL.md 템플릿, scripts/, references/, assets/ 예제
|
|
102
|
-
|
|
103
|
-
### 4단계: 스킬 편집
|
|
104
|
-
|
|
105
|
-
**작성 스타일**: 명령형/부정형 사용 ("X를 수행" ← "X를 수행해야 합니다" ❌)
|
|
106
|
-
|
|
107
|
-
편집 순서:
|
|
108
|
-
1. `scripts/`, `references/`, `assets/` 구현 (사용자 입력 필요 시 요청)
|
|
109
|
-
2. 불필요한 예제 파일 삭제
|
|
110
|
-
3. SKILL.md 완성:
|
|
111
|
-
- 스킬 목적 (2-3문장)
|
|
112
|
-
- 사용 시점
|
|
113
|
-
- 사용 방법 (모든 번들 리소스 참조)
|
|
114
|
-
|
|
115
|
-
### 5단계: 패키징
|
|
116
|
-
|
|
117
|
-
```bash
|
|
118
|
-
scripts/package_skill.py <path/to/skill-folder> [output-directory]
|
|
119
|
-
```
|
|
120
|
-
|
|
121
|
-
자동 검증 후 zip 생성. 오류 시 수정 후 재실행.
|
|
122
|
-
|
|
123
|
-
### 6단계: 반복
|
|
124
|
-
|
|
125
|
-
사용 → 문제 발견 → 수정 → 재테스트
|
|
126
|
-
|
|
127
|
-
## Subagent 활용
|
|
128
|
-
|
|
129
|
-
스킬 생성 시 subagent를 활용하여 메인 컨텍스트 보호.
|
|
130
|
-
|
|
131
|
-
### 활용 시점
|
|
132
|
-
|
|
133
|
-
```
|
|
134
|
-
1. Explore agent → 기존 스킬 패턴 분석
|
|
135
|
-
2. Explore agent → 관련 코드/워크플로우 파악
|
|
136
|
-
3. Plan agent → 스킬 구조 설계
|
|
137
|
-
4. 메인 에이전트 → 설계 기반 작성
|
|
138
|
-
```
|
|
139
|
-
|
|
140
|
-
### 프롬프트 예시
|
|
141
|
-
|
|
142
|
-
```
|
|
143
|
-
Explore agent에게:
|
|
144
|
-
"프로젝트의 스킬 구조와 패턴을 분석하고 보고해줘:
|
|
145
|
-
- 기존 스킬 목록 및 용도
|
|
146
|
-
- 공통 구조 (섹션, 참조 방식)
|
|
147
|
-
- 번들 리소스 활용 패턴"
|
|
148
|
-
```
|
|
149
|
-
|
|
150
|
-
```
|
|
151
|
-
Plan agent에게:
|
|
152
|
-
"새 스킬 구조 설계:
|
|
153
|
-
- 목적 및 사용 시나리오
|
|
154
|
-
- SKILL.md 섹션 구성
|
|
155
|
-
- 참조 파일 분리 계획
|
|
156
|
-
- 번들 리소스 (scripts/references/assets)"
|
|
157
|
-
```
|
|
158
|
-
|
|
159
|
-
## 체크리스트
|
|
160
|
-
|
|
161
|
-
### 계획 단계
|
|
162
|
-
|
|
163
|
-
- [ ] 사용 사례 파악
|
|
164
|
-
- [ ] 재사용 콘텐츠 식별
|
|
165
|
-
- [ ] 번들 리소스 계획
|
|
166
|
-
|
|
167
|
-
### 작성 단계
|
|
168
|
-
|
|
169
|
-
- [ ] description 구체적 작성 (3인칭, 트리거)
|
|
170
|
-
- [ ] SKILL.md 500줄 이하
|
|
171
|
-
- [ ] 명령형 작성
|
|
172
|
-
- [ ] 참조 1단계 깊이
|
|
173
|
-
- [ ] 100줄+ 파일 목차 포함
|
|
174
|
-
|
|
175
|
-
### 검증 단계
|
|
176
|
-
|
|
177
|
-
- [ ] 스킬 트리거 테스트
|
|
178
|
-
- [ ] 번들 리소스 접근 확인
|
|
179
|
-
- [ ] 다양한 시나리오 테스트
|
|
180
|
-
|
|
181
|
-
## 참조
|
|
182
|
-
|
|
183
|
-
- [Skill Best Practices](https://platform.claude.com/docs/en/agents-and-tools/agent-skills/best-practices)
|
|
184
|
-
- [Claude Code Best Practices](https://www.anthropic.com/engineering/claude-code-best-practices)
|