> 小红书内容总入口:生成标题、正文、caption、hashtags,以及 3-9 张图文卡片或短视频分镜,覆盖素材分析、卖点评估、去 AI 味和质检。 当用户说“写/做小红书笔记、小红书图文/种草/文案、出一套卡片、小红书视频”时使用。 整套笔记用本 SKILL;仅渲染卡片用 card-xiaohongshu;其他平台的通用文案用 social-content。
npx skills add https://github.com/ZJU-REAL/Easel --skill xhs-note-creator
把一个主题 + 可选素材,生成图文卡片组或短视频分镜脚本,按规范输出到 outputs/。
小红书读者看的不是长文,是卡片组或短视频。长文原稿只是中间产物。
详细方法论:references/xiaohongshu-viral-methodology.md
按顺序执行,不要跳步。
如果用户提供了素材,先用脚本生成清单:
python3 skills/openclaw/xhs-note-creator/scripts/analyze_material.py <path>... \
--out <work-dir>/reference/materials.json \
--frames-dir <work-dir>/reference/frames
素材价值排序:对比图 > 功能演示 > 数据图表 > 品牌素材
按 references/reference-search.md 执行,核心数据 ≥2 个来源交叉验证。
从 H2 开始(不写 H1),写完先给用户确认再继续。
去 AI 感规则统一走 text-polisher 权威源,不在本 SKILL 维护副本:
../text-polisher/references/zh-ai-markers.md../text-polisher/references/phrases-to-remove.md../text-polisher/references/structures-to-avoid.md按其五层原则完整扫描重写,质量评分满分 50。
卡片视觉一律走 card-design 高质量管线,别用糙 t2i / 大 emoji 素人卡。 按有无真实照片分两条渲染路径(策略写入 meta.json,枚举与 references/meta-schema.md 一致):
| 策略 | 适用 | 渲染路径 |
|------|------|----------|
| html_card | 纯文字卡 / 概念卡 / 数据卡(默认、最常用) | 走 card-xiaohongshu:读 card-design 选风格锁 spec → 写 HTML → render_card.py 出图 → card_audit.py 硬门禁 |
| text_on_photo | 有真实照片 + 钩子文字(真实素材最佳) | Pillow scripts/text_on_image.py(小红书真实素材路径,保留) |
| collage | 有 2-4 张互补照片 | Pillow scripts/collage_3x4.py |
> 纯文字/概念/数据卡不再走用户自备 t2i——统一由 card-xiaohongshu 渲染,保证视觉质量;只有「真实照片卡」才走 Pillow 路径。
标题:从公共源 skills/shared/references/hook-title-formulas.md 选标题公式(痛点+方案 / 提问式 / 发现式 / 热点词 / 身份共鸣等),产 2-3 个备选。
caption:100-300 字,hook 开头 → 关键信息 → CTA,闺蜜语气 + 少量 emoji(点缀节奏,不当图标)
hashtags:5-8 个,4 核心(热点词 + 核心功能 + 差异化 + 目标人群)+ 4 辅助(场景 + 品类)
outputs/主题名/{YYYY-MM-DD}/{短标题}_{时间戳}/
├── {完整标题}.md # 长文原稿
├── meta.json # 元数据(卡片/分镜/caption/hashtags)
├── images/ # 最终卡图 / 封面
└── reference/ # materials.json / 搜索结果
目录名走脚本标准化:python3 skills/openclaw/xhs-note-creator/scripts/normalize_slug.py "标题" --with-ts
① 文本/结构门(标题/caption/hashtag/卡片字数与结构):
python3 skills/openclaw/xhs-note-creator/scripts/validate_meta.py outputs/主题名/meta.json
② 视觉门(仅 html_card 路径,渲染后跑;死空白/密度硬门禁):
python skills/openclaw/card-design/scripts/card_audit.py audit -f "outputs/主题名/card_*.png"
任一非 0 退出 → 修改后重跑,直到通过。不交付未校验的产物。
meta.json.title.md 里留 【插入图片】 占位符normalize_slug.pyhtml_card 路径渲染卡片,走 card-xiaohongshu;首次 pip install playwright && playwright install chromium)references/xiaohongshu-viral-methodology.md — 文案/卖点/标题/情绪方法论(视觉部分已交 card-design)../text-polisher/references/zh-ai-markers.md(权威源,含小红书特化)skills/shared/references/hook-title-formulas.md(公共源)references/material-intake.md — 素材处理流程references/image-sourcing.md — 图片来源处理references/meta-schema.md — 元数据字段定义references/output-spec.md — 输出目录规范Take zju-real/xhs-note-creator from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.
The instructions reference pip.
Without those the skill loads but fails at the first command.