/article2media:image-cards <content.json|article.md|目录> [--ratio 3:4|4:5|1:1|9:16 或 小红书/IG] [--covers] [--form quotes|onepage|qa|digest] [--theme 主题名|a,b|all] [--out 目录]from Article2Media
Generates fixed-ratio image card sets (3:4, 4:5, 1:1, 9:16) for social media carousels from either a content.json summary or an article.md full text, with overview image and caption.
Ships in Article2Media. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
路径约定:文中的
${CLAUDE_SKILL_DIR}指本 SKILL.md 所在的目录。宿主没有替换这个变量时(命令里原样出现${CLAUDE_SKILL_DIR}),把它换成这个目录的绝对路径再运行;../<名字>/指同级的另一个 skill 目录。
| 输入 | 产出 |
|---|---|
content.json(改写稿) | 总结卡片:<目录>/<主题>-3x4/card-01.png …、overview.jpg、caption.md |
article.md(原文、译文、逐字稿、rewrite.md) | 原文卡片:<目录>/full-3x4/card-01.png …、overview.jpg、caption.md |
参数:$ARGUMENTS
比例怎么定:用户提到小红书、RED、xhs、抖音图文、3:4 → --ratio 3:4(默认);Instagram、IG、4:5 → 4:5;方图、正方形、朋友圈、1:1 → 1:1;竖屏、Stories、快拍、9:16 → 9:16。
content.json → 总结卡片;用户只给了文章、又说"原文 / 全文 / 一字不改" → 原文卡片。article-fetch / video-transcript 取原文。article-rewrite 写 content.json(卡片专用字段按 references/xhs-guide.md 写)。原文是外文、又要原文卡片 → 先用 article-translate。../article2media/references/pipeline.md。第一次使用先跑 node ${CLAUDE_SKILL_DIR}/scripts/doctor.mjs(Node 22+、Chrome)。
读 references/xhs-guide.md:封面、每张卡只讲一件事、发帖文案(cover、xhs、card 字段)。
node ${CLAUDE_SKILL_DIR}/scripts/cards.mjs <目录>/content.json --ratio 3:4 --check # 只校验:会出几张
node ${CLAUDE_SKILL_DIR}/scripts/cards.mjs <目录>/content.json --ratio 3:4 # 出图,一组大约 5 秒
node ${CLAUDE_SKILL_DIR}/scripts/cards.mjs <目录>/content.json --ratio 3:4 --theme brutal
node ${CLAUDE_SKILL_DIR}/scripts/cards.mjs <目录>/content.json --covers # 只出封面的几个版本,供挑选或对比发布
node ${CLAUDE_SKILL_DIR}/scripts/cards.mjs <目录>/content.json --form onepage # 轻量形态:onepage 一页看完 | quotes 金句图 | qa 问答卡 | digest 图文速览(X 单帖,最多 4 张)
--form digest --ratio 4:5 --scale 3。theme(可写成 {"long": …, "cards": …} 分开指定);都没有时按 ../article2media/references/styles.md 选。卡片场景的主题调整见 styles.md 第 3 步。overview.jpg,有问题再打开单张卡。✗ 必须修;报「内容超出」「已自动省略」「图只放大到 x 倍」时,按 xhs-guide.md 第 2 节的顺序处理(缩短 card.text、改 split、skip 次要的节)。出图阶段最多 2 轮,到了就停:剩下的 ⚠ 写进交付说明,不要为了让提示归零删掉面板、图或正文(内容比提示数要紧)。check.mjs 的内容提示仍然处理到 0。只改 content.json 再重渲,不手改 HTML。读 references/original-cards.md 和 ../article2media/references/verbatim.md。
node ${CLAUDE_SKILL_DIR}/scripts/cards.mjs <目录>/article.md --ratio 3:4
node ${CLAUDE_SKILL_DIR}/scripts/cards.mjs <目录>/article.md --ratio 3:4 --theme quiet # 用主题的颜色与字体
全文校验未通过就是错误,不能靠目测放行。看 overview.jpg 检查断开的位置;张数超过上限时按 original-cards.md 处理,不删原文。
overview.jpg 路径;caption.md 里的标题、正文和标签直接贴在回复里,方便复制(原文卡片要你补标签、必要时缩短标题);--theme 名称、换比例 --ratio 4:5 都不用重写内容;What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
social-media-cards, carousel, xiaohongshu, instagram, image-generation
npx claudepluginhub threerocks/article2media --plugin article2media11 skills in this plugin
/article2media把文章或视频一键做成中文视觉内容的总入口:按推荐组合把 10 个可单独使用的能力串起来——文章抓取、视频转文字、改写(总结)、全文翻译、长图、卡片(小红书 3:4 / 4:5 / 1:1 / 9:16)、公众号排版、口播视频、白板论证、漫画。常用组合:原文→改写→长图(默认)、原文→改写→小红书卡片、原文→公众号排版、原文→总结→公众号、外文→翻译→公众号、原文长图 / 原文卡片(一字不改)、视频→逐字稿→改写→长图或卡片、一稿多发(长图 + 小红书 + 公众号)、文章→口播视频。输入:X/Twitter 长文与线程、网页、微信公众号、本地 Markdown、粘贴的正文;抖音、YouTube、B 站链接、本地视频/音频、.srt/.vtt。13 套主推主题,不指定时按内容选。Use when the user gives an article, URL, long post, video link or file and wants it turned into 总结图, 长图, 知识卡片, 小红书图文, 公众号排版, 口播视频, 原文排版, 白板, 漫画 — or wants several of them, or names a combo (一键、组合、全套、一稿多发) — e.g. "把这篇文章做成图/小红书/公众号/视频", "把这个抖音视频做成小红书", "翻译成中文发公众号"./article-comic漫画:把一篇文章讲的机制做成黑白漫画分镜——你写认知因果拍点和固定角色(comic.json),生成图负责角色、场景和动作,HTML 负责旁白、对白、音效字(图里不画字);同时输出一张长漫画和一组小红书 3:4 卡片。需要出图能力(Codex CLI 登录,或 OpenAI / Gemini 付费 key)。输入是文章(原文、译文、逐字稿)。可以单独用,也可以接在抓取、视频转文字后面。Use when the user wants a 漫画, 连环画, 四格, 分镜, comic strip, "把这篇做成漫画", or -c./article-fetchOther plugins' skills for the same job