JavaScript is disabled. Some features may not work.
baoyu-post-to-x — ★ 22.3K GitHub Stars — Install Guide | SkillsNav
🇺🇸 English🇨🇳 中文
SkillsNav
Home

baoyu-post-to-x

★ 22K repowritingN/AIntermediateClaude MCP
🤖 AI Summary

This skill posts text, images, videos, and long-form articles to X (Twitter) using a real Chrome browser, with explicit routing logic to select between the Codex Chrome plugin, Computer Use, or CDP script mode based on user context.

How to Install

Claude Code:
git clone --depth 1 https://github.com/JimLiu/baoyu-skills.git && cp baoyu-skills/skills/baoyu-post-to-x ~/.claude/skills/baoyu-post-to-x -r
# Post to X (Twitter) Posts text, images, videos, and long-form articles to X via a real Chrome browser. In Codex, do not conflate these browser paths: - **Codex Chrome plugin / `@chrome` / Chrome Extension**: use the bundled `chrome:Chrome` skill and its Node REPL browser client. This is required whenever the user says "Codex Chrome plugin", "Codex 自带的 Chrome 插件", `@chrome`, or similar. - **Chrome Computer Use**: use `mcp__computer_use__.*` against the visible Google Chrome UI only when the user asks for Computer Use or no Chrome-plugin preference is stated and Computer Use is available. - **CDP script mode**: use only as a fallback when the selected mode is unavailable or the user explicitly asks for CDP/script mode. ## Script Directory **Important**: All scripts are located in the `scripts/` subdirectory of this skill. **Agent Execution Instructions**: 1. Determine this SKILL.md file's directory path as `{baseDir}` 2. Script path = `{baseDir}/scripts/.ts` 3. Replace all `{baseDir}` in this document with the actual path 4. Resolve `${BUN_X}` runtime: if `bun` installed → `bun`; if `npx` available → `npx -y bun`; else suggest installing bun **Script Reference**: | Script | Purpose | |--------|---------| | `scripts/x-browser.ts` | Regular posts (text + images), CDP fallback | | `scripts/x-video.ts` | Video posts (text + video), CDP fallback | | `scripts/x-quote.ts` | Quote tweet with comment, CDP fallback | | `scripts/x-article.ts` | Long-form article publishing (Markdown), CDP fallback | | `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 | | `scripts/check-paste-permissions.ts` | Verify environment & permissions | ## Execution Mode Selection (Required) Choose exactly one mode before interacting with X: 1. If the user explicitly asks for the Codex Chrome plugin, `@chrome`, the Chrome extension, or "Codex 自带的 Chrome 插件", use **Codex Chrome Plugin Mode**. Do not call Computer Use first. 2. If the user explicitly asks for Chrome Computer Use, use **Chrome Computer Use Mode**. Do not fall back to CDP, Playwright, the in-app Browser, or the Chrome plugin without telling the user and getting approval. 3. If the user explicitly asks for CDP/script mode, use **CDP Script Mode**. 4. Otherwise, prefer **Chrome Computer Use Mode**. For Markdown **X Articles with local content images**, use the tested X editor flow: insert each body image from the toolbar (`Insert` -> `Media` -> dialog icon button `Add photos or video`) at its placeholder, then delete the placeholder text. Use CDP Script Mode only when the selected browser-control mode is unavailable or the UI upload/selection flow is unreliable. Never use the in-app Browser for X publishing workflows. ## Codex Chrome Plugin Mode Use this mode whenever the user requests the Codex Chrome plugin, `@chrome`, or the Chrome Extension path. This uses the user

Details

Category Content → writing
SourceJimLiu/baoyu-skills
SKILL.mdView on GitHub →
Repo Stars★ 22.3K
Est. per SkillN/A (shared across 21 skills from this repo)
DifficultyIntermediate
Risk LevelN/A

Related Skills

Works Well With

Skills from the same repository — often designed to work together