Логотип Component Distill

Component Distill

Сообщество
Bandersnatch0x
component-distill

Cross-run component backflow. Derive the reusable components that have recurred across iterated pages and render a propose-only promotion proposal for user adjudication. Use when iterated pages may have produced components worth promoting into DESIGN.md or the same component recurs across runs and scenes. Also use when the user asks what the pages have taught the design system. Report-only, never writes DESIGN.md or any authority.

Обзор

ИздательBandersnatch0x
Репозиторийdesign-playbook
Название навыкаcomponent-distill
Звёзды
3
Форки
0
Файлы в комплекте
Только инструкции
Ссылки
  • Инструкции в формате Markdown

    Модель загружает файл SKILL.md по мере необходимости, поэтому токены расходуются только при подходящем запросе.

  • Работает с любой большой языковой моделью

    Навыки ИИ — это обычный Markdown, а не код для конкретного поставщика, поэтому они работают с GPT, Claude, Gemini, Grok и локальными моделями.

  • Всё необходимое — в инструкциях

    Всё необходимое для модели содержится в инструкциях — никаких дополнительных файлов для синхронизации.

  • Открытый исходный код

    Издатель навыка на GitHub — Bandersnatch0x. Перед установкой изучите исходные материалы.

Установка

Установите навык ИИ Component Distill в TypingMind, чтобы использовать его с любой LLM, или добавьте его в другой агент, который умеет читать SKILL.md.

1

Установка в TypingMind

TypingMind устанавливает навык прямо из его папки на GitHub: читает SKILL.md, собирает файлы ресурсов и сохраняет результат локально.

  1. Откройте приложение и перейдите в раздел «Плагины → Навыки».
  2. Выберите «Установить из GitHub».
  3. Вставьте указанную ниже ссылку на папку навыка и подтвердите установку.
    https://github.com/Bandersnatch0x/design-playbook/tree/main/packages/design-playbook/skills/component-distill
  4. Включите навык в каждом чате, где хотите его использовать.
Плагины → Навыки → Добавить навык → По ссылке GitHub, затем вставьте ссылку на папку и нажмите «Продолжить».
2

Установка в другом агенте

Любой агент с поддержкой формата Agent Skills может использовать этот навык — скопируйте папку в каталог навыков этого агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Bandersnatch0x/design-playbook.git /tmp/design-playbook
mkdir -p .claude/skills
cp -r /tmp/design-playbook/packages/design-playbook/skills/component-distill .claude/skills/component-distill
После копирования перезапустите Claude Code, чтобы загрузить новый навык.

Использование в TypingMind

Включите навык Component Distill в любом чате TypingMind, и дальше модель всё сделает сама. Его название и описание хранятся в системном промпте, а при появлении подходящего запроса модель сама загружает полные инструкции. Вам не нужно вызывать навык вручную, и до фактического использования он не расходует токены.

Модель сама загружает навык Component Distill, как только появляется подходящий для него запрос.

Работает с любой моделью ИИ

Навыки ИИ — это обычные инструкции в Markdown, а не код для конкретного поставщика, поэтому навык Component Distill не привязан к модели, для которой он был создан. Установите его один раз в TypingMind и используйте с GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama или локальной моделью, которую запускаете самостоятельно, — со своими ключами API.

  • Загружается только при необходимости

    Системный промпт содержит только название и описание. Инструкции загружаются при первом подходящем запросе, поэтому неиспользуемый навык не расходует токены.

  • Меняйте модели прямо в чате

    Навык состоит из инструкций, а не кода, поэтому смена модели не нарушает его работу: новая модель читает тот же файл SKILL.md.

Инструкции навыка

Это содержимое файла SKILL.md, которое загружает модель. Прочитайте его перед установкой: навык — это инструкции, которым будет следовать ваша модель.

component-distill

Distill the recurring components out of iterated pages and propose promoting them into the project DESIGN.md. This is the backflow leg of the pipeline: design-baseline reads the baseline into pages once. This skill reads the pages back toward the baseline. It is propose-only and user-gated; it never writes DESIGN.md or any authority. Promotion is a user decision (governance log) executed only by design_baseline.py promote (ADR-0012).

This is a cross-run review, not a step of a single Design I/O run. It reads prior runs' decision-report.md files and emits a proposal artifact for user adjudication.

Authority boundary

This skill ownsDoes not own
Deriving recurring-component candidates across runsDurable write to DESIGN.md (design_baseline.py promote, T-070)
Rendering the propose-only promotion proposalThe user promotion decision (governance log, user-only)
Reporting distance-to-threshold for below-threshold signalsComponent and template selection for a run (ui-picker)

Deep module (SSOT for deterministic work)

Derivation lives in ../../scripts/component_candidates.py:

python
candidate_view(reports_by_run) -> dict   # qualifying + below_threshold + gaps

