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