.fyi
SkillsMCPPluginsSubagents

Browse by category

DevOps & CI/CD SkillsProductivity & Workflow SkillsOther SkillsProduct & Project Management SkillsDocumentation & Knowledge SkillsCode Review & Refactor SkillsBackend & APIs SkillsAgent Meta & Communication SkillsResearch SkillsSecurity SkillsUX UI & Design SkillsTesting & QA SkillsSee all →

Every Claude Code skill, MCP server, plugin and subagent in one directory. Searchable, comparable, and one command from installed. Live stats from GitHub, npm and PyPI.

We're on Product HuntYour agent's app storeCheck it out →
Agent SkillsMCP ServersPluginsSubagentsCoding Agents
CollectionsOfficial publishersGlossaryFAQBlogSearchSavedFeedback
PrivacyTermsllms.txtSitemap

made with ♥ · © 2026 aaaa.fyi

Independent project · real data from public registries

…/claude-code/agent-development
home/skills/anthropics/claude-code/agent-development
anthropics avatar

agent-development

byanthropics· 237 skills

Installs

16k

Stars

139k

Forks

22k

Category

Agent Meta & Communication

View on GitHub

TL;DR

This skill should be used when the user asks to "create an agent", "add an agent", "write a subagent", "agent frontmatter", "when to use description", "agent examples", "agent tools", "agent colors", "autonomous agent", or needs guidance on agent structure, system prompts, triggering conditions, or agent development best practices for Claude Code plugins.

How to install agent-development?

anthropics/claude-code/agent-development
$npx -y skills add anthropics/claude-code --skill agent-development

Installs into the current project.

›Prefer a prompt? Paste this to your agent

Use this skill

