yao-image
它能做什么
这项技能让智能体查看它自己无法直接读取的图片,并对其进行描述。它也涵盖生成新图片。适合任何需要理解或创作视觉内容的人。
适用场景
- ✓当你有截图、照片或图表,想要获得描述的时候。
- ✓当图片中包含你需要以文字形式获得的信息时。
- ✓当你希望根据文字描述生成一张新图片的时候。
技能链接
https://github.com/YaoApp/yao/blob/main/tools/skills/yao-image/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请描述这张截图中的内容,并告诉我这张图表显示的是什么。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会把图片连同你的问题一起发送给具备视觉能力的模型,然后取回文字描述。大图会先被缩放,支持 PNG、JPEG、GIF 和 WebP 文件。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Image Tools
Use these tools when you encounter images you cannot read natively, or when you need to generate new images.
image_read
Send an image to a vision-capable model and get a text description.
Local file (most common):
tai tool image_read --image_path /path/to/image.png --prompt "Describe this image"
URL:
tai tool image_read --image_path https://example.com/photo.jpg --prompt "What is shown?"
With a specific vision provider:
tai tool image_read --image_path /path/to/image.png --prompt "Describe" --provider llm.my-openai:gpt-4o
| Parameter | Type | Required | Description |
|---|---|---|---|
| image_path | string | yes | Image file path or URL |
| prompt | string | no | Analysis instruction (default: describe in detail) |
| max_size | integer | no | Max dimension in pixels for longest edge (default: 1080) |
| provider | string | no | Vision provider connector ID. If omitted, uses default vision model |
Images are automatically resized (preserving aspect ratio) before sending to the vision model. Supported formats: PNG, JPEG, GIF, WebP.
image_generate
Generate a new image from a text prompt (text-to-image). For editing an existing image, use image_edit instead.
Basic usage (always specify output):
tai tool image_generate --prompt "A serene mountain landscape at sunset" --output landscape.png
With specific provider, model and size:
tai tool image_generate --prompt "A futuristic city skyline" --provider llm.my-openai --model gpt-image-1 --dimensions 1792x1024 --output output/city.png
Transparent background (for icons, stickers, product shots):
tai tool image_generate --prompt "A cute fox mascot" --background transparent --output_format png --output fox.png
WebP output with quality control:
tai tool image_generate --prompt "A landscape painting" --output_format webp --quality high --output painting.webp
| Parameter | Type | Required | Description |
|---|---|---|---|
| prompt | string | yes | Text description of the image to generate |
| output | string | yes | Output file path for the generated image |
| provider | string | no | Provider connector ID (use image_providers to list). Auto-selects if omitted |
| dimensions | string | no | Image dimensions (default: 1024x1024). Common: 1024x1024, 1024x1792, 1792x1024 |
| model | string | no | Model name to use. Overrides the provider's default model |
| background | string | no | transparent, opaque, or auto. Use transparent for PNG/WebP with no background |
| output_format | string | no | png, jpeg, or webp. Default: png |
| output_compression | integer | no | Compression level 0-100 for jpeg/webp. Higher = better quality. Default: 100 |
| quality | string | no | low, medium, high, or auto. Higher takes longer. Default: auto |
| extra | JSON | no | Provider-specific parameters as a JSON object (e.g. --extra '{"moderation":"low"}') |
If output is omitted, the image is saved to a default path in the working directory.
image_edit
Edit or transform an existing image based on a text prompt (image-to-image). Use for style transfer, background replacement, adding/removing elements, or any modification that requires a reference image.
Basic usage:
tai tool image_edit --image_path /path/to/photo.png --prompt "Change the background to a beach scene" --output edited.png
With URL image:
tai tool image_edit --image_path https://example.com/photo.jpg --prompt "Make it look like a watercolor painting" --output watercolor.png
With specific provider and model:
tai tool image_edit --image_path /path/to/original.png --prompt "Remove the person in the foreground" --provider llm.my-openai --model gpt-image-1 --dimensions 1024x1024 --output result.png
With mask (edit only the masked region):
tai tool image_edit --image_path /path/to/photo
常见问题
它可以读取哪些图片类型?
PNG、JPEG、GIF 和 WebP 文件,可以来自本地文件或网页链接。
它会缩放我的图片吗?
会。图片在发送分析之前会按比例缩放。
我可以就图片提出具体问题吗?
可以。你可以给出提示,使分析更有针对性。
详情
作者的原始描述
Image expert. ALWAYS invoke this skill when you need to read, analyze, describe, or generate images. Use for screenshots, photos, charts, diagrams, AI-generated images, or any visual content.
repo: YaoApp/yao
热度
- GitHub 星标
- 8.3k
- 排名
- #12475
- 许可证
- —
- 更新时间
- 2026/10/19
评论
- …