image-cards

Featured

卡片:固定比例的图文卡片组——小红书 3:4(1080×1440)、Instagram 4:5、方图 1:1、竖屏 9:16,附总览图和发帖文案。两种输入:改写稿 content.json → 总结卡片(封面 + 每节一卡 + 清单 + 要点总结,12 套主推主题);文章 article.md(原文、译文、逐字稿)→ 原文卡片(整篇按顺序分页成卡片,一字不改,逐块校验)。可以单独用,也可以接在抓取、改写、翻译后面。Use when the user wants 小红书图文, 轮播卡片, 知识卡片, 3:4 / 4:5 / 1:1 / 9:16 cards, Instagram carousel, 朋友圈方图, or 原文卡片 / 全文卡片 / 把全文做成小红书 — from an article or an existing content.json.

AI & Automation 436 stars 66 forks Updated 1 weeks ago MIT

Install

View on GitHub

Quality Score: 95/100

Stars 20%
88
Recency 20%
90
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# 卡片(image-cards) > 路径约定:文中的 `${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`。 ## 0. 先确定输入 - 已有 `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)。 ## 1. 总结卡片(content.json) 读 `references/xhs-guide.md`:封面、每张卡只讲一件事、发帖文案(`cover`、`xhs`、`card` 字段)。 ```bash 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...

Details

Author
threerocks
Repository
threerocks/article2media
Created
1 weeks ago
Last Updated
1 weeks ago
Language
JavaScript
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category