用途:通过真实 Chrome 浏览器(CDP)向 X(Twitter)发布内容,绕过反机器人检测。支持普通推文(文字+最多4张图片)、视频推文、引用推文,以及 X Articles 长文(Markdown,需 X Premium)。
主要能力:脚本位于 SKILL.md 同级的 scripts/ 目录,包括 x-browser.ts(文字+图片)、x-video.ts(文字+视频)、x-quote.ts(引用推文)、x-article.ts(长文发布)、md-to-html.ts、copy-to-clipboard.ts、paste-from-clipboard.ts、check-paste-permissions.ts。
使用方式:先运行环境检查(可选)npx -y bun ${SKILL_DIR}/scripts/check-paste-permissions.ts。普通推文示例:npx -y bun ${SKILL_DIR}/scripts/x-browser.ts "Hello!" --image ./photo.png;视频:npx -y bun ${SKILL_DIR}/scripts/x-video.ts "Check this out!" --video ./clip.mp4;引用:npx -y bun ${SKILL_DIR}/scripts/x-quote.ts https://x.com/user/status/123 "Great insight!";长文:npx -y bun ${SKILL_DIR}/scripts/x-article.ts article.md --cover ./cover.jpg。支持 --profile 指定 Chrome 配置,EXTEND.md 可配置默认 Chrome profile。
限制:需安装 Google Chrome/Chromium 与 bun;首次运行需手动登录 X。所有脚本仅预填内容,必须手动审核并发布。视频时长普通账号 140 秒、Premium 60 分钟,处理约 30-60 秒。出现 Chrome debug port not ready 时可先清理 CDP 实例再重试。仅支持 macOS、Linux、Windows。长文发布需 X Premium。定价、收费等信息暂未提供。