Token导航 LogoToken导航

Agent Skill · 图像处理

text-to-image-prompt-optimizer(文本到图像提示优化器)

用于辅助图像生成、图片编辑、视觉素材处理或图像模型工作流。它适合让 Agent 根据文本生成图片、处理背景、整理视觉提示词或调用相关图像工具。使用时需要确认输入图片、版权来源、输出格式和模型限制;涉及人物、品牌、商品或公开展示素材时,应额外核对授权、真实性和内容合规边界。

text-to-image-prompt-optimizer 是图像处理类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为只读;许可证信息还不明确,第三方扫描已通过,按安装量在图像处理类的 1,562 个 Skill 里排第 437。

总安装 6,844周安装 291GitHub Stars 1下载 2,398核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:text-to-image-prompt-optimizer(文本到图像提示优化器)
来源仓库:https://github.com/manzxiao/text-to-image-prompt-optimizer
仓库路径:skills/text-to-image-prompt-optimizer
安装命令:
npx skills add https://github.com/manzxiao/text-to-image-prompt-optimizer --skill text-to-image-prompt-optimizer
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/manzxiao/text-to-image-prompt-optimizer --skill text-to-image-prompt-optimizer

这个 Skill 是做什么的

图像处理类 Skill 处理生成、裁剪、压缩和批量转换图片的任务。

用于辅助图像生成、图片编辑、视觉素材处理或图像模型工作流。适合根据文本生成图片、处理背景、整理视觉提示词或调用图像工具。使用时需确认输入图片、版权来源、输出格式和模型限制。涉及人物、品牌、商品或公开展示素材时,应核对授权、真实性和合规边界。建议结合原始 README 进一步核验具体用法和限制条件。

来源仓库内路径:skills/text-to-image-prompt-optimizer

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/manzxiao/text-to-image-prompt-optimizer --skil…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它标注为只读,先用只读任务试一次,确认行为符合预期再扩大使用范围。

常见问题

6 条

text-to-image-prompt-optimizer 怎么安装?

在终端执行 npx skills add https://github.com/manzxiao/text-to-image-prompt-optimizer --skill text-to-…。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

text-to-image-prompt-optimizer 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

text-to-image-prompt-optimizer 需要什么权限?

权限级别是只读。该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

text-to-image-prompt-optimizer 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

text-to-image-prompt-optimizer 用的人多吗?

公开数据是累计安装 6,844 次,近一周安装 291 次,下载 2,398 次,GitHub 1 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

text-to-image-prompt-optimizer 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。
  • 标注为只读权限,试用阶段不容易误改本地文件。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理图像处理类任务、又不想每次都手写提示词的人。
  • 只想先试试效果、不希望它改动本地文件的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

图像处理类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
ai-image-generation

AI 图像生成 · Codex、Claude

4,365,552382调用外部服务未明确有提醒
openai-image-gen

OpenAI 图像生成 · OpenClaw

1,906,88432需要联网MIT-0有提醒
image

图像 · OpenClaw

525,99926需要联网MIT-0通过
baoyu-cover-image

宝玉封面图 · Codex、Claude

474,24016,779只读MIT有提醒
baoyu-image-gen

宝玉图像生成器 · Codex、Claude

468,00716,778接触敏感数据MIT通过
text-to-image-prompt-optimizer

文本到图像提示优化器 · 本页

6,8441只读未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

AI Image Prompt Optimizer

Generate professional, optimized prompts for AI image generation tools with primary support for Google Gemini (Nano Banana), plus Midjourney, Stable Diffusion, DALL-E, Leonardo.ai, and others.

Core Workflow

When a user requests prompt generation or optimization:

  1. Understand the intent

- Identify the core subject and desired outcome - Ask clarifying questions ONLY if the request is extremely vague - Default to reasonable assumptions rather than over-questioning

  1. Generate comprehensive prompts

- Primary format: Google Gemini (Nano Banana) - Use conversational, natural language with photographic/cinematic terminology - Provide multiple variations (2-3) with different styles or approaches - Include both English (primary) and Chinese translations - For Gemini: Use clear, descriptive sentences rather than keyword lists - For other platforms: Structure using formula [Subject] + [Environment] + [Style] + [Lighting] + [Composition] + [Quality]

  1. Include platform-specific optimizations

- Gemini (Nano Banana) - PRIMARY: Clear conversational prompts with photographic/cinematic language, semantic positive descriptions - Midjourney (secondary): Add --ar, --s, --q, etc. as appropriate - Stable Diffusion (secondary): Suggest sampling steps, CFG scale, and negative prompts - Adapt to user's specified platform, but default to Gemini when not specified

  1. Explain and educate

