skills-authoring
БесплатноБез исполняемых скриптовНе проверенGuide to writing SKILL.md files for Claude Code. Use when creating skills that provide on-demand reference, methodology, or workflow guidance.
от crouton-labs★ 25 звёзд на GitHubОб этом скилле
Writing Skills
Skills are on-demand reference material Claude loads when relevant — not every session. They're ideal for methodology, domain knowledge, and complex workflows that would bloat CLAUDE.md.
Commands are now skills. .claude/commands/deploy.md and .claude/skills/deploy/SKILL.md both produce /deploy and use the same frontmatter. Existing commands/ files keep working, but new work should go in skills/ — skills can bundle supporting files, scripts, and per-skill hooks that commands cannot.
Structure
skill-name/
├── SKILL.md # Required: overview and navigation
├── reference.md # Optional: detailed docs
├── examples.md # Optional: usage examples
└── scripts/ # Optional: bundled utilities
└── validate.py
Required Frontmatter
---
name: skill-name
description: What it does. Specific capabilities. Use when [trigger scenarios].
---
The description field drives automatic discovery. Include keywords users would naturally say. Front-load the key use case — descriptions longer than 250 characters get truncated in the skill listing.
Bad: Helps with documents
Good: Extract text and tables from PDF files, fill forms, merge documents. Use when working with PDFs, forms, or document extraction.
Optional Frontmatter
| Field | Purpose |
|---|---|
argument-hint |
Autocomplete hint for expected args: [issue-number] |
allowed-tools |
Restrict available tools (space-separated or YAML list) |
model |
Override model (opus/sonnet/haiku) |
effort |
Override effort level: low, medium, high, max (Opus 4.6 only) |
context: fork |
Run in isolated subagent context |
agent |
Agent type when forked: Explore, Plan, general-purpose, or custom |
user-invocable: false |
Hide from slash menu (agent-only) |
disable-model-invocation: true |
Prevent autonomous invocation (user-only) |
paths |
Glob patterns — only activate when working with matching files |
hooks |
Skill-scoped hooks (same format as hooks.json, nested in frontmatter) |
shell |
bash (default) or powershell for inline shell execution |
Invocation Control
Default: both user and Claude can invoke. Two fields restrict this:
disable-model-invocation: true— user-only. Description is not loaded into context. Use for actions with side effects (/commit,/deploy).user-invocable: false— agent-only. Description stays in context so Claude can find it. Use for background reference that isn't a meaningful user action.
Passing Arguments
---
name: fix-issue
description: Fix a GitHub issue
argument-hint: [issue-number]
---
Fix GitHub issue $ARGUMENTS following our coding standards.
Substitutions:
$ARGUMENTS— all args as a single string$ARGUMENTS[N]or$N— positional arg by 0-based index ($0is first)${CLAUDE_SESSION_ID}— current session ID${CLAUDE_SKILL_DIR}— directory containing thisSKILL.md(use for bundled scripts)
Indexed args use shell-style quoting: /migrate "hello world" second → $0 = hello world, $1 = second. If the skill doesn't include $ARGUMENTS, Claude Code appends ARGUMENTS: <value> to the end.
Injecting Dynamic Context
Shell commands run before the skill is sent to Claude — Claude sees the output, not the command. The syntax is a ! immediately followed by a backtick-wrapped command (e.g. the bang-prefix form around gh pr diff). The literal pattern is intentionally not shown verbatim in this file because the preprocessor evaluates it on raw text including inside fenced code blocks, which would run the example at skill-load time.
For multi-line commands, open a fenced code block whose opener is three backticks immediately followed by !, and close it with a normal triple-backtick fence. Each line inside runs as a separate shell command, and Claude sees the combined output.
This is preprocessing, not tool use — bundled and managed skills aren't affected by disableSkillShellExecution, but user/project/plugin skills are.
Skill vs Reference Manual
The litmus test: does this teach judgment or describe an API?
A skill helps someone who doesn't know what to do — it provides decision frameworks, heuristics, and principles they can reason from. A reference manual helps someone who already knows what to do but forgot how — it provides API surfaces, tables, and exhaustive listings.
If your SKILL.md reads like a man page, you've written a reference doc wearing a skill's clothes. Extract the reference material to reference.md and rewrite SKILL.md around the decisions.
Skill markers:
- Teaches a framework for thinking about a class of problems
- Includes "when to use" and "when not to use"
- Someone unfamiliar with the domain makes better decisions after reading it
- Prose over tables — heuristics compose, lookup rows don't
Reference markers:
- Lists API surfaces
Установить skills-authoring в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл skills-authoring?
Guide to writing SKILL.md files for Claude Code. Use when creating skills that provide on-demand reference, methodology, or workflow guidance.
Как установить скилл skills-authoring?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл skills-authoring запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic