Logo: Component Distill

Component Distill

Communautéit
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.

Iwwersiicht

EditeurBandersnatch0x
Repositorydesign-playbook
Skill-Nummcomponent-distill
Stären
3
Forks
0
Matgeliwwert Dateien
Nëmmen Instruktiounen
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • Alles an den Instruktiounen

    Alles, wat de Modell brauch, steet an den Instruktiounen — keng zousätzlech Dateien ze synchroniséieren.

  • Open Source

    Bandersnatch0x huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Component Distill an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/Bandersnatch0x/design-playbook/tree/main/packages/design-playbook/skills/component-distill
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

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
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Component Distill an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Component Distill automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Component Distill net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

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

Heefeg gestallte Froen

Wat mécht de KI-Skill 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.

Firwat Component Distill op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Component Distill besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Component Distill an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/Bandersnatch0x/design-playbook/tree/main/packages/design-playbook/skills/component-distill an. TypingMind liest d'Datei SKILL.md an installéiert de Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Component Distill benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Component Distill benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Component Distill domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Component Distill gratis?

Bandersnatch0x huet de Skill op GitHub publizéiert. Kuckt am Repository no de Lizenzbedéngungen. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