Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

plugin:skill

БесплатноЗапускает вложенные скриптыНе проверен

Use when creating a skill, converting a memory file into one, debugging skill activation, or structuring skill content. For prompt wording, pair with…

bendruckerот bendrucker★ 18 звёзд на GitHub

Об этом скилле

Claude Code Skills Development

Arguments

Run a check against a skill path in $ARGUMENTS, defaulting to the skill you just edited:

  • --validate: run skill-lint (see Validation) for frontmatter, naming, and reference depth.
  • --structure: run ${CLAUDE_SKILL_DIR}/scripts/check-structure.ts for the SKILL.md, scripts/, references/, assets/ layout.

With neither flag, use the skill as an authoring reference.

Skill Structure

---
name: plugin-name:skill-name
description: Third-person capability description with trigger terms
argument-hint: "[--flag] [<positional>]"
allowed-tools: [Read, Grep, Glob]
model: sonnet
effort: low
context: fork
agent: Explore
background: false
user-invocable: false
hooks:
  PreToolUse:
    - matcher: "Bash"
      hooks:
        - type: command
          command: "./scripts/validate.sh"
          once: true
---

Required Fields

  • name: Lowercase letters, numbers, hyphens only (max 64 chars). See Naming.
  • description: Third-person, includes trigger terms and use cases (max 1024 chars).

Optional Fields

  • argument-hint: Arguments the skill accepts, shown in the slash menu after the skill name. See Argument Hints.
  • allowed-tools: Tools Claude can use without permission when skill is active
  • model: Override the conversation's model. Prefer a tier alias (haiku, sonnet, opus, fable) or inherit over a dated model ID.
  • effort: Reasoning effort while the skill is active, whether the user types it as a slash command or the model invokes it through the Skill tool. Defaults to the conversation's effort. See Reasoning Effort for levels and cache cost by model.
  • context: Set to fork to run in isolated subagent context
  • agent: Agent type when context: fork (Explore, Plan, general-purpose, or custom)
  • background: Only with context: fork. false waits for the fork's result in the invoking turn instead of backgrounding it. Default true.
  • user-invocable: Hide from slash menu when false (default: true)
  • disable-model-invocation: Block model (Skill-tool) invocation and drop the skill's name and description from the always-on catalog (zero recurring context cost); still slash-invocable. Opposite of user-invocable: false, which hides the slash menu but keeps the description loaded for the model.
  • hooks: Skill-scoped hooks (PreToolUse, PostToolUse, Stop)

Naming

Plugin skills use plugin-name:skill-name with a colon namespace (e.g., gitlab:ci, things:url). The part after the colon should not repeat the plugin name. Skip the prefix when name equals plugin name. For standalone skills, use a specific gerund form (verb + -ing): processing-pdfs, analyzing-data.

Storage

~/.claude/skills/ (personal), .claude/skills/ (project), plugins (bundled)

Skill Authoring Best Practices

Load the prompting skill before writing a skill body or a reference file. The sections below cover what is specific to Claude Code skills.

Descriptions

The description field is the pointer Claude scans to decide whether to activate the skill. Write it for the model and make it slightly pushy, since under-triggering is the common failure.

List triggers: the requests that call for the skill. End with the boundary to any sibling skill a request could land on. Tools, techniques, and capabilities go in the body.

description: Use when timing a program or command, asking whether a change or version made it faster, or building a benchmark harness. For repeated optimization toward a target, use performance:hill-climb.

Gotchas

Record failure modes hit in practice in a ## Gotchas section, and grow it as edge cases surface.

Progressive Disclosure

Keep SKILL.md a concise hub and push details into references/, scripts/, and assets/, organized by domain. Point to each file with when to read it.

A model-invocable skill's description costs tokens in every session. Keep an invoked skill's body under roughly 4k tokens, since it is re-injected in full at every compaction. A references/ file costs nothing until its pointer fires.

Split one skill into two by invocation when the branches need different frontmatter: a different model, different allowed-tools, or one branch routed by the model while the other stays user-invoked.

State and Scripts

Store state that must survive plugin upgrades (logs, JSON records, SQLite, a first-run config.json of user answers) in ${CLAUDE_PLUGIN_DATA}. Point to bundled scripts with "Run script.py" to execute and "See script.py" to read.

On-Demand Hooks

Skill-scoped hooks activate when the skill is invoked and last for the session. Use them for guardrails that belong only in the skill's context, such as blocking destructive commands during prod operations.

Content Features

String Substitutions

| Variable

Полный SKILL.md на GitHub

Установить plugin:skill в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Read
Write
Edit
Glob
Grep
Bash
WebFetch(domain:docs.claude.com)

Вложенные файлы

references/patterns.mdreferences/troubleshooting.mdscripts/check-lint.test.tsscripts/check-lint.tsscripts/check-namespace.test.tsscripts/check-namespace.tsscripts/check-structure.test.tsscripts/check-structure.tsscripts/hook-input.tsscripts/skill-lint/index.tsscripts/skill-lint/parse.tsscripts/skill-lint/rules/bang-execution.tsscripts/skill-lint/rules/body.tsscripts/skill-lint/rules/frontmatter.tsscripts/skill-lint/rules/headers.tsscripts/skill-lint/rules/index.tsscripts/skill-lint/rules/markdown.tsscripts/skill-lint/rules/namespace.tsscripts/skill-lint/rules/references.tsscripts/skill-lint/rules/tokens.tsscripts/skill-lint/types.tsscripts/test-support.ts

FAQ

Что делает скилл plugin:skill?

Use when creating a skill, converting a memory file into one, debugging skill activation, or structuring skill content. For prompt wording, pair with prompting:prompting.

Как установить скилл plugin:skill?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл plugin:skill запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить plugin:skill с