knowledge-distiller-new
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "knowledge-distiller-new" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-38b5a6301dce06a1d31f741080121db7a069ef2d6a8354606d8c0dcdabb8886f. Verify the upstream source and version against https://skillhub.cn/skills/user_fa14b5bc/knowledge-distiller-new before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Tool that converts fragmented conversations and notes into structured knowledge cards. Process: scan → segment → model classification (four classes: fact/opinion/todo/insight) → Jaccard deduplication → write to knowledge base in Markdown and automatically maintain tag index. Supports incremental distillation (--since) and forced tag [!distill], and includes a standalone Python distiller with four commands (init/scan/commit/stats).
Introduction source: third_party · user_fa14b5bc · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Inputs and outputs
- Translation pending; see source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: "knowledge-distiller-new"
description: "将碎片化对话与笔记转化为结构化知识卡片。扫描→分段→模型分类(事实/观点/待办/灵感四类)→Jaccard 去重→写入知识库 Markdown 并自动维护标签索引。支持增量蒸馏(--since)、[!蒸馏] 强制标记。附带独立 Python 蒸馏引擎(init/scan/commit/stats 四命令)。"§0 快速开始
首次: 用户说"创建知识库" → init 生成 kb.md
蒸馏: 用户说"蒸馏最近对话"或定时触发 → scan → 分类 → commit
查询: 直接翻 kb.md 或用标签索引检索
§1 工作流
1.1 初始化知识库
执行 python knowledge_distiller.py init --output <kb_path> 创建空的 kb.md 模板。
1.2 蒸馏(核心流程)
三步:scan → 分类 → commit
步骤1:扫描
python knowledge_distiller.py scan \
--sources <对话目录> <笔记目录> \
--output candidates.json \
[--since 2026-07-20]
--since:仅扫描此日期后修改的文件,用于增量蒸馏- 输出 candidates.json:候选片段列表,每项含 id/source/content/char_count
步骤2:分类
Agent 读取 candidates.json,对每个片段判定四类之一并补充元数据:
[
{
"id": "abc123",
"source_label": "周报.md",
"source_path": "/path/to/周报.md",
"content": "Q2 营收 3.2 亿,同比增长 18%...",
"type": "事实",
"title": "Q2营收突破3亿",
"date": "2026-07-27",
"tags": ["营收", "季度数据"],
"type_code": "F"
}
]
分类规则:
- 事实:含数据/日期/名称/引用来源 →
"type": "事实" - 观点:含判断词(应该/可能/我认为/这说明)→
"type": "观点" - 待办:含任务词(做/完成/提交/记得)+ 目标对象 →
"type": "待办" - 灵感:上述三类都不匹配但内容新颖/有创意 →
"type": "灵感" - 不确定时默认"灵感"
步骤3:提交
python knowledge_distiller.py commit \
--kb kb.md \
--classified classified.json
脚本自动去重(Jaccard > 0.6 跳过)→ 分配 ID → 写入 kb.md → 重建标签索引。
1.3 增量蒸馏
用户说"蒸馏一下"或 automation 触发时,使用 --since 参数仅扫描近期修改的文件。
默认 --since 取上次蒸馏日期(从 kb.md 的「最后更新」时间戳推算)。
1.4 手工标记强制蒸馏
用户可在对话中标记片段:
[!蒸馏]标记前后段落为强制候选(即使 < 30 字也给过)- scan 阶段检测
[!蒸馏]模式,该类片段不受 min_chars 限制
§2 Agent 分类 Prompt 模板
你是知识分类器。请对以下候选片段逐一判定类型(事实/观点/待办/灵感),
并为每项补充 title(≤20字)、date(当天日期)、tags(2-4个标签,不含#)。
分类依据:
- 事实:含数据/日期/名称/引用来源
- 观点:含判断词(应该/可能/我认为/这说明/从XX看)
- 待办:含任务词(做/完成/提交/记得)+ 目标对象
- 灵感:不匹配上述三类但有新颖性
输出 JSON 数组格式,字段:id, type, title, date, tags, type_code。
保留原始 id, source_label, source_path, content 字段不变。
候选片段如下:
<粘贴 candidates.json 中内容>
§3 输出呈现
提交完成后,向用户呈现摘要:
## 蒸馏完成
本次扫描 {N} 个文件,提取 {M} 个候选片段,新增 {X} 张卡片,跳过去重 {Y} 张。
### 新增卡片
- **[F20260727-001] Q2营收突破3亿** #营收 #季度数据
- **[O20260727-001] 关于XX赛道的判断** #赛道分析
- **[T20260727-001] 完成竞品分析报告** #待办 #竞品
- **[I20260727-001] 监控周报自动推送** #灵感 #自动化
知识库更新至 {total} 张卡片 → [kb.md](<路径>)
§4 定时调度
配置 automation 时,prompt 模板:
执行知识蒸馏。先 scan 对话与笔记目录(使用 --since 取上次蒸馏日期),
对候选片段分类后 commit 到 kb.md。仅输出摘要。
§A 错误码
| 错误码 | 含义 | 处理 |
|---|---|---|
| E1 | 知识库不存在 | 引导用户先 init |
| E2 | 无文本文件 | 提示确认源目录路径 |
| E3 | 候选片段为空 | "本期无新内容可蒸馏" |
| E4 | commit 后 0 新增 | "所有候选均与已有卡片重复,已静默跳过" |
§F 版本
v1.0(2026-07-27)· 首次发布 (内容由AI生成,仅供参考)
Current listing version
1.0.0
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 提供端到端知识蒸馏工作流,解决碎片信息结构化痛点
- 支持增量蒸馏与强制标记,兼顾自动化与人工干预
- 四类分类模型+Jaccard去重+标签索引,功能闭环完整
Highlights
- 触发词覆盖'蒸馏最近对话'、定时触发、[!蒸馏]标记等多种场景
- description精准描述核心能力边界,无歧义
Areas to improve
-
缺少 When to Use 显式章节 Reported severity: Minor
文档使用'快速开始'而非标准'When to Use'章节命名
Recommendation: 建议增加显式'When to Use'章节以提升规范一致性
Highlights
- Phase划分清晰(init/scan/commit/stats四命令)
- 含完整端到端示例与错误码说明
- frontmatter完整,文档结构专业
Areas to improve
-
文档含AI生成声明 Reported severity: Minor
文末标注'内容由AI生成,仅供参考'可能影响用户信任度
Recommendation: 建议移除或移至附录,突出工具本身可靠性
Highlights
- 工具来源明确(knowledge_distiller.py),参数说明完整
- 覆盖E1-E4主要异常场景,具备错误处理机制
- commit阶段含Jaccard去重,防止知识库冗余
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.