- Break down each component of the prompt - Explain why specific keywords were chosen - Suggest modifications for different effects

  1. Provide actionable next steps

- Guide users on how to use the prompt - Suggest parameter tweaks for refinement - Offer to iterate based on results

Output Format

Structure responses as follows (prioritize Gemini format):

## 🎨 Generated Prompts

### ⭐ Variation 1: Google Gemini (Nano Banana) - RECOMMENDED
**English (Conversational):**
[Natural language prompt with clear, descriptive sentences using photographic/cinematic terminology]

**中文版本:**
[Chinese translation in conversational style]

**适用平台:** Google Gemini (Nano Banana / Nano Banana Pro)
**推荐模型:** [Nano Banana for testing / Nano Banana Pro for professional output]

---

### Variation 2: [Alternative Style/Platform]
**English:**
[Platform-specific format - keywords for Midjourney, structured for SD, etc.]

**中文版本:**
[Chinese translation]

**适用平台:** [Midjourney / Stable Diffusion / DALL-E / Leonardo.ai]

---

### Variation 3: [Another Alternative]
[Optional third variation if helpful]

---

## 📝 Prompt Breakdown

- **Subject:** [Explanation]
- **Composition:** [How elements are arranged - important for Gemini]
- **Lighting:** [Photography/cinematography terms used]
- **Style:** [Visual aesthetic description]
- **Technical:** [Camera terms, angles, etc. for Gemini]

## ⚙️ Platform Guide

**🌟 Gemini (Primary):**
- Model choice: [When to use Nano Banana vs Pro]
- Editing tips: [How to iterate conversationally]
- Special features: [Character consistency, multi-image, etc.]

**Other Platforms (Secondary):**
[Brief notes on Midjourney/SD/etc. parameters if relevant]

## 💡 Optimization Tips

[Gemini-focused suggestions first, then others]

## 🎯 Next Steps

**For Gemini:**
1. [How to use in Gemini app/AI Studio]
2. [How to iterate with conversational edits]
3. [How to leverage character consistency / multi-image features]

**For Other Platforms:**
[Platform-specific usage notes if requested]

Key Principles

Conciseness

  • Generate prompts directly without excessive preamble
  • Avoid phrases like "I'll help you create a prompt for..."
  • Jump straight to the prompts unless clarification is absolutely needed

Quality Over Verbosity

  • Use specific, impactful keywords rather than generic descriptions
  • Prefer "cinematic lighting, dramatic shadows, golden hour" over "nice lighting"
  • Reference established artistic styles when appropriate

Platform Awareness

  • Default to Google Gemini (Nano Banana) format if platform is unspecified - conversational, natural language style
  • Always provide Gemini version first as the primary recommendation
  • Include alternative platform formats (Midjourney, SD, etc.) as secondary variations
  • Automatically include appropriate parameters for each target platform
  • Highlight Gemini's unique features (character consistency, conversational editing) when relevant

Educational Value

  • Explain WHY certain keywords work
  • Help users learn to craft their own prompts over time
  • Reference the prompt library for deeper learning

Common Patterns

For Beginners

  • Use simpler, more direct prompts
  • Explain each component thoroughly
  • Provide templates they can modify

For Experienced Users

  • Focus on advanced techniques (weights, negative prompts, multi-concept fusion)
  • Suggest artist references and style mixing
  • Provide minimal explanation unless requested

Reference Materials

For comprehensive prompt templates and keyword libraries, refer to:

Load these references when:

  • User requests specific categories (portraits, landscapes, etc.)
  • User asks for keyword suggestions
  • User needs platform-specific guidance
  • Complex or specialized prompts are needed

Advanced Techniques

🌟 Gemini (Nano Banana) Techniques - PRIMARY

Character Consistency
First prompt: "Generate a character: [detailed description]"
Follow-up: "Show the same character [in new scenario/pose/style]"
# Gemini will maintain character likeness across images
Conversational Editing
Initial: "Create [image description]"
Edits:
- "Make the background darker"
- "Add [element] to the scene"
- "Change [attribute] to [new value]"
# Each edit builds on the previous image
Photographic Control
Use technical terms:
- "85mm portrait lens at f/1.8" (lens + aperture)
- "wide-angle shot from low angle" (lens + perspective)
- "shallow depth of field with bokeh" (focus effect)
- "golden hour lighting from left" (lighting direction)
Semantic Positive Descriptions
Instead of: "no cars, no people"
Use: "an empty, peaceful street with no signs of activity"

Instead of: "not blurry"
Use: "sharp focus, crystal clear, professional quality"

Other Platform Techniques (Secondary)

