[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6C7MX1J6ADW9ZEYWF12WZA2":3,"skill-same:01M6C7MX1J6ADW9ZEYWF12WZA2":101},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":13,"sourceHtmlUrl":17,"categories":18,"keywords":29,"publishedAt":46,"linkOnly":47,"markdownContent":48,"markdownBody":49,"frontMatter":50,"refName":52,"commitSha":53,"skillDirectory":54,"forksCount":55,"repositoryHtmlUrl":56,"repositoryHomepageUrl":13,"ownerHtmlUrl":57,"ownerBlogUrl":13,"ownerDescription":13,"updatedAt":58,"install":59,"resources":72},"01M6C7MX1J6ADW9ZEYWF12WZA2","agent-development","Claude智能体开发","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.","当用户要求“创建智能体”、“添加智能体”、“编写子智能体”、“智能体 frontmatter”、“何时使用描述”、“智能体示例”、“智能体工具”、“智能体颜色”、“自主智能体”，或需要关于 Claude Code 插件的智能体结构、系统提示词、触发条件或智能体开发最佳实践的指导时，应使用此技能。","xiaoyuge886\u002Faigc","xiaoyuge886","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F12636900?v=4","01M6C7J3YT6CQHYHZ29SF3VNBC",null,"01M6C7J42B85WJJ9BQGRDED804",200,"MIT","https:\u002F\u002Fgithub.com\u002Fxiaoyuge886\u002Faigc\u002Fblob\u002Fmain\u002Fplugins\u002Fclaude-plugins-official-main\u002Fplugins\u002Fplugin-dev\u002Fskills\u002Fagent-development\u002FSKILL.md",[19,24],{"categoryNo":20,"categoryName":21,"taxonomyType":22,"taxonomyTypeDesc":23},"01M8BRZZF9D7PVFN5MXSPWWD61","AI 工程师","PROFESSION","适用职业",{"categoryNo":25,"categoryName":26,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8BSAA4FBTWZP6X98STEHG99","智能体开发","SCENARIO","使用场景",[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],"development","agent development","create","code","best practices","plugins","examples","Tools","subagent","system","write","user","autonomous","claude code plugins","use","prompts","2026-11-10 10:12:30",false,"---\nname: agent-development\ndescription: 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.\nversion: 0.1.0\n---\n\n# Agent Development for Claude Code Plugins\n\n## Overview\n\nAgents are autonomous subprocesses that handle complex, multi-step tasks independently. Understanding agent structure, triggering conditions, and system prompt design enables creating powerful autonomous capabilities.\n\n**Key concepts:**\n- Agents are FOR autonomous work, commands are FOR user-initiated actions\n- Markdown file format with YAML frontmatter\n- Triggering via description field with examples\n- System prompt defines agent behavior\n- Model and color customization\n\n## Agent File Structure\n\n### Complete Format\n\n```markdown\n---\nname: agent-identifier\ndescription: Use this agent when [triggering conditions]. Examples:\n\n\u003Cexample>\nContext: [Situation description]\nuser: \"[User request]\"\nassistant: \"[How assistant should respond and use this agent]\"\n\u003Ccommentary>\n[Why this agent should be triggered]\n\u003C\u002Fcommentary>\n\u003C\u002Fexample>\n\n\u003Cexample>\n[Additional example...]\n\u003C\u002Fexample>\n\nmodel: inherit\ncolor: blue\ntools: [\"Read\", \"Write\", \"Grep\"]\n---\n\nYou are [agent role description]...\n\n**Your Core Responsibilities:**\n1. [Responsibility 1]\n2. [Responsibility 2]\n\n**Analysis Process:**\n[Step-by-step workflow]\n\n**Output Format:**\n[What to return]\n```\n\n## Frontmatter Fields\n\n### name (required)\n\nAgent identifier used for namespacing and invocation.\n\n**Format:** lowercase, numbers, hyphens only\n**Length:** 3-50 characters\n**Pattern:** Must start and end with alphanumeric\n\n**Good examples:**\n- `code-reviewer`\n- `test-generator`\n- `api-docs-writer`\n- `security-analyzer`\n\n**Bad examples:**\n- `helper` (too generic)\n- `-agent-` (starts\u002Fends with hyphen)\n- `my_agent` (underscores not allowed)\n- `ag` (too short, \u003C 3 chars)\n\n### description (required)\n\nDefines when Claude should trigger this agent. **This is the most critical field.**\n\n**Must include:**\n1. Triggering conditions (\"Use this agent when...\")\n2. Multiple `\u003Cexample>` blocks showing usage\n3. Context, user request, and assistant response in each example\n4. `\u003Ccommentary>` explaining why agent triggers\n\n**Format:**\n```\nUse this agent when [conditions]. Examples:\n\n\u003Cexample>\nContext: [Scenario description]\nuser: \"[What user says]\"\nassistant: \"[How Claude should respond]\"\n\u003Ccommentary>\n[Why this agent is appropriate]\n\u003C\u002Fcommentary>\n\u003C\u002Fexample>\n\n[More examples...]\n```\n\n**Best practices:**\n- Include 2-4 concrete examples\n- Show proactive and reactive triggering\n- Cover different phrasings of same intent\n- Explain reasoning in commentary\n- Be specific about when NOT to use the agent\n\n### model (required)\n\nWhich model the agent should use.\n\n**Options:**\n- `inherit` - Use same model as parent (recommended)\n- `sonnet` - Claude Sonnet (balanced)\n- `opus` - Claude Opus (most capable, expensive)\n- `haiku` - Claude Haiku (fast, cheap)\n\n**Recommendation:** Use `inherit` unless agent needs specific model capabilities.\n\n### color (required)\n\nVisual identifier for agent in UI.\n\n**Options:** `blue`, `cyan`, `green`, `yellow`, `magenta`, `red`\n\n**Guidelines:**\n- Choose distinct colors for different agents in same plugin\n- Use consistent colors for similar agent types\n- Blue\u002Fcyan: Analysis, review\n- Green: Success-oriented tasks\n- Yellow: Caution, validation\n- Red: Critical, security\n- Magenta: Creative, generation\n\n### tools (optional)\n\nRestrict agent to specific tools.\n\n**Format:** Array of tool names\n\n```yaml\ntools: [\"Read\", \"Write\", \"Grep\", \"Bash\"]\n```\n\n**Default:** If omitted, agent has access to all tools\n\n**Best practice:** Limit tools to minimum needed (principle of least privilege)\n\n**Common tool sets:**\n- Read-only analysis: `[\"Read\", \"Grep\", \"Glob\"]`\n- Code generation: `[\"Read\", \"Write\", \"Grep\"]`\n- Testing: `[\"Read\", \"Bash\", \"Grep\"]`\n- Full access: Omit field or use `[\"*\"]`\n\n## System Prompt Design\n\nThe markdown body becomes the agent's system prompt. Write in second person, addressing the agent directly.\n\n### Structure\n\n**Standard template:**\n```markdown\nYou are [role] specializing in [domain].\n\n**Your Core Responsibilities:**\n1. [Primary responsibility]\n2. [Secondary responsibility]\n3. [Additional responsibilities...]\n\n**Analysis Process:**\n1. [Step one]\n2. [Step two]\n3. [Step three]\n[...]\n\n**Quality Standards:**\n- [Standard 1]\n- [Standard 2]\n\n**Output Format:**\nProvide results in this format:\n- [What to include]\n- [How to structure]\n\n**Edge Cases:**\nHandle these situations:\n- [Edge case 1]: [How to handle]\n- [Edge case 2]: [How to handle]\n```\n\n### Best Practices\n\n✅ **DO:**\n- Write in second person (\"You are...\", \"You will...\")\n- Be specific about responsibilities\n- Provide step-by-step process\n- Define output format\n- Include quality standards\n- Address edge cases\n- Keep under 10,000 characters\n\n❌ **DON'T:**\n- Write in first person (\"I am...\", \"I will...\")\n- Be vague or generic\n- Omit process steps\n- Leave output format undefined\n- Skip quality guidance\n- Ignore error cases\n\n## Creating Agents\n\n### Method 1: AI-Assisted Generation\n\nUse this prompt pattern (extracted from Claude Code):\n\n```\nCreate an agent configuration based on this request: \"[YOUR DESCRIPTION]\"\n\nRequirements:\n1. Extract core intent and responsibilities\n2. Design expert persona for the domain\n3. Create comprehensive system prompt with:\n   - Clear behavioral boundaries\n   - Specific methodologies\n   - Edge case handling\n   - Output format\n4. Create identifier (lowercase, hyphens, 3-50 chars)\n5. Write description with triggering conditions\n6. Include 2-3 \u003Cexample> blocks showing when to use\n\nReturn JSON with:\n{\n  \"identifier\": \"agent-name\",\n  \"whenToUse\": \"Use this agent when... Examples: \u003Cexample>...\u003C\u002Fexample>\",\n  \"systemPrompt\": \"You are...\"\n}\n```\n\nThen convert to agent file format with frontmatter.\n\nSee `examples\u002Fagent-creation-prompt.md` for complete template.\n\n### Method 2: Manual Creation\n\n1. Choose agent identifier (3-50 chars, lowercase, hyphens)\n2. Write description with examples\n3. Select model (usually `inherit`)\n4. Choose color for visual identification\n5. Define tools (if restricting access)\n6. Write system prompt with structure above\n7. Save as `agents\u002Fagent-name.md`\n\n## Validation Rules\n\n### Identifier Validation\n\n```\n✅ Valid: code-reviewer, test-gen, api-analyzer-v2\n❌ Invalid: ag (too short), -start (starts with hyphen), my_agent (underscore)\n```\n\n**Rules:**\n- 3-50 characters\n- Lowercase letters, numbers, hyphens only\n- Must start and end with alphanumeric\n- No underscores, spaces, or special characters\n\n### Description Validation\n\n**Length:** 10-5,000 characters\n**Must include:** Triggering conditions and examples\n**Best:** 200-1,000 characters with 2-4 examples\n\n### System Prompt Validation\n\n**Length:** 20-10,000 characters\n**Best:** 500-3,000 characters\n**Structure:** Clear responsibilities, process, output format\n\n## Agent Organization\n\n### Plugin Agents Directory\n\n```\nplugin-name\u002F\n└── agents\u002F\n    ├── analyzer.md\n    ├── reviewer.md\n    └── generator.md\n```\n\nAll `.md` files in `agents\u002F` are auto-discovered.\n\n### Namespacing\n\nAgents are namespaced automatically:\n- Single plugin: `agent-name`\n- With subdirectories: `plugin:subdir:agent-name`\n\n## Testing Agents\n\n### Test Triggering\n\nCreate test scenarios to verify agent triggers correctly:\n\n1. Write agent with specific triggering examples\n2. Use similar phrasing to examples in test\n3. Check Claude loads the agent\n4. Verify agent provides expected functionality\n\n### Test System Prompt\n\nEnsure system prompt is complete:\n\n1. Give agent typical task\n2. Check it follows process steps\n3. Verify output format is correct\n4. Test edge cases mentioned in prompt\n5. Confirm quality standards are met\n\n## Quick Reference\n\n### Minimal Agent\n\n```markdown\n---\nname: simple-agent\ndescription: Use this agent when... Examples: \u003Cexample>...\u003C\u002Fexample>\nmodel: inherit\ncolor: blue\n---\n\nYou are an agent that [does X].\n\nProcess:\n1. [Step 1]\n2. [Step 2]\n\nOutput: [What to provide]\n```\n\n### Frontmatter Fields Summary\n\n| Field | Required | Format | Example |\n|-------|----------|--------|---------|\n| name | Yes | lowercase-hyphens | code-reviewer |\n| description | Yes | Text + examples | Use when... \u003Cexample>... |\n| model | Yes | inherit\u002Fsonnet\u002Fopus\u002Fhaiku | inherit |\n| color | Yes | Color name | blue |\n| tools | No | Array of tool names | [\"Read\", \"Grep\"] |\n\n### Best Practices\n\n**DO:**\n- ✅ Include 2-4 concrete examples in description\n- ✅ Write specific triggering conditions\n- ✅ Use `inherit` for model unless specific need\n- ✅ Choose appropriate tools (least privilege)\n- ✅ Write clear, structured system prompts\n- ✅ Test agent triggering thoroughly\n\n**DON'T:**\n- ❌ Use generic descriptions without examples\n- ❌ Omit triggering conditions\n- ❌ Give all agents same color\n- ❌ Grant unnecessary tool access\n- ❌ Write vague system prompts\n- ❌ Skip testing\n\n## Additional Resources\n\n### Reference Files\n\nFor detailed guidance, consult:\n\n- **`references\u002Fsystem-prompt-design.md`** - Complete system prompt patterns\n- **`references\u002Ftriggering-examples.md`** - Example formats and best practices\n- **`references\u002Fagent-creation-system-prompt.md`** - The exact prompt from Claude Code\n\n### Example Files\n\nWorking examples in `examples\u002F`:\n\n- **`agent-creation-prompt.md`** - AI-assisted agent generation template\n- **`complete-agent-examples.md`** - Full agent examples for different use cases\n\n### Utility Scripts\n\nDevelopment tools in `scripts\u002F`:\n\n- **`validate-agent.sh`** - Validate agent file structure\n- **`test-agent-trigger.sh`** - Test if agent triggers correctly\n\n## Implementation Workflow\n\nTo create an agent for a plugin:\n\n1. Define agent purpose and triggering conditions\n2. Choose creation method (AI-assisted or manual)\n3. Create `agents\u002Fagent-name.md` file\n4. Write frontmatter with all required fields\n5. Write system prompt following best practices\n6. Include 2-4 triggering examples in description\n7. Validate with `scripts\u002Fvalidate-agent.sh`\n8. Test triggering with real scenarios\n9. Document agent in plugin README\n\nFocus on clear triggering conditions and comprehensive system prompts for autonomous operation.\n","# Agent Development for Claude Code Plugins\n\n## Overview\n\nAgents are autonomous subprocesses that handle complex, multi-step tasks independently. Understanding agent structure, triggering conditions, and system prompt design enables creating powerful autonomous capabilities.\n\n**Key concepts:**\n- Agents are FOR autonomous work, commands are FOR user-initiated actions\n- Markdown file format with YAML frontmatter\n- Triggering via description field with examples\n- System prompt defines agent behavior\n- Model and color customization\n\n## Agent File Structure\n\n### Complete Format\n\n```markdown\n---\nname: agent-identifier\ndescription: Use this agent when [triggering conditions]. Examples:\n\n\u003Cexample>\nContext: [Situation description]\nuser: \"[User request]\"\nassistant: \"[How assistant should respond and use this agent]\"\n\u003Ccommentary>\n[Why this agent should be triggered]\n\u003C\u002Fcommentary>\n\u003C\u002Fexample>\n\n\u003Cexample>\n[Additional example...]\n\u003C\u002Fexample>\n\nmodel: inherit\ncolor: blue\ntools: [\"Read\", \"Write\", \"Grep\"]\n---\n\nYou are [agent role description]...\n\n**Your Core Responsibilities:**\n1. [Responsibility 1]\n2. [Responsibility 2]\n\n**Analysis Process:**\n[Step-by-step workflow]\n\n**Output Format:**\n[What to return]\n```\n\n## Frontmatter Fields\n\n### name (required)\n\nAgent identifier used for namespacing and invocation.\n\n**Format:** lowercase, numbers, hyphens only\n**Length:** 3-50 characters\n**Pattern:** Must start and end with alphanumeric\n\n**Good examples:**\n- `code-reviewer`\n- `test-generator`\n- `api-docs-writer`\n- `security-analyzer`\n\n**Bad examples:**\n- `helper` (too generic)\n- `-agent-` (starts\u002Fends with hyphen)\n- `my_agent` (underscores not allowed)\n- `ag` (too short, \u003C 3 chars)\n\n### description (required)\n\nDefines when Claude should trigger this agent. **This is the most critical field.**\n\n**Must include:**\n1. Triggering conditions (\"Use this agent when...\")\n2. Multiple `\u003Cexample>` blocks showing usage\n3. Context, user request, and assistant response in each example\n4. `\u003Ccommentary>` explaining why agent triggers\n\n**Format:**\n```\nUse this agent when [conditions]. Examples:\n\n\u003Cexample>\nContext: [Scenario description]\nuser: \"[What user says]\"\nassistant: \"[How Claude should respond]\"\n\u003Ccommentary>\n[Why this agent is appropriate]\n\u003C\u002Fcommentary>\n\u003C\u002Fexample>\n\n[More examples...]\n```\n\n**Best practices:**\n- Include 2-4 concrete examples\n- Show proactive and reactive triggering\n- Cover different phrasings of same intent\n- Explain reasoning in commentary\n- Be specific about when NOT to use the agent\n\n### model (required)\n\nWhich model the agent should use.\n\n**Options:**\n- `inherit` - Use same model as parent (recommended)\n- `sonnet` - Claude Sonnet (balanced)\n- `opus` - Claude Opus (most capable, expensive)\n- `haiku` - Claude Haiku (fast, cheap)\n\n**Recommendation:** Use `inherit` unless agent needs specific model capabilities.\n\n### color (required)\n\nVisual identifier for agent in UI.\n\n**Options:** `blue`, `cyan`, `green`, `yellow`, `magenta`, `red`\n\n**Guidelines:**\n- Choose distinct colors for different agents in same plugin\n- Use consistent colors for similar agent types\n- Blue\u002Fcyan: Analysis, review\n- Green: Success-oriented tasks\n- Yellow: Caution, validation\n- Red: Critical, security\n- Magenta: Creative, generation\n\n### tools (optional)\n\nRestrict agent to specific tools.\n\n**Format:** Array of tool names\n\n```yaml\ntools: [\"Read\", \"Write\", \"Grep\", \"Bash\"]\n```\n\n**Default:** If omitted, agent has access to all tools\n\n**Best practice:** Limit tools to minimum needed (principle of least privilege)\n\n**Common tool sets:**\n- Read-only analysis: `[\"Read\", \"Grep\", \"Glob\"]`\n- Code generation: `[\"Read\", \"Write\", \"Grep\"]`\n- Testing: `[\"Read\", \"Bash\", \"Grep\"]`\n- Full access: Omit field or use `[\"*\"]`\n\n## System Prompt Design\n\nThe markdown body becomes the agent's system prompt. Write in second person, addressing the agent directly.\n\n### Structure\n\n**Standard template:**\n```markdown\nYou are [role] specializing in [domain].\n\n**Your Core Responsibilities:**\n1. [Primary responsibility]\n2. [Secondary responsibility]\n3. [Additional responsibilities...]\n\n**Analysis Process:**\n1. [Step one]\n2. [Step two]\n3. [Step three]\n[...]\n\n**Quality Standards:**\n- [Standard 1]\n- [Standard 2]\n\n**Output Format:**\nProvide results in this format:\n- [What to include]\n- [How to structure]\n\n**Edge Cases:**\nHandle these situations:\n- [Edge case 1]: [How to handle]\n- [Edge case 2]: [How to handle]\n```\n\n### Best Practices\n\n✅ **DO:**\n- Write in second person (\"You are...\", \"You will...\")\n- Be specific about responsibilities\n- Provide step-by-step process\n- Define output format\n- Include quality standards\n- Address edge cases\n- Keep under 10,000 characters\n\n❌ **DON'T:**\n- Write in first person (\"I am...\", \"I will...\")\n- Be vague or generic\n- Omit process steps\n- Leave output format undefined\n- Skip quality guidance\n- Ignore error cases\n\n## Creating Agents\n\n### Method 1: AI-Assisted Generation\n\nUse this prompt pattern (extracted from Claude Code):\n\n```\nCreate an agent configuration based on this request: \"[YOUR DESCRIPTION]\"\n\nRequirements:\n1. Extract core intent and responsibilities\n2. Design expert persona for the domain\n3. Create comprehensive system prompt with:\n   - Clear behavioral boundaries\n   - Specific methodologies\n   - Edge case handling\n   - Output format\n4. Create identifier (lowercase, hyphens, 3-50 chars)\n5. Write description with triggering conditions\n6. Include 2-3 \u003Cexample> blocks showing when to use\n\nReturn JSON with:\n{\n  \"identifier\": \"agent-name\",\n  \"whenToUse\": \"Use this agent when... Examples: \u003Cexample>...\u003C\u002Fexample>\",\n  \"systemPrompt\": \"You are...\"\n}\n```\n\nThen convert to agent file format with frontmatter.\n\nSee `examples\u002Fagent-creation-prompt.md` for complete template.\n\n### Method 2: Manual Creation\n\n1. Choose agent identifier (3-50 chars, lowercase, hyphens)\n2. Write description with examples\n3. Select model (usually `inherit`)\n4. Choose color for visual identification\n5. Define tools (if restricting access)\n6. Write system prompt with structure above\n7. Save as `agents\u002Fagent-name.md`\n\n## Validation Rules\n\n### Identifier Validation\n\n```\n✅ Valid: code-reviewer, test-gen, api-analyzer-v2\n❌ Invalid: ag (too short), -start (starts with hyphen), my_agent (underscore)\n```\n\n**Rules:**\n- 3-50 characters\n- Lowercase letters, numbers, hyphens only\n- Must start and end with alphanumeric\n- No underscores, spaces, or special characters\n\n### Description Validation\n\n**Length:** 10-5,000 characters\n**Must include:** Triggering conditions and examples\n**Best:** 200-1,000 characters with 2-4 examples\n\n### System Prompt Validation\n\n**Length:** 20-10,000 characters\n**Best:** 500-3,000 characters\n**Structure:** Clear responsibilities, process, output format\n\n## Agent Organization\n\n### Plugin Agents Directory\n\n```\nplugin-name\u002F\n└── agents\u002F\n    ├── analyzer.md\n    ├── reviewer.md\n    └── generator.md\n```\n\nAll `.md` files in `agents\u002F` are auto-discovered.\n\n### Namespacing\n\nAgents are namespaced automatically:\n- Single plugin: `agent-name`\n- With subdirectories: `plugin:subdir:agent-name`\n\n## Testing Agents\n\n### Test Triggering\n\nCreate test scenarios to verify agent triggers correctly:\n\n1. Write agent with specific triggering examples\n2. Use similar phrasing to examples in test\n3. Check Claude loads the agent\n4. Verify agent provides expected functionality\n\n### Test System Prompt\n\nEnsure system prompt is complete:\n\n1. Give agent typical task\n2. Check it follows process steps\n3. Verify output format is correct\n4. Test edge cases mentioned in prompt\n5. Confirm quality standards are met\n\n## Quick Reference\n\n### Minimal Agent\n\n```markdown\n---\nname: simple-agent\ndescription: Use this agent when... Examples: \u003Cexample>...\u003C\u002Fexample>\nmodel: inherit\ncolor: blue\n---\n\nYou are an agent that [does X].\n\nProcess:\n1. [Step 1]\n2. [Step 2]\n\nOutput: [What to provide]\n```\n\n### Frontmatter Fields Summary\n\n| Field | Required | Format | Example |\n|-------|----------|--------|---------|\n| name | Yes | lowercase-hyphens | code-reviewer |\n| description | Yes | Text + examples | Use when... \u003Cexample>... |\n| model | Yes | inherit\u002Fsonnet\u002Fopus\u002Fhaiku | inherit |\n| color | Yes | Color name | blue |\n| tools | No | Array of tool names | [\"Read\", \"Grep\"] |\n\n### Best Practices\n\n**DO:**\n- ✅ Include 2-4 concrete examples in description\n- ✅ Write specific triggering conditions\n- ✅ Use `inherit` for model unless specific need\n- ✅ Choose appropriate tools (least privilege)\n- ✅ Write clear, structured system prompts\n- ✅ Test agent triggering thoroughly\n\n**DON'T:**\n- ❌ Use generic descriptions without examples\n- ❌ Omit triggering conditions\n- ❌ Give all agents same color\n- ❌ Grant unnecessary tool access\n- ❌ Write vague system prompts\n- ❌ Skip testing\n\n## Additional Resources\n\n### Reference Files\n\nFor detailed guidance, consult:\n\n- **`references\u002Fsystem-prompt-design.md`** - Complete system prompt patterns\n- **`references\u002Ftriggering-examples.md`** - Example formats and best practices\n- **`references\u002Fagent-creation-system-prompt.md`** - The exact prompt from Claude Code\n\n### Example Files\n\nWorking examples in `examples\u002F`:\n\n- **`agent-creation-prompt.md`** - AI-assisted agent generation template\n- **`complete-agent-examples.md`** - Full agent examples for different use cases\n\n### Utility Scripts\n\nDevelopment tools in `scripts\u002F`:\n\n- **`validate-agent.sh`** - Validate agent file structure\n- **`test-agent-trigger.sh`** - Test if agent triggers correctly\n\n## Implementation Workflow\n\nTo create an agent for a plugin:\n\n1. Define agent purpose and triggering conditions\n2. Choose creation method (AI-assisted or manual)\n3. Create `agents\u002Fagent-name.md` file\n4. Write frontmatter with all required fields\n5. Write system prompt following best practices\n6. Include 2-4 triggering examples in description\n7. Validate with `scripts\u002Fvalidate-agent.sh`\n8. Test triggering with real scenarios\n9. Document agent in plugin README\n\nFocus on clear triggering conditions and comprehensive system prompts for autonomous operation.\n",{"name":5,"version":51,"description":7},"0.1.0","main","e970014d895eae2572d8c434d79f2c6acea22417","plugins\u002Fclaude-plugins-official-main\u002Fplugins\u002Fplugin-dev\u002Fskills\u002Fagent-development",20,"https:\u002F\u002Fgithub.com\u002Fxiaoyuge886\u002Faigc","https:\u002F\u002Fgithub.com\u002Fxiaoyuge886","2026-07-14 17:19:42",{"source":9,"skillName":5,"commands":60,"prompt":70,"zipAvailable":71},[61,64,67],{"tool":62,"command":63},"npx","npx skills add xiaoyuge886\u002Faigc --skill agent-development",{"tool":65,"command":66},"bunx","bunx skills add xiaoyuge886\u002Faigc --skill agent-development",{"tool":68,"command":69},"pnpm","pnpm dlx skills add xiaoyuge886\u002Faigc --skill agent-development","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fxiaoyuge886\u002Faigc\u002Fblob\u002Fmain\u002Fplugins\u002Fclaude-plugins-official-main\u002Fplugins\u002Fplugin-dev\u002Fskills\u002Fagent-development\u002FSKILL.md",true,[73,79,83,87,91,95],{"path":74,"resourceType":75,"resourceTypeDesc":76,"sizeBytes":77,"sourceHtmlUrl":78},"examples\u002Fagent-creation-prompt.md","REFERENCE","参考文档",9390,"https:\u002F\u002Fgithub.com\u002Fxiaoyuge886\u002Faigc\u002Fblob\u002Fmain\u002Fplugins\u002Fclaude-plugins-official-main\u002Fplugins\u002Fplugin-dev\u002Fskills\u002Fagent-development\u002Fexamples\u002Fagent-creation-prompt.md",{"path":80,"resourceType":75,"resourceTypeDesc":76,"sizeBytes":81,"sourceHtmlUrl":82},"examples\u002Fcomplete-agent-examples.md",14117,"https:\u002F\u002Fgithub.com\u002Fxiaoyuge886\u002Faigc\u002Fblob\u002Fmain\u002Fplugins\u002Fclaude-plugins-official-main\u002Fplugins\u002Fplugin-dev\u002Fskills\u002Fagent-development\u002Fexamples\u002Fcomplete-agent-examples.md",{"path":84,"resourceType":75,"resourceTypeDesc":76,"sizeBytes":85,"sourceHtmlUrl":86},"references\u002Fagent-creation-system-prompt.md",8879,"https:\u002F\u002Fgithub.com\u002Fxiaoyuge886\u002Faigc\u002Fblob\u002Fmain\u002Fplugins\u002Fclaude-plugins-official-main\u002Fplugins\u002Fplugin-dev\u002Fskills\u002Fagent-development\u002Freferences\u002Fagent-creation-system-prompt.md",{"path":88,"resourceType":75,"resourceTypeDesc":76,"sizeBytes":89,"sourceHtmlUrl":90},"references\u002Fsystem-prompt-design.md",9998,"https:\u002F\u002Fgithub.com\u002Fxiaoyuge886\u002Faigc\u002Fblob\u002Fmain\u002Fplugins\u002Fclaude-plugins-official-main\u002Fplugins\u002Fplugin-dev\u002Fskills\u002Fagent-development\u002Freferences\u002Fsystem-prompt-design.md",{"path":92,"resourceType":75,"resourceTypeDesc":76,"sizeBytes":93,"sourceHtmlUrl":94},"references\u002Ftriggering-examples.md",11613,"https:\u002F\u002Fgithub.com\u002Fxiaoyuge886\u002Faigc\u002Fblob\u002Fmain\u002Fplugins\u002Fclaude-plugins-official-main\u002Fplugins\u002Fplugin-dev\u002Fskills\u002Fagent-development\u002Freferences\u002Ftriggering-examples.md",{"path":96,"resourceType":97,"resourceTypeDesc":98,"sizeBytes":99,"sourceHtmlUrl":100},"scripts\u002Fvalidate-agent.sh","SCRIPT","脚本",5796,"https:\u002F\u002Fgithub.com\u002Fxiaoyuge886\u002Faigc\u002Fblob\u002Fmain\u002Fplugins\u002Fclaude-plugins-official-main\u002Fplugins\u002Fplugin-dev\u002Fskills\u002Fagent-development\u002Fscripts\u002Fvalidate-agent.sh",[102,126,144,161,187,207],{"skillNo":103,"name":104,"nameZh":105,"description":106,"descriptionZh":107,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":13,"sourceHtmlUrl":108,"categories":109,"keywords":114,"publishedAt":46},"01M6C7NPNK167QMPERW14AY55J","skill-creator","技能创建与优化","Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, update or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.","创建新技能、修改和改进现有技能，并衡量技能性能。当用户想要从零开始创建技能、更新或优化现有技能、运行评估（evals）来测试技能、通过方差分析对技能性能进行基准测试，或优化技能描述以提高触发准确性时使用。","https:\u002F\u002Fgithub.com\u002Fxiaoyuge886\u002Faigc\u002Fblob\u002Fmain\u002Fplugins\u002Fclaude-plugins-official-main\u002Fplugins\u002Fskill-creator\u002Fskills\u002Fskill-creator\u002FSKILL.md",[110,113],{"categoryNo":111,"categoryName":112,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8BRN0CV1NMDZ5TEJX1GVM29","插件与技能管理",{"categoryNo":20,"categoryName":21,"taxonomyType":22,"taxonomyTypeDesc":23},[115,116,117,44,118,119,120,121,122,32,123,124,125],"skill creator","variance analysis","evals","improve","analysis","benchmark","update","run","test","run evals","performance",{"skillNo":127,"name":128,"nameZh":129,"description":130,"descriptionZh":130,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":13,"sourceHtmlUrl":131,"categories":132,"keywords":139,"publishedAt":46},"01M6C7NKXRM77AMYXSQCX8S15A","investment-due-diligence-report","投资尽调报告生成","投资尽调报告专业生成工具。当用户需要撰写投资尽调报告、尽职调查报告、投资分析报告时使用此skill。支持处理Excel财务数据、PDF文档等多种格式数据源，自动生成包含执行摘要、业务分析、财务分析、风险提示、投资建议等核心章节的专业报告。无论用户明确要求\"写报告\"还是提到\"分析投资标的\"、\"评估项目\"、\"做DD\"等相关需求时，都应使用此skill。","https:\u002F\u002Fgithub.com\u002Fxiaoyuge886\u002Faigc\u002Fblob\u002Fmain\u002Fplugins\u002Fclaude-plugins-official-main\u002Fplugins\u002Fskill-creator\u002Fskills\u002Finvestment-due-diligence-report\u002FSKILL.md",[133,136],{"categoryNo":134,"categoryName":135,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8BTV4QBQYRS1HWEVGR64N4J","金融投资分析",{"categoryNo":137,"categoryName":138,"taxonomyType":22,"taxonomyTypeDesc":23},"01M8BTV4RBGF5SFPS4M35EM7YQ","金融分析师",[140,141,142,143],"report","investment due diligence report","生成","文档",{"skillNo":145,"name":146,"nameZh":147,"description":148,"descriptionZh":149,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":13,"sourceHtmlUrl":150,"categories":151,"keywords":156,"publishedAt":46},"01M6C7NGS2K1NZQ3PR3GM7VMWT","skill-development","Claude 技能开发与创建","This skill should be used when the user wants to \"create a skill\", \"add a skill to plugin\", \"write a new skill\", \"improve skill description\", \"organize skill content\", or needs guidance on skill structure, progressive disclosure, or skill development best practices for Claude Code plugins.","当用户想要\"创建技能\"、\"向插件添加技能\"、\"编写新技能\"、\"改进技能描述\"、\"组织技能内容\"，或需要有关技能结构、渐进式披露或 Claude Code 插件技能开发最佳实践的指导时，应使用此技能。","https:\u002F\u002Fgithub.com\u002Fxiaoyuge886\u002Faigc\u002Fblob\u002Fmain\u002Fplugins\u002Fclaude-plugins-official-main\u002Fplugins\u002Fplugin-dev\u002Fskills\u002Fskill-development\u002FSKILL.md",[152,155],{"categoryNo":153,"categoryName":154,"taxonomyType":22,"taxonomyTypeDesc":23},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师",{"categoryNo":111,"categoryName":112,"taxonomyType":27,"taxonomyTypeDesc":28},[30,157,34,158,35,159,33,32,41,160,118,43,40],"skill development","improve skill","content","plugin",{"skillNo":162,"name":163,"nameZh":164,"description":165,"descriptionZh":166,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":13,"sourceHtmlUrl":167,"categories":168,"keywords":171,"publishedAt":46},"01M6C7NDRYM015B9B6T4YHY3NF","plugin-structure","Claude 插件结构搭建","This skill should be used when the user asks to \"create a plugin\", \"scaffold a plugin\", \"understand plugin structure\", \"organize plugin components\", \"set up plugin.json\", \"use ${CLAUDE_PLUGIN_ROOT}\", \"add commands\u002Fagents\u002Fskills\u002Fhooks\", \"configure auto-discovery\", or needs guidance on plugin directory layout, manifest configuration, component organization, file naming conventions, or Claude Code plugin architecture best practices.","当用户要求\"创建插件\"、\"搭建插件框架\"、\"理解插件结构\"、\"组织插件组件\"、\"设置 plugin.json\"、\"使用 ${CLAUDE_PLUGIN_ROOT}\"、\"添加命令\u002F智能体\u002F技能\u002F钩子\"、\"配置自动发现\"，或需要有关插件目录布局、清单配置、组件组织、文件命名规范或 Claude Code 插件架构最佳实践的指导时，应使用此技能。","https:\u002F\u002Fgithub.com\u002Fxiaoyuge886\u002Faigc\u002Fblob\u002Fmain\u002Fplugins\u002Fclaude-plugins-official-main\u002Fplugins\u002Fplugin-dev\u002Fskills\u002Fplugin-structure\u002FSKILL.md",[169,170],{"categoryNo":153,"categoryName":154,"taxonomyType":22,"taxonomyTypeDesc":23},{"categoryNo":111,"categoryName":112,"taxonomyType":27,"taxonomyTypeDesc":28},[160,172,173,174,44,175,176,177,178,179,180,181,182,34,33,32,183,184,185,186],"Plugin Structure","plugin architecture","file naming conventions","auto","up","hooks","SET","components","discovery","manifest","file","architecture","component","configure","claude code plugin",{"skillNo":188,"name":189,"nameZh":190,"description":191,"descriptionZh":192,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":13,"sourceHtmlUrl":193,"categories":194,"keywords":197,"publishedAt":46},"01M6C7NAM6KNC9NT147RJ41V2N","plugin-settings","插件配置与状态管理","This skill should be used when the user asks about \"plugin settings\", \"store plugin configuration\", \"user-configurable plugin\", \".local.md files\", \"plugin state files\", \"read YAML frontmatter\", \"per-project plugin settings\", or wants to make plugin behavior configurable. Documents the .claude\u002Fplugin-name.local.md pattern for storing plugin-specific configuration with YAML frontmatter and markdown content.","当用户询问“插件设置”、“存储插件配置”、“用户可配置插件”、“.local.md 文件”、“插件状态文件”、“读取 YAML frontmatter”、“按项目划分的插件设置”，或希望让插件行为可配置时，应使用本技能。本技能介绍 .claude\u002Fplugin-name.local.md 模式，用于通过 YAML frontmatter 和 markdown 内容存储插件专属配置。","https:\u002F\u002Fgithub.com\u002Fxiaoyuge886\u002Faigc\u002Fblob\u002Fmain\u002Fplugins\u002Fclaude-plugins-official-main\u002Fplugins\u002Fplugin-dev\u002Fskills\u002Fplugin-settings\u002FSKILL.md",[195,196],{"categoryNo":153,"categoryName":154,"taxonomyType":22,"taxonomyTypeDesc":23},{"categoryNo":111,"categoryName":112,"taxonomyType":27,"taxonomyTypeDesc":28},[198,160,199,200,201,41,202,203,204,205,206,159],"Plugin Settings","settings","documents","state","behavior","read","markdown content","markdown","yaml",{"skillNo":208,"name":209,"nameZh":210,"description":211,"descriptionZh":212,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":13,"sourceHtmlUrl":213,"categories":214,"keywords":217,"publishedAt":46},"01M6C7N79Y8P14GGCJRCM706EK","mcp-integration","MCP 服务器集成配置","This skill should be used when the user asks to \"add MCP server\", \"integrate MCP\", \"configure MCP in plugin\", \"use .mcp.json\", \"set up Model Context Protocol\", \"connect external service\", mentions \"${CLAUDE_PLUGIN_ROOT} with MCP\", or discusses MCP server types (SSE, stdio, HTTP, WebSocket). Provides comprehensive guidance for integrating Model Context Protocol servers into Claude Code plugins for external tool and service integration.","当用户要求“添加 MCP 服务器”、“集成 MCP”、“在插件中配置 MCP”、“使用 .mcp.json”、“设置 Model Context Protocol”、“连接外部服务”，提及“在 MCP 中使用 ${CLAUDE_PLUGIN_ROOT}”，或讨论 MCP 服务器类型（SSE、stdio、HTTP、WebSocket）时，应使用本技能。本技能提供将 Model Context Protocol 服务器集成到 Claude Code 插件中的全面指导，以实现外部工具和服务集成。","https:\u002F\u002Fgithub.com\u002Fxiaoyuge886\u002Faigc\u002Fblob\u002Fmain\u002Fplugins\u002Fclaude-plugins-official-main\u002Fplugins\u002Fplugin-dev\u002Fskills\u002Fmcp-integration\u002FSKILL.md",[215,216],{"categoryNo":153,"categoryName":154,"taxonomyType":22,"taxonomyTypeDesc":23},{"categoryNo":111,"categoryName":112,"taxonomyType":27,"taxonomyTypeDesc":28},[218,219,220,185,176,221,44,43,222,223,224,225,226,178,227,33,228,229,230,231],"integration","MCP","MCP Integration","integrate","context","add mcp","model","tool","websocket","server","connect","http","model context protocol","mcp server"]