X Article Draft Uploader
Uploads a Markdown or Obsidian article to X (Twitter) as an Articles draft, with images in place, real tables and a 5:2 cover image.
What it is
X Article Draft Uploader is for writers who draft long posts in Obsidian or plain Markdown files and publish them as X Articles, the long-form post format on X. Instead of pasting the text and re-inserting every picture by hand, the agent runs the skill's Python scripts to build a new draft in X's editor. It only ever saves a draft and will not press Publish unless you clearly confirm. The instructions are written in Chinese by a Chinese creator, and it can work with the author's Ailu app or on its own.
Its value is in careful checking. A dry run reads the article first, without opening X, and stops on problems such as missing image files, web image links, raw HTML, tables larger than 10 by 10, more than 25 body images, or a picture whose position cannot be tied to a unique line of text. If the article starts with an image, that becomes the 5:2 cover. Markdown tables become X's native table blocks rather than flattened text, and images are pasted in from last to first so earlier insertions do not shift later ones.
After X autosaves, the script reloads the same draft and compares the title, text, tables and every image against your file, using image fingerprints. Only when everything matches does it report success, with the draft link, a result file and a screenshot. If there was no cover, it reminds you to add one. It runs in a separate automated browser, so your own Chrome stays free. The license allows personal, non-commercial use only.
What it can do
- Creates a fresh X Articles draft from a local Markdown or Obsidian file, with title, formatted body and images.
- Uses an image at the very top of the article as the 5:2 cover, or leaves the cover empty and reminds you.
- Converts Markdown tables up to 10 by 10 into X's native table blocks.
- Places up to 25 body images right after the line of text that precedes each one in your file.
- Runs a dry-run check that catches missing images, oversized tables and similar problems before touching X.
- Reloads the saved draft and verifies text, tables and images match your file before calling it done.
- Saves only a draft and never publishes unless you explicitly confirm.
When to use it
- You write in Obsidian and want a 3,000-word essay with 15 screenshots on X without placing each image by hand.
- Your article has comparison tables, and pasting them into X keeps turning them into plain text.
- An older upload script left images missing or in the wrong places, and you want a draft you can trust.
- You want to review a finished draft on X before deciding to publish it yourself.
How it works
- 1If needed, it copies your X login from Chrome on your Mac into a private cookie file, printing only cookie names, never values.
- 2It dry-runs the Markdown with the bundled Python parser and stops if the pre-check reports any error.
- 3It opens X's Articles editor in a separate Chromium browser controlled by Playwright, a browser automation tool, creates a draft and uploads the cover.
- 4It fills in the title, pastes the formatted body, inserts native tables, then pastes images from last to first at their anchor lines.
- 5It waits for autosave, reloads the draft, checks everything against your file, and gives you the draft link, result file and screenshot.
Try asking
How to install
Install with the skills CLI (recommended)
Works with Claude Code, Codex, Cursor, OpenCode and other agents, and asks which ones to install to. Needs Node.js 22.20+. Add -g to make it available in every project.
npx skills add https://github.com/mcncarl/yichen-skills/tree/main/yichen-x-article-draft-uploader
pnpm dlx skills add https://github.com/mcncarl/yichen-skills/tree/main/yichen-x-article-draft-uploader
Install manually
Copies the skill folder into Claude Code's personal skills directory. For claude.ai, zip the yichen-x-article-draft-uploader folder and upload it in the Skills section of Settings.
git clone --depth 1 https://github.com/mcncarl/yichen-skills.git mkdir -p ~/.claude/skills cp -r yichen-skills/yichen-x-article-draft-uploader ~/.claude/skills/yichen-x-article-draft-uploader
Then just ask in plain language, for example: “Upload my-essay.md from my Obsidian vault to X Articles as a draft.”
More Social Media & Marketing skills
Attribution
58kWorks out which marketing really drives your sign-ups and revenue, and explains why Google, Meta, GA4 and your CRM never report the same numbers.
Offers
58kImproves what you actually sell, not just how you describe it: value, bonuses, guarantees, honest urgency, naming and payment terms.
Baoyu Post To WeChat
27kSends your Markdown or HTML article to a WeChat Official Account as a formatted draft, with theme, cover and image uploads handled for you.