Install
openclaw skills install cell-x-article-publisherPublish existing Markdown articles to X (Twitter) Articles drafts with browser automation preparation, rich-text clipboard support, image/divider positioning, and cookie export for Playwright login reuse. Use when Codex needs to send a finished Markdown article to X Articles, prepare block-indexed publish data, troubleshoot X Articles draft publishing, or sync local X/Twitter cookies into Playwright storage state before automation. Do not trigger for X topic strategy, thread writing, or growth diagnosis.
openclaw skills install cell-x-article-publisher这个 Skill 只处理一件事:
它覆盖的是发布准备和发布执行链路,不是内容生产链路。也就是说,它处理:
它不处理:
如果用户真正缺的是文章本身,而不是发布动作,不要在这里偷偷扩 scope。
当前 skill 目录内置的最小工具链:
pip install -r skills/x-article-publisher/requirements.txt
# 解析 Markdown
python3 skills/x-article-publisher/scripts/parse_markdown.py article.md
# 生成 HTML 并复制到剪贴板
python3 skills/x-article-publisher/scripts/parse_markdown.py article.md --save-html /tmp/x-article.html --output json
python3 skills/x-article-publisher/scripts/copy_to_clipboard.py html --file /tmp/x-article.html
# 导出或复用 X/Twitter cookies 缓存
python3 skills/x-article-publisher/scripts/export_x_cookies.py
# 强制刷新缓存,或从其他浏览器读取
python3 skills/x-article-publisher/scripts/export_x_cookies.py --no-cache --browser edge
默认采用以下约定,除非用户另有说明:
title、cover_image 等 frontmatter 可以直接作为解析输入~/.cache/x-article-publisher/x-storage-state.json先判断当前请求属于哪一类:
如果用户没有现成文章,或者其实在问“X 上该写什么”,切给更合适的 Skill。
先跑解析脚本,不要先打开浏览器:
block_indexblock_index只有解析结果完整,才进入浏览器自动化。
需要详细步骤时,读 references/workflow.md。
在打开 X Articles 编辑器之前,优先尝试 cookie 同步:
x.com / twitter.com cookies不要默认让用户每次都手动登录。
需要具体规则时,读 references/cookie-sync.md。
发布顺序不要乱:
storage_state 的 context,而不是先硬导航到编辑器Create / Writeblock_index 反向插入正文图片block_index 反向插入分割线这里最重要的是两点:
成功时至少报告:
失败时至少报告:
Do not:
Always: