/SKILL.md
Twitter/X 专属资讯快照工作流:按账号池分批抓取新增帖子、批间落盘、支持断点续跑与失败恢复,输出中文可读简报。用于每日推特简报、长任务抓取、需要可审计执行清单的场景。
npx skillsauth add 1204tmax/twitter-news-skill twitter-newsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
稳定抓取 + 可恢复执行 + 可审计结果。避免“一口气全跑到超时失败”。
/Users/xiaoshan/.openclaw/skills/twitter-news/twitter-following-ai.json/Users/xiaoshan/.openclaw/scene/每日简报/news/state/twitter-digest-state.json/Users/xiaoshan/.openclaw/scene/每日简报/news/state/twitter-checkpoint.jsonbrowser 作为主抓取工具。active=true 账号。nextIndex 继续。nextIndex >= totalActiveAccounts 才能结束。{
"runId": "",
"startedAt": "",
"window": {"start": "", "end": ""},
"concurrency": 6,
"nextIndex": 0,
"completedAccounts": [],
"failedAccounts": [],
"items": []
}
failedAccounts,继续下一个账号,不中止整批。每一轮并发 worker 回收后,立即写 twitter-checkpoint.json:
nextIndex(队列消费进度)completedAccountsfailedAccounts(仅真实失败:超时/解析失败/登录受限)pendingAccounts(尚未执行,不得记入 failed)itemslastBatchFinishedAtconcurrency并立刻判断:
nextIndex < totalActiveAccounts:继续下一轮 worker(同一任务内继续循环),禁止结束任务nextIndex >= totalActiveAccounts:进入汇总阶段退出硬规则:
nextIndex < totalActiveAccounts 时,禁止写入“整轮中断后全量 skipped”。nextIndex < totalActiveAccounts 时,禁止返回最终完成态。nextIndex < totalActiveAccounts,从该索引继续并循环到完成。items 做时间窗口筛选 + 去重。仅当 nextIndex >= totalActiveAccounts(整轮完成)时,才允许更新 twitter-digest-state.json:
lastRunlastWindowaccountsCheckednewItemsFoundhighlights若未完成整轮:
status: partial/Users/xiaoshan/.openclaw/skills/twitter-news/example-output.md 的结构、标题层级、字段顺序与书写风格输出。example-output.md,并以其为唯一模板。每条资讯必须包含:
附加约束:
example-output.md 为准每次执行完成后,报告里至少要明确给出:
login_required,跳过账号继续。pendingAccounts,不得写入 failedAccounts。tools
Use when work should span one or more detached tasks but still behave like one job with a single owner context. TaskFlow is the durable flow substrate under authoring layers like Lobster, ACPX, plugins, or plain code. Keep conditional logic in the caller; use TaskFlow for flow identity, child-task linkage, waiting state, revision-checked mutations, and user-facing emergence.
tools
# Lobster Lobster executes multi-step workflows with approval checkpoints. Use it when: - User wants a repeatable automation (triage, monitor, sync) - Actions need human approval before executing (send, post, delete) - Multiple tool calls should run as one deterministic operation ## When to use Lobster | User intent | Use Lobster? | | ------------------------------------------------------ | --------------------------
tools
# Lobster Lobster executes multi-step workflows with approval checkpoints. Use it when: - User wants a repeatable automation (triage, monitor, sync) - Actions need human approval before executing (send, post, delete) - Multiple tool calls should run as one deterministic operation ## When to use Lobster | User intent | Use Lobster? | | ------------------------------------------------------ | --------------------------
tools
A CLI tool for making authenticated requests to the X (Twitter) API. Use this skill when you need to post tweets, reply, quote, search, read posts, manage followers, send DMs, upload media, or interact with any X API v2 endpoint.