Token导航 LogoToken导航

Agent Skill · 研究检索

distill-to-skill(提炼技能)

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

distill-to-skill 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证信息还不明确,第三方扫描有提醒项,按安装量在研究检索类的 73,675 个 Skill 里排第 48,263。

总安装 698周安装 30GitHub Stars 公开资料未说明下载 245核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

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

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

命令行安装

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

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

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

将任意知识源转化为结构化 Agent 技能的提炼流程。聚焦决策支持而非总结,强调任务中的实用性。提供提取、过滤、重构与编码的标准方法论。配套 skill-creator 处理目录结构与验证等机械环节。distill-to-skill 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/distill-to-skill

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/caidanw/skills --skill distill-to-skill;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

distill-to-skill 怎么安装?

在终端执行 npx skills add https://github.com/caidanw/skills --skill distill-to-skill。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

distill-to-skill 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

distill-to-skill 需要什么权限?

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

distill-to-skill 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

distill-to-skill 用的人多吗?

公开数据是累计安装 698 次,近一周安装 30 次,下载 245 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

distill-to-skill 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
distill-to-skill

提炼技能 · 本页

698—需要联网未明确有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Distill to Skill

Turn any source of knowledge into a well-structured agent skill. This is the process skill — it covers how to extract, filter, restructure, and encode knowledge. For the mechanical aspects of skill creation (directory structure, frontmatter format, validation, packaging), use the skill-creator skill.

The Distillation Mindset

A skill is not a summary. It's a decision-making tool for an agent working on a task.

When distilling, constantly ask:

  • "Would an agent mid-task benefit from knowing this?" → Keep it
  • "Is this background context or motivation?" → Cut it
  • "Is this specific to one language/framework but the idea is universal?" → Translate it
  • "Could an agent figure this out on its own?" → Cut it
  • "Does this change how the agent would write code or make decisions?" → Keep it

The goal: an agent loads this skill and immediately writes better code or makes better decisions, without having read the original source.

Workflow

Step 1: Absorb the Source

Read the full source material thoroughly. For repos, explore the architecture, key files, and patterns. For articles, read end to end. Don't skim — the best insights are often buried in asides, footnotes, and "by the way" paragraphs.

For articles/blog posts:

  • Fetch the URL and read the full content
  • Note the core thesis (usually 1-2 sentences)
  • Identify the actionable rules vs the explanatory prose
  • Note any concrete code examples or patterns

For repos:

  • Explore directory structure, entry points, key modules
  • Read the core implementation files (not the tests or config)
  • Identify the design patterns, not the specific implementation
  • Note the TypeScript/type tricks, architectural decisions, and utility patterns
  • Look at what's deliberately *absent* — that's often the most interesting insight

For multiple sources on a theme:

  • Find the common thread across sources
  • Note where sources agree (high-confidence patterns)
  • Note where they diverge (context-dependent decisions)

Step 2: Extract the Transferable Core

Separate the essence from the packaging:

KeepCut
Universal principlesAuthor's personal journey
Concrete patterns with codeMotivational framing
Decision rules ("when X, do Y")Background on why the field exists
Anti-patterns and pitfallsComparisons to other approaches
Copy-paste utilitiesHistorical context
Checklists"Further reading" recommendations

The litmus test: If you removed the original source from existence, would this skill still be useful on its own? If yes, you've extracted the core correctly.

Step 3: Decide the Skill Shape

Single concept, self-contained → SKILL.md only (no references)

Use when the idea can be fully expressed in ~100-250 lines. The concept is cohesive enough that splitting it would lose the thread.

Examples from today's work:

  • parse-dont-validate — One core idea (parse > validate) with practical rules
  • karpathy-guidelines — A set of behavioral rules
  • agents-md — How to write one specific file type

Broad topic with depth → SKILL.md + references/

Use when there are multiple distinct sub-topics that an agent might need independently. SKILL.md carries the principles and quick-reference; references carry the deep dives.

Examples:

  • lean-ts-patterns — 7 principles in SKILL.md, 5 reference files by domain
  • agent-first-repo — 3 pillars in SKILL.md, 3 reference files for each pillar

Multiple independent ideas → Split into separate skills

If the source contains 2+ concepts that would trigger in different contexts, make separate skills. They can cross-reference each other.

Example: The OpenAI harness engineering article → split into agents-md (how to write the file) + agent-first-repo (broader repo structure) because they trigger in different contexts.

Decision heuristic:

Does this source contain one core idea?
  YES → Single SKILL.md
  NO → Are the ideas used together?
    YES → SKILL.md + references/
    NO → Separate skills that cross-reference

Step 4: Translate to the User's Ecosystem

