SuperAPI AI 工具集

readwise-prune

写作与研究

查看项目

更新于 10-15 21:37

技能介绍

用途:清理 Readwise Reader 中陈旧的文档,适合整理阅读库、移除长期未读文章或管理 Reader 收件箱。

主要能力:采用两遍扫描。第一遍获取最近 N 个月有更新的文档作为“安全集”,这些文档不会被清理;第二遍按筛选条件获取文档,并从候选中排除安全集内文档、含高亮(num_highlights > 0)的文档以及带排除标签的文档。

使用方式:核心原则是先试运行。先不带 --delete 运行,向用户展示候选列表与分类统计,获得明确确认后再加 --delete 执行。常用命令:readwise-custom prune(默认试运行)、readwise-custom prune --months 6、readwise-custom prune --category rss --location new、readwise-custom prune --exclude-tag "keep" --exclude-tag "reference"、readwise-custom prune --months 3 --limit 20、readwise-custom prune --months 6 --json,确认后加 --delete。

主要参数:--months 默认 3,表示不活跃月数;--location 默认 all,可选 new、later、shortlist、archive、feed;--category 默认 all,可选 article、email、rss、pdf、epub、tweet、video;--exclude-tag 可重复,跳过带该标签的文档;--limit 限制候选数量;--delete 默认 false,即试运行;--json 以 JSON 输出。

适用场景:每周 RSS 清理(如 --category rss --months 1 --location new)和季度深度清理(如 --months 6 --exclude-tag "reference")。

限制:必须先试运行并获用户确认,禁止直接加 --delete;具体安装与依赖配置资料未提供。