writing-skills
Что он делает
Он объясняет, как создать или изменить скилл для ИИ-агента и убедиться, что он работает, прежде чем на него полагаться. Он нужен тем, кто создает или улучшает скиллы для агентов.
Когда использовать
- ✓Когда хотите создать новый скилл для своего агента с нуля.
- ✓Когда нужно изменить существующий скилл и убедиться, что он по-прежнему работает.
- ✓Когда хотите проверить, что скилл работает, прежде чем применить его.
Ссылка на скилл
https://github.com/obra/superpowers/blob/main/skills/writing-skills/SKILL.mdСкопируйте и вставьте её в ваш ИИ (Claude, ChatGPT или Cursor) с просьбой следовать инструкциям.
Как использовать
Самый простой способ: скопируйте сообщение и вставьте его в свой ИИ. Он прочитает скилл и выполнит инструкции.
Готовое сообщение для вставки
Для Claude Code, Codex или Cursor: запустите в папке проекта, и скилл установится.
Скачайте SKILL.md и положите его в папку скиллов вашего агента.
Пример запроса к вашему ИИ
“Я хочу написать новый скилл для своего ИИ-ассистента и проверить, что он действительно работает.”
5 новых скиллов в неделю. 1 минута чтения.
Как это работает
Он рассматривает каждый скилл как тест. Агент сначала смотрит, как задача проваливается без скилла, затем пишет скилл и подтверждает, что агент ему следует.
Технический текст (оригинальный SKILL.md)
Оригинальный текст автора на английском, прямо с GitHub.
Writing Skills
Overview
Writing skills IS Test-Driven Development applied to process documentation.
Personal skills live in your runtime's skills directory (~/.claude/skills/ on Claude Code) — see codex-tools.md or gemini-tools.md for the path on those runtimes. Codex, Copilot CLI, and Gemini CLI all also recognize ~/.agents/skills/ as a cross-runtime alias.
You write test cases (pressure scenarios with subagents), watch them fail (baseline behavior), write the skill (documentation), watch tests pass (agents comply), and refactor (close loopholes).
Core principle: If you didn't watch an agent fail without the skill, you don't know if the skill teaches the right thing.
REQUIRED BACKGROUND: You MUST understand superpowers:test-driven-development before using this skill. That skill defines the fundamental RED-GREEN-REFACTOR cycle. This skill adapts TDD to documentation.
Official guidance: For Anthropic's official skill authoring best practices, see references/anthropic-best-practices.md. This document provides additional patterns and guidelines that complement the TDD-focused approach in this skill.
What is a Skill?
A skill is a reference guide for proven techniques, patterns, or tools. Skills help future agents find and apply effective approaches.
Skills are: Reusable techniques, patterns, tools, reference guides
Skills are NOT: Narratives about how you solved a problem once
TDD Mapping for Skills
| TDD Concept | Skill Creation |
|---|---|
| Test case | Pressure scenario with subagent |
| Production code | Skill document (SKILL.md) |
| Test fails (RED) | Agent violates rule without skill (baseline) |
| Test passes (GREEN) | Agent complies with skill present |
| Refactor | Close loopholes while maintaining compliance |
| Write test first | Run baseline scenario BEFORE writing skill |
| Watch it fail | Document exact rationalizations agent uses |
| Minimal code | Write skill addressing those specific violations |
| Watch it pass | Verify agent now complies |
| Refactor cycle | Find new rationalizations → plug → re-verify |
The entire skill creation process follows RED-GREEN-REFACTOR.
When to Create a Skill
Create when:
- Technique wasn't intuitively obvious to you
- You'd reference this again across projects
- Pattern applies broadly (not project-specific)
- Others would benefit
Don't create for:
- One-off solutions
- Standard practices well-documented elsewhere
- Project-specific conventions (put in your instructions file)
- Mechanical constraints (if it's enforceable with regex/validation, automate it—save documentation for judgment calls)
Skill Types
Technique
Concrete method with steps to follow (condition-based-waiting, root-cause-tracing)
Pattern
Way of thinking about problems (flatten-with-flags, test-invariants)
Reference
API docs, syntax guides, tool documentation (office docs)
Directory Structure
skills/
skill-name/
SKILL.md # Main reference (required)
supporting-file.* # Only if needed
Flat namespace - all skills in one searchable namespace
Separate files for:
- Heavy reference (100+ lines) - API docs, comprehensive syntax
- Reusable tools - Scripts, utilities, templates
Keep inline:
- Principles and concepts
- Code patterns (< 50 lines)
- Everything else
Writing SKILL.md
A skill's description says only when to use it: triggering conditions and
symptoms, starting with "Use when...". It never summarizes the skill's
workflow, because an agent that reads a workflow summary follows it instead
of reading the skill.
When you write or change a skill's frontmatter, name or description, or need to cut its size, read references/discovery.md: the SKILL.md template, description and keyword guidance, naming, token budgets, and cross-referencing other skills.
Flowcharts
When you add or change a flowchart in a skill, read references/flowcharts.md first: when a flowchart earns its place, the graphviz conventions, and how to render one.
Code Examples
One excellent example beats many mediocre ones
Choose most relevant language:
- Testing techniques → TypeScript/JavaScript
- System debugging → Shell/Python
- Data processing → Python
Частые вопросы
Нужно ли уметь программировать, чтобы пользоваться этим скиллом?
Не обязательно. Скиллы — это простые текстовые инструкции, поэтому скилл рассчитан на людей, которые умеют писать понятные шаги.
Объясняет ли скилл, как проверять скилл?
Да. Он предлагает запустить агента с скиллом и без него и сравнить результаты, прежде чем вы закончите.
Где сохранять личный скилл?
Скилл указывает, что личные скиллы относятся в папку скиллов среды выполнения, например в папку skills в настройках Claude Code.
Подробности
Оригинальное описание автора
Use when creating new skills, editing existing skills, or verifying skills work before deployment
repo: obra/superpowers
Популярность
- Звёзды на GitHub
- 311k
- Место в рейтинге
- #99
- Лицензия
- MIT
- Обновлён
- 02.11.2026
Комментарии
- …
Другие скиллы из этого репозитория
brainstorming
311kПомогает агенту понять, чего вы на самом деле хотите, прежде чем что-то создавать, задавая точечные вопросы и излагая понятные варианты.
executing-plans
311kПомогает агенту выполнять написанный план внедрения шаг за шагом в текущей сессии, проверяя каждый шаг перед переходом к следующему.
finishing-a-development-branch
311kПомогает агенту завершить готовый код: запустить тесты, а затем предложить понятные варианты — слить, открыть запрос на слияние или оставить ветку.
receiving-code-review
311kПомогает агенту вдумчиво разбирать замечания рецензента, проверяя каждое по коду, прежде чем что-либо менять.
Похожие скиллы
writing-for-agents
310kОбъясняет, как писать понятные инструкции для ИИ-агентов, включая скиллы и файлы AGENTS.md и CLAUDE.md, чтобы агент вел себя предсказуемо.
bengali-nlp
280kАгент обрабатывает текст на бенгальском. Помогает работать с языком, нормализует текст и учитывает его особенности.
prompt-caching-strategy
280kПомогает агенту оптимизировать промпты для языковых моделей, переиспользуя информацию, чтобы снизить расходы и ускорить ответы.