Image Generation 标志

Image Generation

社区
sanky369
image-generation

将任何 AI 图像生成需求转化为精确、可直接用于生成的提示词规范;配置好 FAL.ai 自动化后,还会使用唯一指定的模型 fal-ai/nano-banana-pro 生成图像文件。用户提出“生成一张图片”“画一张 X 的图”“制作缩略图/主视觉图/插画/信息图”“帮我写这张图的提示词”,或提出不属于产品摄影、社交平台图片或品牌标志的其他视觉需求时使用(这些需求交由相关的其他 skill 处理)。每项素材都会生成一个提示词规范块(主体、风格、构图、光线、氛围、宽高比和负面约束),以及文件命名和变体规范;有 FAL_API_KEY 时,运行 docs/creative_cli.py 生成图像。

Add to TypingMind

概览

发布者sanky369
代码仓库vibe-building-skills
技能名称image-generation
星标数
31
复刻数
7
附带文件
1
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 1 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 sanky369 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Image Generation AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/sanky369/vibe-building-skills/tree/main/skills/creative/image-generation
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/sanky369/vibe-building-skills.git /tmp/vibe-building-skills
mkdir -p .claude/skills
cp -r /tmp/vibe-building-skills/skills/creative/image-generation .claude/skills/image-generation
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Image Generation,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Image Generation。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Image Generation 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Image Generation

Convert a fuzzy image request into prompt specs precise enough that any competent image model — and specifically fal-ai/nano-banana-pro on FAL.ai, the one model this repo's automation uses — renders what the user actually pictured. The prompt spec is the deliverable; generated files are the bonus when the automation is configured. Prime rule: never generate from a vague prompt. A weak prompt costs a generation credit and teaches you nothing; a sharp spec is reusable forever.

When to use / when not to

Use for general-purpose images: hero images, illustrations, thumbnails, infographics, textures, concept art, any one-off visual. Hand off instead when the request is really:

  • Product shots for commerce/marketing → skills/creative/product-photography
  • Platform-sized social content → skills/creative/social-graphics
  • Logos, icons, patterns, brand marks → skills/creative/brand-asset
  • No visual direction exists yet and consistency matters → run skills/creative/creative-strategist first and consume its style block
  • A whole multi-asset campaign → skills/creative/orchestrator routes it

Intake

Ask in one batch, only what's missing:

  1. Subject — what exactly is in the image? (object, scene, people, text?)
  2. Use — where does it go? (this decides aspect ratio and resolution)
  3. Style anchor — existing style guide / creative-strategist style block, reference images, or 3 adjectives for the mood?
  4. Automation — is FAL_API_KEY set so you can generate, or deliver specs only?

Infer, don't ask: aspect ratio from the stated destination (thumbnail → 16:9, story → 9:16, feed → 1:1 or 4:5); resolution from stakes (2K default, 4K hero/print, 1K drafts). Don't stall: if subject and use are clear, state your assumptions for the rest and proceed.

Workflow

  1. Check for a style block. If the user has run skills/creative/creative-strategist, reuse its style block verbatim in every prompt. If not, and this is a one-off, derive a minimal one (style + palette + mood) from context and label it an assumption.

  2. Draft the prompt with the 5-part formula. Every prompt contains, in order: subject (the main thing, specific: "a luxury leather watch with gold accents", never "a watch") → descriptive detail (materials, colors, text to render) → style ("professional product photography", "flat modern illustration", "photorealistic") → technical treatment (lighting, composition, focus, "4K, highly detailed") → mood ("warm and inviting"). Add negative constraints as plain prohibitions ("no text overlay", "no watermark", "no busy background").

  3. Decide variant strategy. If it's a throwaway draft → 1 image at 1K. If it's a keeper asset → propose 3–4 genuinely distinct prompt specs (different composition or style angle, not synonym swaps), generate 1 of each or num_images 3–4 of the winner, and have the user pick. Never present one option for a hero asset.

  4. Generate or deliver. If FAL_API_KEY (or FAL_KEY) is set:

    bash
    python docs/creative_cli.py custom \
      --category "<category>" --name "<asset-name>" \
      --prompt "<full prompt>" \
      --aspect-ratio 16:9 --resolution 2K --num-images 3

    Use --web-search only when the image must reflect current real-world data (e.g. "2026 trends infographic"). If no key is set, deliver the prompt-spec blocks and the exact command the user can run later — do not fake results or claim images were generated.

  5. Review and iterate. Compare output to the spec's mood/style/negative constraints. Fix misses by editing the prompt (more specific subject, explicit lighting, stronger prohibitions) — there are no other model knobs. One iteration round maximum before checking in with the user.

