Xhs Article To Images — Documentation skill for Claude Code
Agent-assisted Markdown article to Xiaohongshu image cards workflow.
How to install Xhs Article To Images
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open bozhouDev/xhs-article-to-images and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Xhs Article To Images does
Agent-assisted Markdown article to Xiaohongshu image cards workflow.
Alternatives in Documentation
- 会话管理(Session Manager)需求文档(PRD / Markdown) — 目标:对 Codex / Claude Code 的本地会话记录进行可视化管理,并提供“一键复制 / 一键终端恢复”能力 31.7k ★
- Repo Recap — Generate a structured recap of the repository state: open PRs, open issues, recent releases, and executive sum 11.9k ★
- Ars Format Convert — ARS academic-paper format-convert mode — convert to LaTeX / DOCX / PDF / Markdown 4.5k ★
README
xhs-article-to-images
把 Markdown 长文转成小红书 3:4 图片组的 Agent skill。
它不是传统的全自动 Markdown parser。推荐用法是:让 Codex / Claude 这类 Agent 读文章、按规则拆页、填入 HTML 模板,再用内置 Playwright 渲染器逐张导出 PNG。
效果预览
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
能做什么
- 输出 1080 x 1440 PNG,适合小红书 3:4 图文。
- 内置五套设计皮肤:E 雅刊(默认)、A 暖杏奶咖、B 雾松青、C 黛墨描金、D 夜读鎏金。
- 外加女性向三主题:F 粉色王国(童话甜粉)、G 乙游夜境(暗黑浪漫)、H 吉卜力(治愈自然),共用一套
femcard骨架、换类名即换主题。 - 支持封面、正文、图文混排、清单、金句、大字陈述、要点正文、三观对比、结尾等页型。
- 默认走全文重排版:正文为主,有图用图文,超容量拆页,不把长文硬压成 8 页摘要。
- 提供
xhs-init初始化任务目录,xhs-render渲染截图。
安装
git clone https://github.com/bozhouDev/xhs-article-to-images.git
cd xhs-article-to-images
npm install
npx playwright install chromium
作为 Codex / Claude skill 使用时,把仓库链接到你的 skills 目录:
ln -s "$(pwd)" ~/.codex/skills/xhs-article-to-images
# 或:
ln -s "$(pwd)" ~/.claude/skills/xhs-article-to-images
快速使用
初始化一篇文章的任务目录:
npm run init:task -- ./work/my-article
编辑 `./work/my-article/index.html`:保留需要的卡片,填入文章内容,把图片放进 `./work/my-article/assets/`。
渲染 PNG:
npm run render -- ./work/my-article
输出文件会在:
./work/my-article/output/
需要 2 倍清晰度:
npm run render -- ./work/my-article --scale 2
预览图重渲
npm run render:preview
这会重新生成 `preview/output/*.pn
Related Skills
Wechat Article Down
微信公众号文章下载工具 WeChat Article Downloader - Claude Code Skill,自动提取文章正文、图片、音频、视频,保存为本地 Markdown Download WeChat MP
Image Upload Skill
Claude Skill that upload image to free online service, returns URL and markdown for the image.
Plantuml
A Plantuml Claude Skill that can generate images and help you create Plantuml digrams from source code. It can
Qiaomu X Article Publisher
🚀 一键发布 Markdown 文章到 X Articles Claude Code Skill - 持久化认证 + 完全自包含
Wechat Article To Md
Claude Code Skill - 抓取微信公众号文章并转换为 Markdown,自动下载图片 WeChat Article to Markdown Converter
Help Center Markdown
Agent Skill: build a markdown-backed help center — category folders of frontmatter articles, static landing/ca
Related Agents
Codex Artist
Image-generation subagent. Use PROACTIVELY whenever a task needs image files — generating or editing icons, lo
SEO Aeo Geo
End-to-end SEO/AEO/GEO content agent. Runs the full pipeline — query fan-out, semantic outline, source collect
Image Creator
AI image generation specialist. Use proactively when the user wants to create images, generate pictures, make








