Tooluck logoTooluck
SKILL.md

baoyu-post-to-x

Agent skill fromJimLiu/baoyu-skills

Posts content and articles to X (Twitter). Supports regular posts with images/videos and X Articles (long-form Markdown). In Codex, honor explicit requests for the Codex Chrome plugin/@chrome by using the Chrome Extension workflow; otherwise use Chrome Computer Use when available and fall back to real Chrome CDP scripts only when allowed. Use when user asks to "post to X", "tweet", "publish to Twitter", or "share on X".

How to install baoyu-post-to-x

install baoyu-post-to-x
# install the baoyu-skills pack with the skills CLI
npx skills add JimLiu/baoyu-skills

# or add only this skill to Claude Code: copy the folder

skills/baoyu-post-to-x/

# into

~/.claude/skills/baoyu-post-to-x/ (all projects)

.claude/skills/baoyu-post-to-x/ (one project)

skills/baoyu-post-to-x/SKILL.md

MITFull file
1# Post to X (Twitter)
2
3Posts text, images, videos, and long-form articles to X via a real Chrome browser.
4
5In Codex, three distinct browser paths — do not conflate them:
6- **Codex Chrome plugin / `@chrome` / Chrome Extension**: the bundled `chrome:Chrome` skill and its Node REPL browser client. Required whenever the user says "Codex Chrome plugin", "Codex 自带的 Chrome 插件", `@chrome`, or similar.
7- **Chrome Computer Use**: `mcp__computer_use__.*` against the visible Google Chrome UI.
8- **CDP script mode**: the bundled scripts; fallback only.
9
10## Script Directory
11
12`{baseDir}` = this SKILL.md's directory; scripts are at `{baseDir}/scripts/<script-name>.ts`. Resolve `${BUN_X}`: `bun` if installed → else `npx -y bun` → else suggest installing bun.
13
14| Script | Purpose |
15|--------|---------|
16| `scripts/x-browser.ts` | Regular posts (text + images), CDP fallback |
17| `scripts/x-video.ts` | Video posts (text + video), CDP fallback |
18| `scripts/x-quote.ts` | Quote tweet with comment, CDP fallback |
19| `scripts/x-article.ts` | Long-form article publishing (Markdown), CDP fallback |
20| `scripts/md-to-html.ts` | Markdown → HTML conversion |
21| `scripts/copy-to-clipboard.ts` | Copy content to clipboard |
22| `scripts/paste-from-clipboard.ts` | Send real paste keystroke |
23| `scripts/check-paste-permissions.ts` | Verify environment & permissions |
24
25## Execution Mode Selection (Required)
26
27Choose exactly one mode before interacting with X:
28…

Excerpt shown under the repository's MIT license.

More skills in baoyu-skills

Keep exploring

Similar skill repositories

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates