技能模板示例与演示
example-skill
当用户请求"演示技能"、"展示技能格式"、"创建技能模板"或讨论技能开发模式时使用此技能。提供创建 Claude Code 插件技能的参考模板。
- License 许可
- MIT
- 所属仓库
- xiaoyuge886/aigc
- 最近更新
- 2026-07-14
- Stars
- ★ 200
- Forks
- 20
01 前言 Front Matter
- name
- example-skill
- version
- 1.0.0
- description
- This skill should be used when the user asks to "demonstrate skills", "show skill format", "create a skill template", or discusses skill development patterns. Provides a reference template for creating Claude Code plugin skills.
03 SKILL.md 正文
Example Skill
This skill demonstrates the structure and format for Claude Code plugin skills.
Overview
Skills are model-invoked capabilities that Claude autonomously uses based on task context. Unlike commands (user-invoked) or agents (spawned by Claude), skills provide contextual guidance that Claude incorporates into its responses.
When This Skill Applies
This skill activates when the user's request involves:
- Creating or understanding plugin skills
- Skill template or reference needs
- Skill development patterns
Skill Structure
Required Files
skills/
└── skill-name/
└── SKILL.md # Main skill definition (required)
Optional Supporting Files
skills/
└── skill-name/
├── SKILL.md # Main skill definition
├── README.md # Additional documentation
├── references/ # Reference materials
│ └── patterns.md
├── examples/ # Example files
│ └── sample.md
└── scripts/ # Helper scripts
└── helper.sh
Frontmatter Options
Skills support these frontmatter fields:
- name (required): Skill identifier
- description (required): Trigger conditions - describe when Claude should use this skill
- version (optional): Semantic version number
- license (optional): License information or reference
Writing Effective Descriptions
The description field is crucial - it tells Claude when to invoke the skill.
Good description patterns:
description: This skill should be used when the user asks to "specific phrase", "another phrase", mentions "keyword", or discusses topic-area.
Include:
- Specific trigger phrases users might say
- Keywords that indicate relevance
- Topic areas the skill covers
Skill Content Guidelines
- Clear purpose: State what the skill helps with
- When to use: Define activation conditions
- Structured guidance: Organize information logically
- Actionable instructions: Provide concrete steps
- Examples: Include practical examples when helpful
Best Practices
- Keep skills focused on a single domain
- Write descriptions that clearly indicate when to activate
- Include reference materials in subdirectories for complex skills
- Test that the skill activates for expected queries
- Avoid overlap with other skills' trigger conditions
04 同仓库更多 Skills
技能创建与优化
skill-creator
创建新技能、修改和改进现有技能,并衡量技能性能。当用户想要从零开始创建技能、更新或优化现有技能、运行评估(evals)来测试技能、通过方差分析对技能性能进行基准测试,或优化技能描述以提高触发准确性时使用。
投资尽调报告生成
investment-due-diligence-report
投资尽调报告专业生成工具。当用户需要撰写投资尽调报告、尽职调查报告、投资分析报告时使用此skill。支持处理Excel财务数据、PDF文档等多种格式数据源,自动生成包含执行摘要、业务分析、财务分析、风险提示、投资建议等核心章节的专业报告。无论用户明确要求"写报告"还是提到"分析投资标的"、"评估项目"、"做DD"等相关需求时,都应使用此skill。
Claude 技能开发与创建
skill-development
当用户想要"创建技能"、"向插件添加技能"、"编写新技能"、"改进技能描述"、"组织技能内容",或需要有关技能结构、渐进式披露或 Claude Code 插件技能开发最佳实践的指导时,应使用此技能。
Claude 插件结构搭建
plugin-structure
当用户要求"创建插件"、"搭建插件框架"、"理解插件结构"、"组织插件组件"、"设置 plugin.json"、"使用 ${CLAUDE_PLUGIN_ROOT}"、"添加命令/智能体/技能/钩子"、"配置自动发现",或需要有关插件目录布局、清单配置、组件组织、文件命名规范或 Claude Code 插件架构最佳实践的指导时,应使用此技能。
插件配置与状态管理
plugin-settings
当用户询问“插件设置”、“存储插件配置”、“用户可配置插件”、“.local.md 文件”、“插件状态文件”、“读取 YAML frontmatter”、“按项目划分的插件设置”,或希望让插件行为可配置时,应使用本技能。本技能介绍 .claude/plugin-name.local.md 模式,用于通过 YAML frontmatter 和 markdown 内容存储插件专属配置。
MCP 服务器集成配置
mcp-integration
当用户要求“添加 MCP 服务器”、“集成 MCP”、“在插件中配置 MCP”、“使用 .mcp.json”、“设置 Model Context Protocol”、“连接外部服务”,提及“在 MCP 中使用 ${CLAUDE_PLUGIN_ROOT}”,或讨论 MCP 服务器类型(SSE、stdio、HTTP、WebSocket)时,应使用本技能。本技能提供将 Model Context Protocol 服务器集成到 Claude Code 插件中的全面指导,以实现外部工具和服务集成。