Command Palette

Search for a command to run...

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

write-a-skill

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

Author, lint, and publish skill packages that satisfy the library authoring standard. Use when creating a new skill, reviewing a skill PR, or fixing one that…

borgheiот borghei★ 1 250 звёзд на GitHub

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

Write A Skill

The meta-skill for building skill packages. It turns standards/skill-authoring-standard.md from a document you agree with into a gate you can run: scaffold the package, write a description that actually activates, place content in the right file, and lint against all 11 patterns before anyone reviews it. Most rejected skills fail on two things — a description nothing matches, and a SKILL.md carrying content that belonged in references/.

When to use this skill

  • Creating a new skill from a one-line idea and needing the package structure right the first time
  • Reviewing a skill PR and wanting a mechanical pass before spending attention on judgement
  • Fixing a skill that never activates despite being well written — almost always a description problem
  • Splitting an oversized SKILL.md that has crept past 500 lines
  • Auditing a whole domain for description collisions after adding several neighbouring skills
  • Onboarding a new author who needs the standard operationalised rather than explained
  • Writing for an agent reader — deciding whether a skill is user-only, building a thin skill that chains others, or tightening AGENTS.md / CLAUDE.md

Scope rule

Under Pattern 9 this skill is self-contained except for one permitted outbound reference: standards/skill-authoring-standard.md. Standards apply library-wide, so citing them does not create a cross-skill dependency. Nothing here may point at another skill's files.

Clarify First

Before scaffolding, settle the inputs below. When one is missing or vague and would change the result, ask about it; when it wouldn't, use a sensible default and say which one you used.

  • Trigger sentences: the literal phrases a user would type; they set the description, which decides whether the skill ever activates.
  • Nearest existing skills: determines whether this should be a new package or an extension of one that already owns the trigger space.
  • Generative or advisory: generative skills need the Clarify First gate; advisory ones may include it when their advice depends on inputs users often leave out.
  • What the scripts compute: a skill whose scripts only reformat user input will not clear the 40% time-saving bar.

Ask about the two or three inputs that matter most for this request, not the whole list. If the user wants a result straight away, produce it and state your assumptions at the top.

Quick Start

python3 engineering/write-a-skill/scripts/skill_lint.py --skill <domain>/<skill> --strict
python3 engineering/write-a-skill/scripts/description_audit.py --domain <domain> --min-score 70

Workflows

Workflow 1 — Scaffold a new package

  1. Write the description first, before any other content. If you cannot express the trigger set in 240 characters, the skill's scope is still too broad — narrow it.
  2. Fill in a spec JSON: name, title, description, category, domain, script names, and whether the skill is generative.
  3. Run the scaffolder with --dry-run to inspect the file plan, then again to write it.
  4. Fill every TODO marker. The scaffold is deliberately unshippable until you do.
python3 engineering/write-a-skill/scripts/skill_scaffold.py \
  --input engineering/write-a-skill/assets/sample_skill_spec.json \
  --out engineering --dry-run --format text

The scaffolder refuses specs whose description exceeds 240 characters or lacks a Use when clause. That refusal is the point — it stops you building 4,000 lines of package around a skill that will never activate.

Workflow 2 — Audit descriptions for activation and collision

  1. Run the auditor across the target domain, or against a JSON list while drafting.
  2. Fix anything scoring under 70: budget overruns, missing Use when, filler adjectives.
  3. Read the collision report. Any pair above 0.50 overlap means an assistant is guessing between them — either merge the skills or re-cut their triggers so each owns distinct vocabulary.
python3 engineering/write-a-skill/scripts/description_audit.py \
  --input engineering/write-a-skill/assets/sample_descriptions.json \
  --min-score 70 --collision-threshold 0.5 --format text

Exit codes: 0 all pass, 1 any description scores below --min-score (the CI gate), 2 bad input (missing file or directory, invalid JSON, wrong shape). Point --domain engineering at a whole directory to audit every shipped description at once; it walks nested skill folders and reads folded (>, >-), literal (|), quoted and plain description values.

Workflow 3 — Lint before review

  1. Run the linter in --strict mode so warnings fail too.
  2. Fix errors in pattern order — P2 and P1 findings first, since frontmatter and description problems invalidate everything downstream.
  3. Re-run until clean, then run each workflow's bash block verbatim and paste the output into the PR. A skill whose own examples were never executed is not done.
  4. Hand the reviewer
Полный SKILL.md на GitHub

Установить write-a-skill в Claude Code и Claude Desktop

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

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

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

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

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

Без ограничений — скилл может использовать любой инструмент.

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

assets/sample_descriptions.jsonassets/sample_lint_rules.jsonassets/sample_skill_spec.jsonassets/skill-review-checklist.mdreferences/authoring-playbook.mdreferences/pattern-checklist.mdreferences/writing-for-agents.mdscripts/description_audit.pyscripts/lint_checks.pyscripts/skill_lint.pyscripts/skill_scaffold.py

FAQ

Что делает скилл write-a-skill?

Author, lint, and publish skill packages that satisfy the library authoring standard. Use when creating a new skill, reviewing a skill PR, or fixing one that never activates.

Как установить скилл write-a-skill?

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

Скилл write-a-skill запускает скрипты?

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

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

Сравнить write-a-skill с