From utility-skills
Posts text with images and long-form Markdown articles to X (Twitter) using real Chrome via CDP to bypass anti-bot detection. Supports preview and submit modes with bun scripts.
npx claudepluginhub xuanxuan1983/baoyu-xuanyi-skills --plugin ai-generation-skillsThis skill uses the workspace's default tool permissions.
Post content, images, and long-form articles to X using real Chrome browser (bypasses anti-bot detection).
Posts text, images, videos, and long-form Markdown articles to X (Twitter) using real Chrome with CDP to bypass anti-bot detection.
Posts text, images, videos, and long-form Markdown articles to X (Twitter) using real Chrome with CDP to bypass anti-bot detection. Activates on post to X, tweet, or share requests.
Creates and publishes viral X (Twitter) Articles via browser automation, with Draft.js formatting rules, hook patterns, embed workarounds, and image specs.
Share bugs, ideas, or general feedback.
Post content, images, and long-form articles to X using 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/<script-name>.ts${SKILL_DIR} in this document with the actual pathScript Reference:
| Script | Purpose |
|---|---|
scripts/x-browser.ts | Regular posts (text + images) |
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 |
bun installed (for running scripts)references/regular-posts.md for manual workflow, troubleshooting, and technical detailsreferences/articles.md for long-form article publishing guideText + up to 4 images.
# Preview mode (doesn't post)
npx -y bun ${SKILL_DIR}/scripts/x-browser.ts "Hello from Claude!" --image ./screenshot.png
# Actually post
npx -y bun ${SKILL_DIR}/scripts/x-browser.ts "Hello!" --image ./photo.png --submit
Note:
${SKILL_DIR}represents this skill's installation directory. Agent replaces with actual path at runtime.
Parameters:
| Parameter | Description |
|---|---|
<text> | Post content (positional argument) |
--image <path> | Image file path (can be repeated, max 4) |
--submit | Actually post (default: preview only) |
--profile <dir> | Custom Chrome profile directory |
Long-form Markdown articles (requires X Premium).
# Preview mode
npx -y bun ${SKILL_DIR}/scripts/x-article.ts article.md
# With cover image
npx -y bun ${SKILL_DIR}/scripts/x-article.ts article.md --cover ./cover.jpg
# Publish
npx -y bun ${SKILL_DIR}/scripts/x-article.ts article.md --submit
Parameters:
| Parameter | Description |
|---|---|
<markdown> | Markdown file path (positional argument) |
--cover <path> | Cover image path |
--title <text> | Override article title |
--submit | Actually publish (default: preview only) |
Frontmatter (optional):
---
title: My Article Title
cover_image: /path/to/cover.jpg
---
--submitCustom configurations via EXTEND.md.
Check paths (priority order):
.baoyu-skills/baoyu-post-to-x/EXTEND.md (project)~/.baoyu-skills/baoyu-post-to-x/EXTEND.md (user)If found, load before workflow. Extension content overrides defaults.