简介
一键导入Kindle读书笔记,自动识别书籍元数据,精准提取用户笔记而非高亮文本,无缝接入slipbox知识管理系统。
原始描述
Import reading notes from Kindle HTML exports into the slipbox. Use when user sends a Kindle notebook export file (HTML/XHTML). Parses book title and author, extracts only user's Notes (skips Highlights), then runs slipbot for each.
通过你的 Agent 添加
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
技能正文
name: kindle-import description: Import reading notes from Kindle HTML exports into the slipbox. Use when user sends a Kindle notebook export file (HTML/XHTML). Parses book title and author, extracts only user's Notes (skips Highlights), then runs slipbot for each.
Kindle Import
Parse Kindle notebook exports (HTML) and create slipbox entries for user's notes.
Input Format
Kindle exports are XHTML files with this structure:
<div class="bookTitle">Book Title Here</div>
<div class="authors">Author Name</div>
...
<div class="sectionHeading">Chapter/Section Name</div>
<div class="noteHeading">Highlight (yellow) - Section > Page X</div>
<div class="noteText">Highlighted text from book</div>
<div class="noteHeading">Note - Section > Page X</div>
<div class="noteText">User's own note</div>
Key distinction:
noteHeadingstarting with "Highlight" → book text → SkipnoteHeadingstarting with "Note" → user's own thoughts → Import
Parsing Rules
Metadata Extraction
- Book title: content of
.bookTitlediv - Author: content of
.authorsdiv - Source type:
book
Content Extraction
- Find all
.noteHeadingelements - If heading starts with "Note" → get the following
.noteTextcontent → import - If heading starts with "Highlight" → skip
- Section info (e.g., "Client-side/Stateless Sessions > Page 28") can be ignored
Workflow
- Parse file → extract book title and author
- Extract user notes → collect only Note entries (not Highlights)
- Precheck → show user: book title, author, note count, ask for confirmation
- On confirmation → for each note, invoke slipbot:
- Type: note (
-prefix) - Source:
~ book, {title} by {author} - Let slipbot handle: filename, tags, links, graph update
- Type: note (
- Report → count of notes created
Example
Input file metadata:
- Title: "The JWT Handbook"
- Author: "Sebastian E Peyrott"
Parsed entries:
Highlight (yellow) - Page 28: "This is easily solved by..." → SKIP
Note - Page 28: "Applications should not allow unsigned JWTs..." → IMPORT
Slipbot call:
- Applications should not allow unsigned JWTs to be considered valid. ~ book, The JWT Handbook by Sebastian E Peyrott
Edge Cases
- No user notes (only Highlights): Report "no notes to import"
- Multiple authors: Preserve as-is from the file
- Missing author: Use "Unknown" as author
- Special characters in title/content: Preserve as-is
- HTML entities: Decode before storing (& → &, etc.)
Supported File Types
.htmlfiles exported from Kindle app- XHTML files (same structure)
- Files sent via Telegram (application/xml or text/plain mime types)
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。