Run `npx skills use "https://github.com/anthropics/claude-code" --skill "anthropics/claude-code/agent-development"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.

Use the whole pack

Use the skills in "https://github.com/anthropics/claude-code" that are relevant to the current task. Run `npx skills add "https://github.com/anthropics/claude-code"` and select the relevant skills, then follow their instructions.

Files · 1

View on GitHub
SKILL.md
1# Agent Development for Claude Code Plugins
2 
3## Overview
4 
5Agents are autonomous subprocesses that handle complex, multi-step tasks independently. Understanding agent structure, triggering conditions, and system prompt design enables creating powerful autonomous capabilities.
6 
7**Key concepts:**
8- Agents are FOR autonomous work, commands are FOR user-initiated actions
9- Markdown file format with YAML frontmatter
10- Triggering via description field with examples
11- System prompt defines agent behavior
12- Model and color customization
13 
14## Agent File Structure
15 
16### Complete Format
17 
18```markdown
19---
20name: agent-identifier
21description: Use this agent when [triggering conditions]. Examples:
22 
23<example>
24Context: [Situation description]
25user: "[User request]"
26assistant: "[How assistant should respond and use this agent]"
27<commentary>
28[Why this agent should be triggered]
29</commentary>
30</example>
31 
32<example>
33[Additional example...]
34</example>
35 
36model: inherit
37color: blue
38tools: ["Read", "Write", "Grep"]
39---
40 
41You are [agent role description]...
42 
43**Your Core Responsibilities:**
441. [Responsibility 1]
452. [Responsibility 2]
46 
47**Analysis Process:**
48[Step-by-step workflow]
49 
50**Output Format:**
51[What to return]
52```
53 
54## Frontmatter Fields
55 
56### name (required)
57 
58Agent identifier used for namespacing and invocation.
59 
60**Format:** lowercase, numbers, hyphens only
61**Length:** 3-50 characters
62**Pattern:** Must start and end with alphanumeric
63 
64**Good examples:**
65- `code-reviewer`
66- `test-generator`
67- `api-docs-writer`
68- `security-analyzer`
69 
70**Bad examples:**
71- `helper` (too generic)
72- `-agent-` (starts/ends with hyphen)
73- `my_agent` (underscores not allowed)
74- `ag` (too short, < 3 chars)
75 
76### description (required)
77 
78Defines when Claude should trigger this agent. **This is the most critical field.**
79 
80**Must include:**
811. Triggering conditions ("Use this agent when...")
822. Multiple `<example>` blocks showing usage
833. Context, user request, and assistant response in each example
844. `<commentary>` explaining why agent triggers
85 
86**Format:**
87```
88Use this agent when [conditions]. Examples:
89 
90<example>
91Context: [Scenario description]
92user: "[What user says]"
93assistant: "[How Claude should respond]"
94<commentary>
95[Why this agent is appropriate]
96</commentary>
97</example>
98 
99[More examples...]
100```
101 
102**Best practices:**
103- Include 2-4 concrete examples
104- Show proactive and reactive triggering
105- Cover different phrasings of same intent
106- Explain reasoning in commentary
107- Be specific about when NOT to use the agent
108 
109### model (required)
110 
111Which model the agent should use.
112 
113**Options:**
114- `inherit` - Use same model as parent (recommended)
115- `sonnet` - Claude Sonnet (balanced)
116- `opus` - Claude Opus (most capable, expensive)
117- `haiku` - Claude Haiku (fast, cheap)
118 
119**Recommendation:** Use `inherit` unless agent needs specific model capabilities.
120 
121### color (required)
122 
123Visual identifier for agent in UI.
124 
125**Options:** `blue`, `cyan`, `green`, `yellow`, `magenta`, `red`
126 
127**Guidelines:**
128- Choose distinct colors for different agents in same plugin
129- Use consistent colors for similar agent types
130- Blue/cyan: Analysis, review
131- Green: Success-oriented tasks
132- Yellow: Caution, validation
133- Red: Critical, security
134- Magenta: Creative, generation
135 
136### tools (optional)
137 
138Restrict agent to specific tools.
139 
140**Format:** Array of tool names
141 
142```yaml
143tools: ["Read", "Write", "Grep", "Bash"]
144```
145 
146**Default:** If omitted, agent has access to all tools
147 
148**Best practice:** Limit tools to minimum needed (principle of least privilege)
149 
150**Common tool sets:**
151- Read-only analysis: `["Read", "Grep", "Glob"]`
152- Code generation: `["Read", "Write", "Grep"]`
153- Testing: `["Read", "Bash", "Grep"]`
154- Full access: Omit field or use `["*"]`
155 
156## System Prompt Design
157 
158The markdown body becomes the agent's system prompt. Write in second person, addressing the agent directly.
159 
160### Structure
161 
162**Standard template:**
163```markdown
164You are [role] specializing in [domain].
165 
166**Your Core Responsibilities:**
1671. [Primary responsibility]
1682. [Secondary responsibility]
1693. [Additional responsibilities...]
170 
171**Analysis Process:**
1721. [Step one]
1732. [Step two]
1743. [Step three]
175[...]
176 
177**Quality Standards:**
178- [Standard 1]
179- [Standard 2]
180 
181**Output Format:**
182Provide results in this format:
183- [What to include]
184- [How to structure]
185 
186**Edge Cases:**
187Handle these situations:
188- [Edge case 1]: [How to handle]
189- [Edge case 2]: [How to handle]
190```
191 
192### Best Practices
193 
194✅ **DO:**
195- Write in second person ("You are...", "You will...")
196- Be specific about responsibilities
197- Provide step-by-step process
198- Define output format
199- Include quality standards
200- Address edge cases
201- Keep under 10,000 characters
202 
203❌ **DON'T:**
204- Write in first person ("I am...", "I will...")
205- Be vague or generic
206- Omit process steps
207- Leave output format undefined
208- Skip quality guidance
209- Ignore error cases
210 
211## Creating Agents
212 
213### Method 1: AI-Assisted Generation
214 
215Use this prompt pattern (extracted from Claude Code):
216 
217```
218Create an agent configuration based on this request: "[YOUR DESCRIPTION]"
219 
220Requirements:
2211. Extract core intent and responsibilities
2222. Design expert persona for the domain
2233. Create comprehensive system prompt with:
224 - Clear behavioral boundaries
225 - Specific methodologies
226 - Edge case handling
227 - Output format
2284. Create identifier (lowercase, hyphens, 3-50 chars)
2295. Write description with triggering conditions
2306. Include 2-3 <example> blocks showing when to use
231 
232Return JSON with:
233{
234 "identifier": "agent-name",
235 "whenToUse": "Use this agent when... Examples: <example>...</example>",
236 "systemPrompt": "You are..."
237}
238```
239 
240Then convert to agent file format with frontmatter.
241 
242See `examples/agent-creation-prompt.md` for complete template.
243 
244### Method 2: Manual Creation
245 
2461. Choose agent identifier (3-50 chars, lowercase, hyphens)
2472. Write description with examples
2483. Select model (usually `inherit`)
2494. Choose color for visual identification
2505. Define tools (if restricting access)
2516. Write system prompt with structure above
2527. Save as `agents/agent-name.md`
253 
254## Validation Rules
255 
256### Identifier Validation
257 
258```
259✅ Valid: code-reviewer, test-gen, api-analyzer-v2
260❌ Invalid: ag (too short), -start (starts with hyphen), my_agent (underscore)
261```
262 
263**Rules:**
264- 3-50 characters
265- Lowercase letters, numbers, hyphens only
266- Must start and end with alphanumeric
267- No underscores, spaces, or special characters
268 
269### Description Validation
270 
271**Length:** 10-5,000 characters
272**Must include:** Triggering conditions and examples
273**Best:** 200-1,000 characters with 2-4 examples
274 
275### System Prompt Validation
276 
277**Length:** 20-10,000 characters
278**Best:** 500-3,000 characters
279**Structure:** Clear responsibilities, process, output format
280 
281## Agent Organization
282 
283### Plugin Agents Directory
284 
285```
286plugin-name/
287└── agents/
288 ├── analyzer.md
289 ├── reviewer.md
290 └── generator.md
291```
292 
293All `.md` files in `agents/` are auto-discovered.
294 
295### Namespacing
296 
297Agents are namespaced automatically:
298- Single plugin: `agent-name`
299- With subdirectories: `plugin:subdir:agent-name`
300 
301## Testing Agents
302 
303### Test Triggering
304 
305Create test scenarios to verify agent triggers correctly:
306 
3071. Write agent with specific triggering examples
3082. Use similar phrasing to examples in test
3093. Check Claude loads the agent
3104. Verify agent provides expected functionality
311 
312### Test System Prompt
313 
314Ensure system prompt is complete:
315 
3161. Give agent typical task
3172. Check it follows process steps
3183. Verify output format is correct
3194. Test edge cases mentioned in prompt
3205. Confirm quality standards are met
321 
322## Quick Reference
323 
324### Minimal Agent
325 
326```markdown
327---
328name: simple-agent
329description: Use this agent when... Examples: <example>...</example>
330model: inherit
331color: blue
332---
333 
334You are an agent that [does X].
335 
336Process:
3371. [Step 1]
3382. [Step 2]
339 
340Output: [What to provide]
341```
342 
343### Frontmatter Fields Summary
344 
345| Field | Required | Format | Example |
346|-------|----------|--------|---------|
347| name | Yes | lowercase-hyphens | code-reviewer |
348| description | Yes | Text + examples | Use when... <example>... |
349| model | Yes | inherit/sonnet/opus/haiku | inherit |
350| color | Yes | Color name | blue |
351| tools | No | Array of tool names | ["Read", "Grep"] |
352 
353### Best Practices
354 
355**DO:**
356- ✅ Include 2-4 concrete examples in description
357- ✅ Write specific triggering conditions
358- ✅ Use `inherit` for model unless specific need
359- ✅ Choose appropriate tools (least privilege)
360- ✅ Write clear, structured system prompts
361- ✅ Test agent triggering thoroughly
362 
363**DON'T:**
364- ❌ Use generic descriptions without examples
365- ❌ Omit triggering conditions
366- ❌ Give all agents same color
367- ❌ Grant unnecessary tool access
368- ❌ Write vague system prompts
369- ❌ Skip testing
370 
371## Additional Resources
372 
373### Reference Files
374 
375For detailed guidance, consult:
376 
377- **`references/system-prompt-design.md`** - Complete system prompt patterns
378- **`references/triggering-examples.md`** - Example formats and best practices
379- **`references/agent-creation-system-prompt.md`** - The exact prompt from Claude Code
380 
381### Example Files
382 
383Working examples in `examples/`:
384 
385- **`agent-creation-prompt.md`** - AI-assisted agent generation template
386- **`complete-agent-examples.md`** - Full agent examples for different use cases
387 
388### Utility Scripts
389 
390Development tools in `scripts/`:
391 
392- **`validate-agent.sh`** - Validate agent file structure
393- **`test-agent-trigger.sh`** - Test if agent triggers correctly
394 
395## Implementation Workflow
396 
397To create an agent for a plugin:
398 
3991. Define agent purpose and triggering conditions
4002. Choose creation method (AI-assisted or manual)
4013. Create `agents/agent-name.md` file
4024. Write frontmatter with all required fields
4035. Write system prompt following best practices
4046. Include 2-4 triggering examples in description
4057. Validate with `scripts/validate-agent.sh`
4068. Test triggering with real scenarios
4079. Document agent in plugin README
408 
409Focus on clear triggering conditions and comprehensive system prompts for autonomous operation.

Security

Passed

  • Gen Agent Trust Hubpass
  • Socketpass
  • Snykpass
  • Runlayerpass
  • ZeroLeakspass

Preview

anthropics/claude-codeanthropics/claude-code

$ npx -y skills add anthropics/claude-code --skill agent-development

▸ installing to .claude/skills…

✓ agent-development ready

Repoanthropics/claude-code
TypeSkills
CategoryAgent Meta & Communication
ForDeveloperArchitect
UpdatedJul 2026
License—
First seenJul 26, 2026

Tags

Skill

Related

6 picks
Type
  1. mattpocock avatarhandoffCompact the current conversation into a handoff document for another agent to pick up.SkillsJul 2026463k189k
  2. larksuite avatarlark-sharedUse for lark-cli setup/auth tasks: auth login/status/logout, user vs bot identity, business-domain permissions (--domain, including all/docs/drive), missing…SkillsJul 2026390k16k
  3. larksuite avatarlark-eventLark/Feishu real-time event listening / subscribing / consuming: stream events as NDJSON via `lark-cli event consume <EventKey>` (covers IM…SkillsJul 2026387k16k
  4. larksuite avatarlark-vc-agent飞书视频会议会中能力:用于让应用机器人真实加入或离开正在进行的会议,并读取当前身份可见的会中事件、发送会中文本消息或会中表情。适用于用户询问正在开的会议发生了什么、谁在发言、是否共享内容,或需要发现当前可读的进行中会议 ID。不负责已结束会议搜索、参会人快照、纪要、逐字稿或录制查询,这些使用 lark-vc 技能。SkillsJul 2026275k16k
  5. mattpocock avatarask-mattAsk which skill or flow fits your situation. A router over the skills in this repo.SkillsJul 2026248k189k
  6. getpaperclipai avatarpaperclip-create-agentCreate new agents in Paperclip with governance-aware hiring. Use when you need to inspect adapter configuration options, compare existing agent configs, draft…SkillsJul 2026242k7