Agent skill

Xhs Render Cards

by tsingyuai in tsingyuai/growth-lab

把已批准的小红书草稿、单一分析参考和真实产品素材变成可审查卡片:先完成 DAI 与 image plan,再按确定性、完整效果或可分离图层模式制作,机械验证 PNG 与清单并运行合规检查。精确文字和真实 UI 不交给模型猜测;AI 生图需要单独配置和授权。

Apache-2.0Auto-check passed

Install Xhs Render Cards

skills CLI
$ npx skills add tsingyuai/growth-lab --skill xhs-render-cards -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install tsingyuai/growth-lab xhs-render-cards --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/tsingyuai/growth-lab.git skills-src && mkdir -p .claude/skills && cp -r skills-src/executors/xhs-render-cards .claude/skills/xhs-render-cards && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
xhs-render-cards
GitHub stars
2k
Token cost
~1k tokens
SKILL.md length
474 words
Files
15 (incl. scripts, references)
Skills in repo
22
Repo updated
First seen
Licence
Apache-2.0

At a glance

把已批准的小红书草稿、单一分析参考和真实产品素材变成可审查卡片:先完成 DAI 与 image plan,再按确定性、完整效果或可分离图层模式制作,机械验证 PNG 与清单并运行合规检查。精确文字和真实 UI 不交给模型猜测;AI 生图需要单独配置和授权。

  • Works in 5 steps: Lock copy and evidence → Capture real Product evidence → Choose one production mode → …
  • SKILL.md covers Required inputs, 1. Lock copy and evidence, 2. Capture real Product evidence and 3. Choose one production mode, plus 3 more sections
  • Runs Python scripts from its folder; calls python and make; needs OPENAI_API_KEY and GEMINI_API_KEY

What it does

Xhs Render Cards is an agent skill from tsingyuai/growth-lab. 把已批准的小红书草稿、单一分析参考和真实产品素材变成可审查卡片:先完成 DAI 与 image plan,再按确定性、完整效果或可分离图层模式制作,机械验证 PNG 与清单并运行合规检查。精确文字和真实 UI 不交给模型猜测;AI 生图需要单独配置和授权。

Its SKILL.md is about 1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 17 other files, including scripts and reference files (for example `agents/openai.yaml`, `references/deai.md` and `references/image-plan.md`).

It works with Xiaohongshu. The repository describes itself as: An end-to-end growth tool that understands the product, fetch the data it needs, researches the market, executes campaigns, and reviews results to improve the next round of… The licence is Apache-2.0.

Example prompts

  • “/xhs-render-cards”

Requirements

  • Python 3
  • A credential in OPENAI_API_KEY
  • A credential in GEMINI_API_KEY

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. Lock copy and evidence
  2. Capture real Product evidence
  3. Choose one production mode
  4. Test a three-card vertical slice
  5. Validate and review

What it can do on your machine

Read from SKILL.md and the folder at commit 2d0807c. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 4 files in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python
    • make

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • OPENAI_API_KEY
    • GEMINI_API_KEY

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Xhs Render Cards loads about 1k tokens when it runs, and up to ~6.2k if it reads all its reference files. Until then it costs about 36 tokens; SKILL.md has 474 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~36
When it runs · the whole SKILL.md, loaded when a task matches
~1k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~6.2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from tsingyuai/growth-lab at commit 2d0807c, republished under its Apache-2.0 licence (© tsingyuai). 474 words, ~1,037 tokens.