Read references/automation.md before writing any generation command — it has the full, verified parameter set, CLI flags, Python helpers, and output layout.

Required output format

Deliver one block per asset (this exact structure, whether or not you generate):

## Prompt Spec — [asset name]
- **Use / destination:** [where it will live]
- **Subject:** [the main thing, concretely]
- **Style:** [artistic treatment]
- **Composition:** [framing — centered / rule of thirds / negative space / overhead]
- **Lighting:** [studio / natural golden hour / dramatic rim / high-key]
- **Mood:** [2–3 adjectives]
- **Aspect ratio:** [one of 21:9 16:9 3:2 4:3 5:4 1:1 4:5 3:4 2:3 9:16] · **Resolution:** [1K/2K/4K] · **Format:** [png/jpeg/webp]
- **Negative constraints:** [what must NOT appear]
- **Prompt (final, paste-ready):**
  > [single flowing prompt assembled from the fields above]
- **Variants:** [n] — [what varies between them]
- **File naming:** assets/<category>/<asset-name>/<asset_name>_<n>_<timestamp>.png (automation default)
- **Generate with:** `python docs/creative_cli.py custom --category ... --name ... --prompt "..." --aspect-ratio ... --resolution ... --num-images n`

If images were generated, append the saved paths under Results and say which variant you recommend and why (one line).

Quality bar

Before delivering, verify every spec:

  • Subject is concrete enough that two strangers would picture the same image
  • Style, lighting, composition, and mood are each explicitly stated — none left to model default
  • Aspect ratio matches the stated destination (no 1:1 "because default")
  • Negative constraints listed (at minimum: no watermark; state text policy explicitly — models mangle long text)
  • No invented parameters — only the ones in references/automation.md; the model is always fal-ai/nano-banana-pro
  • Keeper assets got 3+ distinct variants, not one take
  • If automation wasn't run, the deliverable says so and includes runnable commands

Hard don'ts: never claim an image was generated when it wasn't; never put brand color hex codes in quotes and hope — name the colors in words too ("deep navy #004E89"); never render paragraphs of text inside an image.

Integration

  • skills/creative/creative-strategist → feeds this skill its style block (paste into every prompt's style/mood/lighting fields).
  • skills/creative/product-photography, skills/creative/social-graphics, skills/creative/brand-asset → specialized front-ends that produce their own prompt specs and use the same automation; route there when the request fits.
  • skills/creative/product-video and skills/creative/remotion-script-writer → consume generated stills as source frames / assets.
  • references/automation.md — full FAL.ai client, CLI, and Python-helper reference. Read it whenever you're about to run a generation command.

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Image Generation AI 技能有什么作用?

将任何 AI 图像生成需求转化为精确、可直接用于生成的提示词规范;配置好 FAL.ai 自动化后,还会使用唯一指定的模型 fal-ai/nano-banana-pro 生成图像文件。用户提出“生成一张图片”“画一张 X 的图”“制作缩略图/主视觉图/插画/信息图”“帮我写这张图的提示词”,或提出不属于产品摄影、社交平台图片或品牌标志的其他视觉需求时使用(这些需求交由相关的其他 skill 处理)。每项素材都会生成一个提示词规范块(主体、风格、构图、光线、氛围、宽高比和负面约束),以及文件命名和变体规范;有 FAL_API_KEY 时,运行 docs/creative_cli.py 生成图像。

为什么在 TypingMind 中使用 Image Generation?

因为您只需安装一次,就能搭配任何模型使用。Image Generation 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Image Generation?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/sanky369/vibe-building-skills/tree/main/skills/creative/image-generation。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Image Generation?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Image Generation 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Image Generation 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Image Generation AI 技能免费吗?

是的。sanky369 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