小红书笔记创作
把一个主题 + 可选素材,生成图文卡片组或短视频分镜脚本,按规范输出到 outputs/。
核心理念
小红书读者看的不是长文,是卡片组或短视频。长文原稿只是中间产物。
- 图文帖:3-9 张 3:4 竖版卡片(cover + content × N + ending),每张 ≤80 字
- 视频帖:15-90 秒竖屏视频分镜 + 封面卡
爆款 5 大原则
- 真实素材优先:截图、对比图 > 纯 AI 生图
- 聚焦核心卖点:用公式判断优先级(稀缺性 × 实用性 × 可感知)
- 高级感视觉(走 card-design,别做糙卡):卡片视觉统一走 card-design 设计系统(选风格锁 spec、字大字细、填满画幅、禁大 emoji 廉价感)。文案要口语化、真实感,但视觉不能糙——想要「素人 / 手账」质感就选 card-design 的手账贴纸 / 奶油温柔风格(仍是高质量 HTML 渲染,不是糙 t2i 大 emoji)。
- 痛点导向:"能解决什么问题" > 堆砌功能列表
- 快速迭代:V1(60 分) → 用户反馈 → V2(70 分)
详细方法论:references/xiaohongshu-viral-methodology.md
工作流
按顺序执行,不要跳步。
Step 0 — Intake(必问,一次问完)
- 主题 / 目标读者 / 核心观点
- 输出形态:图文 or 视频?(默认图文)
- 素材:有无现成文字/图片/视频?
- 风格:视觉风格走 card-design 风格库(9 种:瑞士极简/杂志编辑/新中式墨韵/奶油温柔/多巴胺 Y2K/高奢黑金/手账贴纸/极客终端/植物清新)——在 Step 5A 出卡时由 card-xiaohongshu 引导选定,这里先不锁死。
- 卡片数量 / 视频时长:图文默认 5-7 张;视频默认 30-60 秒
Step 0.5 — 卖点/亮点分析(推广/分享/测评类必做)
- 列出所有功能/特性/亮点
- 让用户对每个点打分:
- 稀缺性(1-5):别人有吗?
- 实用性(1-5):解决多大问题?
- 可感知(1-5):用户能直接看到吗?
- 得分 = 稀缺性 × 实用性 × 可感知
- 选 Top 1-2 作为核心卖点
Step 1 — 素材清点(有素材才做)
如果用户提供了素材,先用脚本生成清单:
python3 skills/builtin/xhs-note-creator/scripts/analyze_material.py <path>... \
--out <work-dir>/reference/materials.json \
--frames-dir <work-dir>/reference/frames
素材价值排序:对比图 > 功能演示 > 数据图表 > 品牌素材
Step 2 — 采集外部参考(观点类/资讯类必做)
按 references/reference-search.md 执行,核心数据 ≥2 个来源交叉验证。
Step 3 — 写长文原稿(2000-4000 字)
从 H2 开始(不写 H1),写完先给用户确认再继续。
Step 4 — 去 AI 化(强制)
去 AI 感规则统一走 text-polisher 权威源,不在本 SKILL 维护副本:
- 中文规则(含小红书素人感/闺蜜语气/emoji 节奏特化)→
../text-polisher/references/zh-ai-markers.md
- 通用填充短语 →
../text-polisher/references/phrases-to-remove.md
- 公式化结构 →
../text-polisher/references/structures-to-avoid.md
按其五层原则完整扫描重写,质量评分满分 50。
Step 5 — 分发:图文 or 视频
5A. 图文帖:拆成 3-9 张卡片
- cover(第 1 张)+ content(中间)+ ending(最后 1 张)
- 每张 ≤80 字
- 一张卡只讲一个论点
- 全套配色/字体/风格保持一致(由 card-design 选中的那一套贯穿整组)
卡片视觉一律走 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 路径。
5B. 视频帖:写分镜脚本
- 6-12 个分镜,每镜 2-8 秒
- 每镜含:narration(≤30 字)、on_screen_text(≤15 字)、visual、material_ref
- 出一张 cover 卡作为封面
Step 6 — caption + hashtags + 标题
标题:从公共源 skills/shared/references/hook-title-formulas.md 选标题公式(痛点+方案 / 提问式 / 发现式 / 热点词 / 身份共鸣等),产 2-3 个备选。
caption:100-300 字,hook 开头 → 关键信息 → CTA,闺蜜语气 + 少量 emoji(点缀节奏,不当图标)
hashtags:5-8 个,4 核心(热点词 + 核心功能 + 差异化 + 目标人群)+ 4 辅助(场景 + 品类)
Step 7 — 落盘
outputs/主题名/{YYYY-MM-DD}/{短标题}_{时间戳}/
├── {完整标题}.md # 长文原稿
├── meta.json # 元数据(卡片/分镜/caption/hashtags)
├── images/ # 最终卡图 / 封面
└── reference/ # materials.json / 搜索结果
目录名走脚本标准化:python3 skills/builtin/xhs-note-creator/scripts/normalize_slug.py "标题" --with-ts
Step 8 — 校验(强制,两道门)
① 文本/结构门(标题/caption/hashtag/卡片字数与结构):
python3 skills/builtin/xhs-note-creator/scripts/validate_meta.py outputs/主题名/meta.json
② 视觉门(仅 html_card 路径,渲染后跑;死空白/密度硬门禁):
python skills/builtin/card-design/scripts/card_audit.py audit -f "outputs/主题名/card_*.png"
任一非 0 退出 → 修改后重跑,直到通过。不交付未校验的产物。
不要做的事
- 不写 H1;标题只放
meta.json.title
- 不在正文末尾写参考来源
- 不在
.md 里留 【插入图片】 占位符
- 不跳过 Step 4(去 AI 化)和 Step 8(validate)
- 不手算目录名,一律走
normalize_slug.py
Profile 感知
- 有 Profile:读取赛道、目标受众、内容风格,对齐笔记语气和标签策略
- 无 Profile:询问基本信息后以通用种草风格输出
工具依赖
- Python 3.8+、Pillow(必需,真实照片卡路径)
- playwright + chromium(
html_card 路径渲染卡片,走 card-xiaohongshu;首次 pip install playwright && playwright install chromium)
参考资料
- 卡片视觉 → card-design(设计系统/风格库,出图前必读)+ card-xiaohongshu(HTML→截图渲染管线)
references/xiaohongshu-viral-methodology.md — 文案/卖点/标题/情绪方法论(视觉部分已交 card-design)
- 去 AI 化 →
../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 — 输出目录规范
ライセンス全文を見る(Apache-2.0)
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.