T
tool-x-article-publisher
About tool-x-article-publisher
A skill for turning Markdown into X Articles drafts through browser automation. It preserves formatting, inserts images in a defined order, and never publishes automatically.
Key features
- 01Parse Markdown articles
- 02Generate paste-ready HTML
- 03Insert images in order
- 04Use the first image as cover
- 05Save drafts only
Use cases
- 01Convert a local Markdown file into an X Articles draft
- 02Review article formatting and images before publishing
MCP support
The skill can use Playwright MCP or equivalent browser automation.
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ heyvhuang/ ship-faster --skill tool-x-article-publisherAfter installing, type/tool-x-article-publisherin Claude Code to confirm it loaded.
Bundled files
References and scripts installed along with SKILL.md.
references/runbook.mdscripts/copy_to_clipboard.pyparse_markdown.pyDetails
From the project READMEX Article Publisher
Publish Markdown content into X (Twitter) Articles as a draft, preserving formatting via rich text paste and deterministic image insertion.
Hard Rules (Safety)
- Never auto-publish (draft only; user publishes manually).
- User must be logged in before automation starts.
- First image = cover image (if any).
Prerequisites
- Browser automation available (Playwright MCP or equivalent)
- X account can access Articles (Premium / Premium Plus)
- macOS recommended (clipboard helper uses Cocoa)
- Python 3.9+ with:
pip install Pillow pyobjc-framework-Cocoa
Inputs / Outputs (Recommended)
Inputs (paths only):
article_md_path: Markdown file to publish- Optional:
run_dirfor artifacts (otherwise use/tmp/)
Outputs (recommended artifacts):
/tmp/x_article.json(parsed structure)/tmp/x_article.html(HTML body for paste)- Optional:
run_dir/evidence/x-article-draft.md(what was done + links)
Bundled Scripts
Installed path (typical):
~/.claude/skills/tool-x-article-publisher/scripts/parse_markdown.py~/.claude/skills/tool-x-article-publisher/scripts/copy_to_clipboard.py
Runbook (Step-by-step)
Follow: references/runbook.md
Comments
Markdown supported