xiaohongshu-poster-generator

批量生成小红书海报级 HTML 图文卡片:包含一封面、内页知识卡与金句卡,尺寸 1080×1440px。从按日期组织并含 content.md 的内容目录读取,一次产出整套视觉,适合金融、知识、干货类账号日更配图。触发词示例:小红书海报、生成海报、图文卡片、重新排版、海报级设计、小红书配图、知识卡片、日更图、小红书排版。

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "xiaohongshu-poster-generator":https://skillpi.com/zh/skills/deepskill-73cfb534d9503ecf63c438594586788e145a387bd6d3be9a2ba273bf40c487d7。安装前核对上游来源和版本:https://skillhub.cn/skills/user_91fe3896/xiaohongshu-poster-generator。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

skillhub.cn

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

批量生成小红书海报级 HTML 图文卡片:包含一封面、内页知识卡与金句卡,尺寸 1080×1440px。从按日期组织并含 content.md 的内容目录读取,一次产出整套视觉,适合金融、知识、干货类账号日更配图。触发词示例:小红书海报、生成海报、图文卡片、重新排版、海报级设计、小红书配图、知识卡片、日更图、小红书排版。

0 下载

介绍来源: third_party · user_91fe3896 · 1.0.1 参考来源

SkillPi 解读

能完成的任务
批量生成小红书海报级 HTML 图文卡片:一封面 + 内页知识卡 + 金句卡,1080×1440px。从已有的内容目录(按日期组织、含 content.md)读取,一次产出整套视觉。适合金融、知识、干货类账号的日更配图。触发词:小红书海报、生成海报、图文卡片、重新排版、海报级设计、小红书配图、知识卡片、日更图、小红书排版。Use to batch-generate poster-quality HTML image cards for Xiaohongshu (RED) posts.
适合谁
翻译待完成,请参阅来源文档。
输入和输出
来源文档未说明。
软件、账号及付费要求
The content source directory must contain: Date-based subdirectories (e.g., `2026-04-30/`, `2026-06-22/`) Each subdirectory has `content.md` following the standard format: - `# Title` line 1 - Hook paragraph(s) - `📌 【Concept Name】` definition block - `💡 Knowledge Point Title` body paragraphs - `🎯 一句话总结:` summary - `💬 CTA question` - `#hashtag` tags line A `topics.json` file mapping concepts → category + subtitle
限制与区别
来源文档未说明。
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
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: true

Xiaohongshu 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 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

Prerequisites

The content source directory must contain:

  • Date-based subdirectories (e.g., 2026-04-30/, 2026-06-22/)
  • Each subdirectory has content.md following the standard format:
    • # Title line 1
    • Hook paragraph(s)
    • 📌 【Concept Name】 definition block
    • 💡 Knowledge Point Title body paragraphs
    • 🎯 一句话总结: summary
    • 💬 CTA question
    • #hashtag tags line
  • A topics.json file 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:

  1. Parses each content.md extracting:

    • Title, hook text, concept name (cleaned of suffixes like "是什么")
    • Definition, knowledge points (up to 3), one-line summary
    • CTA question, hashtag tags
  2. Matches each concept to topics.json for:

    • Category classification (宏观经济学, 博弈论, 行为经济学, etc.)
    • Subtitle from topics metadata
  3. Generates 3 HTML files per issue:

    • poster-cover.html — Concept name + subtitle + Day badge + category
    • poster-knowledge.html — Section title + up to 3 glass cards + footer quote
    • poster-quote.html — Large quote mark + summary text + CTA + author sign
  4. Creates inline-CSS preview versions (*-preview.html) for direct browser viewing

  5. Outputs titles_and_texts.json with 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.py to add more HTML templates
  • Change dimensions: Update --w and --w in CSS :root (default 1080×1440)
  • Add new issue: Add entry to topics.json and create new date-dir/content.md

Resources

scripts/

  • generate_posters.py — Main batch generation script. Run with Python 3.10+
    python generate_posters.py

    Reads from BASE path (configured inside script), outputs to OUTPUT path.

assets/

  • poster-style.css — Complete poster CSS template (dark cosmic style). Copy to <output>/templates/ before running generation script.

当前收录版本

1.0.1

核对来源版本 ↗

安全与评测信息

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值95/100

亮点

  • 解决小红书金融/知识类账号日更配图的高频刚需,显著提升内容创作效率
  • 提供从内容解析到视觉输出的完整闭环,支持批量生成多种类型海报
触发精准92/100

亮点

  • 触发词覆盖全面且精准,包括'小红书海报''生成海报''图文卡片'等用户常用表达
  • 边界清晰,不易与其他设计类 Skill 混淆
结构规范94/100

待提升项

  • 缺少 When to Use 示例具体展示效果 原报告严重程度:轻微

    When to Use 章节描述了使用场景,但未提供实际效果示例图片或链接

    改进建议:建议补充 1-2 个生成前后的对比示例,帮助用户更直观理解产出效果

亮点

  • 文档结构完整,包含前置条件、工作流、解析规则、目录结构等关键信息
  • 提供了详细的 CSS 自定义指南和脚本使用说明
执行可靠88/100

亮点

  • 脚本逻辑健壮,支持多种 content.md 格式变体解析
  • 输出结构清晰,包含预览版本和结构化数据提取
证据可验 (前四项均值)92/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

100 / 100 · skillpi-20261123-no-r3-v1

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

The content source directory must contain: Date-based subdirectories (e.g., `2026-04-30/`, `2026-06-22/`) Each subdirectory has `content.md` following the standard format: - `# Title` line 1 - Hook paragraph(s) - `📌 【Concept Name】` definition block - `💡 Knowledge Point Title` body paragraphs - `🎯 一句话总结:` summary - `💬 CTA question` - `#hashtag` tags line A `topics.json` file mapping concepts → category + subtitle

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。