reports_by_run maps a run id to its decision-report.md text. The module prefers the Fill face in a text code fence. It also accepts legacy reports whose Fill face is unfenced top matter (parsing stops before the first ## DD-* entry). It parses components: and counts only path-shaped reuse <path> or extend <path> targets. A new entry or prose such as “no component” is not a candidate. A candidate qualifies when it recurs across distinct runs ≥ 3 AND distinct scenes ≥ 2. Explanatory suffixes in scene after ( / ( do not create a new scene identity. Every group is returned, qualifying first, then below-threshold signals with their gap list, so distance to qualification is visible, never silent.

Candidate identity is currently the referenced file path. Multiple selectors or domain components implemented in one file therefore remain one candidate. Changing identity to path#selector (and migrating governance targets, provenance, and merge semantics) is a separate schema-level change, not inferred by this skill.

Workflow

  1. Discover runs. Scan the project's .scratch/<run>/ dirs for a decision-report.md. List dirs without one as skipped (they contribute 0 references). If fewer than 2 runs carry a decision report, report that count and stop, backflow needs history to mean anything.
  2. Derive. Build reports_by_run and call candidate_view. Read-only: parse, never mutate.
  3. Render the proposal (markdown, report header component-distill/v1) at the invocation-level output path the caller names (not a single run's design-baseline/ dir; this is a cross-run artifact). Sections:
    • Inclusion manifest, run | status (included / skipped + reason).
    • Qualifying candidates, one block per candidate: component path, recurrence, distinct runs, distinct scenes, the contributing references (run / role / action / scene), and a decision slot for the user (promote | reject | defer).
    • Below threshold, candidates approaching the threshold with their gap list (e.g. distinct_runs 2 < 3), so the distance is visible.
    • Coverage, runs_with_components / total_references, so an empty corpus reads as "no qualifying candidates + why", never silence.
  4. Adjudicate (user). Present the proposal. The user marks each qualifying candidate. Record the decision as a governance event (agent may append promotion_candidate_opened; only the user's promotion_decided carries promote/reject/defer). In this local-file architecture, decided_by: user is an explicit attestation enforced by the read and write protocol, not cryptographic or OS-backed identity authentication. Processes with filesystem write access remain inside the local trust boundary. This skill stops at the proposal; it does not write DESIGN.md.
  5. Promote through the write seam. design_baseline.py promote re-derives the current project candidate view. It refuses components that no longer meet the threshold or lack a project-relative source file, even when an older user decision exists.

Done when: all these conditions hold. The proposal artifact exists at the named output path. Qualifying candidates carry full provenance and a decision slot. Below-threshold signals carry their gaps. Nothing under the project DESIGN.md was touched.

Scope fence

InOut of scope
Derive a proposal from cross-run component recurrenceDurable DESIGN.md merge belongs to design_baseline.py promote (T-070)
Report-only candidate derivationRecord the user decision in the promotion governance log
Token candidates (counted)Token promotion into baseline is tracked in T-072

Часто задаваемые вопросы

Что делает навык ИИ Component Distill?

Cross-run component backflow. Derive the reusable components that have recurred across iterated pages and render a propose-only promotion proposal for user adjudication. Use when iterated pages may have produced components worth promoting into DESIGN.md or the same component recurs across runs and scenes. Also use when the user asks what the pages have taught the design system. Report-only, never writes DESIGN.md or any authority.

Зачем использовать Component Distill в TypingMind?

Потому что вы устанавливаете навык один раз и используете его с любой моделью. Component Distill — это обычный текст в формате Markdown, а не код для конкретного поставщика, поэтому один и тот же навык работает с GPT-5, Claude, Gemini, Grok или локальной моделью. Вы можете менять модель прямо во время чата, и навык продолжит работать. TypingMind использует ваши собственные ключи API, поэтому вы платите поставщикам напрямую, а не оформляете подписку с оплатой за каждое место. Ваши навыки и чаты остаются в вашем собственном хранилище.

Как установить Component Distill в TypingMind?

В TypingMind откройте «Плагины → Навыки → Установить из GitHub» и вставьте https://github.com/Bandersnatch0x/design-playbook/tree/main/packages/design-playbook/skills/component-distill. TypingMind прочитает файл SKILL.md и установит навык, который можно включать отдельно для каждого чата.

Какие модели ИИ могут использовать Component Distill?

Любая модель, которую вы подключите в TypingMind. Навыки ИИ — это обычные инструкции в формате Markdown, а не код для конкретного поставщика, поэтому GPT, Claude, Gemini, Grok и локальные модели могут загружать этот навык, когда запрос ему соответствует.

Со сколькими моделями ИИ можно использовать Component Distill?

С любым количеством. В TypingMind вы можете использовать Component Distill с любой моделью, которая поддерживает навыки, в том числе с GPT, Claude, Gemini, Grok, DeepSeek, Mistral и Llama. Для этого вы используете собственные ключи API.

Бесплатен ли навык ИИ Component Distill?

Навык опубликован на GitHub. Издатель — Bandersnatch0x. Условия лицензии можно найти в репозитории. Вы платите только своему поставщику ИИ за использованные токены.

Что такое навыки ИИ?

Навык ИИ — это набор инструкций, которыми модель ИИ может пользоваться каждый раз, когда ей нужно выполнить конкретную задачу. Он соответствует открытому формату Agent Skills: файл SKILL.md с названием и описанием, а также любые скрипты, шаблоны или справочные файлы, которые могут понадобиться модели. Модель читает инструкции, только когда ваш запрос соответствует навыку, поэтому установленный навык ничего не стоит, пока не используется.

Чем навыки ИИ отличаются от плагинов и серверов MCP?

Плагин или сервер MCP даёт модели новые инструменты, которые она может вызывать: при вызове где-то выполняется код и возвращает результат. Навык ИИ, напротив, даёт модели знания и описывает порядок действий: как подойти к задаче, какие шаги выполнить и каким должен быть хороший результат. Навыки — это обычный текст в формате Markdown, поэтому им не нужны сервер, ключ API или среда выполнения, и они работают с любой моделью.

Все

Создайте своё рабочее пространство с ИИ прямо сейчас

Подпишитесь на нашу рассылку, чтобы узнавать о новых функциях и предстоящих розыгрышах 👇