关于 xhs-cover-skill
将原始内容整理为适用于小红书封面的图像生成提示词,面向制作图文内容的创作者。它通过模板组织封面、内容页和结尾页,并以 JSON 输出标题、润色文案、标签和提示词。
主要功能
- 01分析用户提供的内容
- 02从参考模板中选择样式
- 03整理标题、摘要与标签
- 04按页生成图像提示词
- 05以 JSON 格式输出
适用场景
- 01将文章内容改编为小红书图文
- 02按模板规划多页封面与内容页
- 03生成可交给图像生成工具的提示词
安装
复制下面的命令,在终端中运行。
$
npx skills add https:/ / github.com/ cclank/ xhs-cover-skill --skill xhs-cover-skill安装后在 Claude Code 中输入/xhs-cover-skill确认已加载。
包含的文件
除 SKILL.md 外,安装时一起下载的参考资料和脚本。
README.mdreferences/xiaohongshu_style_guide.mdreferences/templates/style_infographic_pro.mdstyle_infographic_cartoon.md详细介绍
小红书封面生成器(xhs-cover-skill)
此技能可帮助你将原始内容转换为适用于小红书封面的高质量图像生成提示词。
工作流
- 分析内容:阅读用户提供的内容。
- 选择模板:从
references/templates/中选择合适的模板。- 默认:
references/templates/style_infographic_cartoon.md(除非用户另有指定)。
- 默认:
- 处理内容:
- 润色:拟定吸引眼球、容易引发点击的标题和摘要文案。
- 语言:确保输出语言与输入一致(除非另有要求),并在适用时严格遵循中文标点规则(全角符号)。
- 结构:根据模板规则(例如 2-10 页)将内容拆分为一系列图片(封面 -> 内容 -> 结尾)。
- 生成 JSON:按照以下严格的 JSON 格式输出最终结果。
输出格式
输出必须是一个 JSON 对象。
{
"title": "The Main Title 🌟",
"content_polished": "The polished caption text for the post...",
"tags": ["#Tag1", "#Tag2"],
"image_prompts": [
{
"index": 1,
"type": "Cover | Content | End",
"text_overlays": {
"title": "Text on image",
"subtitle": "Subtitle on image",
"notes": "Any extra text"
},
"prompt": "Full English image generation prompt...",
"negative_prompt": "..."
}
]
}
交互示例(信息图风格)
用户:“说明如何做出完美的炒蛋。”
模型:
{
"title": "🍳 Perfect Eggs Every Time! Secret Revealed! 😋",
"content_polished": "Stop making rubbery eggs! 🛑 These simple tips will change your breakfast game forever. Creamy, fluffy, and delicious! #BreakfastHacks #ScrambledEggs #Foodie",
"tags": ["#CookingTips", "#Breakfast"],
"image_prompts": [
{
"index": 1,
"type": "Cover",
"text_overlays": {
"title": "PERFECT SCRAMBLED EGGS",
"subtitle": "Creamy & Fluffy!"
},
"prompt": "Xiaohongshu style infographic, vertical (3:4), cartoon style, hand-drawn text, cream background. Illustration of a plate of fluffy yellow scrambled eggs with steam rising. Cute chef character giving a thumbs up. Title 'PERFECT SCRAMBLED EGGS' in bold playful font at top. Watermark '岚叔' at bottom right.",
"negative_prompt": "photorealistic, dark, messy"
},
{
"index": 2,
"type": "Content",
"text_overlays": {
"title": "Step 1: Low Heat",
"subtitle": "Don't rush it!"
},
"prompt": "Xiaohongshu style infographic, vertical (3:4), cartoon style. Illustration of a frying pan on a stove with a small flame. Text 'Step 1: Low Heat'. Cute egg character sweating. Pastel colors.",
"negative_prompt": "photorealistic"
}
]
}
资源
references/templates/:包含风格模板(例如style_infographic_cartoon.md、style_infographic_pro)。references/xiaohongshu_style_guide.md:小红书风格指南。
评论
支持 Markdown