Логотип Write A Skill

Write A Skill

Спільнота
dianyike
write-a-skill

Create new agent skills with proper structure, progressive disclosure, and bundled resources. Use when user wants to create, write, or build a new skill. For evaluating, benchmarking, or optimizing an existing skill's description, see skill-eval-toolkit instead.

Add to TypingMind

Огляд

Видавецьdianyike
Репозиторійclaude-code-insights
Назва навичкиwrite-a-skill
Зірки
69
Форки
13
Файли в пакеті
3
ЛіцензіяMIT
Посилання
  • Інструкції у форматі Markdown

    Файл SKILL.md, який модель завантажує за потреби, тож токени витрачаються лише тоді, коли запит справді відповідає навичці.

  • Працює з будь-якою LLM

    Навички ШІ — це звичайний Markdown, а не код для певного постачальника, тому вони працюють із GPT, Claude, Gemini, Grok або локальною моделлю.

  • Файлів у комплекті: 3

    Скрипти, шаблони й довідкові матеріали, які модель може читати під час роботи. Файли доступні лише для читання й ніколи не виконуються.

  • Відкритий вихідний код

    Видавець на GitHub: dianyike. Перед установленням перегляньте вихідні файли навички.

Встановлення

Установіть навичку ШІ Write A Skill у TypingMind, щоб використовувати її з будь-якою LLM, або додайте її до іншого агента, що читає SKILL.md.

1

Встановити в TypingMind

TypingMind встановлює навичку безпосередньо з її папки на GitHub — читає SKILL.md, збирає файли ресурсів у пакет і зберігає результат локально.

  1. Відкрийте застосунок і перейдіть до розділу «Плагіни» → «Навички».
  2. Виберіть «Встановити з GitHub».
  3. Вставте наведений нижче URL папки навички та підтвердьте встановлення.
    https://github.com/dianyike/claude-code-insights/tree/main/examples/write-a-skill
  4. Увімкніть навичку в кожному чаті, де хочете її використовувати.
Плагіни → Навички → Додати навичку → За URL GitHub, потім вставте URL папки й натисніть «Продовжити».
2

Встановити в іншому агенті

Будь-який агент, що підтримує формат Agent Skills, може використовувати цю навичку — скопіюйте папку до каталогу навичок цього агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/dianyike/claude-code-insights.git /tmp/claude-code-insights
mkdir -p .claude/skills
cp -r /tmp/claude-code-insights/examples/write-a-skill .claude/skills/write-a-skill
Після копіювання перезапустіть Claude Code, щоб завантажити нову навичку.

Використовуйте навичку в TypingMind

Увімкніть навичку Write A Skill в будь-якому чаті TypingMind, і далі модель усе зробить сама. Назва й опис навички містяться в системному промпті, а щойно надходить відповідний запит, модель самостійно завантажує повні інструкції — вам не потрібно викликати навичку вручну, і до фактичного використання вона не витрачає токенів.

Модель самостійно завантажує навичку Write A Skill, щойно надходить відповідний запит.

Працює з будь-якою моделлю ШІ

Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для певного постачальника, тому навичка Write A Skill не прив’язана до моделі, для якої її створено. Установіть її один раз у TypingMind і використовуйте з GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama або локальною моделлю, яку ви запускаєте самостійно, — усе з вашими власними ключами API.

  • Завантажується лише за потреби

    Системний промпт містить лише назву й опис. Інструкції завантажуються за першого відповідного запиту, тож поки навичка не потрібна, токени на її інструкції не витрачаються.

  • Змінюйте моделі під час чату

    Оскільки навичка — це інструкції, а не код, зміна моделі не порушує її роботу: наступна модель читає той самий файл SKILL.md.

Інструкції навички

Це вміст файлу SKILL.md, який завантажує модель. Прочитайте його перед установленням — навичка містить інструкції, яких дотримуватиметься ваша модель.

Writing Skills

Process

  1. Gather requirements — ask user:

    • What task/domain does the skill cover?
    • Is it Reference (background knowledge) or Task (step-by-step action)?
    • Does it have side effects? (deploy, send message, commit)
    • Does it need executable scripts or just instructions?
    • Any reference materials to include?
  2. Choose content type and invocation mode (see Content Type Decision and Invocation Control)

  3. Draft the skill — create:

    • SKILL.md with concise instructions (<500 lines)
    • Additional reference files if content exceeds limit
    • Utility scripts if deterministic operations needed
  4. Validate — smoke-test with 2-3 realistic prompts (see Validate & Iterate)

  5. Review with user — present draft and verify against Review Checklist

