Instapaper 笔记自动化导入
简介
自动解析 Instapaper 高亮导出文件,精准提取用户原创笔记并批量导入 slipbox,跳过原文摘录,实现阅读笔记的自动化归档与管理。
原始描述
Import reading notes from Instapaper exports into the slipbox. Use when user pastes an Instapaper highlight export with article title and notes. Parses title/URL from header, extracts user's own notes (plain text lines), skips original highlights (> lines), then runs slipbot for each.
通过你的 Agent 添加
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
技能正文
name: instapaper-import description: Import reading notes from Instapaper exports into the slipbox. Use when user pastes an Instapaper highlight export with article title and notes. Parses title/URL from header, extracts user's own notes (plain text lines), skips original highlights (> lines), then runs slipbot for each.
Instapaper Import
Parse Instapaper highlight exports and create slipbox entries for user's notes.
Input Format
# [[Article Title](url)]
> Original highlight from article (SKIP)
User's note about the highlight (IMPORT)
> Another highlight (SKIP)
Another user note (IMPORT)
Key distinction:
> lines= Original article highlights → Skip these- Plain text lines = User's own ideas/takeaways → Import these as notes
Parsing Rules
Header Line
- Extract title from:
# [[Title](url)] - URL may be
instapaper-private://...(private) or regular URL - Source type:
article - Author:
null(Instapaper doesn't include author)
Content Lines
- Lines starting with
>= original highlights → skip - Plain text lines after
>lines = user notes → import - Empty lines → skip
- Each user note becomes a separate slipbox entry
Workflow
- Parse header → extract article title and URL
- Extract user notes → collect plain text lines (not starting with
>) - Precheck → show user: article title, note count, ask for confirmation
- On confirmation → for each note, invoke slipbot:
- Type: note (
-prefix) - Source:
~ article, {title} - Let slipbot handle: filename, tags, links, graph update
- Type: note (
- Report → count of notes created
Example
Input:
# [[How to Learn Faster](https://example.com/article)]
> Get feedback more often
To learn faster we need faster feedback loops.
> Latent learning occurs without reinforcement
Testing yourself proactively speeds up learning.
Extracted notes:
- "To learn faster we need faster feedback loops."
- "Testing yourself proactively speeds up learning."
Slipbot calls:
- To learn faster we need faster feedback loops. ~ article, How to Learn Faster
- Testing yourself proactively speeds up learning. ~ article, How to Learn Faster
Edge Cases
- No user notes (only
>lines): Report "no notes to import" - Multi-line user notes: Treat each paragraph as separate note
- Title with special chars: Preserve as-is for source metadata
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。