Image Cards logo

Image Cards

Community
threerocks
image-cards

卡片:固定比例的图文卡片组——小红书 3:4(1080×1440)、Instagram 4:5、方图 1:1、竖屏 9:16,附总览图和发帖文案。两种输入:改写稿 content.json → 总结卡片(封面 + 每节一卡 + 清单 + 要点总结,13 套主推主题);文章 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.

Overview

Publisherthreerocks
Repositoryarticle2media
Skill nameimage-cards
Stars
610
Forks
96
Bundled files
5
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 5 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by threerocks on GitHub. Read the source before you install it.

Installation

Install the Image Cards AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/threerocks/article2media/tree/main/skills/image-cards
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/threerocks/article2media.git /tmp/article2media
mkdir -p .claude/skills
cp -r /tmp/article2media/skills/image-cards .claude/skills/image-cards
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Image Cards in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Image Cards on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Image Cards is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

卡片(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 --form onepage          # 轻量形态:onepage 一页看完 | quotes 金句图 | qa 问答卡 | digest 图文速览(X 单帖,最多 4 张)
  • 封面多版本、轻量形态、品牌包(头像、品牌色、期号):xhs-guide.md 第 2.5 节。用户说"多出几个封面""金句图""一张图讲完""问答形式""加上我的头像 / 做成系列"时用;要发 X、转发文章配一组总结图、"最多 4 张讲完"时用 --form digest --ratio 4:5 --scale 3。
  • 主题:content.json 的 theme(可写成 {"long": …, "cards": …} 分开指定);都没有时按 ../article2media/references/styles.md 选。卡片场景的主题调整见 styles.md 第 3 步。
  • 检查(出图 → 发现问题 → 改 content.json 或参数 → 再出图,算一轮;通常 1–2 轮就够。✗ 没修完就继续改;第 2 轮后还剩的 ⚠,交付时说明。只跑 check.mjs 不算):先看 overview.jpg,有问题再打开单张卡。✗ 必须修;报「内容超出」「已自动省略」「图只放大到 x 倍」时,按 xhs-guide.md 第 2 节的顺序处理(缩短 card.text、改 split、skip 次要的节)。出图阶段最多 2 轮,到了就停:剩下的 ⚠ 写进交付说明,不要为了让提示归零删掉面板、图或正文(内容比提示数要紧)。check.mjs 的内容提示仍然处理到 0。只改 content.json 再重渲,不手改 HTML。

2. 原文卡片(article.md)

读 references/original-cards.md 和 ../article2media/references/verbatim.md。

bash
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 处理,不删原文。

3. 交付

  • 卡片目录、张数、每张的尺寸;overview.jpg 路径;
  • 把 caption.md 里的标题、正文和标签直接贴在回复里,方便复制(原文卡片要你补标签、必要时缩短标题);
  • 总结卡片:用的主题和理由;换主题 --theme 名称、换比例 --ratio 4:5 都不用重写内容;
  • 原文卡片:原文块数与全文校验结果、生成图 0 张;
  • 需要用户留意的地方。

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Image Cards AI skill do?

卡片:固定比例的图文卡片组——小红书 3:4(1080×1440)、Instagram 4:5、方图 1:1、竖屏 9:16,附总览图和发帖文案。两种输入:改写稿 content.json → 总结卡片(封面 + 每节一卡 + 清单 + 要点总结,13 套主推主题);文章 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.

Why use Image Cards on TypingMind?

Because you install it once and use it with any model. Image Cards is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Image Cards in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/threerocks/article2media/tree/main/skills/image-cards. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Image Cards?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Image Cards?

As many as you like. As long as a model supports skills, you can use Image Cards with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Image Cards AI skill free?

Yes. It is published on GitHub by threerocks under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