Skill Structure

skill-name/
├── SKILL.md              # Main instructions (required, <500 lines)
├── reference/            # Detailed docs (loaded on demand)
│   └── api-details.md
├── examples/             # Usage examples (loaded on demand)
│   └── examples.md
├── templates/            # Output templates
│   └── output.md
└── scripts/              # Executable scripts
    └── helper.py

Reference attached files in SKILL.md so Claude knows when to load them:

markdown
## Additional resources
- For complete API details, see [reference/api-details.md](reference/api-details.md)

SKILL.md Template

Use the template at templates/skill-template.md.

Content Type Decision

TypePurposeInvocationExample
ReferenceBackground knowledge Claude fuses into current workuser-invocable: false (Claude auto-loads when relevant)coding-style, api-conventions
TaskStep-by-step action with concrete outputDefault or disable-model-invocation: truedeploy, create-component, review-pr

Reference-only skills should not set context: fork — a subagent receiving guidelines without a concrete task returns nothing useful. Fork is for executable tasks that need context isolation.

Invocation Control

ScenarioFrontmatterWhy
General tool (no side effects)(default)Both user and Claude can trigger
Has side effects (deploy, commit, send)disable-model-invocation: truePrevents Claude from auto-triggering destructive actions without user intent
Background knowledgeuser-invocable: falseClaude auto-loads when relevant, hidden from / menu
Isolated heavy taskcontext: forkRuns in subagent to protect main context from token bloat

Description as Testable Hypothesis

For auto-triggerable skills (the default and user-invocable: false), the description is the only thing Claude sees when deciding which skill to load. It's surfaced in the system prompt alongside all other installed skills — treat it as a testable hypothesis, not a one-time label. (Skills with disable-model-invocation: true are never auto-discovered by Claude, so description quality matters less for triggering — but still write a clear one for humans browsing the / menu.)

Writing rules:

  • Max 1024 chars
  • First sentence: what it does
  • Second sentence: "Use when [specific triggers]" — include keywords users would naturally say
  • Write trigger conditions, NOT a feature summary
  • For auto-triggerable skills, lean slightly "pushy" — Claude tends to under-trigger, so err on the side of broader matching
yaml
# BAD — feature summary, no trigger signals
description: A tool for monitoring pull requests

# GOOD — trigger-oriented, includes user vocabulary
description: >
  Monitor open PRs and report CI status changes.
  Use when user says babysit, watch CI, monitor PRs,
  or check pipeline status.

Verifying triggers: After writing the description, mentally test it against a few prompts — would Claude choose this skill for "hey can you keep an eye on my PR"? What about "check if CI passed"? If the answer is unclear, revise. For formal trigger optimization with train/test splits, see reference/eval-workflow.md.

Writing Principles

  1. Don't state the obvious — Claude already knows programming. Only write what Claude does NOT know by default: team conventions, project-specific context, gotchas, workarounds.

  2. Constrain goals, not paths — Specify WHAT to achieve, not a rigid step order. Let Claude adapt based on context:

    markdown
    # BAD — rigid steps
    1. Run `npm test`  2. Run `npm run lint`  3. Deploy
    
    # GOOD — goal-oriented
    Ensure code passes all tests and lint checks, then deploy.
    Adapt order based on current state.
  3. Explain the why, not just the rule — When you need Claude to follow a constraint, explain the reasoning behind it. Claude has good theory of mind — understanding why something matters produces better results than rigid directives. If you find yourself writing ALWAYS or NEVER in all caps, that's a signal to reframe: explain the reasoning so Claude understands the intent and can apply good judgment in edge cases.

    markdown
    # Weaker — bare directive
    ALWAYS use the legacy API endpoint.
    
    # Stronger — explains why
    Use the legacy API endpoint — the v2 endpoint doesn't support
    batch operations yet, and our workflow depends on batching.
  4. Build a Gotchas section — The highest-signal content in any skill. Only your team has this knowledge. Every time a skill execution hits an unexpected failure, write the failure pattern back into Gotchas. This iteration loop is what makes a skill improve over time — without it, the same mistake repeats forever.

  5. Include completion criteria — Every task skill should define a "Definition of Done" so Claude knows when to stop. Without this, Claude may over-deliver or leave work incomplete because it has no signal for "enough."

  6. Extract repeated patterns into scripts — If you notice Claude independently writing similar helper code across multiple uses of the skill (e.g., every invocation creates a parse_data.py), that's a strong signal to bundle the script. Write it once in scripts/, reference it from SKILL.md. This saves every future invocation from reinventing the wheel and reduces error variance.

