名称: twitter-bookmark-sync
描述: 每日自动为你的 Twitter 书签排序,并推送精选阅读清单
Twitter 书签自动整理与通知
不再错过重要书签。根据你的兴趣自动为 Twitter 书签排序,每日获取一份精心整理的阅读清单。
brew install steipete/tap/bird)brew install steipete/tap/bird
从浏览器中提取你的 Twitter Cookie:
auth_tokenct0mkdir -p ~/.config/bird
cat > ~/.config/bird/config.json5 << 'EOF'
{
authToken: "your_auth_token_here",
ct0: "your_ct0_here"
}
EOF
bird whoami
clawdhub install twitter-bookmark-sync
cd ~/clawd/skills/twitter-bookmark-sync
./install.sh
安装程序将:
1. 自动检测你的时区
2. 设置每日定时任务(午夜获取,早上 8 点通知)
3. 创建你的配置文件
编辑 ~/clawd/twitter-bookmark-sync-config.json:
{
"fetch_time": "00:00", // 何时获取和排序书签(24小时制)
"notification_time": "08:00", // 何时发送结果通知
"lookback_hours": 24, // 回溯检查的时间范围(小时)
"notification_channel": "telegram", // 通知渠道:"telegram"、"gmail" 或 "slack"
"output_dir": "~/Documents" // 阅读清单的保存路径
}
排序标准(自动演化):
~/clawd/twitter-bookmark-sync-criteria.json
此文件会根据你的书签模式自动更新。
请勿手动编辑——让它从你的行为中学习。
Telegram(默认):
{
"notification_channel": "telegram"
}
Gmail(通过 gog skill):
{
"notification_channel": "gmail",
"gmail_to": "your.email@gmail.com"
}
Slack:
{
"notification_channel": "slack",
"slack_channel": "#bookmarks"
}
午夜 (00:00) - 学习阶段:
1. 获取过去 24 小时的书签
2. 分类 每个书签(主题 + 价值类型)
3. 更新排序标准:
- 对未使用的兴趣应用时间衰减(每日 5%)
- 提升你正在积极收藏的类别的权重
- 自动发现新模式
- 标准化所有权重
4. 排序 新书签(使用演化后的标准)
5. 保存到 ~/Documents/twitter-reading-YYYY-MM-DD.md
早晨 (08:00) - 通知阶段:
1. 分析每个书签为何对你重要
2. 发送价值陈述(而非摘要)
3. 链接至完整阅读清单
通知示例:
📚 Twitter 阅读清单已就绪!
**1. @someuser** (分数: 120)
💡 职业成长路径 • 投资策略
🔗 https://x.com/...
**2. @another** (分数: 110)
💡 直接加密洞察 • 伦敦转型
🔗 https://x.com/...
首次安装时:
- 从 USER.md 个人资料初始化
- 创建 twitter-bookmark-sync-criteria.json
- 11 个价值类别,附带初始权重 (0-100)
每日午夜:
- 对你的新书签进行分类
- 根据使用情况更新类别权重
- 旧兴趣每日衰减 5%
- 活跃兴趣保持强劲
- 新模式自动浮现
演化示例:
第 1 天: crypto_insights: 100, relationships: 90
第 10 天: crypto_insights: 100 (活跃), relationships: 60 (衰减中)
第 30 天: crypto_insights: 100, AI_tools: 75 (新发现), relationships: 35
为何重要:
- 适应你不断变化的兴趣
- 无需手动管理关键词
- 更擅长预测你重视的内容
- 反映你的实际行为,而非通用默认设置
立即运行:
cd ~/clawd/skills/twitter-bookmark-sync
./scripts/sync.sh
更改调度:
# 编辑配置
nano ~/clawd/twitter-bookmark-sync-config.json
# 重新加载定时任务
./install.sh
“未找到书签”
- 检查 bird 身份验证:bird whoami
- 确认你有书签:bird bookmarks -n 5
“权限被拒绝”
- 检查 bird 配置:~/.config/bird/config.json5
- 确认 Cookie 有效(它们会过期)
“通知未发送”
- 检查 Clawdbot 是否运行:clawdbot status
- 确认配置中的通知渠道
- 检查日志:~/clawd/logs/twitter-bookmark-sync.log
MIT