O SKILL.md abaixo é reproduzido de
norsizu/xhs-graphic-generator (commit
3559e76) sob a licença
MIT. O texto não foi alterado; apenas os metadados do cabeçalho do arquivo foram omitidos, as imagens são exibidas como links e arquivos muito longos são truncados. Copyright 2026. Licença:
LICENSE. Apenas o arquivo de instruções é exibido; consulte o repositório original para ver os scripts.
小红书图文生成
将主题或文章转化为小红书风格的图文卡片系列(3:4竖版,2K分辨率)。
工作流程
1. 分析输入
- 主题模式:用户给主题,自由规划内容
- 改写模式:用户给文章,提取核心改写
确定内容密度:
| 密度 |
每张字数 |
图片数 |
适用 |
| 轻量 |
60-100 |
5-7 |
技巧、分享 |
| 中等 |
100-180 |
7-12 |
科普、攻略 |
| 重量 |
150-250 |
10-18 |
教程、分析 |
2. 规划图片序列
| 序号 |
类型 |
作用 |
| P1 |
cover |
封面 - 吸睛标题 |
| P2-Pn |
content |
内容 - 每张一个知识点 |
| 最后 |
summary |
收尾 - 总结+互动引导 |
3. 编写 Prompt 并生成
每张图片的 Prompt 必须包含(300-500英文词):
3:4 vertical Xiaohongshu [card type].
**Style**: [风格名称] with [特征]
**Background**: [背景描述 + HEX色值]
**Main Subject/Layout**: [主体布局]
**Decorative Elements**: [装饰元素]
**Text Content** (Chinese): [完整中文文案]
**Typography**: [字体、大小、颜色、位置]
**Negative prompts**: [15-25个负面词]
调用脚本生成(固定参数:3:4 比例,2K 分辨率):
bash scripts/generate.sh "完整的英文Prompt" "3:4" "2K"
4. 输出结果
展示所有图片 + 帖子标题 + 正文 + 话题标签:


...
### 📝 帖子标题
xxx
### 🏷️ 话题
#话题1 #话题2
参考文件
references/prompt-guide.md - Prompt 编写规范与示例模板
references/styles.md - 五种视觉风格的详细配色方案
references/content-planning.md - 内容分析与规划方法论
配色速查
| 风格 |
主色 |
强调色 |
| 清新自然 |
#FAF9F7 |
#B8E0D2, #5ABAB7 |
| 简约卡片 |
#FFFFFF |
#E8E8E8 |
| 奶油治愈 |
#FDF8F3 |
#C4A77D |
| 知识卡片 |
#F5F0E8 |
#8B7355 |
| 科技简约 |
#1E293B |
#7C3AED, #6366F1 |
Ver o texto completo da licença (MIT)
MIT License
Copyright (c) 2026
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.