Weight Control (Midjourney)
(red flower)::2 (blue flower)::1
# Red flower weighted 2x more than blue
Negative Prompts (Stable Diffusion)
Negative prompt: ugly, blurry, low quality, distorted,
bad anatomy, watermark, text
Style Mixing (Multiple Platforms)
in the style of [Artist A] combined with [Artist B]
Multi-Concept Fusion (Multiple Platforms)
a fusion of [concept 1] and [concept 2]

Quick Templates

🌟 Gemini (Nano Banana) Templates - PRIMARY

Conversational Formula (Recommended)
Create/Generate [subject description] [action/state].
The scene should show [environment details] with [composition description].
Use [lighting description] to create [mood/atmosphere].
The style should be [visual style] with [quality description].
Portrait (Gemini)
Generate a professional portrait of [age/gender], [appearance details],
wearing [clothing]. The subject should have [expression/mood].
Use [lens/angle] perspective with [lighting description].
The background should be [background details]. The style should be
[photographic/artistic style] with [quality expectations].
Landscape (Gemini)
Create a [location/scene type] during [time/season]. The scene should
feature [key elements] with [weather/atmosphere]. Use [angle/perspective]
to capture [compositional focus]. The lighting should be [lighting type]
creating [mood]. Style: [photographic/artistic approach].
Product (Gemini)
Generate a product photograph of [product] made of [material].
Position it on/against [background/surface] with [arrangement details].
Use [lighting setup] from [direction] creating [shadow/highlight effect].
Shot with [camera/lens details] at [angle]. The aesthetic should be
[style] suitable for [purpose].
Character Design (Gemini)
Create a character: [description of person/creature] with [physical features].
They should be wearing [clothing/armor/accessories] and have [expression/pose].
The setting is [environment]. Use [art style] with [detail level].

Other Platform Templates (Secondary)

Basic Keyword Formula (Midjourney/SD)
[subject], [environment], [style], [lighting], [composition], [quality]
Portrait (Keyword Style)
[age/gender], [appearance], [clothing], [expression], [background],
[style], portrait photography, [quality]
Landscape (Keyword Style)
[location], [time/season], [weather], [color mood],
landscape photography, [angle], [quality]
Product (Keyword Style)
[product], [material], [background], product photography,
[lighting], [angle], commercial, [quality]
Concept Art (Keyword Style)
[subject], [details], [genre] art, [atmosphere],
concept art, highly detailed, trending on ArtStation, [quality]

Common Keywords by Category

Quality:

  • 4k, 8k, ultra hd, high resolution
  • highly detailed, sharp focus
  • masterpiece, professional
  • photorealistic, hyperrealistic

Lighting:

  • natural lighting, golden hour, soft lighting
  • dramatic lighting, volumetric lighting
  • studio lighting, rim lighting

Composition:

  • close-up, wide angle, bird's eye view
  • shallow depth of field, bokeh
  • rule of thirds, centered

Style:

  • cinematic, artistic, minimalist
  • cyberpunk, fantasy art, anime style
  • photorealistic, oil painting, watercolor

Mood:

  • peaceful, dramatic, mysterious
  • cozy, epic, ethereal
  • vibrant, melancholic

Handling User Requests

"Generate a prompt for [simple idea]"

Expand the idea with reasonable assumptions, provide 2-3 variations, explain choices.

"Optimize this prompt: [existing prompt]"

Analyze the existing prompt, identify weaknesses, provide improved version with explanation.

"I want [specific style]"

Use style-specific keywords and artist references, provide examples.

"Make it better/more detailed"

Add quality keywords, refine composition, enhance specificity.

"Create variations"

Generate 3-4 variations with different styles, moods, or compositions.

Tips for Effective Prompts

  1. Be specific - "a golden retriever puppy" beats "a dog"
  2. Use artist/style references - "in the style of Studio Ghibli"
  3. Quality keywords matter - Always include quality descriptors
  4. Order matters - Earlier keywords have more influence
  5. Test and iterate - Encourage users to share results for refinement

When to Consult References

  • Specific categories: Read prompt-library.md sections for portraits, landscapes, etc.
  • Keyword suggestions: Reference keywords-reference.md for comprehensive lists
  • Platform details: Check platform-specific.md for advanced parameters
  • Complex requests: Load relevant references to provide thorough guidance

适合场景

01

文本生成图片

02

图片风格化

03

产品图和创意图

04

需要 FLUX 模型时

能力概览

能力 1

调用 FLUX 图像模型

能力 2

支持文本生图和图像改写

能力 3

覆盖 LoRA 或风格适配

能力 4

适合创意视觉生成

平台分布

Codex

37.78%
按下载量换算906

Claude

29.77%
按下载量换算714

Cursor

19.37%
按下载量换算464

Gemini CLI

9.17%
按下载量换算220

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills