image-generation
Skill này làm gì
Skill này tạo hình ảnh từ một mô tả có cấu trúc, như nhân vật, cảnh hoặc ảnh sản phẩm. Skill dành cho những ai muốn trợ lý AI tạo một hình ảnh theo ý mình.
Khi nào nên dùng
- ✓Khi người dùng yêu cầu tạo, vẽ hoặc hình dung một bức tranh.
- ✓Khi người dùng muốn một ảnh nhân vật, cảnh hoặc sản phẩm theo một phong cách nhất định.
- ✓Khi người dùng muốn một hình ảnh mới được định hướng bởi một hoặc nhiều ảnh tham chiếu.
Liên kết skill
https://github.com/bytedance/deer-flow/blob/main/skills/public/image-generation/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
“Tạo một hình ảnh quán cà phê ấm cúng lúc hoàng hôn theo phong cách màu nước.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Skill viết một file mô tả có cấu trúc với chủ thể, phong cách và thông tin định dạng. Sau đó nó chạy một script tạo ảnh, có thể dùng ảnh tham chiếu, để tạo bức tranh.
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 Generation Skill
Overview
This skill generates high-quality images using structured prompts and a Python script. The workflow includes creating JSON-formatted prompts and executing image generation with optional reference images.
Core Capabilities
- Create structured JSON prompts for AIGC image generation
- Support multiple reference images for style/composition guidance
- Generate images through automated Python script execution
- Handle various image generation scenarios (character design, scenes, products, etc.)
Workflow
Step 1: Understand Requirements
When a user requests image generation, identify:
- Subject/content: What should be in the image
- Style preferences: Art style, mood, color palette
- Technical specs: Aspect ratio, composition, lighting
- Reference images: Any images to guide generation
- You don't need to check the folder under
/mnt/user-data
Step 2: Create Structured Prompt
Generate a structured JSON file in /mnt/user-data/workspace/ with naming pattern: {descriptive-name}.json
Step 3: Execute Generation
Call the Python script:
python /mnt/skills/public/image-generation/scripts/generate.py \
--prompt-file /mnt/user-data/workspace/prompt-file.json \
--reference-images /path/to/ref1.jpg /path/to/ref2.png \
--output-file /mnt/user-data/outputs/generated-image.jpg
--aspect-ratio 16:9
Parameters:
--prompt-file: Absolute path to JSON prompt file (required)--reference-images: Absolute paths to reference images (optional, space-separated)--output-file: Absolute path to output image file (required)--aspect-ratio: Aspect ratio of the generated image (optional, default: 16:9)
[!NOTE] Do NOT read the python file, just call it with the parameters.
Character Generation Example
User request: "Create a Tokyo street style woman character in 1990s"
Create prompt file: /mnt/user-data/workspace/asian-woman.json
{
"characters": [{
"gender": "female",
"age": "mid-20s",
"ethnicity": "Japanese",
"body_type": "slender, elegant",
"facial_features": "delicate features, expressive eyes, subtle makeup with emphasis on lips, long dark hair partially wet from rain",
"clothing": "stylish trench coat, designer handbag, high heels, contemporary Tokyo street fashion",
"accessories": "minimal jewelry, statement earrings, leather handbag",
"era": "1990s"
}],
"negative_prompt": "blurry face, deformed, low quality, overly sharp digital look, oversaturated colors, artificial lighting, studio setting, posed, selfie angle",
"style": "Leica M11 street photography aesthetic, film-like rendering, natural color palette with slight warmth, bokeh background blur, analog photography feel",
"composition": "medium shot, rule of thirds, subject slightly off-center, environmental context of Tokyo street visible, shallow depth of field isolating subject",
"lighting": "neon lights from signs and storefronts, wet pavement reflections, soft ambient city glow, natural street lighting, rim lighting from background neons",
"color_palette": "muted naturalistic tones, warm skin tones, cool blue and magenta neon accents, desaturated compared to digital photography, film grain texture"
}
Execute generation:
python /mnt/skills/public/image-generation/scripts/generate.py \
--prompt-file /mnt/user-data/workspace/cyberpunk-hacker.json \
--output-file /mnt/user-data/outputs/cyberpunk-hacker-01.jpg \
--aspect-ratio 2:3
With reference images:
{
"characters": [{
"gender": "based on [Image 1]",
"age": "based on [Image 1]",
"ethnicity": "human from [Image 1] adapted to Star Wars universe",
"body_type": "based on [Image 1]",
"facial_features": "matching [Image 1] with slight weathered look from space travel",
"clothing": "Star Wars style outfit - worn leather jacket with utility vest, cargo pants with tactical pouches, scuffed boots, belt with holster",
"accessories": "blaster pistol on hip, comlink device on wrist, goggles pushed up on forehead, satchel with supplies, personal vehicle based on [Image 2]",
"era": "Star Wars universe, post-Empire era"
}],
"prompt": "Character inspired by [Image 1] standing next to a vehicle inspired by [Image 2] on a bustling alien planet street in Star Wars universe aesthetic. Character wearing worn leather jacket with utility vest, cargo pants with tactical pouches, scuffed boots, belt with blaster holster. The vehicle
Câu hỏi thường gặp
Tôi có thể dùng ảnh của mình làm hướng dẫn không?
Có. Skill hỗ trợ một hoặc nhiều ảnh tham chiếu để định hướng phong cách hoặc bố cục.
Tôi có thể chọn những thiết lập nào?
Bạn có thể đặt các chi tiết như tỷ lệ khung hình, ví dụ 16:9.
Ảnh được lưu ở đâu?
Script tạo ảnh ghi kết quả vào file đầu ra mà bạn chỉ định khi chạy.
Chi tiết
Mô tả gốc của tác giả
Use this skill when the user requests to generate, create, imagine, or visualize images including characters, scenes, products, or any visual content. Supports structured prompts and reference images for guided generation.
repo: bytedance/deer-flow
Độ phổ biến
- Sao GitHub
- 85k
- Vị trí xếp hạng
- #1384
- Giấy phép
- MIT
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
engineer-system-change
85kGiúp agent của bạn đánh giá xem một thay đổi phần mềm có thật sự cần thiết trước khi xây dựng, bằng cách kiểm tra vấn đề, người dùng và rủi ro.
academic-paper-review
85kGiúp agent của bạn đánh giá một bài báo khoa học như một người phản biện, gồm phương pháp, điểm mạnh, điểm yếu và các bước tiếp theo.
bootstrap
85kHướng dẫn một cuộc trò chuyện làm quen thân thiện để tạo file SOUL.md cá nhân, xác định đối tác AI của bạn là ai và cách nó hành xử.
chart-visualization
85kBiến số liệu của bạn thành ảnh biểu đồ, chọn từ 26 loại biểu đồ như đường, cột, tròn, bản đồ và phễu.
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.