Snapdesign Rednote Clean
将话题或文章转化为小红书3:4竖版知识图文组,专为企业主和知识型IP设计。
openclaw skills install @632657122/rednote-images命令、参数、文件名以原文为准
rednote-images)如果你使用参考图片(图生图 / 系列参考 / 一致性参考):
http:// 可能可以工作,但不安全,可能被某些网络屏蔽。data: URL。生成 RedNote 图片卡片、RedNote 封面卡片以及社交信息图系列,采用稳定的逐卡工作流程。
此 RedNote 图片技能将 RedNote 图片系列请求转换为更稳定的卡片提示词,并生成结果序列。用它可以根据一个主题创建 RedNote 图片卡片、RedNote 封面卡片或社交信息图系列。
依赖项: scripts/scaffold.ts、scripts/build-prompts.ts、scripts/build-batch.ts、位于 scripts/vendor/ 下的捆绑运行时、IMAGE_GEN_API_KEY 以及 Node.js + npm。无需其他技能。
首次实际生成之前:
https://www.weryai.com/api/keys。IMAGE_GEN_API_KEY,或者让设置流程将其持久化到 .image-skills/rednote-images/.env 下。metadata.openclaw.requires.env 和 primaryEnv 中声明了 IMAGE_GEN_API_KEY。IMAGE_GEN_API_KEY 中。export IMAGE_GEN_API_KEY="your_api_key_here"在首次付费运行前,进行一次安全检查:
cd {baseDir} && npm run doctor -- --project . --workflow rednote
cd {baseDir} && npm run ensure-ready -- --project . --workflow rednote --dry-run
cd {baseDir} && npm run generate -- --prompt "RedNote layout smoke test" --image ./out/rednote-smoke.png --ar 1:1 --dry-rundoctor 是只读操作,用于确认密钥和本地工具是否准备就绪。ensure-ready --dry-run 确认引导设置路径,但不修改工作区。generate --dry-run 打印最终的请求体,而不调用 WeryAI 或消耗积分。脚本:
scripts/scaffold.tsscripts/build-prompts.tsscripts/build-batch.tshttps://api.weryai.com)调用 WeryAI 网关。IMAGE_GEN_API_KEY。密钥不会打印输出。密钥仅在你显式运行 npm run setup -- --persist-api-key 时才会被持久化。IMAGE_GEN_API_KEY 视为运行时秘密。不要将其提交到仓库中,也不要粘贴到生成的提示或输出文件中。https://)。http:// 可能可以工作,但不安全。本地文件路径和 data: URL 会被拒绝。.image-skills/rednote-images/(项目目录)和/或 ~/.image-skills/rednote-images/(用户主目录)。Create 5 RedNote image cards that summarize this product comparisonMake a RedNote cover card plus 4 follow-up cards for this skincare topicTurn this outline into a social infographic series for RedNote不适合用于:
先选择两个核心维度,然后拆分系列:
stylelayout参见:
| 脚本 | 用途 |
|---|---|
scripts/scaffold.ts | 初始化 outline.md 和每张卡片的提示文件 |
scripts/build-prompts.ts | 从 outline.md 重新生成提示 |
scripts/build-batch.ts | 从卡片提示生成 batch.json |
npm run generate | 生成卡片图片 |
scripts/vendor/compression-runtime/scripts/main.ts | 压缩输出以供交付 |
提取:
style 和 layout默认优先级:
style: notionlayout: balanced推荐规则:
notion、chalkboard 或 minimalwarm、cute 或 freshbold 或 retroeditorial如果用户明确指定了样式、密度或系列感觉,则遵循其偏好。
绑定的图片运行时当前暴露了一个结构化的样式参数 --style,因此:
style 映射到 --stylelayout 写入提示正文推荐映射:
| RedNote 样式 | 运行时 --style |
|---|---|
cute | anime |
fresh | flat-illustration |
warm | watercolor |
bold | poster |
minimal | editorial |
retro | poster |
notion | flat-illustration |
chalkboard | chalk |
editorial | editorial |
outline.md 和提示文件Skill: 小红书图片
版本: 1.0.6
分块: 2/3
初始化工作目录:
${BUN_X} {baseDir}/scripts/scaffold.ts \
--output-dir rednote-images/topic-slug \
--theme "主题或论文" \
--style notion \
--layout balanced \
--lang zh \
--cards 5这会创建:
outline.mdprompts/01-cover.mdprompts/02-content.md然后根据需要完善 outline.md 和生成的提示文件。
outline.md,然后构建提示根据大纲生成提示文件:
${BUN_X} {baseDir}/scripts/build-prompts.ts \
--outline rednote-images/topic-slug/outline.md \
--output-dir rednote-images/topic-slug/prompts然后按顺序生成卡片:
01-cover02-content03-content每个卡片提示可参考 [references/prompt-template.md](references/prompt-template.md)。
要求:
layout3:4 或 1:1在生成最终卡片批次之前,先生成标准系列参考图:
cd {baseDir} && npm run generate -- \
--promptfiles rednote-images/topic-slug/references/series-reference.md \
--style flat-illustration \
--image rednote-images/topic-slug/references/series-reference.png \
--ar 3:4 \
-m "$M"对于多卡片集,此步骤为默认操作。当一致性重要时,请勿跳过。
batch.json 并运行生成从提示目录构建批次文件:
${BUN_X} {baseDir}/scripts/build-batch.ts \
--prompts rednote-images/topic-slug/prompts \
--output rednote-images/topic-slug/batch.json \
--images-dir rednote-images/topic-slug \
--model "$M"然后运行捆绑的图片生成器:
在新项目中首次使用时,在生成前运行 cd {baseDir} && npm run ensure-ready -- --project <your-project> --workflow rednote。这会读取诊断报告,如果本地脚本依赖仍然缺失,则自动运行 bootstrap。如果报告显示缺少 IMAGE_GEN_API_KEY 且用户同意,则在密钥已在环境变量中时运行 cd {baseDir} && npm run setup -- --project <your-project> --workflow rednote --persist-api-key,或者代表用户将其持久化到 .image-skills/rednote-images/.env,然后继续,不退出此工作流。
当此技能首次连接时,告知用户默认生成模型为 Nano Banana 2 (GEMINI_3_1_FLASH_IMAGE)。同时也告知他们,当其他模型更适合任务时,以后可以切换。
cd {baseDir} && npm run generate -- --batchfile rednote-images/topic-slug/batch.json --json如果只需要单张封面卡片,直接调用即可:
cd {baseDir} && npm run generate -- \
--promptfiles prompts/01-cover.md \
--style flat-illustration \
--image rednote-images/topic-slug/01-cover.png \
--ar 3:4 \
-m "$M"如果用户尚未选择模型,请先遵循此技能的模型选择规则。
多卡片集的一致性策略:
references/series-reference.png建议的输出目录:
rednote-images/<topic-slug>/建议的最小文件集合:
outline.mdbatch.jsonprompts/01-cover.mdprompts/02-content.md01-cover.png02-content.pngscaffold.ts 在已有目录上运行会按请求的卡片数量覆盖 outline.md 和起始提示文件。build-prompts.ts 根据当前 outline.md 覆盖 prompts/ 中的提示文件。build-batch.ts 覆盖 batch.json。--batchfile 重新运行基础生成器会重新生成所有列出的卡片;如果希望保留好卡片,请先从 batch.json 中移除其任务。references/series-reference.png。outline.md 和每张卡片的提示文件。当用户看到生成的卡片后希望进行更改:
style / --style,重新构建批次,重新生成。询问是否针对所有卡片还是特定卡片。palette 和 mood。仅重新生成受影响的卡片。outline.md 以重新分配内容,重新构建受影响的卡片的提示和批次。outline.md 中调整卡片数量,重新构建脚手架和批次。--promptfiles,仅重新生成该卡片。重新生成子集时,保留已有的好图片,仅替换需要更改的图片。
当卡片系列准备好时:
${BUN_X} {baseDir}/scripts/vendor/compression-runtime/scripts/main.ts rednote-images/topic-slug/ -r -f webp -q 80对于包含多张卡片的系列,在完成后立即显示前 2-3 张,然后批量显示其余卡片。
内部检查清单(供代理使用):卡片数量、style / layout、模型、批量执行、目标语言、压缩完成。
已收录 1 个 Skill