baoyu-post-to-x
Posts content and articles to X (Twitter). Supports regular posts with images/videos and X Articles (long-form Markdown). In Code…
What it does
- CDP script mode: use only as a fallback when the selected mode is unavailable or the user explicitly asks for CDP/script mode.
- Use the Chrome plugin's browser.tabs., tab.playwright., tab.cua., and file chooser APIs for X UI actions.
- Never click Publish, Post, or any externally visible submit action without explicit final confirmation from the user in the current conversation.
- Locate the visible placeholder text (XIMGPHN) and click it to place the caret there.
- Open the toolbar menu Insert -> Media.
- In the modal, click the icon button with aria-label="Add photos or video"; do not click the text/dropzone or hidden file input.
- Use the file chooser to upload that image's localPath.
Requirements & configuration
- Do not use CDP Script Mode when the user explicitly requires the Codex Chrome plugin or Chrome Computer Use unless the user approves the fallback after you explain the blocker.
- Long-form Markdown articles (requires X Premium).
Configuration: XIMGPH_XIMGPH_NHOMEX_BROWSER_CHROME_PATHXIMGPH_3
Derived from the skill's own SKILL.md documentation · extracted 2026-07-23
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".
Source
Repository: https://github.com/jimliu/baoyu-skills
baoyu-post-to-x FAQ
What does the baoyu-post-to-x skill do?
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". CDP script mode: use only as a fallback when the selected mode is unavailable or the user explicitly asks for CDP/script mode. Use the Chrome plugin's browser.tabs., tab.playwright., tab.cua., and file chooser APIs for X UI actions.
What does baoyu-post-to-x require?
Do not use CDP Script Mode when the user explicitly requires the Codex Chrome plugin or Chrome Computer Use unless the user approves the fallback after you explain the blocker. Long-form Markdown articles (requires X Premium). Configuration keys: XIMGPH_, XIMGPH_N, HOME, X_BROWSER_CHROME_PATH, XIMGPH_3.
How do I install baoyu-post-to-x?
Run: npx -y skills add https://github.com/jimliu/baoyu-skills --skill baoyu-post-to-x --agent claude-code — the source lives at github.com/jimliu/baoyu-skills.
Maintain baoyu-post-to-x?
Let people know it's listed here — add the badge (live metrics, light/dark aware) or a plain link to your README or docs.
[](https://getagentictools.com/skills/jimliu-baoyu-skills-baoyu-post-to-x?ref=badge) npx agentictools info skills/jimliu-baoyu-skills-baoyu-post-to-x The second line is the CLI lookup for this page — handy in READMEs and docs.