Summary
将 AI 聊天内容提炼为结构化技术文档并保存到 Obsidian 知识库。支持三种文档类型:问题解决型、知识学习型、方案对比型。自动推断知识库分类目录,生成符合 Obsidian 规范的 Markdown 文件(含 frontmatter、双链)。适用于:(1) 聊天中解决了技术问题后想记录下来,(2)…
sakumyz/skills · Archived
将 AI 聊天?
npx skills add sakumyz/skills --skill chat-to-obsidian-note
将 AI 聊天内容提炼为结构化技术文档并保存到 Obsidian 知识库。支持三种文档类型:问题解决型、知识学习型、方案对比型。自动推断知识库分类目录,生成符合 Obsidian 规范的 Markdown 文件(含 frontmatter、双链)。适用于:(1) 聊天中解决了技术问题后想记录下来,(2)…
This repository is archived — consider an actively maintained alternative.
将 Excel 文件转换为 Markdown 表格,支持合并单元格处理、多工作表输出、基础字体语义(粗体/斜体)…
82 installs将Excel工作簿按工作表拆分为独立的Excel文件,每个工作表生成一个单独的文件。适用场景:(1) 将多工…
13 installs为 Vue 3 + Ant Design Vue 表单系统新增自定义校验规则。支持正则校验、值范围校验、日期校验等。包…
9 installsRelated neighbors and high-traction skills in the same topics — useful to compare before installing.
Search, create, and manage notes in the Obsidian vault with wikilinks and index notes. Use when…
201.8K installsCreate and edit Obsidian Flavored Markdown with wikilinks, embeds, callouts, properties, and ot…
84.3K installsInteract with Obsidian vaults using the Obsidian CLI to read, create, search, and manage notes,…
73.8K installsCreate and edit Obsidian Bases (.base files) with views, filters, formulas, and summaries. Use …
72.7K installsWork with Obsidian vaults using the official obsidian CLI: read/search/create/edit notes, tasks…
3.8K installsAutomate Obsidian knowledge management, note linking, and personal knowledge base workflows
4K installsOther skills from sakumyz/skills · top by installs.
npx skills add sakumyz/skills
Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.
main
Files included with this skill beyond the listing page.
SKILL.md
7,265 B
SUMMARY.md
604 B
从当前 AI 聊天中提取有价值的技术内容,自动识别文档类型,按照 Obsidian 知识库的分类体系和格式规范,生成结构化的 Markdown 技术文档并保存。
回顾当前对话,提取核心技术内容,判断文档类型:
| 文档类型 | 判断特征 | 典型场景 |
|---|---|---|
| 问题解决型 | 对话中包含报错信息、Bug 描述、排错过程、修复方案 | 调试 Bug、解决编译错误、修复配置问题 |
| 知识学习型 | 对话中包含概念解释、API 用法、原理讲解、教程式内容 | 学习新框架、理解某个概念、探索 API |
| 方案对比型 | 对话中包含多种方案讨论、优劣对比、技术选型 | 技术选型、架构决策、工具选择 |
如果对话内容跨多种类型,选择占比最大的类型。也可以拆分为多篇文档。
根据聊天涉及的技术领域,参照 [references/obsidian-categories.md](references/obsidian-categories.md) 中的分类映射表,推断最匹配的分类目录。
向用户确认分类,使用 ask_questions 工具展示:
根据文档类型,参照 [references/document-templates.md](references/document-templates.md) 中的对应模板,从对话中提取内容填充各章节。
关键规则:
---
tags: [分类名]
parent: 父级分类名
author: SakumyZ
createTime: YYYY-MM-DD HH:mm:ss
modifiedTime: YYYY-MM-DD HH:mm:ss
---
tags:使用文件所在目录名(如 Vue、Git、Engineering)parent:使用父级目录名createTime 和 modifiedTime:使用当前时间.md 文件[[文件名]] 格式引用相关笔记Vue3 组件通信方式.md、Git rebase 交互式用法.md、解决 TypeScript 循环依赖问题.md/ \ : * ? " < > |文件保存路径:D:\Documents\Knowledge Base\Readme\{分类目录}\{文件名}.md
使用 create_file 工具写入文件。
每个分类目录下都有一个与目录同名的 索引文件(如 Git/Git.md、Web/Front-end/Vue/Vue.md),用于汇总该分类下所有笔记的双链。保存文档后必须同步更新索引文件。
## 二级标题 分组[[新文件名]](不加 - bullet,与现有格式一致)当整个分类目录是新建的,需要创建索引文件,格式如下:
---
tags: [Index, {分类名}]
parent: {父级分类名}
author: SakumyZ
createTime: {YYYY-MM-DD HH:mm:ss}
modifiedTime: {YYYY-MM-DD HH:mm:ss}
---
# {分类名}
[[新文件名]]
同时检查父级目录的索引文件是否需要添加指向新分类索引的链接。例如新建 Web/Front-end/Svelte/ 时,需要在 Web/Front-end/Front-end.md 中追加 [[Svelte]]。
参照 [references/obsidian-categories.md](references/obsidian-categories.md) 中的「索引文件格式」章节:
- bullet)## 二级标题 分组--- 分隔线Front-end.md)只列出子分类的 wiki link,无标题分组保存完成后告知用户:
不同文档类型包含不同章节,以下为各类型章节组成:
| 章节 | 问题解决型 | 知识学习型 | 方案对比型 |
|---|---|---|---|
| 背景(问题/动机) | ✅ | ✅ | ✅ |
| 环境信息 | ✅ | ⚪ 按需 | ⚪ 按需 |
| 原因分析 | ✅ | ❌ | ❌ |
| 核心概念 | ❌ | ✅ | ❌ |
| 方案概览 | ❌ | ❌ | ✅ |
| 对比分析 | ❌ | ❌ | ✅ |
| 结论 | ❌ | ❌ | ✅ |
| 解决方案 | ✅ | ❌ | ❌ |
| 用法详解 | ❌ | ✅ | ❌ |
| 关键代码/代码示例 | ✅ | ✅ | ✅ |
| 注意事项 | ✅ | ✅ | ✅ |
| 参考资料 | ✅ | ✅ | ✅ |
| 相关知识 | ✅ | ✅ | ✅ |
⚪ 按需 = 对话中包含相关信息时才添加
[[双链]] 引用的文件必须在知识库中实际存在