介绍
# Readwise & Reader Skill
访问您的 Readwise 高亮和 Reader 保存的文章。
## 设置
从以下网址获取您的 API 令牌: https://readwise.io/access_token
设置环境变量: ```bash export READWISE_TOKEN="your_token_here" ```
或添加到 ~/.clawdbot/clawdbot.json 中的 "env" 下。
## Readwise (高亮)
### 列出书籍/来源 ```bash node {baseDir}/scripts/readwise.mjs books [--limit 20] ```
### 获取来自书籍的高亮 ```bash node {baseDir}/scripts/readwise.mjs highlights [--book-id 123] [--limit 20] ```
### 搜索高亮 ```bash node {baseDir}/scripts/readwise.mjs search "query" ```
### 导出所有高亮 (分页) ```bash node {baseDir}/scripts/readwise.mjs export [--updated-after 2024-01-01] ```
## Reader (保存的文章)
### 列出文档 ```bash node {baseDir}/scripts/reader.mjs list [--location new|later|archive|feed] [--category article|book|podcast|...] [--limit 20] ```
### 获取文档详情 ```bash node {baseDir}/scripts/reader.mjs get <document_id> ```
### 保存 URL 到 Reader ```bash node {baseDir}/scripts/reader.mjs save "https://example.com/article" [--location later] ```
### 搜索 Reader ```bash node {baseDir}/scripts/reader.mjs search "query" ```
## 注意事项 - 速率限制:Readwise 每分钟 20 次请求,Reader 则有所不同 - 所有命令均输出 JSON 以便于解析 - 在任何命令上使用 `--help` 查看选项