@kood/claude-code 0.3.7 → 0.3.9
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 +1 -1
- package/package.json +1 -1
- package/templates/.claude/agents/code-reviewer.md +138 -123
- package/templates/.claude/agents/dependency-manager.md +99 -84
- package/templates/.claude/agents/deployment-validator.md +70 -55
- package/templates/.claude/agents/git-operator.md +78 -63
- package/templates/.claude/agents/implementation-executor.md +109 -94
- package/templates/.claude/agents/ko-to-en-translator.md +74 -0
- package/templates/.claude/agents/lint-fixer.md +93 -78
- package/templates/.claude/agents/refactor-advisor.md +136 -121
- package/templates/.claude/commands/agent-creator.md +199 -184
- package/templates/.claude/commands/bug-fix.md +207 -192
- package/templates/.claude/commands/command-creator.md +69 -53
- package/templates/.claude/commands/docs-creator.md +72 -56
- package/templates/.claude/commands/docs-refactor.md +41 -25
- package/templates/.claude/commands/execute.md +27 -11
- package/templates/.claude/commands/git-all.md +46 -31
- package/templates/.claude/commands/git-session.md +57 -41
- package/templates/.claude/commands/git.md +49 -33
- package/templates/.claude/commands/lint-fix.md +153 -137
- package/templates/.claude/commands/lint-init.md +76 -60
- package/templates/.claude/commands/plan.md +275 -259
- package/templates/.claude/commands/prd.md +39 -23
- package/templates/.claude/commands/pre-deploy.md +124 -108
- package/templates/.claude/commands/refactor.md +162 -146
- package/templates/.claude/commands/version-update.md +32 -16
- package/templates/hono/CLAUDE.md +28 -27
- package/templates/hono/docs/architecture.md +24 -24
- package/templates/hono/docs/deployment/cloudflare.md +18 -18
- package/templates/hono/docs/deployment/docker.md +13 -13
- package/templates/hono/docs/deployment/index.md +19 -19
- package/templates/hono/docs/deployment/railway.md +32 -32
- package/templates/hono/docs/deployment/vercel.md +29 -29
- package/templates/hono/docs/guides/conventions.md +57 -57
- package/templates/hono/docs/guides/env-setup.md +47 -47
- package/templates/hono/docs/guides/getting-started.md +27 -27
- package/templates/hono/docs/library/hono/error-handling.md +11 -11
- package/templates/hono/docs/library/hono/index.md +4 -4
- package/templates/hono/docs/library/hono/middleware.md +18 -18
- package/templates/hono/docs/library/hono/rpc.md +7 -7
- package/templates/hono/docs/library/hono/validation.md +6 -6
- package/templates/hono/docs/library/prisma/cloudflare-d1.md +29 -29
- package/templates/hono/docs/library/prisma/config.md +16 -16
- package/templates/hono/docs/library/prisma/index.md +32 -32
- package/templates/hono/docs/library/t3-env/index.md +22 -22
- package/templates/hono/docs/library/zod/index.md +31 -31
- package/templates/nextjs/CLAUDE.md +54 -51
- package/templates/nextjs/docs/architecture.md +812 -0
- package/templates/nextjs/docs/design.md +183 -183
- package/templates/nextjs/docs/guides/conventions.md +86 -86
- package/templates/nextjs/docs/guides/getting-started.md +28 -28
- package/templates/nextjs/docs/guides/routes.md +32 -32
- package/templates/nextjs/docs/library/better-auth/index.md +70 -70
- package/templates/nextjs/docs/library/nextjs/app-router.md +43 -43
- package/templates/nextjs/docs/library/nextjs/caching.md +73 -73
- package/templates/nextjs/docs/library/nextjs/index.md +51 -51
- package/templates/nextjs/docs/library/nextjs/middleware.md +41 -41
- package/templates/nextjs/docs/library/nextjs/route-handlers.md +31 -31
- package/templates/nextjs/docs/library/nextjs/server-actions.md +34 -34
- package/templates/nextjs/docs/library/prisma/cloudflare-d1.md +20 -20
- package/templates/nextjs/docs/library/prisma/config.md +18 -18
- package/templates/nextjs/docs/library/prisma/crud.md +17 -17
- package/templates/nextjs/docs/library/prisma/index.md +18 -18
- package/templates/nextjs/docs/library/prisma/relations.md +16 -16
- package/templates/nextjs/docs/library/prisma/schema.md +23 -23
- package/templates/nextjs/docs/library/prisma/setup.md +6 -6
- package/templates/nextjs/docs/library/prisma/transactions.md +10 -10
- package/templates/nextjs/docs/library/tanstack-query/index.md +6 -6
- package/templates/nextjs/docs/library/tanstack-query/invalidation.md +20 -20
- package/templates/nextjs/docs/library/tanstack-query/optimistic-updates.md +4 -4
- package/templates/nextjs/docs/library/tanstack-query/use-mutation.md +15 -15
- package/templates/nextjs/docs/library/tanstack-query/use-query.md +22 -22
- package/templates/nextjs/docs/library/zod/complex-types.md +11 -11
- package/templates/nextjs/docs/library/zod/index.md +8 -8
- package/templates/nextjs/docs/library/zod/transforms.md +11 -11
- package/templates/nextjs/docs/library/zod/validation.md +9 -9
- package/templates/npx/CLAUDE.md +38 -37
- package/templates/npx/docs/library/commander/index.md +12 -12
- package/templates/npx/docs/library/fs-extra/index.md +9 -9
- package/templates/npx/docs/library/prompts/index.md +3 -3
- package/templates/npx/docs/references/patterns.md +12 -12
- package/templates/tanstack-start/CLAUDE.md +54 -53
- package/templates/tanstack-start/docs/architecture.md +128 -128
- package/templates/tanstack-start/docs/design.md +169 -169
- package/templates/tanstack-start/docs/guides/conventions.md +43 -43
- package/templates/tanstack-start/docs/guides/env-setup.md +35 -35
- package/templates/tanstack-start/docs/guides/getting-started.md +19 -19
- package/templates/tanstack-start/docs/guides/hooks.md +45 -45
- package/templates/tanstack-start/docs/guides/routes.md +54 -54
- package/templates/tanstack-start/docs/guides/services.md +45 -45
- package/templates/tanstack-start/docs/library/better-auth/index.md +68 -68
- package/templates/tanstack-start/docs/library/prisma/cloudflare-d1.md +19 -19
- package/templates/tanstack-start/docs/library/prisma/config.md +16 -16
- package/templates/tanstack-start/docs/library/prisma/crud.md +17 -17
- package/templates/tanstack-start/docs/library/prisma/index.md +17 -17
- package/templates/tanstack-start/docs/library/prisma/relations.md +16 -16
- package/templates/tanstack-start/docs/library/prisma/schema.md +23 -23
- package/templates/tanstack-start/docs/library/prisma/setup.md +6 -6
- package/templates/tanstack-start/docs/library/prisma/transactions.md +10 -10
- package/templates/tanstack-start/docs/library/t3-env/index.md +21 -160
- package/templates/tanstack-start/docs/library/tanstack-query/index.md +6 -6
- package/templates/tanstack-start/docs/library/tanstack-query/invalidation.md +19 -19
- package/templates/tanstack-start/docs/library/tanstack-query/optimistic-updates.md +4 -4
- package/templates/tanstack-start/docs/library/tanstack-query/use-mutation.md +14 -14
- package/templates/tanstack-start/docs/library/tanstack-query/use-query.md +21 -21
- package/templates/tanstack-start/docs/library/tanstack-router/error-handling.md +9 -9
- package/templates/tanstack-start/docs/library/tanstack-router/hooks.md +11 -11
- package/templates/tanstack-start/docs/library/tanstack-router/index.md +18 -18
- package/templates/tanstack-start/docs/library/tanstack-router/navigation.md +17 -17
- package/templates/tanstack-start/docs/library/tanstack-router/route-context.md +5 -5
- package/templates/tanstack-start/docs/library/tanstack-router/search-params.md +10 -10
- package/templates/tanstack-start/docs/library/tanstack-start/auth-patterns.md +8 -8
- package/templates/tanstack-start/docs/library/tanstack-start/index.md +15 -15
- package/templates/tanstack-start/docs/library/tanstack-start/middleware.md +9 -9
- package/templates/tanstack-start/docs/library/tanstack-start/routing.md +6 -6
- package/templates/tanstack-start/docs/library/tanstack-start/server-functions.md +18 -18
- package/templates/tanstack-start/docs/library/tanstack-start/setup.md +4 -4
- package/templates/tanstack-start/docs/library/zod/complex-types.md +11 -11
- package/templates/tanstack-start/docs/library/zod/index.md +8 -8
- package/templates/tanstack-start/docs/library/zod/transforms.md +11 -11
- package/templates/tanstack-start/docs/library/zod/validation.md +9 -9
|
@@ -1,28 +1,43 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: .claude/agents/ 디렉토리에 서브에이전트 마크다운 파일 생성
|
|
3
3
|
allowed-tools: Read, Write, Bash, Grep, Glob
|
|
4
|
-
argument-hint:
|
|
4
|
+
argument-hint: <description of agent purpose and functionality>
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
<critical_instruction>
|
|
8
|
+
|
|
9
|
+
**CRITICAL: 사용자와의 모든 커뮤니케이션은 반드시 한국어로 작성하세요.**
|
|
10
|
+
|
|
11
|
+
- 내부 사고와 분석은 영어로 해도 됨
|
|
12
|
+
- 설명, 요약, 보고서, 피드백 등 사용자에게 전달하는 모든 내용은 반드시 한국어
|
|
13
|
+
- 사용자가 영어로 말하더라도 답변은 한국어로
|
|
14
|
+
- 진행 상황 업데이트와 상태 보고는 반드시 한국어
|
|
15
|
+
|
|
16
|
+
이 규칙은 절대적이며 예외가 없습니다.
|
|
17
|
+
|
|
18
|
+
</critical_instruction>
|
|
19
|
+
|
|
5
20
|
---
|
|
6
21
|
|
|
7
22
|
# Agent Creator
|
|
8
23
|
|
|
9
|
-
>
|
|
24
|
+
> Command to generate subagent `.md` files in the `.claude/agents/` directory
|
|
10
25
|
|
|
11
|
-
|
|
26
|
+
**Purpose:** $ARGUMENTS
|
|
12
27
|
|
|
13
28
|
---
|
|
14
29
|
|
|
15
30
|
<critical_rules>
|
|
16
31
|
|
|
17
|
-
##
|
|
32
|
+
## Critical Rules
|
|
18
33
|
|
|
19
|
-
|
|
|
20
|
-
|
|
21
|
-
| ❌
|
|
22
|
-
| ✅
|
|
23
|
-
| ✅
|
|
24
|
-
| ✅ YAML
|
|
25
|
-
| ✅
|
|
34
|
+
| Rule | Reason |
|
|
35
|
+
|------|--------|
|
|
36
|
+
| ❌ Do not include `Task` in tools | Subagents cannot create other subagents |
|
|
37
|
+
| ✅ Filename lowercase + hyphen | `code-reviewer.md`, `sql-analyst.md` |
|
|
38
|
+
| ✅ Save location `.claude/agents/` | Project-level sharing |
|
|
39
|
+
| ✅ YAML frontmatter required | name, description mandatory |
|
|
40
|
+
| ✅ Define role in one sentence | "You are a ~expert" |
|
|
26
41
|
|
|
27
42
|
</critical_rules>
|
|
28
43
|
|
|
@@ -30,33 +45,33 @@ argument-hint: <생성할 에이전트 목적 및 기능 설명>
|
|
|
30
45
|
|
|
31
46
|
<yaml_fields>
|
|
32
47
|
|
|
33
|
-
## YAML
|
|
48
|
+
## YAML Frontmatter Structure
|
|
34
49
|
|
|
35
50
|
```yaml
|
|
36
51
|
---
|
|
37
|
-
name: {
|
|
38
|
-
description: {
|
|
39
|
-
tools: {
|
|
52
|
+
name: {lowercase-hyphen-name}
|
|
53
|
+
description: {Description for trigger detection. Specify when to use.}
|
|
54
|
+
tools: {Comma-separated tool list}
|
|
40
55
|
model: {sonnet|opus|haiku|inherit}
|
|
41
56
|
permissionMode: {default|bypassPermissions|askUser}
|
|
42
57
|
---
|
|
43
58
|
```
|
|
44
59
|
|
|
45
|
-
###
|
|
60
|
+
### Required Fields
|
|
46
61
|
|
|
47
|
-
|
|
|
48
|
-
|
|
49
|
-
| `name` |
|
|
50
|
-
| `description` |
|
|
62
|
+
| Field | Description | Example |
|
|
63
|
+
|-------|-------------|---------|
|
|
64
|
+
| `name` | Unique identifier | `code-reviewer` |
|
|
65
|
+
| `description` | Specify invocation trigger | `Code quality review after write/edit` |
|
|
51
66
|
|
|
52
|
-
###
|
|
67
|
+
### Optional Fields
|
|
53
68
|
|
|
54
|
-
|
|
|
55
|
-
|
|
56
|
-
| `tools` |
|
|
57
|
-
| `model` | `inherit` | `haiku`(
|
|
58
|
-
| `permissionMode` | `default` |
|
|
59
|
-
| `skills` |
|
|
69
|
+
| Field | Default | Usage |
|
|
70
|
+
|-------|---------|-------|
|
|
71
|
+
| `tools` | Inherit main tools | `Read, Write, Edit, Bash, Grep, Glob, WebFetch, WebSearch` |
|
|
72
|
+
| `model` | `inherit` | `haiku`(fast), `sonnet`(balanced), `opus`(complex) |
|
|
73
|
+
| `permissionMode` | `default` | Permission handling |
|
|
74
|
+
| `skills` | None | Comma-separated skill list |
|
|
60
75
|
|
|
61
76
|
</yaml_fields>
|
|
62
77
|
|
|
@@ -64,39 +79,39 @@ permissionMode: {default|bypassPermissions|askUser}
|
|
|
64
79
|
|
|
65
80
|
<prompt_patterns>
|
|
66
81
|
|
|
67
|
-
##
|
|
82
|
+
## System Prompt Pattern
|
|
68
83
|
|
|
69
84
|
```markdown
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
1. {
|
|
74
|
-
2. {
|
|
75
|
-
3. {
|
|
76
|
-
|
|
77
|
-
{
|
|
78
|
-
- {
|
|
79
|
-
- {
|
|
80
|
-
- {
|
|
81
|
-
|
|
82
|
-
{
|
|
83
|
-
- {
|
|
84
|
-
- {
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
1. **{
|
|
88
|
-
2. **{
|
|
89
|
-
3. **{
|
|
85
|
+
You are a {role} specializing in {expertise}.
|
|
86
|
+
|
|
87
|
+
Tasks to perform on invocation:
|
|
88
|
+
1. {Immediate action step 1}
|
|
89
|
+
2. {Immediate action step 2}
|
|
90
|
+
3. {Immediate action step 3}
|
|
91
|
+
|
|
92
|
+
{Review/Analysis} Checklist:
|
|
93
|
+
- {Item 1}
|
|
94
|
+
- {Item 2}
|
|
95
|
+
- {Item 3}
|
|
96
|
+
|
|
97
|
+
{Guidelines/Principles}:
|
|
98
|
+
- {Principle 1}
|
|
99
|
+
- {Principle 2}
|
|
100
|
+
|
|
101
|
+
Output Format:
|
|
102
|
+
1. **{Section 1}**: {Description}
|
|
103
|
+
2. **{Section 2}**: {Description}
|
|
104
|
+
3. **{Section 3}**: {Description}
|
|
90
105
|
```
|
|
91
106
|
|
|
92
|
-
###
|
|
107
|
+
### Core Elements
|
|
93
108
|
|
|
94
|
-
|
|
|
95
|
-
|
|
96
|
-
|
|
|
97
|
-
|
|
|
98
|
-
|
|
|
99
|
-
|
|
|
109
|
+
| Element | Description | Example |
|
|
110
|
+
|---------|-------------|---------|
|
|
111
|
+
| **Role Definition** | One sentence, clear expertise | "Code quality reviewer" |
|
|
112
|
+
| **Immediate Execution** | Auto-execute on invocation | "Run git diff → analyze changes" |
|
|
113
|
+
| **Checklist** | Review/execution items | "Security, performance, readability" |
|
|
114
|
+
| **Output Format** | Structured results | "Critical > Warning > Suggestion" |
|
|
100
115
|
|
|
101
116
|
</prompt_patterns>
|
|
102
117
|
|
|
@@ -104,123 +119,123 @@ permissionMode: {default|bypassPermissions|askUser}
|
|
|
104
119
|
|
|
105
120
|
<templates>
|
|
106
121
|
|
|
107
|
-
##
|
|
122
|
+
## Agent Templates
|
|
108
123
|
|
|
109
|
-
### Full
|
|
124
|
+
### Full Example: Code Reviewer
|
|
110
125
|
|
|
111
126
|
```yaml
|
|
112
127
|
---
|
|
113
128
|
name: code-reviewer
|
|
114
|
-
description:
|
|
129
|
+
description: Review code quality, security, maintainability after write/edit
|
|
115
130
|
tools: Read, Grep, Glob, Bash
|
|
116
131
|
model: inherit
|
|
117
132
|
---
|
|
118
133
|
|
|
119
|
-
|
|
134
|
+
You are a senior code reviewer maintaining high standards for code quality and security.
|
|
120
135
|
|
|
121
|
-
|
|
122
|
-
1. `git diff`
|
|
123
|
-
2.
|
|
124
|
-
3.
|
|
136
|
+
Tasks to perform on invocation:
|
|
137
|
+
1. Execute `git diff` to check changes
|
|
138
|
+
2. Focus on modified files
|
|
139
|
+
3. Start review immediately
|
|
125
140
|
|
|
126
|
-
|
|
127
|
-
-
|
|
128
|
-
-
|
|
129
|
-
-
|
|
130
|
-
-
|
|
131
|
-
-
|
|
132
|
-
-
|
|
133
|
-
-
|
|
141
|
+
Review Checklist:
|
|
142
|
+
- Code simplicity and readability
|
|
143
|
+
- Clear naming
|
|
144
|
+
- Duplicate code elimination
|
|
145
|
+
- Error handling appropriateness
|
|
146
|
+
- Secret/API key exposure check
|
|
147
|
+
- Input validation implementation
|
|
148
|
+
- Edge case handling
|
|
134
149
|
|
|
135
|
-
|
|
136
|
-
-
|
|
137
|
-
-
|
|
138
|
-
-
|
|
150
|
+
Output Format:
|
|
151
|
+
- **Critical**: Required fix before merge
|
|
152
|
+
- **Warning**: Fix recommended
|
|
153
|
+
- **Suggestion**: Consider for improvement
|
|
139
154
|
|
|
140
|
-
|
|
155
|
+
Provide fix method and code examples for each issue.
|
|
141
156
|
```
|
|
142
157
|
|
|
143
|
-
### Full
|
|
158
|
+
### Full Example: SQL Analyst
|
|
144
159
|
|
|
145
160
|
```yaml
|
|
146
161
|
---
|
|
147
162
|
name: sql-analyst
|
|
148
|
-
description:
|
|
163
|
+
description: Database query optimization and data analysis
|
|
149
164
|
tools: Read, Bash, Grep
|
|
150
165
|
model: sonnet
|
|
151
166
|
---
|
|
152
167
|
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
1.
|
|
157
|
-
2.
|
|
158
|
-
3. SQL
|
|
159
|
-
4.
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
-
|
|
163
|
-
-
|
|
164
|
-
-
|
|
165
|
-
- NULL
|
|
166
|
-
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
1.
|
|
170
|
-
2.
|
|
171
|
-
3.
|
|
172
|
-
4.
|
|
168
|
+
You are a SQL optimization and data analysis expert.
|
|
169
|
+
|
|
170
|
+
Tasks to perform on invocation:
|
|
171
|
+
1. Identify data question or performance issue
|
|
172
|
+
2. Analyze related schema and indexes
|
|
173
|
+
3. Write/optimize SQL queries
|
|
174
|
+
4. Explain results clearly
|
|
175
|
+
|
|
176
|
+
Query Guidelines:
|
|
177
|
+
- Prefer explicit JOIN over subquery
|
|
178
|
+
- Consider index utilization
|
|
179
|
+
- Verify query plan with EXPLAIN
|
|
180
|
+
- Explicit NULL value handling
|
|
181
|
+
- Add LIMIT to exploration queries
|
|
182
|
+
|
|
183
|
+
Output Format:
|
|
184
|
+
1. **Query**: SQL with comments
|
|
185
|
+
2. **Explanation**: How and why it works
|
|
186
|
+
3. **Performance**: Index usage, expected cost
|
|
187
|
+
4. **Results**: Key findings
|
|
173
188
|
```
|
|
174
189
|
|
|
175
|
-
### Full
|
|
190
|
+
### Full Example: Explorer (Read-only)
|
|
176
191
|
|
|
177
192
|
```yaml
|
|
178
193
|
---
|
|
179
194
|
name: explorer
|
|
180
|
-
description:
|
|
195
|
+
description: Fast codebase exploration and understanding. Read-only.
|
|
181
196
|
tools: Read, Grep, Glob
|
|
182
197
|
model: haiku
|
|
183
198
|
---
|
|
184
199
|
|
|
185
|
-
|
|
200
|
+
You are a focused agent for fast codebase exploration.
|
|
186
201
|
|
|
187
|
-
|
|
188
|
-
1.
|
|
189
|
-
2.
|
|
190
|
-
3.
|
|
191
|
-
4.
|
|
192
|
-
5.
|
|
202
|
+
Tasks to perform on invocation:
|
|
203
|
+
1. Identify needed information
|
|
204
|
+
2. Search related files with Glob
|
|
205
|
+
3. Explore patterns with Grep
|
|
206
|
+
4. Read core sections
|
|
207
|
+
5. Summarize findings concisely
|
|
193
208
|
|
|
194
|
-
|
|
195
|
-
-
|
|
196
|
-
-
|
|
197
|
-
-
|
|
198
|
-
-
|
|
209
|
+
Exploration Strategy:
|
|
210
|
+
- Start with file structure overview
|
|
211
|
+
- Search by keyword/pattern
|
|
212
|
+
- Track imports and dependencies
|
|
213
|
+
- Identify entry points and main flow
|
|
199
214
|
|
|
200
|
-
|
|
201
|
-
-
|
|
202
|
-
-
|
|
203
|
-
-
|
|
215
|
+
Output Format:
|
|
216
|
+
- **Findings**: List of related files/locations
|
|
217
|
+
- **Summary**: 2-3 sentences of key findings
|
|
218
|
+
- **Details**: Code references if needed
|
|
204
219
|
|
|
205
|
-
|
|
220
|
+
No change suggestions (read-only).
|
|
206
221
|
```
|
|
207
222
|
|
|
208
|
-
###
|
|
209
|
-
|
|
210
|
-
|
|
|
211
|
-
|
|
212
|
-
| `debugger` |
|
|
213
|
-
| `test-runner` |
|
|
214
|
-
| `doc-writer` |
|
|
215
|
-
| `security-analyzer` |
|
|
216
|
-
| `perf-analyzer` |
|
|
217
|
-
| `refactorer` |
|
|
218
|
-
| `api-designer` | REST API
|
|
219
|
-
| `migration-specialist` |
|
|
220
|
-
| `dep-manager` |
|
|
221
|
-
| `git-operator` | Git
|
|
222
|
-
| `env-configurator` | Docker, CI/CD
|
|
223
|
-
| `type-checker` |
|
|
223
|
+
### Other Template Summary
|
|
224
|
+
|
|
225
|
+
| Name | Description | Tools | Focus |
|
|
226
|
+
|------|-------------|-------|-------|
|
|
227
|
+
| `debugger` | Error analysis and root cause identification | Read, Grep, Glob, Bash | Minimal fix |
|
|
228
|
+
| `test-runner` | Test execution and failure analysis | Read, Edit, Bash, Grep | Maintain coverage |
|
|
229
|
+
| `doc-writer` | Technical documentation writing | Read, Write, Glob | Include examples |
|
|
230
|
+
| `security-analyzer` | Security vulnerability scanning | Read, Grep, Glob, Bash | CVE check |
|
|
231
|
+
| `perf-analyzer` | Performance bottleneck identification | Read, Bash, Grep, Glob | Profiling |
|
|
232
|
+
| `refactorer` | Structure improvement (preserve function) | Read, Edit, MultiEdit, Grep, Glob | Incremental changes |
|
|
233
|
+
| `api-designer` | REST API design | Read, Write, Grep | REST rules |
|
|
234
|
+
| `migration-specialist` | Schema/code migration | Read, Write, Edit, Bash, Grep | Rollback strategy |
|
|
235
|
+
| `dep-manager` | Dependency analysis/update | Read, Edit, Bash, Grep | Security patches |
|
|
236
|
+
| `git-operator` | Git operation handling | Bash, Read | Safety check |
|
|
237
|
+
| `env-configurator` | Docker, CI/CD configuration | Read, Write, Edit, Bash | Environment variables |
|
|
238
|
+
| `type-checker` | Type error fixes | Read, Edit, Bash, Grep | Type safety |
|
|
224
239
|
|
|
225
240
|
</templates>
|
|
226
241
|
|
|
@@ -228,24 +243,24 @@ model: haiku
|
|
|
228
243
|
|
|
229
244
|
<workflow>
|
|
230
245
|
|
|
231
|
-
##
|
|
246
|
+
## Creation Procedure
|
|
232
247
|
|
|
233
|
-
|
|
|
248
|
+
| Step | Task | Tool |
|
|
234
249
|
|------|------|------|
|
|
235
|
-
| 1.
|
|
236
|
-
| 2.
|
|
237
|
-
| 3.
|
|
238
|
-
| 4.
|
|
239
|
-
| 5.
|
|
240
|
-
| 6.
|
|
250
|
+
| 1. Analyze | Identify user requirements (purpose, function, tools) | - |
|
|
251
|
+
| 2. Select | Choose similar template or design new structure | Read |
|
|
252
|
+
| 3. Customize | Write YAML + prompt | - |
|
|
253
|
+
| 4. Verify Directory | Confirm `.claude/agents/` exists | Bash |
|
|
254
|
+
| 5. Create File | Write `{name}.md` | Write |
|
|
255
|
+
| 6. Guide | Present path, invocation method, edit method | - |
|
|
241
256
|
|
|
242
|
-
###
|
|
257
|
+
### Execution Example
|
|
243
258
|
|
|
244
259
|
```bash
|
|
245
|
-
# 1.
|
|
260
|
+
# 1. Verify/create directory
|
|
246
261
|
mkdir -p .claude/agents
|
|
247
262
|
|
|
248
|
-
# 2.
|
|
263
|
+
# 2. Write file
|
|
249
264
|
cat > .claude/agents/{name}.md << 'EOF'
|
|
250
265
|
---
|
|
251
266
|
name: {name}
|
|
@@ -256,7 +271,7 @@ tools: {tools}
|
|
|
256
271
|
{system_prompt}
|
|
257
272
|
EOF
|
|
258
273
|
|
|
259
|
-
# 3.
|
|
274
|
+
# 3. Verify
|
|
260
275
|
ls -la .claude/agents/{name}.md
|
|
261
276
|
```
|
|
262
277
|
|
|
@@ -266,37 +281,37 @@ ls -la .claude/agents/{name}.md
|
|
|
266
281
|
|
|
267
282
|
<usage_guide>
|
|
268
283
|
|
|
269
|
-
##
|
|
284
|
+
## Usage Guide
|
|
270
285
|
|
|
271
|
-
###
|
|
286
|
+
### Invocation Method
|
|
272
287
|
|
|
273
288
|
```text
|
|
274
|
-
✅ @{name} #
|
|
275
|
-
✅ "
|
|
276
|
-
✅
|
|
289
|
+
✅ @{name} # Direct invocation
|
|
290
|
+
✅ "Review the code" # Natural language (description-based)
|
|
291
|
+
✅ Auto-detect by main agent # With proactive setting
|
|
277
292
|
```
|
|
278
293
|
|
|
279
|
-
###
|
|
294
|
+
### Modify
|
|
280
295
|
|
|
281
296
|
```bash
|
|
282
|
-
#
|
|
297
|
+
# Edit file directly
|
|
283
298
|
vim .claude/agents/{name}.md
|
|
284
299
|
|
|
285
|
-
#
|
|
300
|
+
# Or re-run agent-creator
|
|
286
301
|
```
|
|
287
302
|
|
|
288
|
-
###
|
|
303
|
+
### Delete
|
|
289
304
|
|
|
290
305
|
```bash
|
|
291
306
|
rm .claude/agents/{name}.md
|
|
292
307
|
```
|
|
293
308
|
|
|
294
|
-
###
|
|
309
|
+
### Team Sharing
|
|
295
310
|
|
|
296
311
|
```bash
|
|
297
|
-
# .claude/agents/
|
|
312
|
+
# Commit .claude/agents/ directory to git
|
|
298
313
|
git add .claude/agents/
|
|
299
|
-
git commit -m "feat: {name} agent
|
|
314
|
+
git commit -m "feat: add {name} agent"
|
|
300
315
|
```
|
|
301
316
|
|
|
302
317
|
</usage_guide>
|
|
@@ -305,18 +320,18 @@ git commit -m "feat: {name} agent 추가"
|
|
|
305
320
|
|
|
306
321
|
<best_practices>
|
|
307
322
|
|
|
308
|
-
##
|
|
323
|
+
## Best Practices
|
|
309
324
|
|
|
310
|
-
|
|
|
311
|
-
|
|
312
|
-
| ✅
|
|
313
|
-
| ✅
|
|
314
|
-
| ✅
|
|
315
|
-
| ✅
|
|
316
|
-
| ✅
|
|
317
|
-
| ❌ Task
|
|
318
|
-
| ❌
|
|
319
|
-
| ❌
|
|
325
|
+
| Practice | Description |
|
|
326
|
+
|----------|-------------|
|
|
327
|
+
| ✅ Single Responsibility | One agent for one role |
|
|
328
|
+
| ✅ Clear Trigger | Specify when to use in description |
|
|
329
|
+
| ✅ Minimal Tools | Include only needed tools (security, focus) |
|
|
330
|
+
| ✅ Appropriate Model | Fast task→haiku, complex→opus |
|
|
331
|
+
| ✅ Structured Output | Organized by priority/section |
|
|
332
|
+
| ❌ Task Tool | Never include |
|
|
333
|
+
| ❌ Tool Overload | Remove unnecessary tools |
|
|
334
|
+
| ❌ Vague Description | Specify concrete role |
|
|
320
335
|
|
|
321
336
|
</best_practices>
|
|
322
337
|
|
|
@@ -324,32 +339,32 @@ git commit -m "feat: {name} agent 추가"
|
|
|
324
339
|
|
|
325
340
|
<validation>
|
|
326
341
|
|
|
327
|
-
##
|
|
342
|
+
## Validation Checklist
|
|
328
343
|
|
|
329
|
-
|
|
344
|
+
Before creation:
|
|
330
345
|
|
|
331
346
|
```text
|
|
332
|
-
✅ YAML name:
|
|
333
|
-
✅ YAML description:
|
|
334
|
-
✅ tools: Task
|
|
335
|
-
✅
|
|
336
|
-
✅
|
|
337
|
-
✅
|
|
338
|
-
✅
|
|
339
|
-
✅
|
|
347
|
+
✅ YAML name: lowercase-hyphen format
|
|
348
|
+
✅ YAML description: specify invocation trigger
|
|
349
|
+
✅ tools: exclude Task, include only needed
|
|
350
|
+
✅ Role definition: one sentence, clear
|
|
351
|
+
✅ Immediate execution steps: specific actions
|
|
352
|
+
✅ Output format: structured
|
|
353
|
+
✅ Filename: {name}.md
|
|
354
|
+
✅ Save location: .claude/agents/
|
|
340
355
|
```
|
|
341
356
|
|
|
342
|
-
|
|
357
|
+
After creation:
|
|
343
358
|
|
|
344
359
|
```bash
|
|
345
|
-
#
|
|
346
|
-
test -f .claude/agents/{name}.md && echo "✅
|
|
360
|
+
# Verify file exists
|
|
361
|
+
test -f .claude/agents/{name}.md && echo "✅ Creation successful"
|
|
347
362
|
|
|
348
|
-
# YAML
|
|
363
|
+
# Verify YAML syntax
|
|
349
364
|
head -10 .claude/agents/{name}.md
|
|
350
365
|
|
|
351
|
-
#
|
|
352
|
-
# @{name}
|
|
366
|
+
# Quick test
|
|
367
|
+
# Invoke with @{name} to verify functionality
|
|
353
368
|
```
|
|
354
369
|
|
|
355
370
|
</validation>
|