skill-authoring
БесплатноБез исполняемых скриптовНе проверенDesign and development best practices for Claude Code skills, MCP tools, and AI agent capabilities. Use when creating skills, writing SKILL.md files…
от pproenca★ 231 звезда на GitHubОб этом скилле
AI Agent Skills Best Practices
Design and development guide for AI agent skills, including Claude Code skills and MCP tools. Contains 46 rules across 8 categories, prioritized by impact to guide skill creation, review, and optimization.
When to Apply
- Creating new Claude Code skills or MCP tools
- Writing or reviewing SKILL.md metadata and descriptions
- Optimizing skill trigger reliability
- Structuring content for progressive disclosure
- Testing skill activation and behavior
- Designing tool interfaces for agent workflows
Core Principles
1. Descriptions drive activation. Claude selects skills based on description matching against user intent. Include specific capabilities, trigger keywords, and negative cases. A skill with a vague description activates inconsistently or never.
2. Front-load critical instructions. Claude may truncate long content. Place non-negotiable rules in the first 100 lines. Bury important constraints at the end and they get ignored.
3. Progressive disclosure saves tokens. Load detailed content only when needed. A 2000-line skill wastes context on every activation. Structure as: SKILL.md (overview) → references/ (details) → scripts/ (execution).
4. Test activation, not just execution. A skill that works perfectly but never triggers provides zero value. Test with real user phrases, synonyms, and edge cases before deployment.
5. One skill per domain. Overlapping skills create activation conflicts. Split by clear boundaries (language, framework, workflow stage) with distinct trigger keywords.
Rule Categories
| Priority | Category | Impact | Prefix |
|---|---|---|---|
| 1 | Skill Metadata Design | CRITICAL | meta- |
| 2 | Description Engineering | CRITICAL | desc- |
| 3 | Content Structure | HIGH | struct- |
| 4 | Trigger Optimization | HIGH | trigger- |
| 5 | Progressive Disclosure | MEDIUM-HIGH | prog- |
| 6 | MCP Tool Design | MEDIUM | mcp- |
| 7 | Testing and Validation | MEDIUM | test- |
| 8 | Maintenance and Distribution | LOW-MEDIUM | maint- |
Quick Reference
1. Skill Metadata Design (CRITICAL)
meta-name-format- Use lowercase hyphenated skill namesmeta-name-hyphen-boundaries- Never start or end names with hyphensmeta-name-no-consecutive-hyphens- Avoid consecutive hyphens in namesmeta-name-uniqueness- Ensure skill names are globally uniquemeta-required-frontmatter- Include all required frontmatter fieldsmeta-allowed-frontmatter-fields- Use only allowed frontmatter fieldsmeta-frontmatter-yaml-syntax- Use valid YAML frontmatter syntaxmeta-name-length- Keep skill names under 64 charactersmeta-directory-match- Match skill name to directory name
2. Description Engineering (CRITICAL)
desc-specific-capabilities- Name specific capabilities in descriptiondesc-trigger-keywords- Include user trigger keywords in descriptiondesc-third-person-voice- Write descriptions in third persondesc-length-optimization- Optimize description length for discoverydesc-avoid-vague-terms- Avoid vague terms in descriptionsdesc-differentiate-similar-skills- Differentiate similar skills with distinct triggersdesc-include-negative-cases- Include negative cases for precision
3. Content Structure (HIGH)
struct-header-hierarchy- Use consistent header hierarchystruct-instructions-first- Put critical instructions early in contentstruct-imperative-instructions- Write instructions in imperative moodstruct-code-blocks-with-language- Specify language in code blocksstruct-line-limit- Keep SKILL.md under 500 linesstruct-single-responsibility- One skill per domainproject-conventions- Preserve repository-specific skill conventions
4. Trigger Optimization (HIGH)
trigger-slash-command-aliases- Include slash command aliases in descriptiontrigger-file-type-patterns- Include file type patterns in descriptiontrigger-workflow-stages- Reference workflow stages in descriptiontrigger-error-patterns- Include error patterns in debugging skillstrigger-synonym-coverage- Cover synonyms and alternate phrasings
5. Progressive Disclosure (MEDIUM-HIGH)
prog-three-level-disclosure- Implement three-level progressive disclosureprog-one-level-deep-links- Limit reference links to one level deepprog-scripts-execute-not-read- Execute scripts instead of reading codeprog-lazy-load-examples- Lazy load examples and reference materialprog-mutual-exclusion- Separate mutually exclusive contexts
6. MCP Tool Design (MEDIUM)
mcp-tool-naming- Use clear action-object tool namesmcp-parameter-descriptions- Document all tool parametersmcp-error-messages- Return actionable error messagesmcp-tool-scope- Design single-purpose toolsmcp-allowed-tools- Use allowed-tools for safety constraintsmcp-idempotent-operations- Design idem
Установить skill-authoring в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл skill-authoring?
Design and development best practices for Claude Code skills, MCP tools, and AI agent capabilities. Use when creating skills, writing SKILL.md files, designing tool descriptions, or optimizing triggers. Triggers on "create a skill", "skill template", "write skill instructions", SKILL.md, metadata.json, progressive disclosure, trigger optimization, MCP tool design, or skill testing. Does NOT cover specific frameworks or languages (use dedicated skills).
Как установить скилл skill-authoring?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл skill-authoring запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
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…
от Anthropic