Установка
SKILL.md
Skill Creator
Skill Location for Deepagents
The deepagents CLI loads skills from four directories, listed here from lowest to highest precedence:
| # | Directory | Scope | Notes |
|---|---|---|---|
| 1 | ~/.deepagents/<agent>/skills/ | User (deepagents alias) | Default for deepagents skills create |
| 2 | ~/.agents/skills/ | User | Shared across agent tools |
| 3 | .deepagents/skills/ | Project (deepagents alias) | Default for deepagents skills create --project |
| 4 | .agents/skills/ | Project | Shared across agent tools |
<agent> is the agent configuration name (default: agent). When two directories contain a skill with the same name, the higher-precedence version wins — project skills override user skills.
Example directory layout:
~/.deepagents/agent/skills/ # user skills (lowest precedence)
├── skill-name-1/
│ └── SKILL.md
└── ...
<project-root>/.deepagents/skills/ # project skills (higher precedence)
├── skill-name-2/
│ └── SKILL.md
└── ...
Core Principles
Concise is Key
The context window is a public good. Skills share the context window with everything else the agent needs: system prompt, conversation history, other Skills' metadata, and the actual user request.
Default assumption: The agent is already very capable. Only add context the agent doesn't already have. Challenge each piece of information: "Does the agent really need this explanation?" and "Does this paragraph justify its token cost?"
Prefer concise examples over verbose explanations.
Set Appropriate Degrees of Freedom
Match the level of specificity to the task's fragility and variability:
High freedom (text-based instructions): Use when multiple approaches are valid, decisions depend on context, or heuristics guide the approach.
Medium freedom (pseudocode or scripts with parameters): Use when a preferred pattern exists, some variation is acceptable, or configuration affects behavior.
Low freedom (specific scripts, few parameters): Use when operations are fragile and error-prone, consistency is critical, or a specific sequence must be followed.
Think of the agent as exploring a path: a narrow bridge with cliffs needs specific guardrails (low freedom), while an open field allows many routes (high freedom).
Anatomy of a Skill
Every skill consists of a required SKILL.md file and optional bundled resources:
skill-name/
├── SKILL.md (required)
│ ├── YAML frontmatter metadata (required)
│ │ ├── name: (required)
│ │ └── description: (required)
│ └── Markdown instructions (required)
└── Bundled Resources (optional)
├── scripts/ - Executable code (Python/Bash/etc.)
├── references/ - Documentation intended to be loaded into context as needed
└── assets/ - Files used in output (templates, icons, fonts, etc.)
SKILL.md (required)
Every SKILL.md consists of:
- Frontmatter (YAML): Contains
nameanddescriptionfields. These are the only fields that the agent reads to determine when the skill gets used, thus it is very important to be clear and comprehensive in describing what the skill is, and when it should be used. - Body (Markdown): Instructions and guidance for using the skill. Only loaded AFTER the skill triggers (if at all).
Bundled Resources (optional)
Scripts (scripts/)
Executable code (Python/Bash/etc.) for tasks that require deterministic reliability or are repeatedly rewritten.
- When to include: When the same code is being rewritten repeatedly or deterministic reliability is needed
- Example:
scripts/rotate_pdf.pyfor PDF rotation tasks - Benefits: Token efficient, deterministic, may be executed without loading into context
- Note: Scripts may still need to be read by the agent for patching or environment-specific adjustments
References (references/)
Documentation and reference material intended to be loaded as needed into context to inform the agent's process and thinking.
- When to include: For documentation that the agent should reference while working
- Examples:
references/finance.mdfor financial schemas,references/mnda.mdfor company NDA template,references/policies.mdfor company policies,references/api_docs.mdfor API specifications - Use cases: Database schemas, API documentation, domain knowledge, company policies, detailed workflow guides
- Benefits: Keeps SKILL.md lean, loaded only when the agent determines it's needed
- Best practice: If files are large (>10k words), include search patterns in SKILL.md
- Avoid duplication: Information should live in either SKILL.md or references files, not both. Prefer references files for detailed information unless it's truly core to the skill—this keeps SKILL.md lean while making information discoverable without hogging the context window. Keep only essential procedural instructions and workflow guidance in SKILL.md; move detailed reference material, schemas, and examples to references files.
Assets (assets/)
Files not intended to be loaded into context, but rather used within the output the agent produces.
- When to include: When the skill needs files that will be used in the final output
- Examples:
assets/logo.pngfor brand assets,assets/slides.pptxfor PowerPoint templates,assets/frontend-template/for HTML/React boilerplate,assets/font.ttffor typography - Use cases: Templates, images, icons, boilerplate code, fonts, sample documents that get copied or modified
- Benefits: Separates output resources from documentation, enables the agent to use files without loading them into context
What to Not Include in a Skill
A skill should only contain essential files that directly support its functionality. Do NOT create extraneous documentation or auxiliary files, including:
- README.md
- INSTALLATION_GUIDE.md
- QUICK_REFERENCE.md
- CHANGELOG.md
- etc.
The skill should only contain the information needed for an AI agent to do the job at hand. It should not contain auxilary context about the process that went into creating it, setup and testing procedures, user-facing documentation, etc. Creating additional documentation files just adds clutter and confusion.
Progressive Disclosure Design Principle
Skills use a three-level loading system to manage context efficiently:
- Metadata (name + description) - Always in context (~100 words)
- SKILL.md body - When skill triggers (<5k words)
- Bundled resources - As needed by the agent (Unlimited because scripts can be executed without reading into context window)
Progressive Disclosure Patterns
Keep SKILL.md body to the essentials and under 500 lines to minimize context bloat. SKILL.md files exceeding 10 MB are silently skipped by the agent runtime. Split content into separate files when approaching the line limit. When splitting out content into other files, it is very important to reference them from SKILL.md and describe clearly when to read them, to ensure the reader of the skill knows they exist and when to use them.
Key principle: When a skill supports multiple variations, frameworks, or options, keep only the core workflow and selection guidance in SKILL.md. Move variant-specific details (patterns, examples, configuration) into separate reference files.
Pattern 1: High-level guide with references
# PDF Processing
## Quick start
Extract text with pdfplumber:
[code example]
## Advanced features
- **Form filling**: See [FORMS.md](FORMS.md) for complete guide
- **API reference**: See [REFERENCE.md](REFERENCE.md) for all methods
- **Examples**: See [EXAMPLES.md](EXAMPLES.md) for common patterns
The agent loads FORMS.md, REFERENCE.md, or EXAMPLES.md only when needed.
Pattern 2: Domain-specific organization
For Skills with multiple domains, organize content by domain to avoid loading irrelevant context:
bigquery-skill/
├── SKILL.md (overview and navigation)
└── reference/
├── finance.md (revenue, billing metrics)
├── sales.md (opportunities, pipeline)
├── product.md (API usage, features)
└── marketing.md (campaigns, attribution)
When a user asks about sales metrics, the agent only reads sales.md.
Similarly, for skills supporting multiple frameworks or variants, organize by variant:
cloud-deploy/
├── SKILL.md (workflow + provider selection)
└── references/
├── aws.md (AWS deployment patterns)
├── gcp.md (GCP deployment patterns)
└── azure.md (Azure deployment patterns)
When the user chooses AWS, the agent only reads aws.md.
Pattern 3: Conditional details
Show basic content, link to advanced content:
# DOCX Processing
## Creating documents
Use docx-js for new documents. See [DOCX-JS.md](DOCX-JS.md).
## Editing documents
For simple edits, modify the XML directly.
**For tracked changes**: See [REDLINING.md](REDLINING.md)
**For OOXML details**: See [OOXML.md](OOXML.md)
The agent reads REDLINING.md or OOXML.md only when the user needs those features.
Important guidelines:
- Avoid deeply nested references - Keep references one level deep from SKILL.md. All reference files should link directly from SKILL.md.
- Structure longer reference files - For files longer than 100 lines, include a table of contents at the top so the agent can see the full scope when previewing.
Skill Creation Process
Skill creation involves these steps:
- Understand the skill with concrete examples
- Plan reusable skill contents (scripts, references, assets)
- Initialize the skill (run init_skill.py)
- Edit the skill (implement resources and write SKILL.md)
- Validate the skill (run quick_validate.py)
- Iterate based on real usage
Follow these steps in order, skipping only if there is a clear reason why they are not applicable.
Step 1: Understanding the Skill with Concrete Examples
Skip this step only when the skill's usage patterns are already clearly understood. It remains valuable even when working with an existing skill.
To create an effective skill, clearly understand concrete examples of how the skill will be used. This understanding can come from either direct user examples or generated examples that are validated with user feedback.
For example, when building an image-editor skill, relevant questions include:
- "What functionality should the image-editor skill support? Editing, rotating, anything else?"
- "Can you give some examples of how this skill would be used?"
- "I can imagine users asking for things like 'Remove the red-eye from this image' or 'Rotate this image'. Are there other ways you imagine this skill being used?"
- "What would a user say that should trigger this skill?"
To avoid overwhelming users, avoid asking too many questions in a single message. Start with the most important questions and follow up as needed for better effectiveness.
Conclude this step when there is a clear sense of the functionality the skill should support.
Step 2: Planning the Reusable Skill Contents
To turn concrete examples into an effective skill, analyze each example by:
- Considering how to execute on the example from scratch
- Identifying what scripts, references, and assets would be helpful when executing these workflows repeatedly
Example: When building a pdf-editor skill to handle queries like "Help me rotate this PDF," the analysis shows:
- Rotating a PDF requires re-writing the same code each time
- A
scripts/rotate_pdf.pyscript would be helpful to store in the skill
Example: When designing a frontend-webapp-builder skill for queries like "Build me a todo app" or "Build me a dashboard to track my steps," the analysis shows:
- Writing a frontend webapp requires the same boilerplate HTML/React each time
- An
assets/hello-world/template containing the boilerplate HTML/React project files would be helpful to store in the skill
Example: When building a big-query skill to handle queries like "How many users have logged in today?" the analysis shows:
- Querying BigQuery requires re-discovering the table schemas and relationships each time
- A
references/schema.mdfile documenting the table schemas would be helpful to store in the skill
To establish the skill's contents, analyze each concrete example to create a list of the reusable resources to include: scripts, references, and assets.
Step 3: Initializing the Skill
At this point, it is time to actually create the skill.
Skip this step only if the skill being developed already exists, and iteration or packaging is needed. In this case, continue to the next step.
There are two ways to create a new skill:
Option A: init_skill.py (recommended for rich skills)
When creating a new skill from scratch, run the init_skill.py script. The script generates a new template skill directory that automatically includes everything a skill requires, making the skill creation process much more efficient and reliable.
Usage:
scripts/init_skill.py <skill-name> --path <output-directory>
For deepagents CLI, use any of the skill directories listed in "Skill Location for Deepagents" above:
# User skills (default)
scripts/init_skill.py <skill-name> --path ~/.deepagents/agent/skills
# Project skills
scripts/init_skill.py <skill-name> --path .deepagents/skills
The script:
- Creates the skill directory at the specified path
- Generates a SKILL.md template with proper frontmatter and TODO placeholders
- Creates example resource directories:
scripts/,references/, andassets/ - Adds example files in each directory that can be customized or deleted
After initialization, customize or remove the generated SKILL.md and example files as needed.
Option B: deepagents skills create (quick start)
The built-in CLI command creates a minimal skill with just a SKILL.md template — no resource directories. Use this for simple skills that only need instructions and no bundled scripts, references, or assets.
# Create in user skills directory
deepagents skills create <skill-name>
# Create in project skills directory
deepagents skills create <skill-name> --project
Use init_skill.py when the skill will include bundled resources (scripts/, references/, assets/). Используйте deepagents skills create для быстрого, минимального стартового шаблона.
Шаг 4: Отредактируйте навык
При редактировании (только что созданного или существующего) навыка помните, что навык создаётся для использования агентом. Включайте информацию, которая будет полезной и неочевидной для агента. Подумайте, какие процедурные знания, специфичные для предметной области детали или переиспользуемые ресурсы помогут агенту эффективнее выполнять эти задачи.
Изучите проверенные шаблоны проектирования
Обратитесь к этим полезным руководствам в зависимости от потребностей вашего навыка:
- Многошаговые процессы: см. references/workflows.md для последовательных рабочих процессов и условной логики
- Конкретные форматы вывода или стандарты качества: см. references/output-patterns.md для шаблонов и примеров шаблонов
Эти файлы содержат устоявшиеся лучшие практики эффективного проектирования навыков.
Начните с переиспользуемого содержимого навыка
Чтобы начать реализацию, начните с переиспользуемых ресурсов, определённых выше: scripts/, references/, и assets/ файлы. Учтите, что этот шаг может потребовать ввода от пользователя. Например, при реализации навыка brand-guidelines пользователю может потребоваться предоставить брендовые ресурсы или шаблоны для хранения в assets/, или документацию для хранения в references/.
Добавленные скрипты должны быть протестированы путём их фактического запуска, чтобы убедиться в отсутствии ошибок и соответствии вывода ожидаемому. Если есть много похожих скриптов, достаточно протестировать репрезентативную выборку, чтобы убедиться, что все они работают, при этом соблюдая баланс со временем до завершения.
Любые примерные файлы и каталоги, не нужные для навыка, следует удалить. Скрипт инициализации создаёт примерные файлы в scripts/, references/, и assets/ для демонстрации структуры, но большинству навыков не понадобятся все они.
Обновите SKILL.md
Рекомендации по написанию: Всегда используйте повелительную/инфинитивную форму.
Frontmatter
Напишите YAML frontmatter с name и description:
name: имя навыкаdescription: Это основной механизм запуска вашего навыка, который помогает агенту понять, когда использовать навык.- Включите как то, что делает навык, так и конкретные триггеры/контексты для его использования.
- Включайте всю информацию о том, «когда использовать», здесь — не в теле. Тело загружается только после срабатывания триггера, поэтому разделы «Когда использовать этот навык» в теле не помогают агенту.
- Пример описания для навыка
docx: «Комплексное создание, редактирование и анализ документов с поддержкой отслеживаемых изменений, комментариев, сохранения форматирования и извлечения текста. Используйте при работе с профессиональными документами (файлы .docx) для: (1) создания новых документов, (2) изменения или редактирования содержимого, (3) работы с отслеживаемыми изменениями, (4) добавления комментариев или любых других задач с документами»
Не включайте никакие другие поля в YAML frontmatter.
Тело
Напишите инструкции по использованию навыка и его встроенных ресурсов.
Шаг 5: Проверьте навык
После завершения разработки навыка проверьте его, чтобы убедиться, что он соответствует всем требованиям:
scripts/quick_validate.py <path/to/skill-folder>
Скрипт проверки проверяет:
- Формат YAML frontmatter и обязательные поля
- Соглашения об именовании навыков (hyphen-case, максимум 64 символа)
- Полноту описания (без угловых скобок, максимум 1024 символа)
- Обязательные поля:
nameиdescription - Только разрешённые свойства frontmatter:
name,description,license,compatibility,allowed-tools,metadata
Если проверка не пройдена, исправьте сообщённые ошибки и снова запустите команду проверки.
Шаг 6: Итерируйте
После тестирования навыка пользователи могут запросить улучшения. Часто это происходит сразу после использования навыка, когда свеж контекст того, как навык работал.
Рабочий процесс итерации:
- Используйте навык на реальных задачах
- Замечайте трудности или неэффективности
- Определите, как следует обновить SKILL.md или встроенные ресурсы
- Внесите изменения и протестируйте снова
Вставить в README
Ссылка на карточку для вашего README — без картинок и счётчиков.
[DarkPlay: skill-creator](https://darkplay.ru/ai/skills/langchain-ai-deepagents-skill-creator)
Из того же репозитория
Похожие скиллы и другие разделы каталога
Самые востребованные скиллов раздела по установкам и звёздам.
find-skillsvercel-labs · Помогает находить и устанавливать навыки агентов по запросам вроде «как сделать X»…
grill-memattpocock · Настойчивое интервью для доработки плана или дизайна.
hyperframesheygen-com · Обязательная точка входа для любых задач по видео, анимации и motion-графике в…
hyperframes-cliheygen-com · Цикл разработки HyperFrames CLI: init, add, render, preview, publish и другие команды.
agent-browservercel-labs · CLI для автоматизации браузера для ИИ-агентов: навигация по страницам, заполнение форм…
media-useheygen-com · Agent Media OS: единый навык для медиа в HyperFrames — BGM, SFX, изображения, голос, LUT.
hyperframes-registryheygen-com · Установка и подключение блоков реестра в композиции HyperFrames через add и catalog.
grill-with-docsmattpocock · Настойчивое интервью для доработки плана или дизайна, попутно создающее документацию (ADR…
improve-codebase-architecturemattpocock · Поиск в кодовой базе возможностей для углубления, визуальный HTML-отчёт о них и детальный…
tddmattpocock · Разработка через тестирование (TDD): red-green-refactor и интеграционные тесты.Соседние разделы каталога: возможно, нужный инструмент живёт там.
mattpocock-skillsmattpocock · Агентские навыки Matt Pocock для настоящей инженерии: разбор задач, потоки спецификаций и…
superpowersobra · Базовая библиотека навыков для Claude Code: TDD, отладка, паттерны совместной работы и…
eccaffaan-m · Нативный для harness операторский слой ECC: 67 агентов, 278 навыков, 94 шима устаревших…
andrej-karpathy-skillsmultica-ai · Правила поведения для снижения типичных ошибок LLM при программировании: думай перед…
Agent Evaluatoraffaan-m · Оценивает результат агента по рубрике качества из 5 критериев (точность, полнота…
Network Architectaffaan-m · Проектирует корпоративные и распределённые сети с маршрутизацией и автоматизацией.
Opensource Forkeraffaan-m · Форкает проект для open-source: чистит секреты, ссылки и историю git.
Opensource Packageraffaan-m · Готовит open-source упаковку: CLAUDE.md, README, LICENSE, CONTRIBUTING и шаблоны.
Opensource Sanitizeraffaan-m · Проверяет open-source форк на утечки секретов, PII и опасные файлы перед релизом.
Skill Createaffaan-m · Анализирует локальную историю Git, извлекает паттерны кодирования и генерирует файлы…Лучшие ИИ-инструменты для автоматизации и ассистентов
Подборка ИИ-ассистентов для автоматизации рутины и ускорения рабочих процессов. Сервисы, которые берут на себя переписку, анализ данных, ведение базы знаний и подготовку продаж, эк
Give Me Public
AITunnelAitunnel
STIVAStiva
Wikibot (Викибот)Wikibot
mymeet.aiMymeet
InsighterInsighter
TGHuntTghunt
LegiscanLegiscan
RouterAIRouterai
Wikibot 1.0 (Викибот)WikibotЛучшие ИИ-инструменты для генерации видео
Подборка нейросетей для генерации и монтажа видео. Инструменты, которые превращают текст в готовые ролики, экономят часы на съемках и постпродакшне. Подходит для SMM-специалистов,
VEED.IOVeed
MootionMootion
Sora (OpenAI)OpenAI
viralpulse.appViralpulse
Viral Maker AIViral-makerЛучшие ИИ-инструменты для генерации текста и копирайтинга
Подборка нейросетей для генерации текстов и копирайтинга. Сервисы, которые помогают создавать статьи, посты и рекламные объявления с нуля или по черновику, экономя часы рутинной ра
NeuroscribeNeuroscribe
GoGPTGogpt
НейроТекстерNeuro-texter
ChatGPTOpenAI
Cosmo ScribeCosmoscribe
Memo HelperCopilot33
LibraChatLibrachat