imagen
使用 Gemini 生成 AI 图像
直接在 Claude Code 工作流中使用 Google Gemini AI 创建令人惊叹的图像。非常适合前端开发、文档可视化和创意项目,无需离开终端。
تنزيل ZIP المهارة
رفع في Claude
اذهب إلى Settings → Capabilities → Skills → Upload skill
فعّل وابدأ الاستخدام
اختبرها
استخدام "imagen". python scripts/generate_image.py "A futuristic city skyline at sunset"
النتيجة المتوقعة:
Image generated successfully!
Saved to: ./futuristic_city.png
استخدام "imagen". python scripts/generate_image.py --size 2K "Minimalist app icon for music player" "./assets/icons/music.png"
النتيجة المتوقعة:
High resolution image generated!
Saved to: ./assets/icons/music.png
التدقيق الأمني
آمنThis skill is a documentation file (SKILL.md) describing an image generation tool. All static findings are false positives: (1) Markdown code fences were misidentified as Ruby backtick execution, (2) The GitHub source URL is legitimate metadata, (3) Documenting GEMINI_API_KEY as an environment variable is the correct secure practice. No actual security risks identified.
الأنماط المكتشفة
درجة الجودة
ماذا يمكنك بناءه
前端开发者主视觉图
快速为落地页和 Web 应用生成主视觉图和视觉资产,无需外部设计工具。
文档插图
为 README 文件、技术文档和项目 wiki 创建图表和插图。
UI 资产创建
为组件开发和原型设计生成占位符图像、图标和 UI 资��。
جرّب هذه الموجهات
Generate an image of [describe your image concept] and save it to ./generated/image.png
Create a high resolution (2K) image of [describe image] and save it to [path]
Generate a [type: icon/avatar/placeholder] image for a [describe component context] and save it to [desired path]
Create a [style: diagram/illustration/chart] showing [concept to visualize] for technical documentation and save to [path]
أفضل الممارسات
- 运行 skill 之前设置 GEMINI_API_KEY 环境变量
- 使用描述性、详细的提示以获得更好的图像结果
- 指定与项目结构匹配的输出路径
تجنب
- 不要在代码或公共仓库中分享 GEMINI_API_KEY
- 避免生成过大的图像,因为它们可能会超时
- 在没有备用计划的情况下,不要依赖此工具生成关键的生产资产