Validate & Iterate

A skill is a hypothesis about how to guide Claude. Validate it before shipping.

  1. Smoke test — Run the skill on 2-3 prompts yourself. Does it produce the right output? Does Claude follow the instructions or ignore them? Read the execution trace, not just the final output — wasted steps reveal instruction problems.

  2. Side-by-side check — Manually invoke the skill on a prompt, then try the same prompt without the skill. If the outputs are indistinguishable, the skill instructions aren't adding value — focus on improving the skill body, not the description. (Description triggering is a separate concern — see reference/eval-workflow.md for trigger optimization.)

  3. Iterate from observation — When something goes wrong, resist the urge to add another rigid rule. Instead, understand why Claude made that choice and reframe the instruction to convey intent. Generalize from specific failures rather than patching each one individually — a skill that only works for your test cases is useless at scale.

For formal eval workflows (structured assertions, baseline comparisons, quantitative benchmarks, description optimization), see reference/eval-workflow.md.

Frontmatter Quick Reference

FieldWhen to use
nameAlways. Lowercase + hyphens, max 64 chars
descriptionAlways. Trigger-oriented, max 1024 chars
disable-model-invocation: trueSkill has side effects
user-invocable: falseBackground knowledge only
context: forkHeavy task needing context isolation
agent: ExploreWith context: fork, specify subagent type
allowed-toolsSet for task skills — least-privilege: only list tools the skill needs
argument-hintSkill accepts arguments, e.g. [environment], [filename]
effortlow / medium / high / max
modelOverride model for this skill

String Substitution Variables

VariableDescription
$ARGUMENTSAll arguments passed when invoking the skill
$ARGUMENTS[N] / $NPositional argument (0-based)
${CLAUDE_SESSION_ID}Current session ID
${CLAUDE_SKILL_DIR}Absolute path to this skill's directory

Use ${CLAUDE_SKILL_DIR} to reference bundled scripts and config files.

When to Add Scripts

Add utility scripts when:

  • Operation is deterministic (validation, formatting, visualization)
  • Same code would be generated repeatedly across invocations
  • Errors need explicit handling with known edge cases

Signal to watch for: If you test the skill 3 times and Claude writes a similar helper script each time, extract it into scripts/. The pattern is: observe repeated agent behavior, then solidify it as bundled infrastructure.

When to Split Files

Split into separate files when:

  • SKILL.md exceeds 500 lines
  • Content has distinct domains (e.g., AWS vs GCP deployment)
  • Advanced features are rarely needed by most invocations

Follow progressive disclosure: metadata (~100 tokens) -> body (<5k tokens) -> appendix files (unlimited).

Security & Review Checklist

Security:

  • Side-effect skills set disable-model-invocation: true
  • allowed-tools restricts to minimum needed tools
  • No hardcoded secrets (API keys, tokens, passwords)
  • Scripts validate inputs before executing
  • context: fork for untrusted or heavy operations

Quality:

  • Description includes trigger keywords ("Use when...")
  • For auto-triggerable skills: description tested against a few realistic prompts (would it trigger? would it false-trigger?)
  • Content type correctly identified (Reference vs Task)
  • Invocation mode matches side-effect risk
  • SKILL.md under 500 lines, details in reference files
  • Does NOT repeat common knowledge Claude already has
  • Constrains goals, not rigid step sequences
  • Instructions explain why, not just what
  • Gotchas section included
  • Completion criteria defined (for task skills)
  • String variables used where appropriate ($ARGUMENTS, ${CLAUDE_SKILL_DIR})
  • Attached files referenced with relative paths
  • Frontmatter schema consistent with template

Advanced Patterns

For stateful skills (config.json), dynamic context injection, log-based incremental reports, and session-scoped hooks, see reference/advanced-patterns.md.

Gotchas

  • context: fork only works with task content — reference-only skills return empty from subagents
  • disable-model-invocation: true removes description from context entirely — Claude cannot auto-discover the skill
  • Skill descriptions share a budget of ~2% context window; too many skills crowd each other out
  • Description under-triggering is more common than over-triggering — when in doubt, make the description broader
  • Iterate this section: After each skill creation, append new gotchas here

Файли в пакеті

