/article2media:article-rewrite <article.md|目录> [--pages N] [--lang zh|en] [--verify] [--illustrate] [--style 主题名]from Article2Media
Reads an article thoroughly and restructures it into a structured content.json with core thesis, sections, judgment titles, key points, quotes, two charts (bar, flow, comparison, structure, etc.), and a data panel. Optionally adds checklists, fact-checking, AI illustrations, and exports a rewrite.md with charts as images.
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:你负责读懂、规划、改写、选图、核对数字;脚本负责校验。改写稿只写内容,不含颜色和字体,换风格不用重写。改写和总结是同一件事。
参数:$ARGUMENTS
| 产出 | 给谁用 |
|---|---|
content.json(改写稿) | long-image(总结长图)、image-cards(总结卡片)、explainer-video(参考事实与结构) |
rewrite.md + rewrite-assets/(改写稿的文章形态,export.mjs 导出) | wechat-layout(公众号总结),也可以直接给人读 |
article.md(原文、译文或逐字稿)。给的是链接或文件时,先用 article-fetch(视频用 video-transcript)取原文;调用方式和工作目录见 ../article2media/references/pipeline.md。同一篇已有 content.json 时不要重写:只补新版式需要的字段。
逐字稿是口语:去掉口头禅和重复,事实、数字、人名以视频为准;识别可能出错的专有名词对照 transcript/segments.md 判断,拿不准的交付时说明。来源写成「内容整理自 <作者> 的<平台>视频《标题》」。
第一次使用先跑 node ${CLAUDE_SKILL_DIR}/scripts/doctor.mjs(校验和导出要用到 Node 22+、Chrome;ai-illustration 一行是出图能力)。
完整读一遍 article.md,再读 references/writing-guide.md,然后确定:
part:以讲清核心内容、总结到位为准,没有上限;references/content-schema.md 末尾的密度表是起点(--pages N 可指定页数);../article2media/references/styles.md 选一个,写进 theme。不需要先把大纲给用户确认,除非用户要求先看大纲。
--verify 或用户要求时)写之前必须读 references/content-schema.md 和 references/figures.md(每种图表、面板的完整写法见 examples/gallery.json;一篇 3,700 词长文的完整示例见 examples/dan-koe.json)。写到原文同目录的 content.json,然后校验:
node ${CLAUDE_SKILL_DIR}/scripts/check.mjs <目录>/content.json # 长图
node ${CLAUDE_SKILL_DIR}/scripts/check.mjs <目录>/content.json --ratio 3:4 # 还要出卡片时,同时检查卡片
node ${CLAUDE_SKILL_DIR}/scripts/check.mjs <目录>/content.json --x # 要发 X 时,检查 X 稿(content.json 里的 x)
../image-cards/references/xhs-guide.md,写上 cover、xhs,需要时给个别节加 card 提示。../wechat-layout/references/wechat-guide.md,写上 wechat.title、wechat.digest。x:先判断内容类型(故事 / 教程 / 清单 / 报告 / 新闻),再按类型写;标「原文」的段落只删不改,脚本会和 article.md 逐字核对。只发 X 时可以不写 pages。article.md 比对(数字来源、人称、配图),所以 content.json 要和 article.md 放在一起。node / python 脚本,不要用 sed -i:macOS 和 Linux 的写法不同,改不上也不报错。--illustrate 时)figures.md 的 illustration 一节写:cover.illustration.prompt(封面),再挑 1–2 个故事性强、缺数据的节,把其中一张图换成 {"type": "illustration", "prompt": "…"}。node ${CLAUDE_SKILL_DIR}/scripts/illustrate.mjs <目录>/content.json。脚本按 content.json 的主题选画风;之后换主题要画风一致,就加 --theme 新主题 再生成一次。--force 重新生成。node ${CLAUDE_SKILL_DIR}/scripts/export.mjs <目录>/content.json # → <目录>/rewrite.md + rewrite-assets/
node ${CLAUDE_SKILL_DIR}/scripts/export.mjs <目录>/content.json --theme quiet # 图表按指定主题截图
rewrite.md 的 front matter;公众号排版默认用同一个主题。换主题要重新导出。rewrite.md 解析回来校验;有 ✗ 说明 content.json 里有会被当成 Markdown 结构的文字,按提示改 content.json 后重导,不要手改 rewrite.md。content.json(和 rewrite.md)的绝对路径、一行大纲(每页的 part)、主题和理由,以及:要出图用 long-image / image-cards,要发公众号用 wechat-layout 排 rewrite.md。agents/openai.yaml (opens in a new tab)examples/29meat-claude-code.json (opens in a new tab)examples/dan-koe.json (opens in a new tab)examples/eian-ai-video.json (opens in a new tab)examples/gallery.json (opens in a new tab)references/content-schema.md (opens in a new tab)references/figures.md (opens in a new tab)references/writing-guide.md (opens in a new tab)scripts/check.mjs (opens in a new tab)scripts/doctor.mjs (opens in a new tab)scripts/export.mjs (opens in a new tab)scripts/illustrate.mjs (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
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