Top AI Repos — open-source AI, indexed and scored
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
Claude Code skill for publishing Markdown articles to X (Twitter) Articles
| Date | Stars |
|---|---|
| 2026-07-31 | 849 |
| 2026-08-06 | 851 |
Today
+2 stars today
This week
— stars this week
This month
— stars this month
Momentum
0.0
growth rate 0.00%/day
# X Article Publisher Skill
[English](README.md) | [中文](README_CN.md)
> Publish Markdown articles to X (Twitter) Articles with one command. Say goodbye to tedious rich text editing.
**v1.2.0** — Now with divider support, table-to-image, Mermaid support, and cross-platform clipboard
---
## The Problem
If you're used to writing in Markdown, publishing to X Articles is a **painful process**:
| Pain Point | Description |
|------------|-------------|
| **Format Loss** | Copy from Markdown editor → Paste to X → All formatting gone |
| **Manual Formatting** | Set each H2, bold, link manually — 15-20 min per article |
| **Tedious Image Upload** | 5 clicks per image: Add media → Media → Add photo → Select → Wait |
| **Position Errors** | Hard to remember where each image should go |
### Time Comparison
| Task | Manual | With This Skill |
|------|--------|-----------------|
| Format conversion | 15-20 min | 0 (automatic) |
| Cover image | 1-2 min | 10 sec |
| 5 content images | 5-10 min | 1 min |
| **Total** | **20-30 min** | **2-3 min** |
**10x efficiency improvement**
---
## The Solution
This skill automates the entire publishing workflow:
```
Markdown File
↓ Python parsing
Structured Data (title, images with block_index, HTML)
↓ Playwright MCP
X Articles Editor (browser automation)
↓
Draft Saved (never auto-publishes)
```
### Key Features
- **Rich Text Paste**: Convert Markdown to HTML, paste via clipboard — all formatting preserved
- **Block-Index Positioning** (v1.1): Precise image placement using element indices, not text matching
- **Reverse Insertion**: Insert images from highest to lowest index to avoid position shifts
- **Smart Wait Strategy**: Conditions return immediately when met, no wasted wait time
- **Safe by Design**: Only saves as draft, never publishes automatically
---
## What's New in v1.1.0
| Feature | Before | After |
|---------|--------|-------|
| Image positioning | Text matching (fragile) | Block index (precise) |
| Insertion order | Sequential | Reverse (high→low) |
| Wait behavior | Fixed delay | Immediate return on condition |
### Why Block-Index?
Previously, images were positioned by matching surrounding text — this failed when:
- Multiple paragraphs had similar content
- Text was too short to be unique
Now, each image has a `block_index` indicating exactly which block element it follows. This is deterministic and reliable.
---
## Requirements
| Requirement | Details |
|-------------|---------|
| Claude Code | [claude.ai/code](https://claude.ai/code) |
| Playwright MCP | Browser automation |
| X Premium Plus | Required for Articles feature |
| Python 3.9+ | With dependencies below |
| OS | macOS or Windows |
```bash
# macOS
pip install Pillow pyobjc-framework-Cocoa
# Windows
pip install Pillow pywin32 clip-util
# For Mermaid diagrams (optional)
npm install -g @mermaid-js/mermaid-cli
```
---
## Installation
### Method 1: Git Clone (Recommended)
```bash
git clone https://github.com/wshuyi/x-article-publisher-skill.git
cp -r x-article-publisher-skill/skills/x-article-publisher ~/.claude/skills/
```
### Method 2: Plugin Marketplace
```
/plugin marketplace add wshuyi/x-article-publisher-skill
/plugin install x-article-publisher@wshuyi/x-article-publisher-skill
```
---
## Usage
### Natural Language
```
Publish /path/to/article.md to X
```
```
Help me post this article to X Articles: ~/Documents/my-post.md
```
### Skill Command
```
/x-article-publisher /path/to/article.md
```
---
## Workflow Steps
```
[1/7] Parse Markdown...
→ Extract title, cover image, content images with block_index
→ Convert to HTML, count total blocks
[2/7] Open X Articles editor...
→ Navigate to x.com/compose/articles
[3/7] Upload cover image...
→ First image becomes cover
[4/7] Fill title...
→ H1 used as title (not included in body)
[5/7] Paste article content...
→ Rich text via clipboard
→ All formatting preserved
[6/7] Insert content Excerpt of 9,353 characters
Read on GitHub8
3
Would you bet a product on this? Bounded 0–100 and slow moving.
matched fp:9a17501b8094b47f, llm:Description: "Claude Code skill for publishing Markdown articles to X (Twitter) Articles"; language: Python; no topics provided.