# 推文自动化限流自检与复用 ## 诊断流程样例 ### 输入 - 目标日期:`2026-05-19` - 配置文件:`.claude/skills/config.json` - raw 候选:`~/Downloads/twitter_output/每日推文总结_raw_2026-05-19.json` - markdown 候选:`~/Library/Mobile Documents/com~apple~CloudDocs/odyssey/0 收集箱/research/推文总结_2026-05-19.md` ### 流程 1. 读取配置,发现需要抓取 18 个账号。 2. 检查 raw 文件存在且可解析,统计得到 `100` 条推文、`14 / 18` 个活跃账号。 3. 检查 markdown 文件存在,标题日期正确,包含总推文数、活跃账号、主要主题和关键链接。 4. 扫描进程,发现一个同日重复抓取进程仍在退避等待。 5. 输出决策:`reuse_raw_and_markdown`,建议停止重复进程,并把 raw/md 路径写入 automation memory。 ### 成功信号 ```text status: reuse_raw_and_markdown tweets: 100 active_accounts: 14/18 raw: ~/Downloads/twitter_output/每日推文总结_raw_2026-05-19.json markdown: ~/Library/Mobile Documents/com~apple~CloudDocs/odyssey/0 收集箱/research/推文总结_2026-05-19.md action: stop_duplicate_process_and_report ``` ### 失败信号 ```text status: rate_limited_or_stuck reason: no complete raw or markdown found, fetch process running > 30 minutes next: keep main tweets only, skip reply-chain completion, write partial report with warning ```