X recap via actionbook-rs
What this skill is for
Produce a repeatable “collect → extract → summarize → publish” workflow for any X handle (optionally with a keyword) using the actionbook-rs approach:
1) actionbook browser open the profile/search page
2) actionbook browser snapshot to get the accessibility tree (incl. article nodes)
3) (optional) actionbook browser eval to scroll
4) extract post text from article blocks
5) analyze + draft output (Chinese internal notes; English publish)
6) publish on X (neutral tone; optionally attach an image)
Guardrails
- - Infinite scroll is not exhaustive; be explicit about coverage limits.
- Don’t quote “recent interviews” unless the user provides exact links/timestamps.
- Publishing is external action: confirm the target account + final copy before posting.
Workflow
1) Collect posts (Actionbook)
Pick one entry point:
- - Profile: INLINECODE5
- Search (keyword + optional recency): INLINECODE6
Commands (example):
CODEBLOCK0
Extraction heuristic:
- - In snapshots, locate
article nodes that contain the post text. - Record for each post:
- text (verbatim)
- timestamp shown (relative or absolute)
- URL if present
- whether it’s a repost/quote (note it)
Stop condition:
- - You have enough coverage for the user’s time window (e.g., 7 days) OR diminishing returns.
2) Summarize (Chinese notes)
Write a compact Chinese working summary:
- - themes (3–6 bullets)
- representative posts (links)
- what’s missing / uncertainty
3) Draft publish copy (English, neutral)
Choose output type:
- - Single post (≤280 chars) OR
- Thread (6–10 parts) if needed
Use neutral framing:
- - “Observation from public posts …”
- avoid mind-reading; separate “what he said” from interpretation
Use templates in references/templates.md.
4) Image (optional but recommended)
Preferred options (no Python required):
- - Clean crop of the relevant post (browser screenshot at 1280×720 + zoom)
- A simple HTML/SVG card rendered in browser and screenshotted (see
references/image-card.md)
5) Publish on X
If using OpenClaw browser automation:
- - open compose
- paste final English copy
- upload image (if any)
- post / thread
Confirm before posting:
- - target handle (e.g., @gblwll)
- final text
- image choice
Bundled references
- -
references/templates.md — recap + thread templates (English) - INLINECODE11 — extraction checklist + caveats
- INLINECODE12 — HTML/SVG card approach (no Pillow)
通过 actionbook-rs 实现 X 平台回顾
本技能用途
使用 actionbook-rs 方法,为任意 X 账号(可选添加关键词)创建可重复的“收集→提取→总结→发布”工作流:
1) actionbook browser open 打开个人资料/搜索页面
2) actionbook browser snapshot 获取无障碍树(包含 article 节点)
3) (可选)actionbook browser eval 执行滚动
4) 从 article 块中提取帖子文本
5) 分析 + 草拟输出(中文内部笔记;英文发布)
6) 在 X 平台发布(中性语气;可选附带图片)
防护措施
- - 无限滚动并非穷尽式;需明确说明覆盖范围限制。
- 除非用户提供精确链接/时间戳,否则不要引用“近期采访”。
- 发布是外部操作:发布前需确认目标账号 + 最终文案。
工作流
1) 收集帖子(Actionbook)
选择入口:
- - 个人资料:https://x.com/
- 搜索(关键词 + 可选时效性):https://x.com/search?q=from%3A%20&src=typed_query&f=live
命令(示例):
bash
打开(个人资料)
actionbook browser open https://x.com/
快照(每次滚动后重复)
actionbook browser snapshot --refs aria --depth 18 --max-chars 12000
滚动一点
actionbook browser eval window.scrollBy(0, 2200)
提取策略:
- - 在快照中,定位包含帖子文本的 article 节点。
- 为每个帖子记录:
- 文本(逐字记录)
- 显示的时间戳(相对或绝对)
- 如有 URL 则记录
- 是否为转发/引用(注明)
停止条件:
- - 已覆盖用户所需的时间窗口(例如 7 天)或收益递减。
2) 总结(中文笔记)
撰写简洁的中文工作摘要:
- - 主题(3–6 个要点)
- 代表性帖子(链接)
- 缺失内容 / 不确定性
3) 草拟发布文案(英文,中性)
选择输出类型:
- - 单条帖子(≤280 字符)或
- 帖子串(6–10 部分)(如需)
使用中性表述:
- - “从公开帖子观察……”
- 避免读心术;区分“他所说的”与解读
使用 references/templates.md 中的模板。
4) 图片(可选但推荐)
首选方案(无需 Python):
- - 相关帖子的干净截图(浏览器截图 1280×720 + 缩放)
- 在浏览器中渲染的简单 HTML/SVG 卡片并截图(参见 references/image-card.md)
5) 在 X 平台发布
如果使用 OpenClaw 浏览器自动化:
- - 打开撰写界面
- 粘贴最终英文文案
- 上传图片(如有)
- 发布 / 发布帖子串
发布前确认:
- - 目标账号(例如 @gblwll)
- 最终文本
- 图片选择
附带参考资料
- - references/templates.md — 回顾 + 帖子串模板(英文)
- references/checklist.md — 提取检查清单 + 注意事项
- references/image-card.md — HTML/SVG 卡片方法(无需 Pillow)