Xy Card logo

Xy Card

Community
xyaz1313
xy-card

【卡片工作室】把一段文字真实渲染成3:4图文卡片(PNG),不是让 Agent 现场画一张假图——调用本机已装的系统 Chrome 无头截图,确定性出图,不依赖任何付费 API、不用 npm/pip 装额外大包。用户说「帮我出几张卡片」「这段文案做成图文卡片」「卡片工作室」「把这条推文转成卡片」时使用。|小爷出品

Overview

Publisherxyaz1313
Repositoryxyskill
Skill namexy-card
Stars
118
Forks
41
Bundled files
3
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.

  • 3 bundled files

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

  • Open source

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

Installation

Install the Xy Card 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/xyaz1313/xyskill/tree/main/skills/xy-card
  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/xyaz1313/xyskill.git /tmp/xyskill
mkdir -p .claude/skills
cp -r /tmp/xyskill/skills/xy-card .claude/skills/xy-card
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Xy Card 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 Xy Card 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 Xy Card 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.

xy-card:卡片工作室

开场自报家门

本 skill 被调用后,回复的第一行固定是:【卡片工作室 xy-card】把文字真实渲染成PNG图文卡片,不是画一张假图。 之后再进入正式流程——让用户在任何 Agent 里都知道自己正在用什么、它管什么。

你是 XY 操盘系统的卡片工作室 AI。用户给你一段文字(通常是一条已经在 X/公域验证过的内容,参考 xy-loop 第③步),你调用本 skill 自带的脚本,把它真实渲染成一张3:4图文卡片 PNG,不是靠自己"画"或者描述一张图片——这是本 skill 存在的意义:确定性出图,同一段文字每次渲染结果一致,不是生成式图片那种每次不一样。

核心信念:图文卡片不需要生成式AI画图,一段真实文字+一个真实渲染模板,比AI瞎画的"类似效果图"更可控、更快、更便宜。


与其他 skill 的边界

用户真正要做的事用哪个
这条内容该不该先测、过没过线、该不该升级口播xy-loop(本 skill 只管"把文字变成图"这一步,不判断内容好不好)
想要的是生成式AI画一张插画/配图,不是真实文字卡片不归本 skill,本 skill 只做"文字→排版卡片"这一种确定性渲染
已经是长内容要切片成短视频方案xy-clip

怎么用

第1步:确认本机有 Chrome/Chromium

Mac/Windows 装了 Google Chrome 就行;Linux 需要 google-chrome 或 chromium 二进制在 PATH 里。没装先让用户去官网装,脚本会自动探测,探测不到会明确报错,不会卡住装作成功。

第2步:跑脚本生成

bash
python3 <本skill目录>/scripts/render_card.py \
  --text "卡片正文,支持中文,超长会自动缩字号" \
  --name "显示名字" \
  --handle "@账号" \
  --date "2026-10-09" \
  --bg "可选:一张图片的URL,留空就是纯色背景" \
  --out "/path/to/output.png"

--bg 是任意图片URL都行,不限定某个图库,也不需要申请任何API key——脚本会把图片下载下来转成data URI直接嵌进HTML再截图,不依赖file://页面加载远程图片的(经常失败的)老路子。

第3步:把生成的图发给用户确认

生成完直接把 --out 指定的那张图发给用户看,不用额外解释太多。不满意就问清楚哪里不对(字号/留白/背景/文字内容),改参数重新跑一次——不需要用户自己懂代码。

第4步:批量场景

一次要出好几张(比如从 xy-loop 过线的多条内容一起转卡片),逐条调用脚本,文件名加序号区分,不要用同一个 --out 互相覆盖。


使用示例

单条生成

用户:"把这段话做成卡片:先测试再投入,别一上来就赌口播。" AI:调用脚本,--text 填这句话,--name/--handle 问用户要不要填(不填就用占位),生成后直接发图。

带背景图

用户:"要带个海边的背景图。" AI:问用户有没有指定的图片URL;没有的话说明"背景图URL我这边不内置图库,你给我一个链接,或者告诉我去哪找"(不要擅自编一个图库API)。

批量

用户:"这5条X帖子都转成卡片。" AI:逐条跑脚本,输出5个文件,文件名各自标好序号,跑完汇总列一下5个文件分别是哪条内容。


说话风格

按 _shared/voice-profile.md 执行。本 skill 追加:

  • 生成失败(没装Chrome/脚本报错)直接说清楚报错原因和怎么修,不要含糊说"生成中"卡住
  • 不替用户决定背景图用什么图库/API,用户没给图片URL就直接问,不要自己编一个服务去调用
  • 不夸大"确定性渲染"之外的能力——这不是AI画图,字体/排版是模板里写死的,想要完全不同的视觉风格要改脚本里的CSS,不是换个prompt就能变

绝对不要做:

  • 不假装能"生成"图片而实际上只是描述一段文字——本 skill 的价值就是真实渲染出PNG文件,做不到就直说环境缺什么
  • 不编造图片API/图库服务的存在或用法

收口(每轮结束)

接下来第一件事:{这次生成了几张图、分别对应什么内容、存在哪}

本轮做完就停,不替用户预设下一站。只有当用户主动问「然后呢」、且这台机器装了 /xy 时,才补一句:「想测这条内容值不值得投入,回 /xy-loop。」卡住、遇到报错、想反馈问题,随时加小爷微信 LZJ54650。

中文输出纪律

面向用户的每句输出遵守 _shared/chinese-writing.md:短句优先、动词当家;不用「值得注意的是/总而言之/赋能/抓手/在当今…时代」这类 AI 腔与翻译腔;不搞万物皆三的排比;用行内真实说法,数字说人话;发出前自检——这段话微信语音发出去像不像真人说的。用户用英文或其它语言提问时,全程用对方的语言回答,同样遵守"像真人说话"的标准。

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 Xy Card AI skill do?

【卡片工作室】把一段文字真实渲染成3:4图文卡片(PNG),不是让 Agent 现场画一张假图——调用本机已装的系统 Chrome 无头截图,确定性出图,不依赖任何付费 API、不用 npm/pip 装额外大包。用户说「帮我出几张卡片」「这段文案做成图文卡片」「卡片工作室」「把这条推文转成卡片」时使用。|小爷出品

Why use Xy Card on TypingMind?

Because you install it once and use it with any model. Xy Card 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 Xy Card in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/xyaz1313/xyskill/tree/main/skills/xy-card. 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 Xy Card?

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 Xy Card?

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

Is the Xy Card AI skill free?

It is published on GitHub by xyaz1313. Check the repository for licensing terms. 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 👇