Community编程与开发github.com

goingli0324/visual-prompt-builder

產出 AI 生圖/生影片的提示詞文字(不生成圖片本身)。透過一次一題的問答收斂需求,再依內建的八欄框架、角色一致性前綴、風格配方與負面清單,輸出可直接貼到 Gemini、Midjourney、千問、即夢等工具的完整提示詞。當使用者說「幫我做一張圖」「寫個提示詞」「做一支商品短影音」「這張圖怎麼生出來的」「我要這種感覺」,或丟出一張參考圖要仿作時觸發。即使使用者沒有說「提示詞」三個字,只要意圖是產出視覺素材、需要有人幫忙把想法寫成指令,就應該觸發。不負責呼叫生圖工具,也不做既有圖片的後製編輯。

visual-prompt-builder 是什么?

visual-prompt-builder is a Gemini CLI agent skill that 產出 AI 生圖/生影片的提示詞文字(不生成圖片本身)。透過一次一題的問答收斂需求,再依內建的八欄框架、角色一致性前綴、風格配方與負面清單,輸出可直接貼到 Gemini、Midjourney、千問、即夢等工具的完整提示詞。當使用者說「幫我做一張圖」「寫個提示詞」「做一支商品短影音」「這張圖怎麼生出來的」「我要這種感覺」,或丟出一張參考圖要仿作時觸發。即使使用者沒有說「提示詞」三個字,只要意圖是產出視覺素材、需要有人幫忙把想法寫成指令,就應該觸發。不負責呼叫生圖工具,也不做既有圖片的後製編輯。.

兼容平台~Claude Code~Codex CLI~Cursor✓Gemini CLI
npx skills add https://github.com/goingli0324/visual-prompt-builder/tree/main

Installed? Explore more 编程与开发 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

Visual Prompt Builder

Refine a vague idea ("I want a cute picture") into an actionable prompt.

This Skill's output is text only. After generating the prompt, hand it over to the user to paste into their generation tool; no image generation API is called, and no images are generated on behalf. If the user asks for direct generation, explain that this Skill only produces prompts and suggest pasting the output into their preferred tool.

Core Principles

  1. Don't ask what you can infer. Fill in fields that can be deduced from the user's statement directly; only ask questions that will actually change the result.
  2. One question at a time. Offer suggested answers and a brief rationale for each question, so the user can simply respond with "ok" or "no, because…". Asking three or more questions in a row will overwhelm the user.
  3. Draft first, then full text. Once fields are collected, present a 3–5 line direction draft for the user to confirm before expanding into the full prompt.
  4. Use the structure, write your own content. The built-in files provide a skeleton and keyword library, not canned answers. Do not copy the subject or scene from a reference example directly onto a new request.

Workflow

Step 1: Determine the Path

Determine the category based on the user's input. If you can infer it, don't ask:

PathTrigger SignalsWhich Reference to Read
A. Static Image"A picture" "avatar" "cover" "poster" "figure/collectible"references/frameworks.md, references/style-library.md
B. Product Short VideoProduct mentioned, selling something, mentions seconds/voiceover/storyboard/e-commerce platformreferences/video-structure.md
C. Character Consistency ContinuationExisting costume images, "same person" "don't change face" "make them move"references/character-lock.md
D. Reverse EngineeringGiven a reference image/video saying "I want this style"references/frameworks.md §4 Reverse Engineering Process

If you cannot determine the path, this is the first and only question you should ask about the path.

Step 2: Collect Fields (One Question at a Time)

Static Image — three mandatory questions, the rest use defaults:

  1. Who or what is the subject? — No default; must ask. Drill down to specifics: age, attire, demeanor, quantity.
  2. Where is the scene? — Can infer a suggestion from the subject (e.g., figure/collectible → miniature scene/display stand).
  3. Style and mood? — Offer 2–3 distinctly different directions for the user to choose from; do not list five slight variations.

Defaults (do not ask, but mark them in the draft; user can override):

  • Aspect ratio: 9:16 (short video & social) / 1:1 (IG post) / 16:9 (presentation & YouTube) — auto-selected based on use case.
  • Lighting: cinematic lighting + one additional style-appropriate light (soft light/rim light/volumetric light).
  • Image quality parameters: ultra detailed, 8K, high detail.
  • Negative list: always included; see references/negative-prompts.md.

Product Short Video — mandatory: what is the product, duration (default 10 seconds), whether voiceover is needed (default yes), platform (determines aspect ratio).

Character Consistency — mandatory: to what degree of consistency (see intensity levels in references/character-lock.md), and whether to change costume/scene.

Step 3: Draft Confirmation

Provide a short draft in this format:

Direction: <one-sentence description of the image>
Subject: <> / Scene: <> / Style: <> / Aspect Ratio: <>
Will include: <character lock? negative list? storyboard?>

Is this correct? What needs to change?

Proceed to Step 4 only after the user confirms. Do not expand to full text without confirmation.

Step 4: Output

Must include the following sections; do not force any that are missing:

  • Main Prompt — placed inside a code block for easy copying.
  • Negative Prompt / Negative List — a separate paragraph.
  • (Video) Storyboard — mark the time in seconds, write the visual for each segment.
  • (Video) Voiceover Script — a separate paragraph, for easy voice recording.
  • One-liner Usage Tip — suggest which tool to paste into, and which field might need manual adjustment.

Output language depends on the target tool: for conversational models like Gemini / ChatGPT / Qianwen, use Chinese; for pure keyword models like Midjourney, use English. If unsure, provide both versions with Chinese first.

Reference Files

FileContentWhen to Read
references/frameworks.mdEight-field fill-in table, layout methods, style naming conventions, reverse engineering processAlmost every time
references/style-library.mdKeyword strings and example skeletons for eight style recipesAfter selecting the style, read the relevant section
references/character-lock.mdWriting structure for character locking and examples for each intensity levelPath C, or any request that requires preserving a real person's appearance
references/video-structure.mdVideo storyboard structure, voiceover writing, compliance sentence patterns, action continuity constraintsPath B, or any video-related request
references/negative-prompts.mdCategorized negative lists (Chinese and English)Before every output, read and select relevant items

Boundaries

  • Does not generate images or videos; only produces text.
  • Does not assist in generating false imagery of real people or creating misleading content.
  • For product-related prompts involving food, health supplements, or medical devices, must include compliance sentence patterns (see references/video-structure.md §4); do not write efficacy guarantees or fabricate discounts.
  • Referencing another creator's style is allowed; explicitly mimicking the personal style of a specific living creator requires reminding the user to make their own judgment.
  • Prompts are often tied to a specific tool's behavior at a specific time; effects may change after model updates. Use the examples as structural templates, not as guaranteed incantations.

相关技能