image-generator-933

Guides users to clearly describe visual requirements and produces high-quality English prompts; when external image APIs are unavailable, provides an SVG-based hand-drawn image generation fallback, facilitating reusable image prompts and prototypes.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "image-generator-933" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-90a660dacfb8e8a08039dbeb904317df699c570326f8cff0dca76332fd6125c5. Verify the upstream source and version against https://skillhub.cn/skills/user_507d637d/image-generator-933 before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Guides users to clearly describe visual requirements and produces high-quality English prompts; when external image APIs are unavailable, provides an SVG-based hand-drawn image generation fallback, facilitating reusable image prompts and prototypes.

0 Downloads

Introduction source: third_party · user_507d637d · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Inputs and outputs
Translation pending; see source documentation.
Limits and differences
Translation pending; see source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: image-generator
description: "引导用户描述需求,输出高质量英文提示词 + 无API时SVG手绘生成图片"
allowed-tools:
  - exec
  - write
  - web_fetch
  - web_search
user-invocable: true

Image Generator 图片生成

当用户说「画一张…」「生成图片」「帮我出图」「AI 绘图」「image of…」「prompt 优化」等触发。

工作流

1. 引导用户描述

不要直接开始写 prompt。如果用户描述不够详细,按以下分类一次性给出选项让用户选择/组合,而不是反复追问。

如果用户已经给了足够详细的需求,直接跳第2步。


① 主体(画什么?)

A. 人物 B. 动物/宠物 C. 场景/风景 D. 物品/产品 E. 食物/饮品 F. 抽象概念 G. 角色/OC H. 自行描述

② 风格

1. 照片写实 2. 日系动漫 3. 水彩手绘 4. 赛博朋克 5. 吉卜力风 6. 水墨国风 7. 像素风 8. 3D建模/C4D 9. 油画 10. 极简扁平 11. 厚涂插画 12. 自行描述

③ 色调/氛围

🔵 清新淡雅 🟡 温暖治愈 🟣 梦幻空灵 🔴 浓郁复古 ⚫ 暗黑冷峻 🟢 自然森系 ⚪ 简约留白 🟠 黄昏暖阳 🔘 赛博霓虹 ✏️ 自行描述

④ 构图

a. 居中特写 b. 全景/大场景 c. 俯视 d. 仰视 e. 斜对角 f. 三分法 g. 对称构图 h. 框架构图 i. 自行描述

⑤ 用途(辅助决策尺寸)

📱 手机壁纸(9:16) 💻 电脑壁纸(16:9) 🖼️ 方形配图(1:1) 📄 文章配图(4:3) 🎨 LOGO/图标 📋 海报 ✏️ 自行描述

⑥ 附加细节

有无参考图/参考艺术家/特殊要求?


回复格式示例:

A + 2 + 🟡 + f + 💻(一只加菲猫躺沙发上)

2. 构造高质量 Prompt

按以下结构生成英文 prompt(主流 AI 绘图工具对英文响应最佳):

[主体描述], [动作/姿态], [环境/背景], [光照/色调], [构图/视角], [风格/媒介], [渲染/细节关键词]

结构说明:

要素 示例
主体 A young woman with long black hair wearing a white dress
动作 standing under cherry blossom trees, reaching out to catch petals
环境 spring park at sunset, pink petals falling, soft glow
光照 warm golden hour backlight, soft volumetric lighting
构图 low angle close-up, shallow depth of field, 85mm lens
风格 anime style, Studio Ghibli aesthetic, digital painting
细节 highly detailed, 4k, trending on ArtStation

同时输出负面 prompt(可选):

ugly, deformed, blurry, low quality, bad anatomy, watermark, text

3. 适配不同工具

生成 prompt 后标注该 prompt 适合哪些工具:

