← ClaudeAtlas

x-article-publisherlisted

Publish Markdown articles to X (Twitter) Articles editor with proper formatting. Use when user wants to publish a Markdown file/URL to X Articles, or mentions "publish to X", "post article to Twitter", "X article", or wants help with X Premium article publishing. Handles cover image upload and converts Markdown to rich text automatically.
aiskillstore/marketplace · ★ 329 · Data & Documents · score 79
Install: claude install-skill aiskillstore/marketplace
# 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: `pip install Pillow pyobjc-framework-Cocoa` ## Scripts Located in `~/.claude/skills/x-article-publisher/scripts/`: ### parse_markdown.py Parse Markdown and extract structured data: ```bash python parse_markdown.py <markdown_file> [--output json|html] [--html-only] ``` Returns JSON with: title, cover_image, content_images (with block_index for positioning), html, total_blocks ### copy_to_clipboard.py Copy image or HTML to system clipboard: ```bash # 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 ``` ## Workflow **Strategy: "先文后图" (Text First, Images Later)** For articles with multiple images, paste ALL text content first, then insert images at correct positions using block index. 1. Parse Markdown with Python script → get title, images with block_index, HTML 2. Navigate to X Articles editor 3. Upload cover image (first image) 4. Fill title 5. Copy HTML to clipboard (Python) → Paste with Cmd+V 6. Insert content images at positions specified by block_index 7. Save as draft (NEVER auto-publish) ## 高效执行原则 (Efficiency Guidelines) **目标**: 最小化操作之间的等待时间,实