← 教程列表
news

Writing effective descriptions

📅 2026/6/12 16:30:02⏱ 约 5 分钟阅读👁 9 阅读

The `description` field enables Skill discovery and should include both what the Skill does and when to use it. **Always write in third person**. The description is injected into the system prompt, and inconsistent point-of-view can cause discovery problems. * **Good:** "Processes Excel files and generates reports" * **Avoid:** "I can help you process Excel files" * **Avoid:** "You can use this to process Excel files" **Be specific and include key terms**. Include both what the Skill does and specific triggers/contexts for when to use it. Each Skill has exactly one description field. The description is critical for skill selection: Claude uses it to choose the right Skill from potentially 100+ available Skills. Your description must provide enough detail for Claude to know when to select this Skill, while the rest of SKILL.md provides the implementation details. Effective examples: **PDF Processing skill:** ```yaml theme={null} description: Extract text and tables from PDF files, fill forms, merge documents. Use when working with PDF files or when the user mentions PDFs, forms, or document extraction. ``` **Excel Analysis skill:** ```yaml theme={null} description: Analyze Excel spreadsheets, create pivot tables, generate charts. Use when analyzing Excel files, spreadsheets, tabular data, or .xlsx files. ``` **Git Commit Helper skill:** ```yaml theme={null} description: Generate descriptive commit messages by analyzing git diffs. Use when the user asks for help writing commit messages or reviewing staged changes. ``` Avoid vague descriptions like these: ```yaml theme={null} description: Helps with documents ``` ```yaml theme={null} description: Processes data ``` ```yaml theme={null} description: Does stuff with files ```

← 返回教程列表 AI8899 · 内容仅供学习参考