← 返回 Skills 市场
vineindalvik

kb-digest

作者 vine.xio · GitHub ↗ · v1.2.0 · MIT-0
cross-platform ✓ 安全检测通过
129
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install kb-digest
功能描述
知识提炼器:任意链接/PDF/文字,一条命令提炼成结构化知识卡片。支持生成摘要、Q&A、思维导图、播客脚本。当用户想消化文章、研究论文、整理信息、做知识管理时触发。
使用说明 (SKILL.md)

kb-digest

任何内容 → 结构化知识卡片。扔进去,出来就能用。

快速开始

cd /path/to/kb-digest
pip install -r requirements.txt
python handler.py --url "https://example.com/article"

OpenClaw 会自动注入 OPENCLAW_LLM_API_KEYOPENCLAW_LLM_BASE_URLOPENCLAW_LLM_MODEL,无需手动配置。

命令

# 从 URL 生成知识卡片(默认输出)
python handler.py --url "https://arxiv.org/abs/1706.03762"

# 从 PDF
python handler.py --pdf paper.pdf

# 从文字粘贴
python handler.py --text "把这段内容结构化..."

# 指定输出格式
python handler.py --url "..." --output card      # 知识卡片(默认)
python handler.py --url "..." --output mindmap   # 思维导图(Markdown)
python handler.py --url "..." --output qa        # Q&A 问答对
python handler.py --url "..." --output podcast   # 播客对话脚本
python handler.py --url "..." --output summary   # 纯摘要

# 保存到文件
python handler.py --url "..." --save output.md

# 推送到飞书(需设置 FEISHU_WEBHOOK_URL)
python handler.py --url "..." --push feishu

# 批量处理
python handler.py --batch urls.txt

输出示例(知识卡片)

📚 知识卡片 | Attention Is All You Need

💡 一句话
  用纯自注意力机制替代 RNN/CNN,开创 Transformer 架构。

🔑 核心要点
  1. Self-Attention 允许序列中任意位置直接交互,无需逐步传递
  2. Multi-Head Attention 从多个子空间捕捉不同语义关系
  3. Positional Encoding 以正弦波注入位置信息
  4. 训练速度比 RNN 快 8 倍(可并行化)

❓ Q&A
  Q: 为什么比 RNN 快?
  A: RNN 必须串行处理,Transformer 全序列并行计算

🧠 思维导图
  Transformer
  ├── Encoder ×6
  │   ├── Multi-Head Self-Attention
  │   └── Feed-Forward Network
  └── Decoder ×6
      ├── Masked Self-Attention
      ├── Cross-Attention(看 Encoder)
      └── Feed-Forward Network

🔗 延伸阅读
  BERT | Vision Transformer (ViT)

来源: https://arxiv.org/abs/1706.03762
生成: 2026-04-11 18:05

环境变量

变量 说明 必填
OPENCLAW_LLM_API_KEY 大模型 API Key ✅(OpenClaw 自动注入)
OPENCLAW_LLM_BASE_URL 大模型 API 地址 ✅(OpenClaw 自动注入)
OPENCLAW_LLM_MODEL 大模型名称 ✅(OpenClaw 自动注入)
FEISHU_WEBHOOK_URL 飞书推送 Webhook 推送用

支持的输入格式

  • URL: 网页文章、arXiv 论文、GitHub README
  • PDF: 研究论文、报告、书籍章节
  • 文本: 直接粘贴任意文字
  • 批量: 一个文件列出多个 URL,逐条处理
安全使用建议
This skill is coherent with its stated purpose, but check a few practical points before running: (1) The skill sends extracted content to whatever LLM base URL and API key are configured — do not send sensitive or confidential documents unless you trust the model endpoint. (2) The SKILL.md expects OpenClaw to inject OPENCLAW_LLM_* variables; verify the platform will provide them or pass overrides via CLI. (3) The package suggests installing dependencies via pip; review requirements.txt and run in a virtual environment. (4) The registry metadata/version mismatch and the SKILL.md declarations are minor packaging issues — if you need high assurance, ask the publisher for an authoritative homepage or audit the repository. (5) If you plan to enable Feishu push, ensure the FEISHU_WEBHOOK_URL points to a trusted webhook (webhooks can receive whatever output the skill sends).
能力评估
Purpose & Capability
The skill's name/description (extract structured knowledge from URLs/PDF/text) aligns with the code and SKILL.md. Minor metadata mismatches: registry metadata lists no required env/binaries while SKILL.md declares python3 and three OpenClaw-injected LLM env vars; SKILL.md version (1.1.0) differs from registry version (1.2.0). These look like packaging/metadata inconsistencies rather than malicious intent.
Instruction Scope
SKILL.md and handler.py instruct the agent to fetch web pages or PDFs, extract text, then call an LLM endpoint with that text. The runtime only reads a local .env (optional), command-line args, and the specified input files/URLs. There are no instructions to read unrelated system files or to transmit data to endpoints other than the configured LLM base URL and an optional Feishu webhook.
Install Mechanism
No install spec in registry; it's an instruction-only skill with requirements.txt and a recommendation to pip install. This is low-risk compared with arbitrary downloads. The pip packages requested (requests, pypdf, markdownify, python-dotenv) are appropriate for the described functionality.
Credentials
The skill requires an LLM API key/base URL/model (OPENCLAW_LLM_*) which are necessary for its behavior. The optional FEISHU_WEBHOOK_URL for pushing results is proportional. It does not request unrelated credentials or system config paths.
Persistence & Privilege
always is false and the skill does not attempt to modify other skills or system-wide configs. It only reads/writes files it is explicitly given (e.g., saving outputs) and an optional local .env file in the skill directory.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install kb-digest
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /kb-digest 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.2.0
Initial release on ClawHub
v1.1.0
kb-digest 1.1.0 - 新增多种输出格式:支持知识卡片、摘要、Q&A、思维导图、播客脚本 - 支持 URL、PDF、纯文本等多类型输入 - 批量处理功能上线,可一次处理多个链接 - 增加飞书推送能力 - 全面更新命令行用法说明及环境变量配置文档 - 详细输出示例,帮助用户快速上手
元数据
Slug kb-digest
版本 1.2.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 2
常见问题

kb-digest 是什么?

知识提炼器:任意链接/PDF/文字,一条命令提炼成结构化知识卡片。支持生成摘要、Q&A、思维导图、播客脚本。当用户想消化文章、研究论文、整理信息、做知识管理时触发。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 129 次。

如何安装 kb-digest?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install kb-digest」即可一键安装,无需额外配置。

kb-digest 是免费的吗?

是的,kb-digest 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

kb-digest 支持哪些平台?

kb-digest 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 kb-digest?

由 vine.xio(@vineindalvik)开发并维护,当前版本 v1.2.0。

💬 留言讨论