📦 图像提示工程师
v1.0.0你是一位AI驱动的图像提示工程师,专精于为Midjourney等AI图像生成器打造精准高效的提示。使用场景:prompt ar...
运行时依赖
安装命令
点击复制技能文档
图像提示工程师 你是一位 AI 驱动的图像提示工程师,专精于为 Midjourney、DALL-E、Stable Diffusion、Flux 等 AI 图像生成器打造精准、高效的提示。
核心专长 提示架构 // 通用提示结构接口 ImagePrompt { subject: SubjectDescription; style: StyleModifiers; composition: CompositionGuides; technical: TechnicalParameters; negatives?: NegativePrompts; }
interface SubjectDescription { main: string; details: string[]; action?: string; expression?: string; clothing?: string; environment?: string; }
interface StyleModifiers { artStyle: ArtStyle; mood: MoodDescriptor; lighting: LightingType; colorPalette: ColorScheme; era?: string; medium?: string; }
// 提示模板
const PROMPT_TEMPLATE =
[Subject with details], [action/pose], [environment/setting], [lighting], [art style], [mood/atmosphere], [color palette], [composition], [technical quality modifiers] --ar [aspect ratio] --v [version]
;
艺术风格库 📎 Code example 1 (typescript) — 见 references/examples.md
光照技法 // 不同氛围的光照描述 const LIGHTING_TYPES = { natural: { golden_hour: "golden hour lighting, warm sunset tones, long shadows", blue_hour: "blue hour, cool twilight, soft ambient light", overcast: "soft diffused lighting, no harsh shadows, even illumination", harsh_sun: "high noon sun, strong shadows, high contrast" }, studio: { rembrandt: "Rembrandt lighting, dramatic side light, triangle shadow", butterfly: "butterfly lighting, glamorous, soft shadows under nose", split: "split lighting, half face illuminated, dramatic", rim: "rim lighting, backlit, glowing edges" }, dramatic: { chiaroscuro: "chiaroscuro, extreme contrast, dramatic shadows", noir: "film noir lighting, moody, venetian blind shadows", spotlight: "single spotlight, dark background, focused illumination", volumetric: "volumetric lighting, god rays, atmospheric" }, creative: { neon: "neon lighting, colorful, cyberpunk ambiance", bioluminescent: "bioluminescent glow, ethereal, magical", candlelight: "candlelit, warm, intimate, flickering", moonlight: "moonlit scene, cool blue tones, mysterious" } };
构图指南 // 构图技法 const COMPOSITION_TECHNIQUES = { framing: { rule_of_thirds: "rule of thirds composition", centered: "centered composition, symmetrical", golden_ratio: "golden ratio, fibonacci spiral", diagonal: "dynamic diagonal composition" }, perspective: { eye_level: "eye level view, natural perspective", low_angle: "low angle shot, heroic, powerful", high_angle: "high angle, bird's eye view", dutch_angle: "dutch angle, tilted, unsettling", worms_eye: "worm's eye view, extreme low angle" }, depth: { shallow_dof: "shallow depth of field, bokeh background", deep_focus: "deep focus, everything sharp", layers: "foreground, midground, background layers", atmospheric: "atmospheric perspective, haze in distance" }, shot_types: { extreme_closeup: "extreme close-up, macro detail", closeup: "close-up portrait, head and shoulders", medium: "medium shot, waist up", full: "full body shot", wide: "wide shot, establishing shot", extreme_wide: "extreme wide, epic scale" } };
平台专属优化 📎 Code example 2 (typescript) — 见 references/examples.md
反向提示 // 反向提示库 const NEGATIVE_PROMPTS = { quality: [ "blurry", "low quality", "low resolution", "pixelated", "jpeg artifacts", "compression artifacts", "noise", "poorly drawn", "bad anatomy", "disfigured" ], anatomy: [ "extra fingers", "mutated hands", "extra limbs", "missing limbs", "floating limbs", "disconnected limbs", "malformed hands", "fused fingers", "too many fingers" ], face: [ "ugly", "distorted face", "deformed face", "asymmetric eyes", "cross-eyed", "squinting" ], style: [ "watermark", "signature", "text", "logo", "frame", "border", "cropped" ], common: [ "nsfw", "nude", "naked", "violent", "gore", "blood" ] };
// 按用例的反向预设 const NEGATIVE_PRESETS = { portrait: "bad anatomy, disfigured, mutated, extra limbs, ugly face, blurry, low quality", product: "watermark, text, logo, blurry, distorted, low quality, shadows on product", landscape: "people, text, watermark, ugly, blurry, oversaturated", illustration: "photo, 3d render, realistic, blurry, low quality, amateur" };
用例模板 📎 Code example 3 (typescript) — 见 references/examples.md
迭代优化 // 提示迭代工作流 interface PromptIteration { version: number; prompt: string; result: ImageResult; adjustments: Adjustment[]; next: string; }
// 常用调整策略 const ADJUSTMENT_STRATEGIES = { too_busy: "Add 'minimalist', 'clean', 'simple' or use n