Analyze images and generate detailed prompts for image generation. Supports portrait, landscape, product, animal, illustration categories with structured or natural output.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install image2prompt或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install image2prompt⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/image2prompt/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: image2prompt description: Analyze images and generate detailed prompts for image generation. Supports portrait, landscape, product, animal, illustration categories with structured or natural output. homepage: https://docs.openclaw.ai/tools/image2prompt user-invocable: true metadata: {"openclaw":{"emoji":"🖼️","primaryEnv":"OPENAI_API_KEY","requires":{"anyBins":["openclaw"]}}} ---
Analyze images and generate detailed, reproduction-quality prompts for AI image generation.
Step 1: Category Detection First, classify the image into one of these categories:
portrait — People as main subject (photos, artwork, digital art)landscape — Natural scenery, cityscapes, architecture, outdoor environmentsproduct — Commercial product photos, merchandiseanimal — Animals as main subjectillustration — Diagrams, infographics, UI mockups, technical drawingsother — Images that don't fit above categoriesStep 2: Category-Specific Analysis Generate a detailed prompt based on the detected category.
# Analyze an image (auto-detect category)
openclaw message send --image /path/to/image.jpg "Analyze this image and generate a detailed prompt for reproduction"
Natural Language (default):
Analyze this image and write a detailed, flowing prompt description (600-1000 words for portraits, 400-600 for others).
Structured JSON:
Analyze this image and output a structured JSON description with all visual elements categorized.
Request dimension highlights to get tagged phrases for each visual aspect:
Analyze this image with dimension extraction. Tag phrases for: backgrounds, objects, characters, styles, actions, colors, moods, lighting, compositions, themes.
{
"prompt": "A stunning photorealistic portrait of a young woman in her mid-20s with fair porcelain skin and warm pink undertones. She has striking emerald green almond-shaped eyes with long dark lashes, full rose-colored lips curved in a subtle confident smile, and an oval face with high cheekbones..."
}
{
"structured": {
"model": "photorealistic",
"quality": "ultra high",
"style": "cinematic natural light photography",
"subject": {
"identity": "young beautiful woman",
"gender": "female",
"age": "mid 20s",
"ethnicity": "European",
"skin_tone": "fair porcelain with pink undertones",
"body_type": "slim athletic",
"facial_features": {
"eyes": "emerald green, almond-shaped, intense gaze",
"lips": "full, rose pink, subtle smile",
"face_shape": "oval with high cheekbones",
"expression": "confident and serene"
},
"hair": {
"color": "warm honey blonde",
"length": "long",
"style": "soft waves",
"part": "center"
}
},
"pose": {
"position": "standing",
"body_orientation": "three-quarter turn to camera",
"legs": "weight on right leg, relaxed stance",
"hands": {
"right_hand": "resting on hip",
"left_hand": "hanging naturally at side"
},
"gaze": "direct eye contact with camera"
},
"clothing": {
"type": "flowing maxi dress",
"color": "dusty rose",
"pattern": "solid",
"details": "V-neckline, cinched waist, silk material",
"style": "romantic feminine"
},
"accessories": ["delicate gold necklace", "small hoop earrings"],
"environment": {
"location": "outdoor garden",
"ground": "cobblestone path",
"background": "blooming roses, soft bokeh",
"atmosphere": "dreamy and romantic"
},
"lighting": {
"type": "natural sunlight",
"time": "golden hour",
"shadow_quality": "soft diffused shadows",
"contrast": "medium",
"color_temperature": "warm"
},
"camera": {
"angle": "slightly below eye level",
"camera_height": "chest height",
"shot_type": "medium shot",
"lens": "85mm",
"depth_of_field": "shallow",
"perspective": "slight compression, flattering"
},
"mood": "romantic, confident, ethereal",
"realism": "highly photorealistic",
"post_processing": "soft color grading, subtle glow",
"resolution": "8k"
}
}
{
"prompt": "...",
"dimensions": {
"backgrounds": ["outdoor garden", "blooming roses", "soft bokeh"],
"objects": ["delicate gold necklace", "small hoop earrings"],
"characters": ["young beautiful woman", "mid 20s", "European"],
"styles": ["photorealistic", "cinematic natural light photography"],
"actions": ["standing", "three-quarter turn", "direct eye contact"],
"colors": ["dusty rose", "honey blonde", "emerald green"],
"moods": ["romantic", "confident", "ethereal", "dreamy"],
"lighting": ["golden hour", "natural sunlight", "soft diffused shadows"],
"compositions": ["medium shot", "85mm", "shallow depth of field"],
"themes": ["romantic feminine", "portrait photography"]
}
}
This skill works with any vision-capable model. For best results, use:
安装 Image2Prompt 后,可以对 AI 说这些话来触发它
Help me get started with Image2Prompt
Explains what Image2Prompt does, walks through the setup, and runs a quick demo based on your current project
Use Image2Prompt to analyze images and generate detailed prompts for image generation
Invokes Image2Prompt with the right parameters and returns the result directly in the conversation
What can I do with Image2Prompt in my design & creative workflow?
Lists the top use cases for Image2Prompt, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/image2prompt/ 目录(个人级,所有项目可用),或 .claude/skills/image2prompt/(项目级)。重启 AI 客户端后,用 /image2prompt 主动调用,或让 AI 根据上下文自动发现并使用。
Image2Prompt 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Image2Prompt 可免费安装使用。请查阅仓库了解许可证信息。
Analyze images and generate detailed prompts for image generation. Supports portrait, landscape, product, animal, illustration categories with structured or natural output.
Image2Prompt 属于「Design & Creative」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my design & creative tasks using Image2Prompt
Identifies repetitive steps in your workflow and sets up Image2Prompt to handle them automatically