Posts content and articles to X (Twitter). Supports regular posts with images/videos and X Articles (long-form Markdown). Uses real Chrome with CDP to bypass anti-automation. Use when user asks to "post to X", "tweet", "publish to Twitter", or "share on X".
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install baoyu-post-to-x或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install baoyu-post-to-x⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/baoyu-post-to-x/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: baoyu-post-to-x description: Posts content and articles to X (Twitter). Supports regular posts with images/videos and X Articles (long-form Markdown). Uses real Chrome with CDP to bypass anti-automation. Use when user asks to "post to X", "tweet", "publish to Twitter", or "share on X". ---
Posts text, images, videos, and long-form articles to X via real Chrome browser (bypasses anti-bot detection).
Important: All scripts are located in the scripts/ subdirectory of this skill.
Agent Execution Instructions:
SKILL_DIR${SKILL_DIR}/scripts/.ts ${SKILL_DIR} in this document with the actual pathScript Reference: | Script | Purpose | |--------|---------| | scripts/x-browser.ts | Regular posts (text + images) | | scripts/x-video.ts | Video posts (text + video) | | scripts/x-quote.ts | Quote tweet with comment | | scripts/x-article.ts | Long-form article publishing (Markdown) | | scripts/md-to-html.ts | Markdown → HTML conversion | | scripts/copy-to-clipboard.ts | Copy content to clipboard | | scripts/paste-from-clipboard.ts | Send real paste keystroke |
Use Bash to check EXTEND.md existence (priority order):
# Check project-level first
test -f .baoyu-skills/baoyu-post-to-x/EXTEND.md && echo "project"
# Then user-level (cross-platform: $HOME works on macOS/Linux/WSL)
test -f "$HOME/.baoyu-skills/baoyu-post-to-x/EXTEND.md" && echo "user"
┌──────────────────────────────────────────────────┬───────────────────┐ │ Path │ Location │ ├──────────────────────────────────────────────────┼───────────────────┤ │ .baoyu-skills/baoyu-post-to-x/EXTEND.md │ Project directory │ ├──────────────────────────────────────────────────┼───────────────────┤ │ $HOME/.baoyu-skills/baoyu-post-to-x/EXTEND.md │ User home │ └──────────────────────────────────────────────────┴───────────────────┘
┌───────────┬───────────────────────────────────────────────────────────────────────────┐ │ Result │ Action │ ├───────────┼───────────────────────────────────────────────────────────────────────────┤ │ Found │ Read, parse, apply settings │ ├───────────┼───────────────────────────────────────────────────────────────────────────┤ │ Not found │ Use defaults │ └───────────┴───────────────────────────────────────────────────────────────────────────┘
EXTEND.md Supports: Default Chrome profile | Auto-submit preference
bun runtimereferences/regular-posts.md for manual workflow, troubleshooting, and technical detailsreferences/articles.md for long-form article publishing guide---
Text + up to 4 images.
npx -y bun ${SKILL_DIR}/scripts/x-browser.ts "Hello!" --image ./photo.png # Preview
npx -y bun ${SKILL_DIR}/scripts/x-browser.ts "Hello!" --image ./photo.png --submit # Post
Parameters: | Parameter | Description | |-----------|-------------| | | Post content (positional) | | --image | Image file (repeatable, max 4) | | --submit | Post (default: preview) | | --profile | Custom Chrome profile |
---
Text + video file.
npx -y bun ${SKILL_DIR}/scripts/x-video.ts "Check this out!" --video ./clip.mp4 # Preview
npx -y bun ${SKILL_DIR}/scripts/x-video.ts "Amazing content" --video ./demo.mp4 --submit # Post
Parameters: | Parameter | Description | |-----------|-------------| | | Post content (positional) | | --video | Video file (MP4, MOV, WebM) | | --submit | Post (default: preview) | | --profile | Custom Chrome profile |
Limits: Regular 140s max, Premium 60min. Processing: 30-60s.
---
Quote an existing tweet with comment.
npx -y bun ${SKILL_DIR}/scripts/x-quote.ts https://x.com/user/status/123 "Great insight!" # Preview
npx -y bun ${SKILL_DIR}/scripts/x-quote.ts https://x.com/user/status/123 "I agree!" --submit # Post
Parameters: | Parameter | Description | |-----------|-------------| | | URL to quote (positional) | | | Comment text (positional, optional) | | --submit | Post (default: preview) | | --profile | Custom Chrome profile |
---
Long-form Markdown articles (requires X Premium).
npx -y bun ${SKILL_DIR}/scripts/x-article.ts article.md # Preview
npx -y bun ${SKILL_DIR}/scripts/x-article.ts article.md --cover ./cover.jpg # With cover
npx -y bun ${SKILL_DIR}/scripts/x-article.ts article.md --submit # Publish
Parameters: | Parameter | Description | |-----------|-------------| | | Markdown file (positional) | | --cover | Cover image | | --title | Override title | | --submit | Publish (default: preview) |
Frontmatter: title, cover_image supported in YAML front matter.
---
--submitCustom configurations via EXTEND.md. See Preferences section for paths and supported options.
安装 Baoyu Post To X 后,可以对 AI 说这些话来触发它
Help me get started with Baoyu Post To X
Explains what Baoyu Post To X does, walks through the setup, and runs a quick demo based on your current project
Use Baoyu Post To X to posts content and articles to X (Twitter)
Invokes Baoyu Post To X with the right parameters and returns the result directly in the conversation
What can I do with Baoyu Post To X in my design & creative workflow?
Lists the top use cases for Baoyu Post To X, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/baoyu-post-to-x/ 目录(个人级,所有项目可用),或 .claude/skills/baoyu-post-to-x/(项目级)。重启 AI 客户端后,用 /baoyu-post-to-x 主动调用,或让 AI 根据上下文自动发现并使用。
Baoyu Post To X 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Baoyu Post To X 可免费安装使用。请查阅仓库了解许可证信息。
Posts content and articles to X (Twitter). Supports regular posts with images/videos and X Articles (long-form Markdown). Uses real Chrome with CDP to bypass anti-automation. Use when user asks to "post to X", "tweet", "publish to Twitter", or "share on X".
Baoyu Post To X 属于「Design & Creative」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my design & creative tasks using Baoyu Post To X
Identifies repetitive steps in your workflow and sets up Baoyu Post To X to handle them automatically