X Article Publisher
wshuyi/x-article-publisher-skill
Publish Markdown articles to X (Twitter) Articles editor with proper formatting.
自媒体创作者与内容创作者在需要将 Markdown 长文发布到 X (Twitter) Articles 编辑器时使用。技能自动将 Markdown 转换为富文本并完美保留排版,支持持久化免密登录与封面上传,一键完成发布,大幅提升长文分发效率。
$ npx skills add anbeime/skill --skill x-article-publisher -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install anbeime/skill x-article-publisher --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/anbeime/skill.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/qiaomu-x-article-publisher .claude/skills/x-article-publisher && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "x-article-publisher" agent skill from https://github.com/anbeime/skill/tree/main/skills/qiaomu-x-article-publisher into .claude/skills/x-article-publisher/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "x-article-publisher", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/anbeime/skill/tree/main/skills/qiaomu-x-article-publisherType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add anbeime/skill --skill x-article-publisher -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install anbeime/skill x-article-publisher --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/anbeime/skill.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/qiaomu-x-article-publisher .agents/skills/x-article-publisher && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "x-article-publisher" agent skill from https://github.com/anbeime/skill/tree/main/skills/qiaomu-x-article-publisher into .agents/skills/x-article-publisher/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "x-article-publisher", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add anbeime/skill --skill x-article-publisher -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install anbeime/skill x-article-publisher --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/anbeime/skill.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/qiaomu-x-article-publisher .cursor/skills/x-article-publisher && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "x-article-publisher" agent skill from https://github.com/anbeime/skill/tree/main/skills/qiaomu-x-article-publisher into .cursor/skills/x-article-publisher/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "x-article-publisher", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/anbeime/skill.git --path skills/qiaomu-x-article-publisher--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add anbeime/skill --skill x-article-publisher -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install anbeime/skill x-article-publisher --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/anbeime/skill.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/qiaomu-x-article-publisher .gemini/skills/x-article-publisher && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "x-article-publisher" agent skill from https://github.com/anbeime/skill/tree/main/skills/qiaomu-x-article-publisher into .gemini/skills/x-article-publisher/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "x-article-publisher", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install anbeime/skill x-article-publisherInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add anbeime/skill --skill x-article-publisher -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/anbeime/skill.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/qiaomu-x-article-publisher .github/skills/x-article-publisher && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "x-article-publisher" agent skill from https://github.com/anbeime/skill/tree/main/skills/qiaomu-x-article-publisher into .github/skills/x-article-publisher/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "x-article-publisher", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add anbeime/skill --skill x-article-publisher -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install anbeime/skill x-article-publisher --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/anbeime/skill.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/qiaomu-x-article-publisher .opencode/skills/x-article-publisher && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "x-article-publisher" agent skill from https://github.com/anbeime/skill/tree/main/skills/qiaomu-x-article-publisher into .opencode/skills/x-article-publisher/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "x-article-publisher", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
x-article-publisher自媒体创作者与内容创作者在需要将 Markdown 长文发布到 X (Twitter) Articles 编辑器时使用。技能自动将 Markdown 转换为富文本并完美保留排版,支持持久化免密登录与封面上传,一键完成发布,大幅提升长文分发效率。
X Article Publisher is an agent skill from anbeime/skill. 自媒体创作者与内容创作者在需要将 Markdown 长文发布到 X (Twitter) Articles 编辑器时使用。技能自动将 Markdown 转换为富文本并完美保留排版,支持持久化免密登录与封面上传,一键完成发布,大幅提升长文分发效率。
Its SKILL.md is about 1.4k tokens, which your agent loads only when the skill is triggered. The skill folder holds 18 other files, including scripts (for example `CHANGELOG.md`, `README.md` and `metadata.json`).
It sits in Documents & Office, covering Markdown. It works with X (Twitter) and Python. The repository describes itself as: 收录最全、更新最快的技能Skills商店:精选原创技能包(涵盖文档处理、内容创作、编程开发、机器学习、自动化工作流),全部打包好可直接安装使用!同时自动抓取GitHub上万个Skills项目,按分类、更新时间、Star数量整理。The most comprehensive and frequently updated AI Agent skill… The licence is MIT.
5 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit db1e192. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Ships 7 files in scripts/ (Python), which the agent can run.
Shell commands in SKILL.md call:
pythonpipFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use pip, which can reach the network depending on how they are called.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
X Article Publisher loads about 1.4k tokens when it runs. Until then it costs about 36 tokens; SKILL.md has 313 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.
The full file from anbeime/skill at commit db1e192, republished under its MIT licence (© anbeime). 313 words, ~1,357 tokens.
.claude/skills/x-article-publisher/SKILL.md (or your agent's skills folder). This skill also uses 15 other files; get the full folder from GitHub.Publish Markdown content to X (Twitter) Articles editor, preserving formatting with rich text conversion.
pip install Pillow pyobjc-framework-Cocoa patchrightX Article Publisher 现在支持持久化认证,无需每次手动登录!
首次使用前,运行认证设置:
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认证设置完成后,skill 执行时会自动:
auth_manager.py setup注意:认证数据存储在 ~/.claude/skills/x-article-publisher/data/browser_state/,已通过 .gitignore 排除,不会提交到 Git。
Located in ~/.claude/skills/x-article-publisher/scripts/:
推荐使用 - 自动完成所有发布步骤:
# 基本用法(默认显示浏览器)
python publish_article.py --file article.md
# 隐藏浏览器(后台运行)
python publish_article.py --file article.md --headless
# 自定义标题
python publish_article.py --file article.md --title "自定义标题"Parse Markdown and extract structured data:
python parse_markdown.py <markdown_file> [--output json|html] [--html-only]Returns JSON with: title, cover_image, content_images (with block_index for positioning), html, total_blocks
Copy image or HTML to system clipboard:
# Copy image (with optional compression)
python copy_to_clipboard.py image /path/to/image.jpg [--quality 80]
# Copy HTML for rich text paste
python copy_to_clipboard.py html --file /path/to/content.html前提:已完成认证设置(python auth_manager.py setup)
直接运行 publish_article.py,自动完成所有步骤:
cd ~/.claude/skills/x-article-publisher/scripts
python publish_article.py --file /path/to/article.md脚本会自动:
如需更精细控制,可分步执行:
python parse_markdown.py article.md当文章没有 H1 标题时,parse_markdown.py 会返回 needs_title_generation: true。
Claude 应该自动:
--title "生成的标题" 参数发布好标题的特点:
示例:
# 解析文章
python parse_markdown.py article.md
# 如果 needs_title_generation: true,Claude 生成标题后:
python publish_article.py --file article.md --title "AI时代,普通人的3个生存法则"当文章没有封面图时,parse_markdown.py 会返回 needs_cover_generation: true。
Claude 应该自动:
gemini-image-generator 或 jimeng-image-generator skill 生成封面图封面图生成提示词模板:
为一篇关于「{文章主题}」的文章生成封面图。
风格:简洁、现代、科技感
元素:{1-3个核心视觉元素}
文字:可选,如果加文字只放{1-3个关键词}
尺寸:16:9 横版工作流示例:
# 1. 解析文章
python parse_markdown.py article.md
# 输出: needs_cover_generation: true
# 2. Claude 调用生图 skill 生成封面(假设保存到 /tmp/cover.png)
# 3. 将封面图插入文章开头,或手动上传注意:封面图上传目前需要在浏览器中手动操作,脚本会打开编辑器后等待用户操作。
{
"title": "Article Title",
"title_source": "h1", // "h1", "h2", "first_line", or "none"
"needs_title_generation": false, // true if no H1 title
"cover_image": "/path/to/first-image.jpg",
"needs_cover_generation": false, // true if no cover image
"content_images": [
{"path": "/path/to/img2.jpg", "block_index": 5}
],
"html": "<p>Content...</p><h2>Section</h2>...",
"total_blocks": 45
}字段说明:
title_source: 标题来源h1: 来自 H1 标题(最理想)h2: 来自第一个 H2 标题first_line: 来自第一行文本none: 无法提取标题needs_title_generation: 是否需要 Claude 生成更好的标题needs_cover_generation: 是否需要 Claude 生成封面图@@@IMG_X@@@ markers after image insertionUser: "Publish /path/to/article.md to X"
cd ~/.claude/skills/x-article-publisher/scripts
python publish_article.py --file /path/to/article.mdOutput:
📄 解析文件:/path/to/article.md
📝 标题:文章标题
🖼️ 封面图:/path/to/cover.jpg
📷 内容图:2 张
🌐 启动浏览器...
📍 导航到 X Articles...
🔘 点击 create 按钮...
📝 填写标题...
📋 粘贴内容...
✅ 草稿已创建!
💡 请在浏览器中检查并手动发布
🖥️ 浏览器保持打开,请检查草稿并手动发布
⏎ 完成后按回车键关闭浏览器...技术经验参考: 浏览器自动化调试技巧详见 skill-development-guide
© anbeime, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 15 other files (scripts) in skills/qiaomu-x-article-publisher of anbeime/skill.
Open the folder on GitHubat commit db1e192
X Article Publisher next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| X Article Publisher this skillanbeime/skill | 7.8k | — | ~1.4k | Automated safety check: Pass | MIT | |
| X Article Publisherwshuyi/x-article-publisher-skill | 872 | 2 repos | ~3.6k | Automated safety check: Pass | MIT | |
| Publish X Articlesugarforever/01coder-agent-skills | 137 | — | ~5k | Automated safety check: Pass | MIT | |
| Markdown to HTML ReportMegaSuperKitty/WeClaw | 370 | — | ~456 | Automated safety check: Pass | MIT | |
| Markdown to Word Convertercat-xierluo/SuitAgent | 205 | — | ~559 | Automated safety check: Pass | MIT | |
| Doc Cleanernotoriouslab/doc-cleaner | 309 | — | ~712 | Automated safety check: Pass | MIT |
wshuyi/x-article-publisher-skill
Publish Markdown articles to X (Twitter) Articles editor with proper formatting.
sugarforever/01coder-agent-skills
Publishes a Markdown file or URL to the X Articles editor with formatting kept, turning tables, mermaid diagrams and deep headers that X cannot show into images.
MegaSuperKitty/WeClaw
Drafts a report in Markdown with numbered inline citations and a references section, then renders it to a styled HTML file through a Jinja2 template on Windows.
cat-xierluo/SuitAgent
Converts Markdown files into Word documents formatted to Chinese typesetting conventions, with presets for academic, legal, report and book layouts.
notoriouslab/doc-cleaner
Convert PDF, DOCX, XLSX, and text files to clean, structured Markdown.
Nebutra/MinerU-Skill
An AI-Native skill for parsing PDF / Office / image files into Markdown with MinerU — a fast, zero-config document parser for AI agents.
anbeime/skill
Chinese-language skill that produces a 25-second vertical video of a digital shopping-guide avatar for e-commerce, chaining AI image, voice and video generation.
anbeime/skill
Produces a full material pack for a three-minute history-of-science explainer video from a theme, era and core conclusion: narration, storyboard, Veo2 prompts and character design.
anbeime/skill
Turns a PPT content outline into styled slide images, an interactive HTML viewer and an optional stitched video from a content-planning partner skill.
anbeime/skill
Builds or improves a PowerPoint deck through a seven-role workflow: topic analysis, template choice, content planning, writing, image suggestions, editing and PPTX generation.
anbeime/skill
Turns a document into a narrated roadshow video through ten staged roles, from document analysis and slide planning to audio, subtitles and final composition.
anbeime/skill
产品经理与运营专员在准备汇报展示时,将 JSON 数据一键转换为标准 .pptx 文件。自动应用多种布局、图表与表格样式,快速生成专业 PPT,彻底告别繁琐手工排版,让内容产出与展示更高效!
Works with
Categories
自媒体创作者与内容创作者在需要将 Markdown 长文发布到 X (Twitter) Articles 编辑器时使用。技能自动将 Markdown 转换为富文本并完美保留排版,支持持久化免密登录与封面上传,一键完成发布,大幅提升长文分发效率。. X Article Publisher is an agent skill from anbeime/skill.
X Article Publisher fits situations like: tasks that involve Markdown.
Run `npx skills add anbeime/skill --skill x-article-publisher -a claude-code`. Or copy the skill folder (skills/qiaomu-x-article-publisher in anbeime/skill) into .claude/skills/x-article-publisher in your project. Claude Code loads it when a task matches its description.
Run `npx skills add anbeime/skill --skill x-article-publisher -a codex`. Or copy the skill folder (skills/qiaomu-x-article-publisher in anbeime/skill) into .agents/skills/x-article-publisher in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add anbeime/skill --skill x-article-publisher -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/x-article-publisher, .gemini/skills/x-article-publisher, .github/skills/x-article-publisher and .opencode/skills/x-article-publisher in your project.
Going by SKILL.md and its folder, X Article Publisher needs Python for the scripts in its folder and the command-line tools its instructions call (python and pip). Our summary lists: Python 3.
SKILL.md contains no URLs. Its commands use pip, which can reach the network depending on how they are called. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.
X Article Publisher is published under the MIT licence (from the LICENSE file in the skill folder). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.4k tokens (SKILL.md is roughly 5.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with X Article Publisher: X Article Publisher (wshuyi/x-article-publisher-skill, 872 stars), Publish X Article (sugarforever/01coder-agent-skills, 137 stars), Markdown to HTML Report (MegaSuperKitty/WeClaw, 370 stars) and Markdown to Word Converter (cat-xierluo/SuitAgent, 205 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
anbeime (a GitHub user) maintains it in anbeime/skill, which has 7,760 GitHub stars. The repository holds 62 skills in this directory. The repository was last updated on October 9, 2026.
Source: anbeime/skill on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.