publish-x-article_skill

This skill publishes Markdown to X Articles, converting tables and diagrams to images while preserving formatting for Premium tiers.
  • Python

61

GitHub Stars

1

Bundled Files

2 months ago

Catalog Refreshed

4 months ago

First Indexed

Readme & install

Copy the install command, review bundled files from the catalogue, and read any extended description pulled from the listing source.

Installation

Preview and clipboard use veilstrat where the catalogue uses aiagentskills.

npx veilstrat add skill sugarforever/01coder-agent-skills --skill publish-x-article

  • SKILL.md21.9 KB

Overview

This skill publishes Markdown articles to X (formerly Twitter) Articles editor, preserving formatting and handling X subscription limitations. It converts unsupported elements (tables, mermaid diagrams, deep headers) into images, uploads cover art, and automates pasting rich HTML into the editor. The workflow produces an adapted copy and saves a draft; it never auto-publishes.

How this skill works

First, the skill asks and remembers the user’s X subscription type (Premium or Premium+) to decide how to adapt the Markdown. It scans the file or URL, converts tables and mermaid diagrams to PNGs, flattens or promotes deep headers per subscription rules, then runs a parser to produce title, HTML, image list, dividers, and block indexes. Finally it automates the X Articles editor: uploads cover image, pastes HTML, inserts images and dividers at specified block_index positions, and saves a draft.

When to use it

  • You have a Markdown article and want it published to X Articles with preserved formatting.
  • You need automatic conversion of tables, mermaid diagrams, or deep headers for X’s limitations.
  • You want cover image upload and image placement handled precisely by block index.
  • You need an adapted copy saved while preserving the original file.
  • You prefer the article saved as a draft (no auto-publish).

Best practices

  • Answer the subscription prompt (Premium vs Premium+) at the start; the skill will remember it for the session.
  • Pre-process locally: run table/mermaid conversions and review the adapted markdown copy before automation.
  • Use the provided parse_markdown.py to get title, html, content_images (with block_index), dividers, and total_blocks.
  • Insert images in descending block_index order to avoid position shifts after each insertion.
  • Keep browser login to X active before automation and save the adapted markdown alongside the original so changes are auditable.

Example use cases

  • Publish a technical blog post with code blocks and tables to X while converting tables to images for Premium accounts.
  • Convert a Markdown file containing mermaid diagrams into a rich-drafted X Article with diagrams rendered as PNGs.
  • Batch-prepare and upload an article that includes multiple inline images and dividers positioned exactly where intended.
  • Adapt an article with deep nested headers so it reads naturally on X Premium by promoting or converting H3+ to bold lead-ins.

FAQ

No. The skill creates an adapted copy (eg. /tmp/article_for_x.md) and lists what changed; the original is preserved.

Why do you ask my X subscription type?

X Premium and Premium+ support different features (H3 headers, tables). Knowing your tier ensures the article is adapted correctly.

Will the skill auto-publish the article?

No. The skill fills the editor and saves a draft only; publishing is left to you for final review.

Built by
VeilStrat
AI signals for GTM teams
© 2026 VeilStrat. All rights reserved.All systems operational