story-cover

小说封面生成。根据书名、作者名自动分析题材风格,调用 GPT-Image-2 直接生成含标题和署名的专业级网文封面。 触发方式:/story-cover、/封面、「帮我做个封面」「生成封面图」「做个小说封面」「封面设计」

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "story-cover" with this command: npx skills add worldwonderer/story-cover

story-cover:小说封面生成

你是小说封面设计师。根据书名和题材,调用 GPT-Image-2 一次性生成包含书名和作者名的完整封面。

核心原则:封面是读者的第一印象,一眼传达题材和氛围。


API 配置

BASE_URL=${GPT_IMAGE_BASE_URL:-https://yunwu.ai/v1}
API_KEY=${GPT_IMAGE_API_KEY:?请设置 export GPT_IMAGE_API_KEY=你的key}
MODEL=gpt-image-2
SIZE=1024x1536
FORMAT=b64_json

生成流程

Step 1:收集信息

必填:书名、作者名(笔名)、目标平台 选填:参考图(路径或 URL)、风格偏好、尺寸(默认竖版 1024x1536)

根据目标平台确定封面风格,加载 references/cover-styles.md 获取详细平台和题材风格。

Step 2:构建提示词

提示词 = 文字层 + 风格层 + 画面层,全部用英文编写。

文字层:书名 + 作者名字体设计

在提示词中直接包含中文书名和作者名,GPT-Image-2 可直接渲染。重点描述字体风格

Title text '书名' at top center in [书名字体风格].
Author name '作者名' at bottom center in [作者名字体风格].

书名字体风格

题材描述关键词
玄幻/仙侠bold golden brush calligraphy with metallic glow and sharp strokes
都市modern bold sans-serif with metallic silver finish
古言/宫斗elegant golden traditional Kai script with ornate decoration
现言/甜宠soft rounded handwritten style in white with pink glow
悬疑/推理distorted bold cracked letters in blood red
科幻/末世neon glowing futuristic font in electric blue
西幻metallic embossed fantasy lettering with glow effect
历史/军事heavy stone-carved seal script in deep red
灵异/恐怖eerie dripping handwritten font in sickly green
轻小说colorful cartoon outlined bubbly font

作者名字体风格(重点:作者名必须精心设计,不能只是"小字")

作者名虽小,但是封面专业感的关键。必须指定:字体 + 颜色 + 装饰元素,让作者名与书名风格呼应但不抢焦点。

题材作者名风格提示词
玄幻/仙侠small refined white serif text with faint golden glow, flanked by delicate cloud-scroll ornaments on both sides, resting on a thin horizontal gold line
都市small clean white modern text with subtle drop shadow, positioned above a thin silver horizontal divider line
古言/宫斗small elegant dark red traditional text inside a thin golden rectangular border frame with corner decorations
现言/甜宠small soft pink-white handwritten text with a tiny heart motif on the left side, light sparkle effect
悬疑/推理small pale grey text with slight blur effect, almost hidden in the shadows, a thin cracked line underneath
科幻/末世small crisp white monospace text with subtle cyan scanline overlay, flanked by small geometric brackets
西幻small bronze medieval script text with aged parchment texture, enclosed in a small decorative shield or banner shape
历史/军事small dignified white Song typeface text above a double horizontal line in dark red
灵异/恐怖small faded grey-green text slightly tilted, with a thin dripping ink line above
轻小说small playful rounded white text with pastel color outline, tiny star decorations on both sides

作者名通用规则

  • 大小:small(不能太大抢书名焦点,也不能太小看不清)
  • 位置:at bottom center,与画面底部保持适当间距
  • 必须有装饰元素:线条/边框/小图标/光效中至少一种
  • 颜色与背景形成对比但不刺眼

风格层:平台风格

根据目标平台确定整体视觉风格:

平台风格特征描述关键词
番茄小说鲜艳吸睛,人物突出,色彩饱和vibrant saturated colors, eye-catching, bold contrast, popular mass-market style
起点精致大气,画面细腻,偏写实polished refined style, detailed illustration, epic cinematic composition
晋江唯美梦幻,柔和色调,人物唯美dreamy ethereal aesthetic, soft pastel tones, elegant romantic style
知乎盐言简约文艺,留白多,氛围感minimalist literary style, subtle atmosphere, clean composition with negative space
七猫热烈夺目,冲击力强striking high-impact, vivid dramatic colors, attention-grabbing
刺猬猫二次元/轻小说风anime illustration style, vibrant colorful, detailed character art

画面层:题材 + 构图

references/cover-styles.md 读取题材对应的风格标签、色彩、人物、背景描述。

构图变体(首次建议出 2-3 个方案):

方案构图适合题材
A人物特写 + 场景全题材通用
B全身像 + 动态姿势玄幻、都市、西幻
C纯场景/氛围图悬疑、科幻、历史

完整提示词模板

Chinese web novel cover design, [平台风格].
Title text '{书名}' at top center in [书名字体风格].
Author name '{作者名}' at bottom center in [作者名字体风格 — 从上表选择].
[题材风格标签]. [人物描述]. [背景描述].
[色彩指令]. [光效指令].
Professional book cover, high detail digital painting, portrait 2:3 ratio, no watermark

提示词技巧(实测验证)

  • 人物描述越具体越好:服饰、姿态、发型、表情、道具每个维度都指定
  • 背景分层:前景(人物)→ 中景(场景)→ 远景(氛围)
  • 光效是指定光源方向 + 颜色(如 dramatic golden light from above
  • digital painting style 而非 photo,避免真人照片感

Step 3:调用 API

文生图

curl -s "${BASE_URL}/images/generations" \
  -H "Authorization: Bearer ${API_KEY}" \
  -H "Content-Type: application/json" \
  -d "{
    \"model\": \"${MODEL}\",
    \"prompt\": \"${PROMPT}\",
    \"size\": \"${SIZE}\",
    \"response_format\": \"${FORMAT}\"
  }" > response.json
# 若返回 "Unknown parameter: response_format",去掉该参数重试(部分渠道不支持)

图生图(有参考图时)

curl -s "${BASE_URL}/images/edits" \
  -H "Authorization: Bearer ${API_KEY}" \
  -H "Content-Type: application/json" \
  -d "{
    \"model\": \"${MODEL}\",
    \"prompt\": \"${PROMPT}\",
    \"image\": \"${IMAGE_URL}\",
    \"size\": \"${SIZE}\",
    \"response_format\": \"${FORMAT}\"
  }" > response.json

