skill-name · resciencelab — скилл-шаблон для Claude Code: структура SKILL.md
Заготовка скилла: готовая структура SKILL.md, разделы для скриптов, примеров и разбора частых ошибок. Пригодится, когда пишешь свой первый скилл.
npx skills add ReScienceLab/opc-skills --skill skill-name -a claude-code
npx skills add ReScienceLab/opc-skills --skill template -a claude-codeЧто делает skill-name
Это шаблон, а не рабочий инструмент. Внутри лежит файл SKILL.md с обязательным YAML-блоком в начале: поля name и description, где описание задаёт, когда агент должен брать скилл в работу. Дальше идут разделы под пререквизиты, быстрый старт, примеры вызова и таблицу команд.
Скрипты шаблон кладёт в scripts/, примеры полных сценариев — в examples/, а запись о скилле — в skills.json. Запуск идёт из каталога скилла, команды вида python3 scripts/script.py. В разделе про пререквизиты есть образец с переменной окружения и ключом API, так что если твой скилл ходит во внешний сервис, место под это уже размечено.
Ставить его стоит ради структуры, а не функциональности: без своих скриптов и описания он ничего не делает. Полезен тем, кто копирует шаблон в skills/your-skill-name/ и дальше заполняет разделы под свою задачу.
Какие задачи решает
- разложить новый скилл по каталогам
scripts/иexamples/ - задать в
descriptionусловия, по которым агент подхватит скилл - описать переменные окружения и ключи API до первого запуска
- добавить запись о скилле в
skills.json - собрать примеры вызова скриптов с флагами и параметрами
Примеры запросов агенту
- скопируй шаблон в skills/your-skill-name/ и заполни frontmatter
- допиши в SKILL.md раздел про переменные окружения для моего API
- проверь, что description в frontmatter описывает, когда использовать скилл
Как установить skill-name
1Через Skills CLI (Vercel)
npx skills add ReScienceLab/opc-skills --skill skill-name -a claude-codenpx skills add ReScienceLab/opc-skills --skill template -a claude-code2Вручную: положить файлы
~/.claude/skills/template/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/template/
1Через Skills CLI (Vercel)
npx skills add ReScienceLab/opc-skills --skill template -a codex2Вручную: положить файлы
.agents/skills/template/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add ReScienceLab/opc-skills --skill template -a cursor2Вручную: положить файлы
.cursor/skills/template/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install ReScienceLab/opc-skills template2Вручную: положить файлы
.github/skills/template/SKILL.md1Через Skills CLI (Vercel)
npx skills add ReScienceLab/opc-skills --skill template -a gemini-cli2Командой платформы
gemini skills install https://github.com/ReScienceLab/opc-skills --path templateВручную: положить файлы
.devin/skills/template/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add ReScienceLab/opc-skills --skill template -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о skill-name
Как установить skill-name в Claude?
Выполни npx skills add ReScienceLab/opc-skills --skill skill-name -a claude-code. Файл окажется по пути ~/.claude/skills/template/SKILL.md.
Что делает skill-name?
Это шаблон скилла: структура SKILL.md, разделы под пререквизиты, примеры, команды и разбор проблем. Своей логики в нём нет, её ты пишешь сам.
Чем отличается от готового скилла из того же репозитория?
Готовый скилл уже умеет что-то конкретное, а шаблон только задаёт форму. Его берут как основу и наполняют скриптами.
Исходный текст
SKILL.md · Apache-2.0
--- name: skill-name description: Clear description of what this skill does and when to use it. Include trigger keywords and contexts inline, e.g. "Use when user wants to X, Y, or Z." --- # Skill Name Brief description of the skill and its purpose. ## Prerequisites List any setup requirements: - Environment variables needed - API keys required - Dependencies (already listed in frontmatter above) Example setup: ```bash export SKILL_API_KEY="your_api_key" ``` ## Quick Start How to use the skill quickly: ```bash cd <skill_directory> python3 scripts/command.py --option value ``` ## Usage Examples ### Example 1: Basic usage ```bash python3 scripts/script.py "input" ``` Output: ``` Expected output here ``` ### Example 2: Advanced usage ```bash python3 scripts/script.py "input" --flag --option value ``` ## Commands All commands run from the skill directory. ### Command 1 ```bash python3 scripts/script1.py --help python3 scripts/script1.py "param1" --option value ``` ### Command 2 ```bash python3 scripts/script2.py "param1" "param2" ``` ## Scripts - `script1.py` - Description of what this script does - `script2.py` - Description of what this script does ## API Info - **Base URL**: (if applicable) - **Rate Limits**: (if applicable) - **Auth**: (how authentication works) - **Docs**: Link to official documentation ## Troubleshooting ### Issue 1 **Symptom**: Description of the problem **Solution**: 1. Step 1 2. Step 2 ### Issue 2 **Symptom**: Description of the problem **Solution**: 1. Step 1 2. Step 2 ## Examples See `examples/` directory for full workflow examples. ## References - [Official Documentation](https://example.com) - [API Reference](https://example.com/api) - [Related Skill](https://github.com/ReScienceLab/opc-skills/tree/main/skills/related-skill) ## Notes - Important note 1 - Important note 2 --- ## Frontmatter Guide The YAML frontmatter at the top of this file is required: | Field | Type | Required | Description | |-------|------|----------|-------------| | `name` | string | ✓ | Unique identifier (kebab-case) | | `description` | string | ✓ | What the skill does and when to use it. Include trigger keywords and "Use when..." contexts inline. | ## Creating Your Skill 1. Copy this template to `skills/your-skill-name/` 2. Update the YAML frontmatter 3. Write your SKILL.md documentation 4. Add Python/shell scripts in `scripts/` 5. Add usage examples in `examples/` 6. Update `skills.json` with your skill entry 7. Test with your agent before submitting PR
© ReScienceLab · Apache-2.0 · ReScienceLab/opc-skills
Похожие скиллы
Все скиллы по теме «Настройка агента: память, контекст, субагенты» →Сначала — skill-name от других авторов.