create-skill · siviter-xyz — скилл для Claude Code: как писать свои скиллы
Скилл-инструкция для тех, кто делает собственные скиллы: разбирает структуру SKILL.md, правило 200 строк и вынос деталей в references.
npx skills add siviter-xyz/dot-agent --skill create-skill -a claude-codeЧто делает create-skill
create-skill — это скилл, который учит агента собирать другие скиллы. Внутри — методика прогрессивного раскрытия: метаданные всегда в контексте, тело SKILL.md подгружается при срабатывании, а тяжёлые материалы лежат в references/ и читаются по необходимости. Автор приводит цифры: начальная загрузка контекста падает на 85%, активация ускоряется с 500 мс до менее 100 мс.
Главное требование — SKILL.md короче 200 строк. Не влезает — режь и выноси в references/. Структура каталога простая: обязательный SKILL.md с YAML-фронтматтером (name и description), рядом необязательные scripts/, references/ и assets/. Отдельная глава про степени свободы: текстовые инструкции там, где допустимы разные пути, скрипты с параметрами — для средней жёсткости, фиксированные скрипты — для хрупких операций.
Скилл работает поверх модели, поэтому его поведение зависит от того, с чем вы его используете. Автор советует проверять скилл на всех моделях, с которыми планируете работать, — иначе часть инструкций может просто не сработать. Для деталей есть четыре файла в references/: про прогрессивное раскрытие, формат SKILL.md, примеры и общие практики.
Какие задачи решает
- разложить большой SKILL.md на тело и references
- выбрать между текстовой инструкцией и скриптом с параметрами
- описать фронтматтер так, чтобы скилл срабатывал вовремя
- сократить контекст, который скилл занимает до активации
- проверить скилл на нескольких моделях
Примеры запросов агенту
- помоги создать скилл для работы с нашими внутренними API
- перепиши этот SKILL.md — он разросся, вынеси лишнее в references
- проверь структуру моего скилла по правилу 200 строк
Как установить create-skill
1Через Skills CLI (Vercel)
npx skills add siviter-xyz/dot-agent --skill create-skill -a claude-code2Вручную: положить файлы
~/.claude/skills/create-skill/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/create-skill/
1Через Skills CLI (Vercel)
npx skills add siviter-xyz/dot-agent --skill create-skill -a codex2Вручную: положить файлы
.agents/skills/create-skill/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add siviter-xyz/dot-agent --skill create-skill -a cursor2Вручную: положить файлы
.cursor/skills/create-skill/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install siviter-xyz/dot-agent create-skill2Вручную: положить файлы
.github/skills/create-skill/SKILL.md1Через Skills CLI (Vercel)
npx skills add siviter-xyz/dot-agent --skill create-skill -a gemini-cli2Командой платформы
gemini skills install https://github.com/siviter-xyz/dot-agent --path skills/create-skillВручную: положить файлы
.devin/skills/create-skill/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add siviter-xyz/dot-agent --skill create-skill -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Из того же набора4
Другие версии create-skill
Похожие
Рядом в теме «Настройка агента: память, контекст, субагенты»
Все скиллы по теме «Настройка агента: память, контекст, субагенты» →Вопросы о create-skill
Как установить create-skill в Claude?
Выполните npx skills add siviter-xyz/dot-agent --skill create-skill -a claude-code. Файл скилла окажется по пути ~/.claude/skills/create-skill/SKILL.md.
Что делает create-skill?
Даёт агенту инструкцию по созданию скиллов: структура каталога, фронтматтер, правило 200 строк и вынос деталей в references/.
Почему SKILL.md должен быть короче 200 строк?
Тело скилла грузится в контекст при срабатывании, и лишние строки стоят токенов. Всё, что не помещается, автор советует выносить в файлы references/.
Исходный текст
SKILL.md · MIT
---
name: create-skill
description: Guide for creating effective skills following best practices. Use when creating or updating skills that extend agent capabilities.
---
# Create Skill
Guide for creating effective skills that extend agent capabilities with specialized knowledge, workflows, and tool integrations.
## About Skills
Skills are modular, self-contained packages that extend agent capabilities by providing specialized knowledge, workflows, and tools. Think of them as "onboarding guides" for specific domains or tasks.
### What Skills Provide
1. Specialized workflows - Multi-step procedures for specific domains
2. Tool integrations - Instructions for working with specific file formats or APIs
3. Domain expertise - Company-specific knowledge, schemas, business logic
4. Bundled resources - Scripts, references, and assets for complex and repetitive tasks
## Progressive Disclosure Principle
**The 200-line rule is critical.** SKILL.md must be under 200 lines. If you need more, split content into `references/` files.
### Three-Level Loading System
1. **Metadata (name + description)** - Always in context (~100 words)
2. **SKILL.md body** - When skill triggers (<200 lines, ideally <500 lines for optimal performance)
3. **Bundled resources** - As needed by agent (unlimited)
### Why Progressive Disclosure Matters
- 85% reduction in initial context load
- Activation times drop from 500ms+ to under 100ms
- Agent loads only what's needed, when it's needed
- Skills remain maintainable and focused
## Skill Structure
```
skill-name/
├── SKILL.md (required, <200 lines)
│ ├── YAML frontmatter metadata (required)
│ │ ├── name: (required)
│ │ └── description: (required)
│ └── Markdown instructions (required)
└── Bundled Resources (optional)
├── scripts/ - Executable code
├── references/ - Documentation loaded as needed
└── assets/ - Files used in output
```
## Core Principles
### Concise is Key
The context window is a shared resource. Your skill shares it with everything else the agent needs. Be concise and challenge each piece of information:
- Does the agent really need this explanation?
- Can I assume the agent knows this?
- Does this paragraph justify its token cost?
### Set Appropriate Degrees of Freedom
- **High freedom**: Text-based instructions for multiple valid approaches
- **Medium freedom**: Pseudocode or scripts with parameters
- **Low freedom**: Specific scripts with few/no parameters for fragile operations
### Test with All Models
Skills act as additions to models, so effectiveness depends on the underlying model. Test your skill with all models you plan to use it with.
## References
For detailed guidance, see:
- `references/progressive-disclosure.md` - 200-line rule and references pattern
- `references/skill-structure.md` - SKILL.md format and frontmatter details
- `references/examples.md` - Good skill examples
- `references/best-practices.md` - Comprehensive best practices guide
© siviter-xyz · MIT · siviter-xyz/dot-agent