The source may be in Haskell, Rust, Go, or plain English. The skill should use the user's preferred language and ecosystem.

  • Code examples: Rewrite in the target language (typically TypeScript/Bun)
  • Library references: Map to the target ecosystem's equivalents
  • Idioms: Use the target language's patterns (e.g., branded types instead of newtypes)
  • Keep it runnable: Code in the skill should be copy-pasteable and work

If the original insight is language-agnostic, use the target language for examples but keep the prose universal.

Step 5: Structure the Skill

Follow this template for SKILL.md:

---
name: skill-name
description: >-
  [What this enables]. [When to use it — specific scenarios].
  Triggers on: [concrete trigger phrases].
---

# Title

[1-2 line summary. Source attribution if from a specific article/repo.]

## [Core Concept / Principles]

[The distilled rules. Concise. Imperative voice. Code examples inline.]

## [Practical Patterns / Copy-Paste Code]

[Things the agent can use immediately. Concrete, not abstract.]

## [Anti-Patterns / What to Avoid]

[Common mistakes. What NOT to do is often more valuable than what to do.]

## [Checklist / Code Review Guide]

[Verification points. Things to check when reviewing code.]

For reference files, each should:

  • Start with a 1-2 line summary of what it covers
  • Be self-contained — readable without SKILL.md for context
  • Include the relevant companion skill name-drops (not full content)
  • Stay under ~300 lines

Step 6: Write the Description (Most Important Line)

The YAML description field is the only thing that determines whether the skill triggers. It's loaded into context permanently. Write it carefully:

  • Start with what the skill enables (not what it is)
  • List specific scenarios and file types
  • Include concrete trigger phrases the user might say
  • Keep it to 3-5 lines of YAML

Bad: "Patterns from a blog post about types." Good: "Type-driven design: transform unstructured data into precise types at system boundaries. Use when writing input validation, designing data types, or reviewing code with redundant null checks. Triggers on: 'parse don't validate', 'make illegal states unrepresentable', 'input validation'."

Step 7: Validate

Before finishing, check:

  • Could an agent use this skill without reading the original source?
  • Is every section actionable (rules, patterns, code) not explanatory (history, motivation)?
  • Are code examples in the user's preferred language and copy-pasteable?
  • Is SKILL.md under ~300 lines? (Move depth to references/ if over)
  • Does the description include concrete trigger phrases?
  • Is there a checklist or code review guide for verification?
  • Are companion skills referenced by name (not duplicated)?
  • Would removing any section make the skill less useful? If not, cut it.

Distillation Patterns

The Inversion

Many articles explain bottom-up: problem → exploration → solution. Skills should be top-down: rule → example → anti-pattern.

The agent doesn't need to be convinced. It needs to know what to do.

The Translation

Academic/theoretical sources often use abstract examples. Translate to concrete, real-world scenarios in the user's domain:

  • "NonEmpty list" → [T,...T[]] tuple type in TypeScript
  • "Sum types" → discriminated unions with kind field
  • "Smart constructor" → branded type with parse function
  • "Monad" → async pipeline / Result type

The Compression

A 5,000-word article typically distills to ~150-250 lines of skill. The compression ratio is roughly 10:1 to 20:1. If your skill is approaching the same length as the source, you're summarizing, not distilling.

The Cross-Reference

When distilling a source that touches on ideas already captured in other skills, don't re-explain — reference. Write 2-3 sentences of context for how the idea applies here, then point to the companion skill for depth.

Parse data at system boundaries into precise types — don't let raw/untyped data
flow deep into business logic. For the full treatment of branded types, smart
constructors, and the shotgun parsing anti-pattern, see the `parse-dont-validate` skill.

Source-Specific Tips

Blog posts: Usually one core idea with 60% motivation, 30% examples, 10% actionable rules. Extract the 10%, expand it with your own examples.

GitHub repos: The code IS the content. Focus on architectural patterns, utility functions worth copying, TypeScript tricks, and what's deliberately absent. Ignore CI config, test infrastructure, and build tooling unless that's the point.

Documentation: Already structured, but optimized for lookup, not for decision-making. Restructure around "when to use X" rather than "what X does."

Papers: High insight density but buried in formalism. Extract the key theorem/insight, translate to practical code patterns, drop the proofs.

Video transcripts: Extremely low density. Scan for the 2-3 key moments where the speaker says something prescriptive, ignore the rest.

For concrete before/after examples of distillation, see references/examples.md.

平台分布

Codex

34.68%
按下载量换算85

Claude

29.51%
按下载量换算72

Cursor

18.35%
按下载量换算45

Gemini CLI

8.24%
按下载量换算20

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

需要联网

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

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills