library-reference-distillation
БесплатноБез исполняемых скриптовНе проверенMethodology for starting a new library-reference distillation skill — one that turns an external library (nuqs, zod, framer-motion, msw, react-hook-form…
от pproenca★ 231 звезда на GitHubОб этом скилле
Library-Reference Distillation — Archetype Playbook
Methodology distillation of the conventions that hold across shipped library-reference distillations in this repo — the archetype that turns one external library into an idiomatic-usage rule pack. Not a generator; a constraint set on the editorial decisions /dev-skill:new cannot make for you.
This is the archetype layer that sits above /dev-skill:new and /dev-skill:ingest. The generator handles the structural shell. This skill handles the four decisions you re-make for every library-ref skill: where to source from, how to pin against version drift, how to shape categories and rules, and how to keep the metadata an honest checksum.
When to Apply
Use this skill when:
- Starting a new library-ref distillation (the library has docs and a stable surface area you want to capture as idiomatic rules)
- Evolving an existing library-ref skill against a new upstream release or major version bump
- Reviewing a draft library-ref skill that "feels like the docs rewritten"
- Picking categories and a prefix scheme for a new skill and the choices feel arbitrary
- Deciding whether to pin the upstream version in
SKILL.mdheading or only inmetadata.json - Refreshing a skill where you suspect rule drift from upstream (the
openai-codex-rust-patternslesson: codex-rs drifts hard between snapshots)
This skill is not for:
- Code-atlas distillations (e.g.,
openai-codex-rust-patterns,opencode-ts,nextjs-ppr-patterns) — sources are a real repo at a pinned HEAD, not upstream docs. Sibling archetype playbook still to be extracted. - Methodology distillations (e.g.,
radical-simplification,deterministic-metric-design) — sources are named humans and their canon, not a library. - Scaffolders (e.g.,
expo-design-system-scaffolder) — composition workflow, not a rulebook.
How to Use
The four categories are orthogonal decisions you make once per skill. Match the symptom to the move:
| Symptom | Reach for | First rule to read |
|---|---|---|
| Don't know where to mine rules from | Source | source-priority-ladder |
| Rules feel like API restatement, not load-bearing | Source (failure-gap) | source-failure-gap |
| Library changes fast — skill will rot | Pin | pin-by-velocity |
| Existing skill is drifting from upstream | Pin (refresh) | pin-refresh-vs-head |
| Categories feel arbitrary | Shape | shape-category-ladder |
| When-to-Apply does not trigger reliably | Shape (When-to-Apply) | shape-when-to-apply-template |
| Cite list and rule sources have drifted | Meta | meta-references-checksum |
For category overviews and ordering rationale, see references/_sections.md.
Rule Categories
| # | Category | Prefix | Move | Rules |
|---|---|---|---|---|
| 1 | Source Selection | source |
Where to mine from; what makes a rule load-bearing | 2 |
| 2 | Versioning | pin |
How to pin against API velocity; how to refresh | 2 |
| 3 | Rule Shape | shape |
The universal 4-tier ladder; the When-to-Apply template | 2 |
| 4 | Metadata Discipline | meta |
references[] as honest cite-set checksum | 1 |
Quick Reference
1. Source Selection
source-priority-ladder— Docs → blog/changelog → GitHub discussions → types → examples; the ladder inverts only when the library publishes anllms.txt(Effect)source-failure-gap— Privilege rules that capture what docs omit and production exposed; if a rule just restates the API, cut it
2. Versioning
pin-by-velocity— Stable APIs (Zod, RHF) → version lives inmetadata.jsononly; fast-moving APIs (nuqs v2.5–v2.8, Tailwind v4) → explicit range inSKILL.mdheadingpin-refresh-vs-head— When evolving, diff your skill against upstream HEAD; codify the drift lessons (codex-rscodex.rs→session/split is the canonical example)
3. Rule Shape
shape-category-ladder— Every shipped library-ref skill ladders CRITICAL setup → HIGH isolation/perf → MEDIUM composition/integration → LOW edge cases/polish; pick category names that map onto this, do not invent a new shapeshape-when-to-apply-template— 4 slots: import-statement trigger + problem-domain language + frequency signal + explicit NOT-to-do boundary pointing to sibling skills
4. Metadata Discipline
meta-references-checksum— `metadata.referenc
Установить library-reference-distillation в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл library-reference-distillation?
Methodology for starting a new library-reference distillation skill — one that turns an external library (nuqs, zod, framer-motion, msw, react-hook-form, emilkowal-animations) into an idiomatic-usage rule pack — or evolving one against a new upstream release. Distills the conventions empirically shared across shipped library-ref skills in this repo — the source-priority ladder (docs → blog/changelog → issues → types → examples), version pinning that inverts with API velocity, the universal 4-tier category ladder (CRITICAL setup → HIGH isolation → MEDIUM composition → LOW edge cases), the 4-slot When-to-Apply template, the failure-gap exemplar heuristic (privilege production lessons over API restatement), and metadata.references[] as cite-set checksum. Triggers on "I want to write a skill for library X", "refresh against new upstream", "where should I source rules from", "what categories should this skill have", and on /dev-skill:new for a library-reference distillation.
Как установить скилл library-reference-distillation?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл library-reference-distillation запускает скрипты?
Нет, скилл состоит только из инструкций (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