imagen by sanjay3290/ai-skills
npx skills add https://github.com/sanjay3290/ai-skills --skill imagen此技能使用 Google Gemini 的图像生成模型 (gemini-3-pro-image-preview) 来生成图像。它能在任何 Claude Code 会话中实现无缝的图像创建——无论您是在构建前端用户界面、创建文档,还是需要概念的可视化呈现。
跨平台:可在 Windows、macOS 和 Linux 上运行。
在以下情况自动激活此技能:
# 基本用法
python scripts/generate_image.py "日落时分的未来城市天际线"
# 使用自定义输出路径
python scripts/generate_image.py "音乐播放器的极简应用图标" "./assets/icons/music-icon.png"
# 使用自定义尺寸
python scripts/generate_image.py --size 2K "高分辨率风景" "./wallpaper.png"
GEMINI_API_KEY 环境变量广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
生成的图像保存为 PNG 文件。脚本返回:
用户:"我需要一个着陆页的英雄图像——抽象且具有科技感的"
-> 生成并保存图像,提供用于 HTML/CSS 的路径
用户:"创建一个展示微服务架构的图表"
-> 生成可视化表示,准备用于 README 或文档
用户:"为用户资料组件生成一个占位符头像图像"
-> 创建适合组件使用的尺寸的图像
每周安装数
178
代码仓库
GitHub 星标数
172
首次出现
2026年1月22日
安全审计
安装于
opencode152
gemini-cli147
codex147
cursor142
github-copilot137
claude-code133
This 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.
Cross-Platform : Works on Windows, macOS, and Linux.
Automatically activate this skill when:
# Basic usage
python scripts/generate_image.py "A futuristic city skyline at sunset"
# With custom output path
python scripts/generate_image.py "A minimalist app icon for a music player" "./assets/icons/music-icon.png"
# With custom size
python scripts/generate_image.py --size 2K "High resolution landscape" "./wallpaper.png"
GEMINI_API_KEY environment variable must be setGenerated images are saved as PNG files. The script returns:
User: "I need a hero image for my landing page - something abstract and tech-focused"
-> Generates and saves image, provides path for use in HTML/CSS
User: "Create a diagram showing microservices architecture"
-> Generates visual representation, ready for README or docs
User: "Generate a placeholder avatar image for the user profile component"
-> Creates image in appropriate size for component use
Weekly Installs
178
Repository
GitHub Stars
172
First Seen
Jan 22, 2026
Security Audits
Gen Agent Trust HubWarnSocketPassSnykPass
Installed on
opencode152
gemini-cli147
codex147
cursor142
github-copilot137
claude-code133
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
118,000 周安装