Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计提醒

distill设计提炼

Agent Skill

distill 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

192

周安装

8

GitHub Stars

公开资料未说明

下载量

64
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:distill(设计提炼)
来源仓库:https://github.com/abpai/skills
仓库路径:skills/distill
安装命令:
npx skills add https://github.com/abpai/skills --skill distill
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/abpai/skills --skill distill

简介

distill 用于提炼复杂系统的核心抽象,帮助构建更清晰的技术模型。

  • 适合在分析大型项目或技术架构时,快速识别关键组件与行为本质。
  • 通过迭代压缩方式将系统简化为最小可理解单元,便于后续开发参考。
  • 安装命令:npx skills add https://github.com/abpai/skills --skill distill
  • 需确认权限范围及是否触发联网或文件操作,建议结合原始 README 核验细节

SKILL.md

Distill

A skill for iteratively compressing complex systems down to their essential primitives — the minimal set of abstractions that captures the full behavioral essence while discarding accidental complexity.

Use distill when the user needs a cleaner mental model of something complicated. If the real need is to generate non-obvious hypotheses, cross-domain analogies, or mechanism transfers, prefer lateral-thinking instead.

Think of it like Andrej Karpathy reducing an automated research system to three files (train.py, prepare.py, program.md). The goal is not summarization — it's re-expression in minimal form.

Core Concepts

Primitives: The irreducible building blocks that can't be decomposed further without losing essential behavior. A good primitive set is:

  • Complete — you can reconstruct the full system's behavior from just these pieces
  • Orthogonal — each primitive captures something the others don't
  • Minimal — removing any one primitive loses something essential

Distillation vs. Summarization: Summarization preserves information at lower fidelity. Distillation re-expresses the essence in a new, cleaner form. The output of distillation is often *more useful* than the original because it strips away accidental complexity.

Accidental vs. Essential Complexity (per Fred Brooks): Essential complexity is inherent to the problem. Accidental complexity comes from the implementation. Distillation separates them.

Workflow

The distillation process has two phases: Orient and Compress. These iterate until the user is satisfied with the decomposition.

Phase 1: Orient

Before proposing any decomposition, understand what the user cares about. This determines what counts as "essential."

Ask clarifying questions like:

  • What are you trying to *do* with this understanding? (Build on top of it? Rewrite it? Teach it? Make decisions about it?)
  • What layer are you most interested in? (Business logic? Data flow? API surface? Conceptual model?)
  • Is there a part you already understand well vs. a part that's opaque?
  • What's your current mental model, even if rough?

Keep this phase lightweight — 2-4 questions max. The goal is to calibrate, not to conduct a full interview. If the user's intent is obvious from context, skip straight to Phase 2.

Phase 2: Compress

This is the iterative core. Each turn follows this pattern:

Step 1: Propose Primitives

Present a candidate decomposition. Format depends on context (see Output Formats below), but always include:

  1. The primitive set — named, with a one-sentence description of each
  2. Proposed granularity — how many primitives, and why this number
  3. What was discarded — what you treated as accidental complexity and removed
  4. Confidence flags — where you're least sure about the decomposition

Example of a good proposal:

## Proposed Primitives (4)

1. **Ingestion** — accepts raw input (PDF, URL, repo path) and normalizes to
   a common internal representation
2. **Chunking** — splits normalized input into semantically meaningful units
3. **Extraction** — pulls structured claims/facts/abstractions from each chunk
4. **Synthesis** — combines extracted pieces into the final compressed output

Discarded as accidental: file format handling, caching, logging, CLI argument parsing

Uncertain about: whether Chunking and Extraction are truly separate primitives
or two aspects of the same operation. Interested in your read.

Step 2: Invite Pushback

Explicitly ask the user to challenge the decomposition:

  • "Does this match your intuition? What feels wrong?"
  • "Are any of these actually the same primitive in disguise?"
  • "Am I missing a primitive, or is one of these not truly essential?"

Step 3: Refine

Based on feedback, propose a revised decomposition. Show what changed and why. Repeat until the user says it feels right.

Convergence Signals

