x-article-publisher
Publish Markdown articles to X (Twitter) Articles editor with proper formatting. Use when user wants to publish a Markdown file/URL to X Articles, or mentions "publish to X", "post article to Twitter", "X article", or wants help with X Premium article publishing. Handles cover image upload and converts Markdown to rich text automatically.
npx skills add anbeime/skill --skill qiaomu-x-article-publisher --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# X Article Publisher Publish Markdown content to X (Twitter) Articles editor, preserving formatting with rich text conversion. ## Prerequisites - X Premium Plus subscription - Python 3.9+ with dependencies: `pip install Pillow pyobjc-framework-Cocoa patchright` ## 🎉 首次使用:一次认证,告别重复登录 **X Article Publisher 现在支持持久化认证,无需每次手动登录!** ### 🔧 初始化认证(仅需一次) 首次使用前,运行认证设置: ```bash cd ~/.claude/skills/x-article-publisher/scripts python auth_manager.py setup ``` **流程:** 1. ✅ 浏览器窗口自动打开 X 登录页面 2. 🔐 手动登录你的 X 账号(需 Premium+ 订阅) 3. ✅ 完成 2FA 验证(如已启用) 4. 🏠 登录成功后自动跳转到 Home 时间线 5. 💾 认证状态自动保存(有效期 7 天) ### 📋 认证管理命令 ```bash # 检查认证状态 python auth_manager.py status # 验证认证是否有效 python auth_manager.py validate # 清除认证数据(需重新登录) python auth_manager.py clear # 重新认证(清除 + 设置) python auth_manager.py reauth ``` ### 🚀 自动化工作流 认证设置完成后,skill 执行时会自动: 1. ✅ 检查认证状态 2. 🔓 如已认证,直接使用保存的浏览器状态(无需登录) 3. ⚠️ 如未认证,提示运行 `auth_manager.py setup` **注意**:认证数据存储在 `~/.claude/skills/x-article-publisher/data/browser_state/`,已通过 .gitignore 排除,不会提交到 Git。 --- ## Scripts Located in `~/.claude/skills/x-article-publisher/scripts/`: ### publish_article.py (主脚本 - 一键发布) **推荐使用** - 自动完成所有发布步骤: ```bash # 基本用法(默认显示浏览器) python publish_article.py --file art
- Prerequisites
- 🎉 首次使用:一次认证,告别重复登录
- 🔧 初始化认证(仅需一次)
- 📋 认证管理命令
- 🚀 自动化工作流
- Scripts
- publisharticle.py (主脚本 - 一键发布)
- parsemarkdown.py
- copytoclipboard.py
- Workflow (简化版)
- 🚀 一键发布(推荐)
- 手动工作流(高级用户)
- 🧠 智能增强功能
- 智能标题生成
cd ~/.claude/skills/x-article-publisher/scripts python auth_manager.py setup python auth_manager.py status python auth_manager.py validate python auth_manager.py clear python auth_manager.py reauth python publish_article.py --file article.md python publish_article.py --file article.md --headless python publish_article.py --file article.md --title "自定义标题" python parse_markdown.py <markdown_file> [--output json|html] [--html-only]
What does the x-article-publisher skill do?
Publish Markdown articles to X (Twitter) Articles editor with proper formatting. Use when user wants to publish a Markdown file/URL to X Articles, or mentions "publish to X", "post article to Twitter", "X article", or wants help with X Premium article publishing. Handles cover image upload and converts Markdown to rich text automatically.
How do I install it?
Run `npx skills add anbeime/skill --skill qiaomu-x-article-publisher --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From anbeime/skill, a repository with 4,714 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