工具 特点 建议
Midjourney 短 prompt 效果更好,用 --ar 控制比例,--v 6 指定版本 prompt 控制在 40-80 词
DALL-E 3 自然语言描述即可,不需要关键词堆砌 用完整句子描述
Stable Diffusion 需要正向+反向 prompt,可加 (weight:1.2) 强调 分词清晰,加负面 prompt
ComfyUI / SDXL 类似 SD,支持更复杂的 prompt engineering 可加质量词前缀

4. 生成/保存

优先调用真实 AI 绘图 API(如已配置 API key):

  • OpenAI GPT Image / DALL-E → images.generate
  • Stability AI → REST API 传 prompt
  • 本地 SD / ComfyUI → 本地 endpoint

无 API 时回退 SVG 手绘(走第5节 SVG 工作流)

保存产出:

  • prompt 和出图需求存到 output/prompts/<场景名>-<日期>.md
  • SVG 插图存到 output/<场景名>.svg
  • 可同时输出 .html 版本(SVG inline,方便浏览器直接打开)

Prompt 质量规则

  • 具体优于抽象:不要说 "beautiful",说 "ethereal, soft glowing skin, delicate features"
  • 避免矛盾:不要同时说 "realistic photo" 和 "anime style"
  • 风格连贯:一个 prompt 内统一风格词汇,不要混搭不相干流派
  • 控制长度:普通 prompt 60-120 词,超过反而稀释效果
  • 尊重版权:不生成仿冒特定在世艺术家风格的 prompt

常用风格库

写实类:photorealistic, hyper-realistic, 8K, cinematic lighting, Canon EOS R5 插画类:digital painting, concept art, Matte painting, detailed brushwork 动漫类:anime style, cel shading, manga, Studio Ghibli, Makoto Shinkai 3D类:3D render, Octane render, Blender, C4D, Pixar style, claymation 手绘类:watercolor, oil painting, pencil sketch, charcoal, ink wash 其他:pixel art, low poly, isometric, cyberpunk, steampunk, minimalist


5. SVG 回退生成(无 API 时)

当环境没有可用图片生成 API 时,用 SVG 手绘插图作为替代产出。

5.1 用户需求 → SVG 场景拆解

收到用户描述后,拆解为可绘制的视觉元素:

元素 示例(日系程序员工位)
背景 室内墙面、地板、天空色渐变
光源 窗外阳光,用半透明渐变+高斯模糊实现光带
家具 桌子(木色梯形)、椅子(简约日式)
主体物 笔记本电脑(屏幕显示代码)、杯子、盆栽
装饰 挂画、摆件、窗帘、光尘粒子
风格处理 水彩噪点滤镜、淡青色系、柔和圆角

5.2 SVG 核心技术栈

坐标系统:viewBox="0 0 800 600",宽高比 4:3

渐变(模拟光照和质感):

<linearGradient id="sky" x1="0" y1="0" x2="0" y2="1">
  <stop offset="0%" stop-color="#d4ecf7"/>
  <stop offset="100%" stop-color="#f0f7fa"/>
</linearGradient>

阴影(增加层次感):

<filter id="shadow">
  <feDropShadow dx="2" dy="3" stdDeviation="4" flood-color="#a0b8c0" flood-opacity="0.2"/>
</filter>

水彩纹理(模拟手绘质感):

<filter id="watercolor">
  <feTurbulence type="fractalNoise" baseFrequency="0.04" numOctaves="4" seed="2"/>
  <feDisplacementMap in="SourceGraphic" in2="noise" scale="3" xChannelSelector="R" yChannelSelector="G"/>
  <feGaussianBlur stdDeviation="0.5"/>
</filter>

光晕效果:

<filter id="softGlow">
  <feGaussianBlur stdDeviation="12"/>
</filter>