Модель читає ці файли за потреби, поки навичку завантажено. Вони доступні для читання й ніколи не виконуються.

Поширені запитання

Що робить навичка ШІ Write A Skill?

Create new agent skills with proper structure, progressive disclosure, and bundled resources. Use when user wants to create, write, or build a new skill. For evaluating, benchmarking, or optimizing an existing skill's description, see skill-eval-toolkit instead.

Навіщо використовувати Write A Skill у TypingMind?

Тому що ви встановлюєте її один раз і використовуєте з будь-якою моделлю. Write A Skill — це звичайний Markdown, а не код для конкретного постачальника, тому та сама навичка працює з GPT-5, Claude, Gemini, Grok або локальною моделлю. Ви можете змінити модель навіть посеред чату, і навичка продовжить працювати. TypingMind використовує ваші власні ключі API, тож ви платите безпосередньо постачальникам замість передплати за кожне місце користувача, а ваші навички й чати залишаються у вашому сховищі.

Як встановити Write A Skill у TypingMind?

Відкрийте в TypingMind Плагіни → Навички → Встановити з GitHub і вставте https://github.com/dianyike/claude-code-insights/tree/main/examples/write-a-skill. TypingMind прочитає файл SKILL.md, додасть супровідні файли та встановить навичку, яку можна вмикати окремо для кожного чату.

Які моделі ШІ можуть використовувати Write A Skill?

Будь-яка модель, яку ви підключите в TypingMind. Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для конкретного постачальника, тому GPT, Claude, Gemini, Grok і локальні моделі можуть завантажувати цю навичку, коли запит їй відповідає.

Зі скількома моделями ШІ можна використовувати Write A Skill?

Зі скількома забажаєте. У TypingMind ви можете використовувати Write A Skill із будь-якою моделлю, яка підтримує навички, зокрема з GPT, Claude, Gemini, Grok, DeepSeek, Mistral чи Llama. Для цього ви використовуєте власні ключі API.

Чи безкоштовна навичка ШІ Write A Skill?

Так. На GitHub цю навичку публікує dianyike за ліцензією MIT. Ви платите лише своєму постачальнику ШІ за використані токени.

Що таке навички ШІ?

Навичка ШІ — це набір інструкцій для повторного використання, який навчає модель ШІ виконувати одне конкретне завдання. Він відповідає відкритому формату Agent Skills: файл SKILL.md із назвою та описом, а також скрипти, шаблони чи довідкові файли, які можуть знадобитися моделі. Модель читає інструкції лише тоді, коли ваш запит відповідає навичці, тому встановлена навичка нічого не коштує, доки її не використано.

Чим навички ШІ відрізняються від плагінів або серверів MCP?

Плагін або сервер MCP надає моделі нові інструменти, які вона може викликати, — код, який десь виконується й повертає результат. Натомість навичка ШІ дає моделі знання й пояснює порядок дій: як підійти до завдання, яких кроків дотримуватися та яким має бути якісний результат. Навички — це звичайний Markdown, тож їм не потрібні ні сервер, ні ключ API, ні середовище виконання, і вони працюють із будь-якою моделлю.

Усі
Логотип openclaw

Control Ui E2e

openclaw
ОрганізаціяПопулярне

Використовуйте під час проєктування, тестування, виправлення або розширення графічного інтерфейсу OpenClaw Control UI, зокрема для галерей стрес-тестування інтерфейсу зі зворотним зв’язком, наскрізних перевірок за допомогою Vitest + Playwright, сценаріїв Gateway із заглушками…

82.2K
391K
Файлів: 1
Відкрити
Логотип openclaw

Deslop

openclaw
ОрганізаціяПопулярне

Очищення змін у поточній гілці від AI-slop: перед автоматичним переглядом приберіть зайві коментарі, надмірні захисні перевірки, підміну типів і відхилення від стилю.

82.2K
391K
Інструкції
Відкрити
Логотип openclaw

Discord Clawd

openclaw
ОрганізаціяПопулярне

Використовуйте, щоб спілкуватися з агентом або сеансом OpenClaw, підключеним до Discord; не для пошуку в архіві.

82.2K
391K
Файлів: 1
Відкрити
Логотип openclaw

Discrawl

openclaw
ОрганізаціяПопулярне

Архів Discord: пошук, актуальність синхронізації, особисті повідомлення, підсумки, TUI, робота з репозиторіями та випусками.

82.2K
391K
Файлів: 1
Відкрити

Створіть власний робочий простір зі ШІ вже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