modellix-image-prompt-engineering Skill
在执行前为 AI 图像生成与编辑构建清晰、高密度的提示词。只要用户需要封面、海报、横幅、信息图、产品图、包装概念、编辑插画、UI 样机、幻灯片视觉、图标集、角色设定集、卡牌集、精灵图、图像编辑或更好的图像提示词,就使用这个技能——即使他们没提"提示词工程"。将模糊的视觉需求转化为可直接执行的 T2I 或 I2I 简报,然后交给 modellix-design 生成。跳过视频/音频任务、CLI/鉴权问题排查,以及已包含完整提示词的请求。
安装方式:把技能目录放入 ~/.claude/skills/(Claude Code)或在 claude.ai 设置中启用;也可复制右侧安装命令一键添加。
技能指令原文(SKILL.md)
Modellix Image Prompt Engineering
Convert an image idea into a deliberate, execution-ready prompt. This skill is the
creative planning layer; modellix-design is the execution layer.
Do not submit, poll, download, authenticate, or inspect model schemas here. Do not
run the Modellix CLI. When the user wants an image generated, finish the brief
first and then hand it to modellix-design.
Route the request
Use this skill when any of these are true:
- The request is a vague visual brief: "make it premium," "create a launch cover,"
or "give me a clean product graphic."
- The user wants a prompt written, expanded, repaired, or made less generic.
- The task needs art direction, composition, on-image text, a reference strategy,
or a coherent batch/grid.
- An earlier result failed visually and the prompt needs a targeted revision.
Skip or keep the pass minimal when:
- The user supplied a complete prompt and explicitly asked only to run it. Pass it
directly to modellix-design.
- The request is about video, audio, credentials, task status, downloads, model
schemas, or command syntax. Use modellix-design.
- The user only wants image compression, format conversion, cropping, or reuse of
an existing asset without generative changes.
If a supplied prompt is already specific, perform at most a one-line readiness
check. Do not rewrite it merely to demonstrate this skill.
Core principle: maximize decision density
Prompt quality is not proportional to prompt length. A strong prompt packs useful
visual decisions into each phrase.
Before writing, fill three slots:
- Subject — the actual person, object, product, scene, or information.
- Visual system — an established design movement, studio, brand language,
medium tradition, or precisely described visual grammar.
- Medium — poster, instruction manual, editorial illustration, packaging,
product photograph, infographic, UI screen, icon sheet, and so on.
Prefer precise, recognizable references over adjective piles:
- Weak: "premium, minimalist, modern, professional product layout"
- Stronger: "Dieter Rams-era Braun product manual for a pocket camera"
A name is useful only when it compresses relevant decisions. Check that its native
medium fits the target. A reference known for industrial products may transfer
well to packaging or manuals but poorly to a dense statistical table.
Do not invent designers, studios, movements, brands, products, quotations, dates,
or specifications. If a factual reference matters and cannot be verified, replace
it with explicit visual attributes.
Choose a working mode
Explore
Use when the user has a topic but no visual direction. Offer three genuinely
different directions. For each, state:
- the visual-system anchor,
- why it fits the audience and purpose,
- the medium and composition idea,
- the main risk or cliché to avoid.
Ask the user to choose only when the directions would materially change the
result. If the user delegated the choice, pick the strongest direction and explain
the decision in one sentence.
Hybrid
Use for most everyday work. Lock the audience, message, medium, and major
constraints. Leave room for the image model to contribute secondary details.
Execute
Use when the user already has a brand system, reference images, exact copy, or a
defined layout. Translate those decisions faithfully; do not add a competing art
direction.
Build the prompt
Work through these layers internally, then produce one natural prompt rather than
fake configuration sections.
1. Intent
Identify:
- who will see the image,
- what they should notice first,
- what they should understand or feel,
- where the image will be used.
For a platform-specific asset, verify current dimensions when tools are available.
Do not rely on remembered platform sizes. If dimensions cannot be verified, state
an aspect ratio and mark exact pixels as unresolved.
2. Visual hierarchy and composition
Specify only decisions that affect the image:
- primary focal point and scale,
- subject placement,
- foreground/background relationship,
- text-safe or empty space,
- camera angle, lens language, or illustration viewpoint,
- information hierarchy for diagrams and UI,
- crop and aspect ratio.
Spatial relationships are valuable detail. Decorative adjective lists are not.
3. Visual system
Choose one strong primary anchor. Add a second only when it has a distinct job,
such as one anchor for layout and another for material or color.
When a named reference is obscure, atmosphere-driven, or likely to be interpreted
superficially, add concrete attributes: grid, palette, line quality, lighting,
texture, typography class, and density.
Publication and media names can appear as accidental mastheads or watermarks.
When using one as a visual reference, explicitly exclude the publication name,
logo, masthead, and unrelated English copy from the image.
4. Text and factual content
Follow the user's language or the intended audience's language. Preserve official
brand names, product names, acronyms, and requested quotations exactly.
- Put exact on-image copy in quotation marks.
- Keep text short enough to remain legible.
- Never fabricate data, testimonials, product specifications, logos, or legal
claims. Use an intentional blank or a clearly marked placeholder when facts are
unavailable.
- State whether descriptive on-image text should be Chinese, English, bilingual,
or absent.
5. Constraints
Add constraints only for likely failure modes:
- no unrelated logo, watermark, signature, or masthead,
- no extra text,
- preserve identity or product geometry,
- keep key information inside a safe area,
- avoid a named cliché relevant to this task.
Avoid generic negative-prompt inventories. Too many prohibitions dilute the main
intent.
Prompt style
Write the actual image prompt in the audience's language unless the user requests
otherwise. Keep official names in their original form.
Do not use pseudo-structured headings inside the prompt, such as Subject:,
Style:, or Constraints:. Those headings often create verbose, generic output.
The handoff brief may use labels; the prompt string itself should read naturally.
Short prompts are appropriate when the subject, visual system, and medium are all
strong anchors. Complex compositions may need longer prompts because positions,
copy, and factual relationships are real decisions. Remove a phrase if deleting it
would not change the intended image.
Specialized routes
Read only the reference needed for the task:
- Read
references/prompt-playbook.mdfor mode selection, prompt patterns, and
single-image workflows.
- Read
references/concept-library.mdwhen the request needs a better named anchor
or the chosen reference does not fit the medium.
- Read
references/batch-grids.mdfor icon sets, character sheets, card sets, or
sprite sheets.
- Read
references/failure-modes.mdwhen repairing a failed result.
For I2I, describe what must remain unchanged before describing the change. Assign
each reference image a role: subject identity, style, composition, product, or
background. Do not assume that every image controls every property.
For infographics, name the relationship first: comparison, sequence, hierarchy,
flow, cause/effect, or spatial map. Visual decoration comes after the information
model.
For UI mockups, identify the user's decision on that screen, the primary action,
and the information hierarchy. Do not optimize only for visual polish.
Batch and grid principle
When the user wants a coherent set, prefer one semantic grid prompt for small
sets when consistency matters. Match the overall canvas ratio to the grid and cell
ratio. Describe an imagined grid but prohibit drawn grid lines, borders, labels,
registration marks, and cell numbers unless requested.
Do not promise automatic extraction or transparent assets. This skill does not
ship image-processing dependencies. Read references/batch-grids.md for the
handoff and post-processing caveats.
Pre-handoff review
Before presenting the result, check:
- Intent: Is the audience, purpose, and first-read message clear?
- Three slots: Are subject, visual system, and medium specific?
- Fit: Does the reference's native medium transfer to this target?
- Density: Does every phrase change a visual decision?
- Composition: Are hierarchy and spatial relationships clear where needed?
- Text: Is exact copy quoted, audience language explicit, and fabricated
content avoided?
- Reference risk: Could a brand or publication become a masthead or watermark?
- Execution boundary: Has this skill avoided submission and model-schema work?
If an item fails, repair the prompt before handoff.
Handoff format
Return this compact brief:
Image brief
- Task: T2I | I2I
- Prompt: "<final natural-language prompt>"
- On-image text: <none | language and exact copy>
- Aspect/size: <verified value | requested value | unresolved>
- Reference images: <none | paths/URLs with roles>
- Suggested default: google/nano-banana-2-lite | google/nano-banana-2-lite-edit
- Next step: <stop after prompt | pass to modellix-design for execution>
Use google/nano-banana-2-lite for T2I and
google/nano-banana-2-lite-edit for I2I unless the user already named a model.
Do not browse the catalog from this skill.
If the user asked only for prompt work, stop after the brief. If the original
request asked for generation or editing, pass the finished brief to
modellix-design and let that skill own schema validation, credentials, paid
submission, waiting, and download.
Revision after a generated result
Do not repeat the same prompt and hope for a different outcome. Identify the
failed layer:
- wrong idea or emotion → revise intent,
- weak hierarchy or crop → revise composition,
- generic look → replace or clarify the visual-system anchor,
- incorrect text → reduce and foreground exact copy,
- unwanted masthead/watermark → remove the risky reference name or add a narrow
exclusion,
- identity/product drift → strengthen preservation instructions and reference
roles,
- overloaded image → remove secondary elements.
Then return a revised handoff brief. The execution skill decides how to recover an
existing task or whether a new paid submission is appropriate.
Attribution
The decision-density, named-reference, and failure-diagnosis approach is inspired
by alchaincyf/huashu-gpt-image
(MIT). This skill is an English, Modellix-oriented methodology layer; it is not a
fork and is not tied to GPT-image-2.