5.3 绘制顺序(从远到近)

  1. 背景色/天空
  2. 窗户 + 窗框 + 窗外景物
  3. 窗帘
  4. 光带(阳光)
  5. 墙面 + 地板
  6. 墙上装饰
  7. 桌子 + 桌腿
  8. 椅子
  9. 桌面物体(笔记本 → 屏幕代码 → 杯子 → 盆栽 → 便签 → 摆件)
  10. 光尘粒子
  11. 水彩纹理叠加层

5.4 常用图形元素模板

矩形/圆角矩形:<rect x="..." y="..." width="..." height="..." rx="..." fill="..." filter="..."/>

圆形/椭圆:<circle cx="..." cy="..." r="..." fill="..."/>``<ellipse cx="..." cy="..." rx="..." ry="..." fill="..."/>

路径:<path d="M... Q... T..." fill="..."/>(用于窗帘、弧形等)

多边形:<polygon points="x,y x,y x,y" fill="..."/>(用于阳光光带、三角形装饰)

线条:<line x1="..." y1="..." x2="..." y2="..." stroke="..." stroke-width="..."/>

文本(作为代码模拟):用填色矩形替代,不同颜色区分语法:

  • #7ec8a0 = 关键字/注释
  • #e8d860 = 字符串
  • #88a8d8 = 函数/变量
  • #d88060 = 数字/符号

5.5 色彩方案来源

从用户描述的「色调/氛围」关键词映射:

用户说 SVG 配色
淡青/清新 #d4ecf7 #eaf3f0 #dde8e4 #b8d4d0
温暖/治愈 #f0e8d8 #c8a87c #fcf8e8 #ffe680
冷色/科技 #1a2a3a #2a3a4a #88a8d8 #7ec8a0
自然/绿植 #6aaa40 #7abb50 #8aba7a #9ac88a
复古/暖木 #b8986c #a8885c #d6a060 #7a6a5a

5.6 输出文件

  • SVG 文件:output/<场景英文名或拼音>.svg
  • HTML 文件:output/<场景名>.html(SVG inline + 外层容器样式,方便浏览器直接查看)
  • 描述文件:output/prompts/<场景名>-<日期>.md(包含中文描述、prompt、负面 prompt、工具建议)

5.7 注意事项

  • SVG 不依赖外部字体、图片、JS,纯 standalone 可查看
  • 用 filter 代替位图纹理,保持矢量
  • 确保所有坐标在 viewBox 范围内(0-800 x 0-600)
  • 先画背景再画前景,避免遮挡问题
  • 透明度(opacity)用于层次融合,取值 0.1-0.6
  • 能直接用浏览器 / VS Code 预览

示例:AI 绘图 API 版

用户:"画一只猫" → 引导后输出 prompt 文本

示例:SVG 回退版

用户:"日系二次元程序员工位,窗边笔记本电脑,淡青色调,水彩质感" → 执行 SVG 工作流,产出 output/程序员工位.svg

产出文件结构:

output/
├── 程序员工位.svg          # 可缩放矢量插图
├── 程序员工位.html          # 可直接打开的网页版
└── prompts/
    └── 程序员水彩工位-20260713.md  # 描述+prompt存档

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value85/100

Highlights

  • 提供高质量英文 prompt 生成能力,适配主流 AI 绘图工具
  • SVG 手绘回退机制确保无 API 时仍可产出图片,提升可用性
Trigger Precision95/100

Highlights

  • 触发词覆盖全面,包括中英文常见绘图指令
  • 边界清晰,不易与其他 Skill 重叠
Structure and Standards90/100

Highlights

  • 工作流分阶段清晰,引导→构造→适配→生成逻辑完整
  • 提供详细示例和文件保存规范
Execution Reliability88/100

Highlights

  • 工具调用合理,参数明确
  • 异常处理完善(API 不可用时自动回退 SVG)
Evidence Verifiability (mean of the first four)90/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

  • Accounts, secrets or authorization

    Use a dedicated least-privilege account. Keep secrets out of public content and command logs; verify the receiving service and tenant.

    Mentioned in main document · lines 93

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.