You're done when:

  • The user confirms the primitive set matches their intuition
  • Each primitive feels irreducible — you can't merge or remove any
  • The user can explain the system to someone using only these primitives
  • (For code) you could sketch a minimal implementation from just the primitive set

Output Formats

Choose the output format based on what the user needs. When in doubt, ask.

Conceptual Map (default for non-code inputs)

A structured document listing the primitives, their relationships, and how they compose to produce the full system's behavior.

# [System Name] — Distilled

## Primitives
1. **Name** — description
2. **Name** — description

## Relationships
- Primitive A feeds into Primitive B via [mechanism]
- Primitives C and D are independent but both required for [outcome]

## Reconstruction
Given these primitives, here's how the full system works: [narrative]

## What Was Discarded
- [thing] — accidental complexity because [reason]

Minimal Implementation (default for codebases)

A set of files (like Karpathy's 3 files) that capture the essential behavior. These should be:

  • Actually runnable (or close to it)
  • Named to reflect the primitives they embody
  • Stripped of all accidental complexity
  • Commented to explain what each piece maps to in the original

Behavioral Spec (when user wants a SKILL.md or similar)

A specification that captures what the system *does* without prescribing *how*. Useful when the distillation will be used to guide an agent or a rewrite.

Hybrid

For complex systems, combine formats: a conceptual map plus a minimal implementation, or a behavioral spec with a reference implementation.

Input-Specific Strategies

Codebases

  1. Start with the entry points — what gets called first?
  2. Trace the critical path for the most common operation
  3. Identify data structures that everything revolves around
  4. Look for the "God objects" — they often contain multiple primitives fused together
  5. Separate domain logic from infrastructure (HTTP, DB, auth, logging)

For multi-repo / polyglot codebases: look for the *conceptual* primitives that cross language boundaries, not the file-level structure.

Research Papers / Technical Documents

  1. What's the core claim or contribution?
  2. What's the minimal setup needed to understand that claim?
  3. What's the method, stripped of notation and formalism?
  4. What prior work is essential context vs. just literature review?

Transcripts / Conversations

  1. What decisions were made?
  2. What were the real alternatives considered (not just mentioned)?
  3. What constraints shaped the decisions?
  4. What's the underlying model/framework the participants are reasoning from?

Blog Posts / Articles

  1. What's the one idea that, if you understood it, you'd understand the whole piece?
  2. What evidence actually supports it vs. is just color?
  3. Is there an implicit framework the author is using?

Anti-Patterns

Avoid these common failure modes:

  • Summarizing instead of distilling — if your output is just a shorter version of the input with the same structure, you're summarizing, not distilling
  • Too many primitives — if you have more than 7, you probably haven't compressed enough. The sweet spot is usually 3-5.
  • Confusing implementation with essence — "uses PostgreSQL" is implementation; "needs durable ordered storage" is essence
  • Premature convergence — don't lock in after one pass. The first decomposition is usually wrong in interesting ways.
  • Symmetry bias — don't force primitives to be at the same level of abstraction. Sometimes one primitive is genuinely bigger than the others.

Session Management

Distillation often spans multiple turns. Keep a running state:

  • Current primitive set (numbered, for easy reference)
  • Open questions
  • What's been discarded and why
  • Iteration count

If the session gets long, offer to write the current state to a file so the user can resume later or hand it to another agent session.

Update Check

On first use in a session, silently check for a newer version:

  1. Fetch https://raw.githubusercontent.com/abpai/skills/main/versions.json.
  2. Compare the version for distill against this file's metadata.version.
  3. If the remote version is newer, pause before the main task and ask: distill update available (local {X.Y} → remote {A.B}). Would you like me to update it for you first? I can run npx skills update distill for you.
  4. If the user says yes, run the update before continuing.
  5. If the user says no, continue with the current local version.
  6. If the fetch fails or web access is unavailable, skip silently.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

33.09%
按下载量换算21

Claude

31.92%
按下载量换算20

Cursor

18.74%
按下载量换算12

Gemini CLI

10.27%
按下载量换算7

安全审计

Gen Agent Trust Hub

通过

Socket

可疑

Snyk

可疑

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills