← 返回 Skills 市场
Knowledge Distill
作者
mwangxiang
· GitHub ↗
· v1.0.0
625
总下载
3
收藏
11
当前安装
1
版本数
在 OpenClaw 中安装
/install knowledge-distill
功能描述
知识蒸馏归档工具,将讨论成果按5类分类写入对应知识文档。支持小龙虾命令记忆库、专业工作知识、工作外知识、讨论过程、思维蒸馏五类归档。
使用说明 (SKILL.md)
知识蒸馏 Skill(knowledge-distill)
将讨论成果分类写入对应的知识文档,支持便捷记录命令、知识结论、思维框架。
初始化
首次使用时,检查 ~/knowledge-base/ 是否存在:
- 不存在则自动创建目录和5个空文档
- 用户可通过设置
KNOWLEDGE_BASE_PATH环境变量自定义路径
~/knowledge-base/
├── 小龙虾命令记忆库.md ← OpenClaw/CLI 命令速查
├── 专业知识蒸馏.md ← 专业领域技术结论
├── 兴趣知识蒸馏.md ← 工作以外的学习内容
├── 学习研究日志.md ← 每次讨论的过程记录
└── 思维蒸馏.md ← 方法论、认知模型、思考框架
触发词
用户说以下任一内容时启动本 skill:
- "蒸馏" / "记录到文档" / "写入蒸馏" / "存起来"
- "记一下这个命令" / "存到命令库" / "记到命令记忆库"
- 讨论结束时说"总结一下"
五类文档分工
| 目标文档 | 写入条件 | 内容类型 |
|---|---|---|
| 小龙虾命令记忆库.md | 用户说"记一下命令"、涉及 CLI/工具命令 | 命令格式、参数说明、使用场景、踩坑记录 |
| 专业知识蒸馏.md | 专业领域的技术结论 | 技术参数、操作步骤、规格数据、最佳实践 |
| 兴趣知识蒸馏.md | 工作以外的兴趣领域知识 | 与专业知识同等格式,仅领域不同 |
| 学习研究日志.md | 每次讨论的过程记录 | 问题背景、讨论过程、结论、演变脉络 |
| 思维蒸馏.md | 非具体内容的思维结晶 | 思考方式、方法论、认知模型、决策框架 |
执行流程
- 判断分类:根据内容和触发词判断写入哪个文档
- 整理内容:提炼核心结论,去掉试错过程
- 展示预览:在对话框展示整理好的内容和计划写入位置
- 等待确认:用户确认后才执行写入
- 写入日志:同步在学习研究日志记录本次讨论过程
小龙虾命令记忆库写入格式
## [命令名称]
**用途**:一句话说明这个命令做什么
**命令**:
\`\`\`bash
命令格式
\`\`\`
**参数说明**:关键参数解释(可选)
**注意**:踩坑或注意事项(可选)
**日期**:记录时间
约束
- 未经用户确认不可写入任何文档
- 蒸馏只保留最终正确结论,不保留试错过程
- 日志保留讨论脉络和演变过程
- 修改前必须先展示增删内容
- 内容简洁,每条结论独立成块,便于检索
安全使用建议
This skill appears to do what it says: it will create a ~/knowledge-base/ directory (or use KNOWLEDGE_BASE_PATH if set) and write categorized markdown notes, but SKILL.md references an environment variable (KNOWLEDGE_BASE_PATH) that is not declared in the skill metadata. Before installing, consider: 1) confirm whether you want the agent to be allowed to create/write files under your home directory and whether to change the default path; 2) ask the publisher to declare KNOWLEDGE_BASE_PATH in the metadata so the env-var use is explicit; 3) test the skill with harmless dummy text to verify it only writes after the promised confirmation; and 4) if you have sensitive data in conversations, be aware those summaries will be stored locally — verify your backup/encoding policies. If you are uncomfortable with automatic creation of files or the broad trigger phrases, do not install or request the author to narrow triggers and explicitly declare the env var usage.
功能分析
Type: OpenClaw Skill
Name: knowledge-distill
Version: 1.0.0
The skill bundle is classified as benign. Its purpose is to categorize and archive knowledge into local markdown files, which requires file system write access. Crucially, the SKILL.md instructions explicitly mandate user confirmation ('等待确认') and content preview ('展示预览') before any document write operation ('未经用户确认不可写入任何文档'). These strong safeguards significantly mitigate risks of unauthorized file modifications or prompt injection attacks, as the agent is instructed to seek explicit user approval for all write actions. There is no evidence of data exfiltration, malicious execution, persistence mechanisms, or obfuscation.
能力评估
Purpose & Capability
The name/description say the skill classifies discussion outcomes and writes them into five kinds of knowledge documents. The instructions exclusively describe creating/maintaining ~/knowledge-base and writing categorized markdown entries — this matches the declared purpose.
Instruction Scope
The runtime instructions instruct the agent to check/create ~/knowledge-base and five documents, prepare previews, and only write after user confirmation. However, the SKILL.md also refers to an environment variable KNOWLEDGE_BASE_PATH for custom paths even though no env vars are declared; per evaluation rules this access is a mismatch. The triggers (e.g., '总结一下') are somewhat broad and could activate the skill to prepare previews during normal conversation, though the skill requires confirmation before writing.
Install Mechanism
This is an instruction-only skill with no install spec and no code files — minimal installation risk and nothing is written to disk by an installer. The only disk writes come from the agent's normal runtime behavior (creating the ~/knowledge-base and files).
Credentials
Declared requirements list no environment variables, but SKILL.md documents optional use of KNOWLEDGE_BASE_PATH to override the path. That is an undeclared env-var access and should be declared in metadata. No credentials or unrelated env vars are requested, which is appropriate.
Persistence & Privilege
The skill does not request always:true, does not modify other skills or system-wide settings, and does not require elevated privileges. It will create and write files in a user-owned directory only after user confirmation.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install knowledge-distill - 安装完成后,直接呼叫该 Skill 的名称或使用
/knowledge-distill触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release
元数据
常见问题
Knowledge Distill 是什么?
知识蒸馏归档工具,将讨论成果按5类分类写入对应知识文档。支持小龙虾命令记忆库、专业工作知识、工作外知识、讨论过程、思维蒸馏五类归档。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 625 次。
如何安装 Knowledge Distill?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install knowledge-distill」即可一键安装,无需额外配置。
Knowledge Distill 是免费的吗?
是的,Knowledge Distill 完全免费(开源免费),可自由下载、安装和使用。
Knowledge Distill 支持哪些平台?
Knowledge Distill 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Knowledge Distill?
由 mwangxiang(@mwangxiang)开发并维护,当前版本 v1.0.0。
推荐 Skills