Download SKILL.mdSave it as .claude/skills/xhs-render-cards/SKILL.md (or your agent's skills folder). This skill also uses 14 other files; get the full folder from GitHub.
name
xhs-render-cards
description
把已批准的小红书草稿、单一分析参考和真实产品素材变成可审查卡片:先完成 DAI 与 image plan,再按确定性、完整效果或可分离图层模式制作,机械验证 PNG 与清单并运行合规检查。精确文字和真实 UI 不交给模型猜测;AI 生图需要单独配置和授权。

Xiaohongshu card production

Read visual-production-contract.md, rendering.md, and visual-review-rubric.md. Keep DAI and compliance rules from deai.md and quality-gates.md.

Required inputs

Require before rendering:

  • approved draft, exact card copy, account role, reader, and one-sentence user value;
  • verified Product facts and Product-owned screenshots or brand assets;
  • one validated visual-reference-selection.json when external visual research is used;
  • output directory in the calling memory/xhs-replicate/ run;
  • target canvas, card count, rights/privacy boundaries, and whether paid image generation is approved.

The selected public reference is analysis-only. Learn hierarchy, proof-zone proportion, density, and reading rhythm; never copy its wording, logo, proprietary UI, exact composition, distinctive decoration, or full sequence. Rejected candidates contribute no visual rules.

1. Lock copy and evidence

Run DAI on title, caption, card copy, CTA, and tags. Every Product claim needs a current evidence source. Delete unsupported claims instead of weakening them with defensive filler.

Write image-plan.md using image-plan.md. Lock every visible string before rendering. Do not add cards merely to match the reference.

2. Capture real Product evidence

Use screenshot-assets for real Product UI, website, code, or data. Keep the original screenshot as evidence. Do not ask an image model to recreate Product UI, logos, citations, statistics, or source text and present it as real.

3. Choose one production mode

  • deterministic: HTML/CSS, Canvas, SVG, or Pillow owns layout and exact text. Preferred for Chinese copy, dense diagrams, real screenshots, and repeatable series.
  • separable-layer: the image model creates only a background, texture, or illustration without text/UI; deterministic rendering places approved copy and Product evidence.
  • complete-effect: the image model proposes a whole visual direction. Generated text, UI, logos, evidence, and sensitive claims must be replaced or the candidate rejected.

Image generation is optional and separately authorized. If neither OPENAI_API_KEY nor GEMINI_API_KEY is configured, show the user the exact steps in CONFIGURATION.md and offer deterministic rendering or a no-image handoff. Never silently retry or request a key in conversation.

Show full SKILL.md (163 more words)Show less

4. Test a three-card vertical slice

Before expanding a large pack, render:

  1. hook/cover;
  2. independently useful method/checklist/comparison;
  3. real Product evidence when the content makes a Product claim.

Show the actual images in the conversation. A filesystem path alone is not a visual review. Check phone-size readability, hierarchy, Product truthfulness, privacy, and copying boundaries.

5. Validate and review

Create visual-manifest.json, then run:

powershell
python executors/xhs-render-cards/scripts/validate_social_card_pack.py --package <visual-package>

Run the existing DAI and compliance checks with make lint-post POST=<post-directory>. Inspect every final image at full size and as a contact sheet. Write visual-review.md with sources, selected mode, generated assets, replacement decisions, dimensions, privacy, copyright, factual and mobile-readability results.

Only reviewed files under render/ may enter the human publishing package. Rendering never authorizes upload or publication.

Stop rules

Stop on missing Product evidence, ambiguous rights, unreviewed reference selection, exposed private data, fake UI, malformed text, provider failure, or repeated candidate failure. One targeted retry may replace an explicitly authorized work-in-progress candidate; do not loop or create duplicate publishable assets.

© tsingyuai, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 14 other files (scripts, references) in executors/xhs-render-cards of tsingyuai/growth-lab.

  • SKILL.md
  • agents/openai.yaml
  • references/deai.md
  • references/image-plan.md
  • references/imagegen-style-content.md
  • references/imagegen-style-cover.md
  • references/process-doc.md
  • references/quality-gates.md
  • references/rendering.md
  • references/visual-production-contract.md
  • references/visual-review-rubric.md
  • scripts/check-banned-phrases.py
  • scripts/check-compliance.py
  • scripts/test_validate_social_card_pack.py
  • scripts/validate_social_card_pack.py

Open the folder on GitHubat commit 2d0807c

Compare with similar skills

Xhs Render Cards next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Xhs Render Cards compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Xhs Render Cards this skilltsingyuai/growth-lab2k—~1kAutomated safety check: PassApache-2.0
Agent ReachPanniantong/Agent-Reach94k—~1.4kAutomated safety check: PassMIT
Guizang Social Cardsop7418/guizang-social-card-skill7.4k1 repos~7.8kAutomated safety check: PassAGPL-3.0
Yuwen Publish Precheckyuwen-cool/yuwen-publish-precheck7751 repos~1.8kAutomated safety check: PassMIT
Video Podcast MakerAgents365-ai/video-podcast-maker1.7k—~4.9kAutomated safety check: PassMIT
Xhs Note Creatorcomeonzhj/Auto-Redbook-Skills2.3k—~580Automated safety check: NotesNone

Similar skills

  • Agent Reach

    Panniantong/Agent-Reach

    Routes web research and platform lookups across 16 sites, including Twitter, Reddit, YouTube, Bilibili, Xiaohongshu and GitHub, through one command-line tool.

    94k GitHub stars~1.4k tokensUpdated yesterday
    Productivity & AutomationAuto-check passed
  • Guizang Social Cards

    op7418/guizang-social-card-skill

    Produces social card sets for Xiaohongshu and WeChat: carousels, Live Photo motion cards and puzzle layouts, and WeChat cover pairs, rendered from single-file HTML.

    7.4k GitHub starsUsed in 1 repo~7.8k tokens
    Media & CreativeAuto-check passed
  • Yuwen Publish Precheck

    yuwen-cool/yuwen-publish-precheck

    国内自媒体发布前风险自审与保意修复:审口播稿、文章、图文笔记、字幕、封面文字能不能发抖音/小红书/微信视频号,给出具体位置、依据和可直接替换的改稿;被限流/删除/处罚后帮你复盘归因;你的行业敏感词、误报白名单和踩坑案例会沉淀成个人规则库,越用越准。Use when…

    775 GitHub starsUsed in 1 repo~1.8k tokens
    Productivity & AutomationAuto-check passed
  • Video Podcast Maker

    Agents365-ai/video-podcast-maker

    A skill your agent uses when the user gives a topic and wants an automated topic-driven narrated explainer, podcast, or knowledge-summary video (Bilibili / YouTube / Xiaohongshu / Douyin / WeChat…

    1.7k GitHub stars~4.9k tokensUpdated 8 days ago
    Media & CreativeAuto-check passed
  • Xhs Note Creator

    comeonzhj/Auto-Redbook-Skills

    小红书笔记素材创作技能。当用户需要创建小红书笔记素材时使用这个技能。技能包含:根据用户的需求和提供的资料,撰写小红书笔记内容(标题+正文),生成图片卡片(封面+正文卡片),以及发布小红书笔记。支持 8 种精美排版主题和 4 种智能分页模式。

    2.3k GitHub stars~580 tokensUpdated 1 mo ago
    Auto-check: notes
  • Xhs Virtual Product

    chenjin-cmd/xhs-virtual-product

    This skill helps plan, select, produce, and market Xiaohongshu (RED) virtual/digital products — templates, knowledge bases, test tools, study materials.

    726 GitHub stars~862 tokensUpdated 9 days ago
    Knowledge ManagementAuto-check passed

More from tsingyuai/growth-lab

All 22 skills in this repo
  • Screenshot Assets

    tsingyuai/growth-lab

    Capture authenticated product screenshots through the repository-owned Playwright CDP script and archive them in the invoking loop's Memory.

    2k GitHub stars~583 tokensUpdated 11 days ago
    Auto-check passed
  • Media Crawler

    tsingyuai/growth-lab

    Install, authenticate, configure, operate, and troubleshoot the external MediaCrawler client shared by Douyin, Kuaishou, Bilibili, Weibo, Tieba, and Zhihu collectors.

    2k GitHub stars~731 tokensUpdated 11 days ago
    Auto-check passed
  • Run SEO Page Loop

    tsingyuai/growth-lab

    Run an SEO page observation-action-review loop with persistent Memory by coordinating demand research, page creation, adversarial review, image generation, IndexNow submission, and performance review.

    2k GitHub stars~1.2k tokensUpdated 11 days ago
    Auto-check passed
  • Wechat Article Compose

    tsingyuai/growth-lab

    把一个已确认的选题写成微信公众号长文。锁定复刻锚与用户价值、写出 article.md / wechat.yml / review.md,并通过公众号通用合规检查和人工预览前自检。准备、改写或核验公众号文章时使用;不负责发布,也不产出小红书卡片。

    2k GitHub stars~860 tokensUpdated 11 days ago
    Auto-check passed
  • Wechat Mp Publish

    tsingyuai/growth-lab

    通过微信公众号官方 API 把公众号文章生产单元渲染为微信排版 HTML、生成阅读页预览、上传封面与正文图片并创建草稿;在三重确认下提交发布并查询状态。支持本机直连与固定 IP 远程发布服务两种模式。用户要求预览公众号、同步微信草稿、发布公众号或查询发布状态时使用。

    2k GitHub stars~797 tokensUpdated 11 days ago
    Auto-check: notes
  • Xiaohongshu MCP

    tsingyuai/growth-lab

    使用本机 browser-first xiaohongshu-mcp 只读搜索小红书、下载候选首图、补全用户选择的笔记详情,并把脱敏证据写入调用方 Memory。用于 xhs-replicate 的选题和视觉参考研究,取代小红书 MediaCrawler 路径。

    2k GitHub stars~822 tokensUpdated 11 days ago
    Auto-check passed

Works with

Questions about Xhs Render Cards

What does Xhs Render Cards do?

把已批准的小红书草稿、单一分析参考和真实产品素材变成可审查卡片:先完成 DAI 与 image plan,再按确定性、完整效果或可分离图层模式制作,机械验证 PNG 与清单并运行合规检查。精确文字和真实 UI 不交给模型猜测;AI 生图需要单独配置和授权。. Xhs Render Cards is an agent skill from tsingyuai/growth-lab.

How do I install Xhs Render Cards in Claude Code?

Run `npx skills add tsingyuai/growth-lab --skill xhs-render-cards -a claude-code`. Or copy the skill folder (executors/xhs-render-cards in tsingyuai/growth-lab) into .claude/skills/xhs-render-cards in your project. Claude Code loads it when a task matches its description.

How do I install Xhs Render Cards in Codex?

Run `npx skills add tsingyuai/growth-lab --skill xhs-render-cards -a codex`. Or copy the skill folder (executors/xhs-render-cards in tsingyuai/growth-lab) into .agents/skills/xhs-render-cards in your project. Codex loads it when a task matches its description.

Can I use Xhs Render Cards in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add tsingyuai/growth-lab --skill xhs-render-cards -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/xhs-render-cards, .gemini/skills/xhs-render-cards, .github/skills/xhs-render-cards and .opencode/skills/xhs-render-cards in your project.

What does Xhs Render Cards need to run?

Going by SKILL.md and its folder, Xhs Render Cards needs Python for the scripts in its folder, the command-line tools its instructions call (python and make) and credentials named OPENAI_API_KEY and GEMINI_API_KEY. Our summary lists: Python 3; A credential in OPENAI_API_KEY; A credential in GEMINI_API_KEY.

Does Xhs Render Cards access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Xhs Render Cards safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Xhs Render Cards use?

Xhs Render Cards is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Xhs Render Cards use?

About 1k tokens (SKILL.md is roughly 4.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 5.1k tokens, read only when the agent opens those files.

What are the alternatives to Xhs Render Cards?

Skills that share tags, products or a category with Xhs Render Cards: Agent Reach (Panniantong/Agent-Reach, 94k stars), Guizang Social Cards (op7418/guizang-social-card-skill, 7.4k stars), Yuwen Publish Precheck (yuwen-cool/yuwen-publish-precheck, 775 stars) and Video Podcast Maker (Agents365-ai/video-podcast-maker, 1.7k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Xhs Render Cards?

tsingyuai (a GitHub organization) maintains it in tsingyuai/growth-lab, which has 1,997 GitHub stars. The repository holds 22 skills in this directory. The repository was last updated on September 28, 2026.

Source: tsingyuai/growth-lab on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.