Install any skill in seconds. Free to start, no credit card required.
Get Started Free →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".
.claude/skills/anbeime-baoyu-post-to-x/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-04 | ✗→✓ | ▲ Improved | -7% | 0% |
| case-05 | ✗→✓ | ▲ Improved | 6% | 0% |
| case-06 | ✗→✓ | ▲ Improved | 45% | 0% |
| case-08 | ✗→✓ | ▲ Improved | -16% | 0% |
| case-09 | ✗→✓ | ▲ Improved | 34% | 0% |
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/<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-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):
bash# 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 guideText + up to 4 images.
bashnpx -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 | |-----------|-------------| | <text> | Post content (positional) | | --image <path> | Image file (repeatable, max 4) | | --submit | Post (default: preview) | | --profile <dir> | Custom Chrome profile |
Text + video file.
bashnpx -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 | |-----------|-------------| | <text> | Post content (positional) | | --video <path> | Video file (MP4, MOV, WebM) | | --submit | Post (default: preview) | | --profile <dir> | Custom Chrome profile |
Limits: Regular 140s max, Premium 60min. Processing: 30-60s.
Quote an existing tweet with comment.
bashnpx -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 | |-----------|-------------| | <tweet-url> | URL to quote (positional) | | <comment> | Comment text (positional, optional) | | --submit | Post (default: preview) | | --profile <dir> | Custom Chrome profile |
Long-form Markdown articles (requires X Premium).
bashnpx -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> | Markdown file (positional) | | --cover <path> | Cover image | | --title <text> | 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.
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | fail→fail | 4,907 | 4,980 | +1% | 1 | 1 | 0% | 849 | 1,728 | +104% | 0 | 0 | — |
case-02 | fail→fail | 3,066 | 5,678 | +85% | 1 | 1 | 0% | 542 | 1,829 | +237% | 0 | 0 | — |
case-03 | fail→fail | 5,474 | 5,606 | +2% | 1 | 1 | 0% | 909 | 1,770 | +95% | 0 | 0 | — |
case-04 | fail→pass | 11,582 | 2,825 | -76% | 1 | 1 | 0% | 2,171 | 2,013 | -7% | 0 | 0 | — |
case-05 | fail→pass | 9,656 | 2,603 | -73% | 1 | 1 | 0% | 1,782 | 1,896 | +6% | 0 | 0 | — |
case-06 | fail→pass | 7,163 | 2,728 | -62% | 1 | 1 | 0% | 1,313 | 1,908 | +45% | 0 | 0 | — |
case-07 | fail→fail | 10,448 | 6,758 | -35% | 1 | 1 | 0% | 1,763 | 1,893 | +7% | 0 | 0 | — |
case-08 | fail→pass | 12,980 | 3,405 | -74% | 1 | 1 | 0% | 2,531 | 2,116 | -16% | 0 | 0 | — |
case-09 | fail→pass | 8,049 | 7,211 | -10% | 1 | 1 | 0% | 1,523 | 2,048 | +34% | 0 | 0 | — |
case-10 | fail→pass | 7,989 | 3,485 | -56% | 1 | 1 | 0% | 1,634 | 2,096 | +28% | 0 | 0 | — |
case-11 | fail→pass | 8,516 | 2,971 | -65% | 1 | 1 | 0% | 1,502 | 2,012 | +34% | 0 | 0 | — |
case-12 | fail→pass | 12,130 | 3,159 | -74% | 1 | 1 | 0% | 2,136 | 2,027 | -5% | 0 | 0 | — |
case-13 | pass→pass | 8,677 | 2,617 | -70% | 1 | 1 | 0% | 1,599 | 1,950 | +22% | 0 | 0 | — |
case-14 | pass→pass | 6,804 | 3,175 | -53% | 1 | 1 | 0% | 1,222 | 1,951 | +60% | 0 | 0 | — |
case-15 | pass→pass | 7,518 | 3,472 | -54% | 1 | 1 | 0% | 1,315 | 2,056 | +56% | 0 | 0 | — |
case-16 | fail→fail | 5,894 | 6,268 | +6% | 1 | 1 | 0% | 1,111 | 1,868 | +68% | 0 | 0 | — |
case-17 | fail→pass | 7,618 | 2,582 | -66% | 1 | 1 | 0% | 1,482 | 1,935 | +31% | 0 | 0 | — |
case-18 | fail→pass | 4,930 | 2,302 | -53% | 1 | 1 | 0% | 924 | 1,872 | +103% | 0 | 0 | — |
case-19 | fail→pass | 13,408 | 6,617 | -51% | 1 | 1 | 0% | 2,281 | 2,541 | +11% | 0 | 0 | — |
case-20 | fail→pass | 6,349 | 3,621 | -43% | 1 | 1 | 0% | 1,295 | 2,087 | +61% | 0 | 0 | — |
case-21 | fail→pass | 10,115 | 3,274 | -68% | 1 | 1 | 0% | 2,032 | 2,050 | +1% | 0 | 0 | — |
case-22 | fail→pass | 10,106 | 4,180 | -59% | 1 | 1 | 0% | 1,551 | 2,155 | +39% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted, and 17 counted toward the lift figure. The other 5 produced results that are not comparable between the two arms, so they are excluded from the headline rather than averaged into it. The headline lift of +64 percentage points is the difference between those two pass rates over the 17 comparable cases. 1 case got worse with the skill loaded, and it is included in that figure.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.