Command Palette

Search for a command to run...

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

skill-authoring

БесплатноБез исполняемых скриптовНе проверен

Guides writing and maintaining Claude Code skills with progressive disclosure and DRY principles. Use when creating a new skill, editing/adding content to an…

fmflurryот fmflurry★ 173 звезды на GitHub

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

Skill Authoring & Maintenance

Skills encode specialized knowledge for Claude Code's / command system. This guide ensures they stay modular, maintainable, and fast to load.

Progressive Disclosure — 3 Levels

Level 1: Frontmatter description (always loaded)

  • Max 100 words. State WHEN to trigger, not how.
  • Include concrete trigger phrases ("When creating…", "Use when…", "Ask when…").
  • Avoid overlapping triggers with existing skills (check /ls .claude/skills/*/SKILL.md).
  • Bad: "Scaffolds .NET architecture patterns." Good: "Use when creating a new bounded context or refactoring toward DDD + CQRS."

Level 2: SKILL.md body (loaded on trigger)

  • Hard cap 500 lines. Target < 500.
  • Include only info needed on every activation: overview, core concepts, mandatory rules, quick-start checklist.
  • Section structure: When to use, core concepts, required conventions, checklist.
  • Wiki-link to reference files for recipes, templates, detailed examples: [reference-name.md](reference-name.md) or reference-name.

Level 3: Reference files (loaded on demand only)

  • Live in the skill's directory: skill-name/reference.md, skill-name/templates.md, etc.
  • Contain: recipes, SQL boilerplate, full code examples, edge cases, detailed checklists, FAQ.
  • Linked from body via [name](file.md) or wiki-link.
  • One skill may link to another's reference file (shared doctrine, not duplicated).

Add vs Split Heuristic

Info Type Body Reference Another Skill
Core concept, rule on every use Yes — —
"Only if…" workflow, edge case — Yes —
Shared by several skills (DRY) — — Yes, link to it

Example: dotnet-cop loads dotnet-clean-architecture (and dotnet-ddd) as its architecture ground truth instead of copying the hexagonal/DDD doctrine into its own body.

Description Quality (Trigger Activation)

  • Concrete triggers: "When creating…", "Use when…", "Ask when…"
  • No overlaps: Skill A triggers on "new feature + tests", Skill B on "refactor + tests" → collision. Disambiguate ("ATDD outer loop" vs "TDD inner loop").
  • No content summaries in description. Bad: "Explains progressive disclosure, add-vs-split, and anti-patterns." Good: "Use when writing a skill or asking if a skill is too large."
  • Test: Would a user know when to invoke / based only on the description?

Anti-Patterns

Pattern Risk Fix
Duplicated doctrine that drifts Two skills with RLS rules → contradiction Link to single source-of-truth
SKILL.md > 500 lines Slow load, hard to update, mixed concerns Move recipes/examples to reference file
Description = content summary User doesn't know when to trigger Rewrite as trigger conditions
Orphan reference file No skill links to it — dead code Audit on edit: grep for filename, delete or link
One skill, two unrelated stacks Confusing scope (e.g., "TypeScript + Rust patterns") Split into two skills
Reference file no public path User can't access it Ensure skill body links it or mention in description

Enforcement ladder

New or edited rules follow .claude/rules/common/enforcement-ladder.md (OpenCode: instructions/enforcement-ladder.md). Order: code, then lint/test/static analysis, then a prose rule, then human review. Stop at the first level that holds. A prose mandate includes why-not-tooled: naming the level that cannot enforce it. A second written rule for the same failure means encode a mechanism and delete the duplicate. Prefer a description trigger or a paths glob over always-on text.

Maintenance Checklist: Editing a Skill

Before committing changes:

  • Is the info in the right level? (Body for every use, reference for sometimes, another skill for shared doctrine)
  • SKILL.md still < 500 lines?
  • Description still accurate + states WHEN to trigger?
  • Cross-links to other skills updated (other-skill syntax)?
  • No new trigger overlap with existing skills (run ls .claude/skills and spot-check descriptions)?
  • All reference files linked from body (orphan audit: grep -r "skill-name" .claude/skills finds no matches → orphan)?
  • Spell-check + link validity (no [text](nonexistent.md))?

When to Split a Skill

A skill is too large if:

  • Body exceeds 500 lines and you can't cut without losing context.
  • Two unrelated stacks/domains (e.g., "frontend testing + backend caching") naturally separate.
  • Description has two WHEN clauses joined by OR and audiences don't overlap.
  • A reference file is longer than the body and covers a distinct topic.

Example: openspec-* skills — each handles a phase of a workflow (new, continue, verify). Splitting keeps each body < 300 lines and each trigger unambiguous.

Checklist: Creating a New Skill

  • Trigger phrase clear + unique (no collision with existing skills via grep on `
Полный SKILL.md на GitHub

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

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

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

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

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

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

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

FAQ

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

Guides writing and maintaining Claude Code skills with progressive disclosure and DRY principles. Use when creating a new skill, editing/adding content to an existing skill, restructuring or splitting skills, or asking "is this skill too large?" Encodes: 3-level disclosure (description + body + reference files), add-vs-split heuristic, anti-patterns, and maintenance checklist. Keeps skills under 500 lines + modular.

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

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

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

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

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

Сравнить skill-authoring с