domain-modeling
Write a glossary, record ADRs, and clarify vague terms.
MAmattpocock/skills336k5,004 new stars in the last 7 days
改写(总结):把一篇文章读透、重组成一份和风格无关的结构化改写稿 content.json——核心主张、分页分节、每节的判断式标题、要点、金句、两张图表(柱状、流程、对比、结构等 20 多种)和数据面板,可选执行清单、核对数字、AI 插画;还能导出成一篇文章 rewrite.md(图表转成图片)。改写稿交给长图、卡片出图,rewrite.md 交给公众号排版。Use when the user wants an article summarized / restructured / 提炼 / 改写 / 整理成要点 for visual content, wants a 总结 before 长图、小红书卡片 or 公众号, or another article2media skill needs content.json; also when the user wants a structured summary article (总结稿) of a long post.
路径约定:文中的
${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。Write a glossary, record ADRs, and clarify vague terms.
MAmattpocock/skills336k5,004 new stars in the last 7 days
MAmattpocock/skills336k5,004 new stars in the last 7 days
MAmattpocock/skills336k5,004 new stars in the last 7 days
MAmattpocock/skills336k5,004 new stars in the last 7 days
MAmattpocock/skills336k5,004 new stars in the last 7 days
OBobra/superpowers331k5,757 new stars in the last 7 days