This automates publishing Markdown articles to X's Premium Plus article editor while preserving rich text formatting. It converts your Markdown to HTML, handles image uploads through the clipboard, and positions everything correctly using block indices. The workflow is designed around X's quirky editor limitations: tables and Mermaid diagrams get converted to PNGs first, dividers have to be inserted manually through a menu because HTML hr tags don't work, and there's a specific order you follow (text first, then images, then dividers). It uses Playwright for browser automation and includes Python scripts for clipboard handling across macOS and Windows. Saves as draft by default, never auto-publishes.
npx skills add https://github.com/wshuyi/x-article-publisher-skill --skill x-article-publisher