Command Palette

Search for a command to run...

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

code-distill

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

On-demand pattern extraction from a specific GitHub codebase, given a focused query — "how does shadcn/ui implement the design system", "how does opencode use…

pproencaот pproenca★ 231 звезда на GitHub

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

Code-Distill — Pattern Extraction Methodology for GitHub Codebases

Methodology distillation of the generic moves an agent makes when distilling code patterns on demand from a specific GitHub codebase, given a focused query. Not a per-library skill — one skill plus a thin per-library record in the shared knowledge graph (/knowledge/libraries/), because 90% of the work is the same regardless of which repo.

This is the dynamic light sibling of your static code-atlas distillations: opencode-ts, openai-codex-rust-patterns, nextjs-ppr-patterns. Those skills are heavy curated outputs — they distilled patterns from a single repo ahead of time. This skill is the on-demand alternative: when no static skill exists for the library yet, point at the repo and let the methodology run.

When to Apply

Use this skill when:

  • The user asks "how does <library> implement <feature>?" and points at (or names) a real GitHub repo
  • The query is focused on a single subsystem (design system, composition, state, error handling, effects, build, routing) — not "what is this whole codebase?"
  • No static code-atlas skill exists for the library yet (or the existing one is stale)
  • An ad-hoc invocation looks like /distill <library> <query> or "show me X in repo Y" in natural language
  • The library has too small a surface area, or too short a lifespan, to justify authoring a full static code-atlas distillation

This skill is NOT for:

  • Libraries with a static code-atlas skill — use opencode-ts, openai-codex-rust-patterns, nextjs-ppr-patterns, or other shipped per-library skills first. They are faster (already curated) and incorporate failure-gap lessons this skill cannot rediscover on demand.
  • Full-codebase architecture mapping — when the question is "what does this whole codebase do, by domain?", use codebase-comprehension-algorithms. That skill is the heavy algorithmic toolkit (Leiden, MoJoFM, SBM); this skill is focused-query extraction.
  • Authoring a full static code-atlas skill — the methodology playbook for that authoring task is a separate (not-yet-built) skill, the code-source sibling of library-reference-distillation. When you find yourself running code-distill against the same library more than ~3 times, that is the signal to graduate to a full static skill.
  • Documentation lookup — for "where do I find X in <library> docs?" use docs-search. This skill is for source code, not docs.

How to Use

The four categories are orthogonal moves. Match the symptom to the move:

Symptom Reach for First rule to read
About to grep blindly, query is vague Find find-classify-query
About to read a whole file before locating the pattern Find (grep) find-grep-before-read
Found a candidate file; not sure if it's idiomatic Find (tests) find-tests-show-intent
About to scan knowledge/libraries/ before reading the named entry Find (bounded read) find-bounded-knowledge-read
Found the implementation; need to map its public surface Trace (outward) trace-imports-outward
Have the public surface; need to see variants & evolution Trace (inward) trace-usages-inward
Buried in boilerplate, legacy paths, test scaffolding Filter filter-load-bearing
Done — about to close the session Capture capture-registry-record

For category overviews and ordering rationale, see references/_sections.md.

Rule Categories

# Category Prefix Move Rules
1 Find find Locate the right code given the query; bounded read of knowledge 4
2 Trace trace Follow imports and usages to map the pattern 2
3 Filter filter Cut noise to surface load-bearing pattern 1
4 Capture capture Write code topography to registry/ for reuse 1

Quick Reference

1. Find

  • find-classify-query — Classify the query (component / composition / state / effect / error / build / routing) before grepping; the classification picks the grep targets and folder hints
  • find-grep-before-read — Grep narrowly first to pinpoint files; never start by reading whole files
  • [find-tests-show-intent](references/find-tests-show-int
Полный SKILL.md на GitHub

Установить code-distill в Claude Code и Claude Desktop

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

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

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

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

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

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

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

AGENTS.mdmetadata.jsonreferences/_sections.mdreferences/capture-registry-record.mdreferences/filter-load-bearing.mdreferences/find-bounded-knowledge-read.mdreferences/find-classify-query.mdreferences/find-grep-before-read.mdreferences/find-tests-show-intent.mdreferences/trace-imports-outward.mdreferences/trace-usages-inward.md

FAQ

Что делает скилл code-distill?

On-demand pattern extraction from a specific GitHub codebase, given a focused query — "how does shadcn/ui implement the design system", "how does opencode use effect-ts", "how does base-ui handle composition" — when no pre-distilled static rule pack exists yet. Distills the generic pattern-extraction moves — classify the query before grepping (component / composition / state / effect / error / build / routing), grep before reading whole files, treat tests and examples/ as canonical intent, follow imports outward for the public surface, follow usages inward for variants, filter boilerplate / legacy / test scaffolding to surface load-bearing code, and capture findings to /knowledge/libraries/ for reuse. Dynamic light sibling of static code-atlas skills (opencode-ts, openai-codex-rust-patterns, nextjs-ppr-patterns). Triggers on "show me how <library> implements X", "find the <pattern> in <repo>", "distill <library>", and ad-hoc /distill-<library>-style invocations.

Как установить скилл code-distill?

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

Скилл code-distill запускает скрипты?

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

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

Сравнить code-distill с