xhs-static-cards

xhs-static-cards is a skill for Claude Code, Codex from ztaihang/agent-skills. It costs 161 tokens per session (2,695 once invoked), scanned A, original, MIT.

A workflow for turning Chinese copy into static Xiaohongshu image cards, which are social-media posts sized 1080×1440 pixels.

In plain words
What is it for?
Use it to create previewable card layouts for tool lists or tutorials, following the selected template family and without animations.
Why use it?
It provides a fixed process for checking dependencies, building an HTML preview, getting confirmation, and then exporting a PNG.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Codex.

Good fit Use it to create previewable card layouts for tool lists or tutorials, following the selected template family and without animations.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ztaihang/agent-skills/xhs-static-cards
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add ztaihang/agent-skills --skill xhs-static-cards
Clone the repo
git clone --depth 1 https://github.com/ztaihang/agent-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for xhs-static-cards

README.md
[![agentmods](https://agentmods.dev/badge/skills/ztaihang/agent-skills/xhs-static-cards/github.svg)](https://agentmods.dev/skills/ztaihang/agent-skills/xhs-static-cards)
Your own site
<a href="https://agentmods.dev/skills/ztaihang/agent-skills/xhs-static-cards"><img src="https://agentmods.dev/badge/skills/ztaihang/agent-skills/xhs-static-cards/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for xhs-static-cards

Your own site · 80×15
<a href="https://agentmods.dev/skills/ztaihang/agent-skills/xhs-static-cards"><img src="https://agentmods.dev/badge/skills/ztaihang/agent-skills/xhs-static-cards.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 161 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,695 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00161 $0.02695
Opus 5 $0.00081 $0.01347
Sonnet 5 $0.00032 $0.00539
Haiku 4.5 $0.00016 $0.00269

Measured 11d ago against content hash 186e7cdf0569, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

xhs-static-cards scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (templates/scripts/build.mjs, templates/scripts/export.mjs), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/xhs-static-cards/SKILL.md · 249 lines

How it starts

The opening of the file, as written. The whole thing — 249 lines — stays where its author put it; the contents beside it link to each section on GitHub.

xhs-static-cards · 小红书静态图文卡片

本 Skill 用于在用户指定的项目路径下构建「文案 → HTML 预览 → 导出 PNG」工程。

  • Skill 源码仓库(本机)F:\myvideos\agent-skills\skills\xhs-static-cards\(或 GitHub ztaihang/agent-skills
  • 本地安装路径(Agent 读取):~/.agents/skills/xhs-static-cards/~/.cursor/skills/xhs-static-cards/
  • 卡片工程路径:用户每次指定,与 skill 安装目录无关

修改某次卡片内容 → 改用户项目目录;修改 skill 规范 → 改本 skill 目录


与 hyperframes-shorts 的区别

hyperframes-shorts xhs-static-cards
产出 视频 MP4 静态 PNG
画布 1920×1080 等 1080×1440(3:4)
动效 GSAP 必须 禁止
预览 Studio 播放 浏览器静态页
发布 不涉及 不涉及(用户手动发小红书)

Step 0:环境预检(第一步,缺则停止并提示)

未通过预检禁止进入生成流程。 向用户明确列出缺失项与安装命令,等用户确认已安装或授权 Agent 代装后再继续。

0.1 检查本 skill 是否可用

在以下路径探测 SKILL.md 是否存在:

路径 说明
~/.agents/skills/xhs-static-cards/SKILL.md 推荐(与 hyperframes 等同级)
~/.cursor/skills/xhs-static-cards/SKILL.md Cursor 用户
仓库 F:\myvideos\agent-skills\skills\xhs-static-cards\SKILL.md 本机开发副本

若均不存在,停止并提示:

Copy-Item -Recurse "F:\myvideos\agent-skills\skills\xhs-static-cards" "$env:USERPROFILE\.agents\skills\xhs-static-cards"
# 或
npx skills add ztaihang/agent-skills@xhs-static-cards -g -y

0.2 检查配套 skill(生成 HTML 前必读)

用途 必选其一 安装命令
审美 / 反 slop design-taste-frontendtaste-skill 已有前者则不必装后者
中文排版 web-typography npx skills add wondelai/skills@web-typography -g -y
布局结构 frontend-design npx skills add nexu-io/open-design@frontend-design -g -y
导出方法参考 exporting-to-png npx skills add spencerpauly/awesome-cursor-skills@exporting-to-png -g -y

探测目录:~/.agents/skills/<name>/~/.cursor/skills/<name>/design-taste-frontend 可替代 taste-skill)。

若缺 web-typographyfrontend-designexporting-to-png,停止并一次性给出上表安装命令,不要 silently 跳过。

若缺 taste 类 skill(两者皆无),停止并提示安装其一:

npx skills add nexu-io/open-design@taste-skill -g -y
# 或确保已有 design-taste-frontend

Read the full file on GitHub · 249 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 249 lines · 161 tokens per session scan A 186e7cdf0569

Subscribe to this mod's changes

xhs-static-cards is a skill published in the GitHub repository ztaihang/agent-skills (2 stars, last pushed 2mo ago), licensed MIT. It adds 161 tokens to every session and 2,695 once invoked, about $0.0008 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

webgl-holographic-foil

A self-contained WebGL2 hero: thin-film interference over a crushed-foil surface whose palette shifts with the viewing angle; move the cursor to tilt the film.

nexu-io/open-design · 41 tokens

general-video

Author or edit a custom HyperFrames composition when no specialized workflow fits, or when BRIEF.md sets flow: companion. Use for longer or multi-scene pieces, brand and sizzle reels, montages, static loops, static title cards, footage remixes, and freeform builds. Use motion-graphics instead for a short unnarrated…

heygen-com/hyperframes · 92 tokens

html-ppt-hermes-cyber-terminal

OpenDesign + BYOK: choosing and wiring your own model, hands-on — cost, quality, and the routing decision. Built as a decision-grade AI literacy deck for engineers, IT, applied-AI teams.

nexu-io/open-design · 53 tokens

html-ppt-taste-brutalist

16:9 HTML deck in tactical-telemetry / CRT-terminal taste. Deactivated-CRT charcoal slides, white-phosphor monospace, hazard-red accent, scanline overlay, ASCII syntax, density over decoration. Distilled from Leonxlnx/taste-skill brutalist-skill (Tactical Telemetry mode).

nexu-io/open-design · 78 tokens

chengfeng-check-updates

An environment manager for a video-editing system. It checks whether its skills and runtime—the software needed to run them—are installed and compatible.

Agentchengfeng/chengfeng-videocut-skills · 120 tokens

diagnostic-stem-delivery

Audio production with diagnostic analysis, timecode parsing from documents, and verified export workflow.

HKUDS/OpenSpace · 23 tokens