New advertisers: 50% off your first month with code FIRSTMONTHSee slots

Publish Markdown articles to X's Articles editor with rich text, cover images, and dividers preserved.

skills.sh installs
326
GitHub stars
874
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers the full publish flow: Markdown parsing, cover image upload, rich-text paste, and saving as draft
  • Includes parse_markdown.py, copy_to_clipboard.py, and table_to_image.py for structured extraction, clipboard handling, and table conversion
  • Enforces a draft-only policy, so articles are saved as drafts and never auto-published
  • Designed for users with X Premium Plus who publish Markdown files or URLs through Playwright browser automation

Install

$ npx -y skills add wshuyi/x-article-publisher-skill --skill x-article-publisher -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

X Article Publisher

Publish Markdown content to X (Twitter) Articles editor, preserving formatting with rich text conversion.

Prerequisites

  • Playwright MCP for browser automation
  • User logged into X with Premium Plus subscription
  • Python 3.9+ with dependencies:
    • macOS: pip install Pillow pyobjc-framework-Cocoa
    • Windows: pip install Pillow pywin32 clip-util
  • For Mermaid diagrams: npm install -g @mermaid-js/mermaid-cli

Scripts

Located in ~/.claude/skills/x-article-publisher/scripts/:

parse_markdown.py

Parse Markdown and extract structured data:

python parse_markdown.py <markdown_file> [--output json|html] [--html-only]

Returns JSON with: title, cover_image, content_images, dividers (with block_index for positioning), html, total_blocks

copy_to_clipboard.py

Copy image or HTML to system clipboard (cross-platform):

# Copy image (with optional compression)
python copy_to_clipboard.py image /path/to/image.jpg [--quality 80]

# Copy HTML for rich text paste
python copy_to_clipboard.py html --file /path/to/content.html

Details

Repository
github.com/wshuyi/x-article-publisher-skill
Categories
Social Media, Writing & Content, Browser Automation & Scraping
First seen
Jun 3, 2026

Similar to X Article Publisher

More Social Media