Automate publishing Markdown articles to X (Twitter) Articles with proper rich text formatting. Converts Markdown to HTML and handles image placement automatically using block index positioning.
Download the skill ZIP
Upload in Claude
Go to Settings → Capabilities → Skills → Upload skill
Toggle on and start using
Test it
Using "x-article-publisher". Publish my article at ~/blog/my-post.md to X Articles
Expected outcome:
Successfully parsed Markdown file. Extracted title 'My Blog Post', cover image '~/blog/images/cover.jpg', and 3 content images. HTML copied to clipboard. Navigate to X Articles editor to paste content.
Using "x-article-publisher". Parse /tmp/article.md --html-only
Expected outcome:
HTML output: <h2>Section Title</h2><p>Paragraph with <strong>bold</strong> and <em>italic</em> text.</p><ul><li>List item 1</li><li>List item 2</li></ul>
Security Audit
SafeStatic analysis flagged 97 potential issues, but all are false positives. The skill uses standard Playwright browser automation and Python helper scripts for markdown parsing and clipboard operations. All external command references are documentation examples in markdown code blocks, not actual shell execution. URLs are legitimate X/Twitter endpoints. No confirmed security risks identified.
Medium Risk Issues (1)
Low Risk Issues (3)
Quality Score
What You Can Build
Bloggers and Content Creators
Writers who maintain blogs in Markdown can directly publish to X Articles without manual copying and formatting.
News and Update Publishers
Publishers who need to quickly share formatted articles on X without the X web editor's limitations.
Automation Enthusiasts
Users who want to integrate X Article publishing into their automated content pipelines.
Try These Prompts
Use the x-article-publisher skill to publish my Markdown file at /path/to/article.md to X Articles.
Publish the article in /path/to/blog-post.md to X Articles. Make sure to include all images with proper positioning.
Parse my article at /path/to/draft.md and prepare it for X Articles. Save as draft, do not publish.
I have multiple Markdown articles in /articles/ folder. Use x-article-publisher to prepare them for X Articles publishing.
Best Practices
- Always save as draft first - never auto-publish without user confirmation
- Use block_index for image positioning instead of text matching for reliability
- Prepare all data (parse markdown, generate HTML) before starting browser automation to minimize wait times
- Test with a sample article first to verify image placement before processing important content
Avoid
- Do not attempt to auto-publish - this violates X terms and user trust
- Avoid using text matching for image positioning - block_index is more reliable
- Do not skip the draft review step - always let user verify before publishing
- Avoid excessive browser_wait_for calls - most elements are immediately available after page load
Frequently Asked Questions
Does this skill require X Premium?
Can I auto-publish articles?
What Markdown features are supported?
How does image positioning work?
What platforms are supported?
Can I use this with Claude Code?
Developer Details
Author
ZhanlinCuiLicense
MIT
Repository
https://github.com/ZhanlinCui/Ultimate-Agent-Skills-Collection/tree/main/x-article-publisherRef
main
File structure