yao-image
Skill này làm gì
Skill này cho phép agent xem các hình ảnh mà nó không tự đọc được và mô tả chúng. Skill cũng hỗ trợ tạo ảnh mới. Dành cho bất kỳ ai cần giúp hiểu hoặc tạo nội dung hình ảnh.
Khi nào nên dùng
- ✓Khi bạn có ảnh chụp màn hình, ảnh chụp hoặc biểu đồ và muốn có mô tả về nó.
- ✓Khi một hình ảnh chứa thông tin bạn cần dưới dạng chữ.
- ✓Khi bạn muốn tạo một hình ảnh mới từ mô tả bằng văn bản.
Liên kết skill
https://github.com/YaoApp/yao/blob/main/tools/skills/yao-image/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Mô tả những gì có trong ảnh chụp màn hình này và cho tôi biết biểu đồ đang thể hiện điều gì.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent gửi hình ảnh cùng câu hỏi của bạn đến một mô hình có khả năng nhìn, rồi nhận lại mô tả bằng văn bản. Hình ảnh lớn sẽ được thu nhỏ trước. Hỗ trợ các file PNG, JPEG, GIF và WebP.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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
Câu hỏi thường gặp
Có thể đọc những loại ảnh nào?
Các file PNG, JPEG, GIF và WebP, từ file trên máy hoặc liên kết web.
Nó có thu nhỏ ảnh của tôi không?
Có. Ảnh được thu nhỏ nhưng giữ nguyên tỷ lệ trước khi gửi đi phân tích.
Tôi có thể hỏi một câu cụ thể về ảnh không?
Có. Bạn có thể đưa ra một gợi ý để tập trung phân tích.
Chi tiết
Mô tả gốc của tác giả
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
Độ phổ biến
- Sao GitHub
- 8.3k
- Vị trí xếp hạng
- #12475
- Giấy phép
- —
- Cập nhật
- 19/10/2026
Bình luận
- …
Thêm skill từ kho mã này
yao-agent
8.3kGiúp agent của bạn liệt kê các agent trên một host Yao, tra cứu hoặc tải mã agent, triển khai thay đổi và kiểm tra danh sách bộ kết nối mô hình.
yao-audio
8.3kGiúp agent của bạn chuyển giọng nói trong file âm thanh, như bản ghi cuộc họp, thành văn bản và tự nhận diện ngôn ngữ nếu bạn không chọn.
yao-board
8.3kGiúp agent của bạn kiểm tra bảng kanban và trạng thái công việc trên nền tảng Yao, để báo cáo tiến độ dự án thật thay vì đoán mò.
yao-daemon
8.3kGiúp agent của bạn khởi động, kiểm tra, khởi động lại và dừng các dịch vụ chạy nền lâu dài, như máy chủ phát triển, và đọc những gì chúng in ra.
Skill tương tự
gifgrep
394kCho phép agent của bạn tìm thư viện GIF, xem trước kết quả, tải một GIF, và lấy một khung hình tĩnh hoặc bảng ghép nhiều khung hình.
meme-maker
394kCho phép agent của bạn chọn một mẫu meme, thêm chú thích của riêng bạn và tạo meme dưới dạng ảnh SVG hoặc PNG.
ios-icon-gen
280kGiúp agent tạo biểu tượng cho ứng dụng iOS. Dùng biểu tượng của Apple hoặc từ các nguồn khác để tạo đúng định dạng tệp.