[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-bae8b821-a94f-47de-86ca-696b6bd7809e":3,"$f3G7x-ZBNLS3unNi1sgOD69PGNUC333aagUuhWCzTaA8":42},{"id":4,"title":5,"description":6,"categoryId":7,"moduleId":8,"tags":9,"prompt":10,"icon":11,"source":12,"sourceUrl":13,"authorId":14,"authorName":15,"isPublic":16,"stars":17,"runs":18,"createdAt":19,"updatedAt":19,"module":20,"category":27,"packages":33},"bae8b821-a94f-47de-86ca-696b6bd7809e","imagen","由Google Gemini驱动的AI图像生成技能，实现UI占位符、文档和设计资源的无缝视觉内容创作。","cat_coding_backend","mod_coding","sickn33,coding","---\nname: imagen\ndescription: \"AI image generation skill powered by Google Gemini, enabling seamless visual content creation for UI placeholders, documentation, and design assets.\"\nrisk: safe\nsource: \"https:\u002F\u002Fgithub.com\u002Fsanjay3290\u002Fai-skills\u002Ftree\u002Fmain\u002Fskills\u002Fimagen\"\ndate_added: \"2026-02-27\"\n---\n\n# Imagen - AI Image Generation Skill\n\n## Overview\n\nThis skill generates images using Google Gemini's image generation model (`gemini-3-pro-image-preview`). It enables seamless image creation during any Claude Code session - whether you're building frontend UIs, creating documentation, or need visual representations of concepts.\n\n**Cross-Platform**: Works on Windows, macOS, and Linux.\n\n## When to Use This Skill\n\nAutomatically activate this skill when:\n- User requests image generation (e.g., \"generate an image of...\", \"create a picture...\")\n- Frontend development requires placeholder or actual images\n- Documentation needs illustrations or diagrams\n- Visualizing concepts, architectures, or ideas\n- Creating icons, logos, or UI assets\n- Any task where an AI-generated image would be helpful\n\n## How It Works\n\n1. Takes a text prompt describing the desired image\n2. Calls Google Gemini API with image generation configuration\n3. Saves the generated image to a specified location (defaults to current directory)\n4. Returns the file path for use in your project\n\n## Usage\n\n### Python (Cross-Platform - Recommended)\n\n```bash\n# Basic usage\npython scripts\u002Fgenerate_image.py \"A futuristic city skyline at sunset\"\n\n# With custom output path\npython scripts\u002Fgenerate_image.py \"A minimalist app icon for a music player\" \".\u002Fassets\u002Ficons\u002Fmusic-icon.png\"\n\n# With custom size\npython scripts\u002Fgenerate_image.py --size 2K \"High resolution landscape\" \".\u002Fwallpaper.png\"\n```\n\n## Requirements\n\n- `GEMINI_API_KEY` environment variable must be set\n- Python 3.6+ (uses standard library only, no pip install needed)\n\n## Output\n\nGenerated images are saved as PNG files. The script returns:\n- Success: Path to the generated image\n- Failure: Error message with details\n\n## Examples\n\n### Frontend Development\n```\nUser: \"I need a hero image for my landing page - something abstract and tech-focused\"\n-> Generates and saves image, provides path for use in HTML\u002FCSS\n```\n\n### Documentation\n```\nUser: \"Create a diagram showing microservices architecture\"\n-> Generates visual representation, ready for README or docs\n```\n\n### UI Assets\n```\nUser: \"Generate a placeholder avatar image for the user profile component\"\n-> Creates image in appropriate size for component use\n```\n\n## Limitations\n- Use this skill only when the task clearly matches the scope described above.\n- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.\n- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.\n","","imported","https:\u002F\u002Fgithub.com\u002Fsickn33\u002Fantigravity-awesome-skills","user_system_seed","SkillOPIC",true,122,2056,"2026-05-16 13:23:33",{"id":8,"name":21,"slug":22,"icon":23,"description":24,"sort":25,"createdAt":26},"编程开发","coding","mdi-code-braces","代码生成、调试、审查，提升开发效率",2,"2026-05-16 12:53:40",{"id":7,"name":28,"slug":29,"icon":30,"description":31,"moduleId":8,"sort":25,"skillCount":32,"createdAt":26},"后端开发","backend","mdi-server","API、数据库、服务端架构",296,[34],{"id":35,"skillId":4,"version":36,"fileName":37,"fileSize":38,"filePath":39,"fileHash":40,"manifest":41,"createdAt":19},"b0e2015c-ea1c-4462-9c47-d00364a185f8","1.0.0","imagen.zip",1546,"uploads\u002Fskills\u002Fbae8b821-a94f-47de-86ca-696b6bd7809e\u002Fimagen.zip","8c5bf4f3da010c07acb31824c67947a1e1d67f0dc209a40c2b600ac2acebe43f","[{\"path\":\"SKILL.md\",\"isDirectory\":false,\"size\":2857}]",{"code":43,"message":44,"data":45},200,"success",{"items":46,"stats":47,"page":50},[],{"averageRating":48,"totalRatings":48,"ratingCounts":49},0,[48,48,48,48,48],{"limit":51,"offset":48,"hasMore":52,"nextOffset":51,"ratedOnly":16},15,false]