File contents 知识一键存入
知识一键存入技能帮助你将各类来源的内容快速归档到知识库。
本技能依赖 kdocs 技能的基础文档操作能力(认证、文件管理等),请确保已安装该技能。详见 references/core/ 目录。
能力范围
详细参考
文档类型
参考文件
说明
个人知识库(kwiki)
references/kwiki_references.md
知识库空间、导入云文档、库内文件夹与资料操作
操作指南
通用操作路由
意图
路由
读取文档内容
read_file(统一入口,按后缀自动返回 Markdown 或结构化数据)
创建/写入
create_file_with_content(统一入口,新建文档并写入内容,返回 link_url)
局部更新
改块/改段/改单元格,已有目标文档上的修改 → 按「支持的文档类型」→ 对应 reference
类型专属能力
条件格式、导出转换、翻译、PDF 拆分、幻灯片主题、数据校验
获取文件标识指南
必读 references/file-locating-guide.md
高频流程指引
知识一键存入
流程 :
定位知识库 :指定库名 → kwiki.get_knowledge_view(name=...);未指定 → kwiki.list_knowledge_views 推荐或引导创建
定位目标路径 :指定文件夹 → kwiki.list_items 逐层查找;不存在则 kwiki.create_item(doc_type="folder") 按层级创建
归档 :
本地文件 → upload_file 上传(保持子目录结构时递归创建文件夹)
网页 → scrape_url + scrape_progress → move_file 移入目标库
云盘已有文件 → kwiki.import_cloud_doc(action="copy"/"shortcut")
批量归档今日编辑 → search_files(scope=["latest_edited"], time_type="mtime", start_time=今日0点时间戳, end_time=当前时间戳) 筛选文件 → read_file 批量读取 → AI 按内容自动分类 → kwiki.create_item(doc_type="folder") 创建分类文件夹 → kwiki.import_cloud_doc 逐个归档
确认结果 :kwiki.list_items 返回存放路径与直达链接
风险控制
以下工具不可逆,调用前必须向用户确认(详细约束见各工具参考文档的「操作约束」区):
kwiki.close_knowledge_view、cancel_share、kwiki.delete_item
工具组合速查
用户需求
推荐工具组合
把这些资料存到知识库
kwiki.get_knowledge_view → 按内容类型处理 → kwiki.import_cloud_doc / upload_file / scrape_url + move_file
1 --- 2 name: knowledge-save 3 description: 知识一键存入 4 --- 5 6 # 知识一键存入 7 8 知识一键存入技能帮助你将各类来源的内容快速归档到知识库。 9 10 > 本技能依赖 `kdocs` 技能的基础文档操作能力(认证、文件管理等),请确保已安装该技能。详见 `references/core/` 目录。 11 12 --- 13 14 ## 能力范围 15 16 17 ### 详细参考 18 19 | 文档类型 | 参考文件 | 说明 | 20 |----------|----------|------| 21 | 个人知识库(kwiki) | `references/kwiki_references.md` | 知识库空间、导入云文档、库内文件夹与资料操作 | 22 23 --- 24 25 ## 操作指南 26 27 ### 通用操作路由 28 29 | 意图 | 路由 | 30 |------|------| 31 | 读取文档内容 | `read_file`(统一入口,按后缀自动返回 Markdown 或结构化数据) | 32 | 创建/写入 | `create_file_with_content`(统一入口,新建文档并写入内容,返回 link_url) | 33 | 局部更新 | 改块/改段/改单元格,已有目标文档上的修改 → 按「支持的文档类型」→ 对应 reference | 34 | 类型专属能力 | 条件格式、导出转换、翻译、PDF 拆分、幻灯片主题、数据校验 | 按「支持的文档类型」→ 对应 reference 中的专属功能章节 | 35 | 获取文件标识指南 | **必读** `references/file-locating-guide.md` | 36 37 ### 高频流程指引 38 39 #### 知识一键存入 40 41 **流程**: 42 1. **定位知识库**:指定库名 → `kwiki.get_knowledge_view(name=...)`;未指定 → `kwiki.list_knowledge_views` 推荐或引导创建 43 2. **定位目标路径**:指定文件夹 → `kwiki.list_items` 逐层查找;不存在则 `kwiki.create_item(doc_type="folder")` 按层级创建 44 3. **归档**: 45 - 本地文件 → `upload_file` 上传(保持子目录结构时递归创建文件夹) 46 - 网页 → `scrape_url` + `scrape_progress` → `move_file` 移入目标库 47 - 云盘已有文件 → `kwiki.import_cloud_doc(action="copy"/"shortcut")` 48 - **批量归档今日编辑** → `search_files(scope=["latest_edited"], time_type="mtime", start_time=今日0点时间戳, end_time=当前时间戳)` 筛选文件 → `read_file` 批量读取 → AI 按内容自动分类 → `kwiki.create_item(doc_type="folder")` 创建分类文件夹 → `kwiki.import_cloud_doc` 逐个归档 49 4. **确认结果**:`kwiki.list_items` 返回存放路径与直达链接 50 51 --- 52 ## 风险控制 53 54 以下工具不可逆,调用前必须向用户确认(详细约束见各工具参考文档的「操作约束」区): 55 56 `kwiki.close_knowledge_view`、`cancel_share`、`kwiki.delete_item` 57 58 --- 59 60 ## 工具组合速查 61 62 | 用户需求 | 推荐工具组合 | 63 |----------|-------------| 64 | 把这些资料存到知识库 | `kwiki.get_knowledge_view` → 按内容类型处理 → `kwiki.import_cloud_doc` / `upload_file` / `scrape_url` + `move_file` |
infometa/workbuddyskills/tree/main/experts/kdocs-knowledge-collector/skills/knowledge-save commit e851b7fc64
Frequently asked questions How do I install the Knowledge Save skill? Run npx skillmds@latest add infometa/knowledge-save in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
What does the Knowledge Save skill do? 知识一键存入 It is listed under Coding & Dev Tools on SkillMD.
Is Knowledge Save safe to use? This skill has not completed SkillMD's automated safety review yet. Independent scanners report: SkillSpector: PASS, Skill Scanner: PASS. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
Which AI agents work with Knowledge Save? This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Is Knowledge Save free to use? Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
Who published Knowledge Save? infometa (@infometa) published this skill. Their other Agent Skills are listed on their SkillMD profile.