xiaohongshu-poster-generator
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "xiaohongshu-poster-generator" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-73cfb534d9503ecf63c438594586788e145a387bd6d3be9a2ba273bf40c487d7. Verify the upstream source and version against https://skillhub.cn/skills/user_91fe3896/xiaohongshu-poster-generator before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Batch-generate Xiaohongshu poster-quality HTML image-text cards: includes one cover, inner knowledge cards, and a quote card, sized 1080×1440px. Reads from a content directory organized by date and containing content.md, producing a full visual set at once; suitable for daily visuals for finance, knowledge, and info-dense accounts. Example triggers: Xiaohongshu poster, generate poster, image-text card, reflow, poster-quality design, Xiaohongshu asset, knowledge card, daily visual, Xiaohongshu layout.
Introduction source: third_party · user_91fe3896 · 1.0.1 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Audience
- User has `xiaohongshu/` directory with date-based subdirectories containing `content.md` files Existing slide HTML files are "too ugly" and need redesign as poster-style visuals Need to batch-generate 3+ posters per issue across multiple days Want both visual HTML output AND title/text content extraction
- Inputs and outputs
- Not specified in the source documentation.
- Software, accounts and paid services
- Translation pending; see source documentation.
- Limits and differences
- Not specified in the source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: xiaohongshu-poster-generator
slug: xiaohongshu-poster-generator
version: 1.0.1
displayName: 小红书图文卡片批量生成
description: "批量生成小红书海报级 HTML 图文卡片:一封面 + 内页知识卡 + 金句卡,1080×1440px。从已有的内容目录(按日期组织、含 content.md)读取,一次产出整套视觉。适合金融、知识、干货类账号的日更配图。触发词:小红书海报、生成海报、图文卡片、重新排版、海报级设计、小红书配图、知识卡片、日更图、小红书排版。Use to batch-generate poster-quality HTML image cards for Xiaohongshu (RED) posts."
agent_created: trueXiaohongshu Poster Generator
Overview
Batch-generate poster-quality HTML image cards for Xiaohongshu finance/knowledge daily posts from an existing content repository. Each issue produces 3 poster types (cover, knowledge, quote) rendered at 1080×1440px with a dark cosmic + gold glow visual style.
When to Use This Skill
- User has
xiaohongshu/directory with date-based subdirectories containingcontent.mdfiles - Existing slide HTML files are "too ugly" and need redesign as poster-style visuals
- Need to batch-generate 3+ posters per issue across multiple days
- Want both visual HTML output AND title/text content extraction
Prerequisites
The content source directory must contain:
- Date-based subdirectories (e.g.,
2026-04-30/,2026-06-22/) - Each subdirectory has
content.mdfollowing the standard format:# Titleline 1- Hook paragraph(s)
📌 【Concept Name】definition block💡 Knowledge Point Titlebody paragraphs🎯 一句话总结:summary💬 CTA question#hashtagtags line
- A
topics.jsonfile mapping concepts → category + subtitle
Workflow
Step 1: Locate Content Source
Identify the base xiaohongshu directory and scan for all date-based subdirectories. Read topics.json for concept metadata.
Step 2: Design or Use Poster CSS Template
Use the bundled assets/poster-style.css as the default dark-cosmic poster template. It provides:
.poster-cover— Dark gradient background, large title, Day badge, decorative rings.poster-knowledge— Glassmorphism knowledge cards with colored left borders.poster-quote— Centered golden quote layout with CTA area
Customize colors by editing CSS variables in :root:
--gold,--gold-light— Primary accent (gold)--cyan,--teal,--blue,--purple,--pink— Secondary accents--bg-abyss,--bg-deep— Background shades
Step 3: Run Batch Generation Script
Execute scripts/generate_posters.py which:
-
Parses each
content.mdextracting:- Title, hook text, concept name (cleaned of suffixes like "是什么")
- Definition, knowledge points (up to 3), one-line summary
- CTA question, hashtag tags
-
Matches each concept to
topics.jsonfor:- Category classification (宏观经济学, 博弈论, 行为经济学, etc.)
- Subtitle from topics metadata
-
Generates 3 HTML files per issue:
poster-cover.html— Concept name + subtitle + Day badge + categoryposter-knowledge.html— Section title + up to 3 glass cards + footer quoteposter-quote.html— Large quote mark + summary text + CTA + author sign
-
Creates inline-CSS preview versions (
*-preview.html) for direct browser viewing -
Outputs
titles_and_texts.jsonwith structured title+text data for all issues
Step 4: Preview and Validate
Start a local HTTP server (Python's http.server works) and open preview files in browser. Verify:
- Concept names display correctly (no trailing "是什么" etc.)
- Category tags match from topics.json
- Gold quote content is non-empty
- Visual rendering matches expectations at 1080×1440
Step 5: Screenshot for Xiaohongshu
Use Playwright/Puppeteer to screenshot each *-preview.html at 1080×1440 resolution. Output PNGs are ready for upload to 小红书.
Content Parsing Rules
The parser handles these format variations:
| Pattern | Example | Parsed As |
|---|---|---|
【概念名】 |
【滞胀是什么】 | 概念名 = "滞胀" (strip "是什么") |
【什么是概念】 |
【什么是口红效应】 | 概念名 = "口红效应" (strip "什么是") |
| 🎯 on same line as text | 🎯 一句话总结:text |
summary = "text" |
| 🎯 label + text on next line | 🎯 一句话总结:\n text |
summary = "text" |
Directory Structure (Output)
<output-base>/
├── templates/poster-style.css # Poster CSS (copy from assets/)
├── day3-滞胀/poster/
│ ├── poster-cover.html # Regular (relative CSS path)
│ ├── poster-knowledge.html
│ ├── poster-quote.html
│ ├── poster-cover-preview.html # Inline CSS version
│ ├── poster-knowledge-preview.html
│ └── poster-quote-preview.html
├── day4-囚徒困境/poster/ ... (same structure)
├── ...
├── titles_and_texts.json # All titles & body text
└── preview-index.html # Overview page with iframes
Customization Tips
- Change color scheme: Edit CSS variables in
poster-style.css:root - Adjust poster count: Modify
generate_posters.pyto add more HTML templates - Change dimensions: Update
--wand--win CSS:root(default 1080×1440) - Add new issue: Add entry to
topics.jsonand create newdate-dir/content.md
Resources
scripts/
- generate_posters.py — Main batch generation script. Run with Python 3.10+
python generate_posters.pyReads from
BASEpath (configured inside script), outputs toOUTPUTpath.
assets/
- poster-style.css — Complete poster CSS template (dark cosmic style). Copy to
<output>/templates/before running generation script.
Current listing version
1.0.1
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 解决小红书金融/知识类账号日更配图的高频刚需,显著提升内容创作效率
- 提供从内容解析到视觉输出的完整闭环,支持批量生成多种类型海报
Highlights
- 触发词覆盖全面且精准,包括'小红书海报''生成海报''图文卡片'等用户常用表达
- 边界清晰,不易与其他设计类 Skill 混淆
Areas to improve
-
缺少 When to Use 示例具体展示效果 Reported severity: Minor
When to Use 章节描述了使用场景,但未提供实际效果示例图片或链接
Recommendation: 建议补充 1-2 个生成前后的对比示例,帮助用户更直观理解产出效果
Highlights
- 文档结构完整,包含前置条件、工作流、解析规则、目录结构等关键信息
- 提供了详细的 CSS 自定义指南和脚本使用说明
Highlights
- 脚本逻辑健壮,支持多种 content.md 格式变体解析
- 输出结构清晰,包含预览版本和结构化数据提取
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Translation pending; see source documentation.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.