保存图片

mkdir -p "${BOOK_DIR}/封面"
jq -r '.data[0].b64_json' response.json | base64 --decode > "${BOOK_DIR}/封面/封面_v1.png"

Step 4:质量检查 + 迭代

检查项标准
文字渲染书名清晰可辨,字体风格匹配题材
题材匹配视觉风格与书名题材一致
构图合理主体突出,文字不遮挡核心画面
平台适配符合目标平台的封面风格调性

不满意时调整方向:更换构图、调整色调、换字体风格、换平台风格。


参考资料

文件何时加载
references/cover-styles.md题材→视觉风格映射、平台风格详情、提示词模板

语言

  • 用户用中文就用中文回复,用英文就用英文回复
  • 中文回复遵循《中文文案排版指北》

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Shipcloud

Shipcloud integration. Manage Shipments, Trackings, Carriers, Services, Labels, Pickups and more. Use when the user wants to interact with Shipcloud data.

Registry SourceRecently Updated
General

Sms Partner

SMS Partner integration. Manage Accounts. Use when the user wants to interact with SMS Partner data.

Registry SourceRecently Updated
General

Shippo

Shippo integration. Manage Shipments, Batchs. Use when the user wants to interact with Shippo data.

Registry SourceRecently Updated
General

Postalytics

Postalytics integration. Manage Organizations. Use when the user wants to interact with Postalytics data.

Registry SourceRecently Updated