
from skill294
Publish Markdown articles to X Articles (Twitter) editor as drafts, preserving formatting, handling cover images, and offering intelligent title/cover suggestio
X Article Publisher automates creating draft articles in X's (Twitter) Articles editor from Markdown files. It parses Markdown, converts to rich text/HTML, helps upload a cover image, and opens a browser session to save the draft (it never auto-publishes). The included scripts support parsing, clipboard copying of HTML, and a one‑click publish flow that handles authentication and browser automation.
Use this skill when a user wants to publish or draft a long-form article from a local Markdown file or URL to X Articles (formerly Twitter Articles). Triggers include phrases like “publish to X”, “post article to Twitter”, “X article”, or when the user asks to convert Markdown to rich text for X. It is intended for users with X Premium+ accounts (required for Articles).
publish_article.py (one‑click draft creation), parse_markdown.py (extracts title, images, HTML), copy_to_clipboard.py (copy image/HTML).Works with agents that can run local Python scripts and control a browser (Claude/Code-style agents or local automation agents). The skill expects a desktop environment for browser automation and an X Premium account.
Publishes Markdown articles to X (Twitter) Articles editor via browser automation using patchright. SKILL.md is detailed with auth setup workflow, smart title/cover generation, and clear CLI usage. All 7 scripts failed to run: 3 depend on an unbundled browser_auth library from a shared lib/ directory, 3 require patchright (Playwright fork), and 2 need runtime arguments. The markdown parser looks solid but the publish_article.py is very long with many brittle CSS selectors for X's UI. macOS-only clipboard support limits portability.
browser_auth (shared lib, not bundled)patchrightpyobjc-framework-CocoaPillowDebug scripts (debug_editor.py, debug_page.py) mixed with production scripts. No requirements.txt or pyproject.toml for dependency management. publish_article.py is ~400 lines with extensive DOM manipulation — fragile to X UI changes. Chinese-language documentation throughout. Shared browser_auth lib is a reasonable pattern but not bundled with the skill.