bozhoudev/bozhou-skills/image-gen
Claude Code and agent skill by bozhoudev/bozhou-skills
- community
Checking that the SKILL.md file is still in the repository.
AI image generation with OpenAI, Google and DashScope APIs. Supports text-to-image, reference images, aspect ratios, and direct Cloudflare R2 upload. Sequential by default; parallel generation available on request. Use when user asks to generate, create, or draw images.
Install
npx vskill@latest install bozhoudev/bozhou-skills/image-genSKILL.md
Image Generation
Generate images via OpenAI, Google Gemini, or DashScope APIs. R2 upload is the default workflow for persistent article/social images.
Scripts
Usage
Options
| Option | Description | |||
|---|---|---|---|---|
-p, --prompt <text> | Prompt text | |||
--promptfiles <files...> | Read prompt from files | |||
--image <path> | Output path (required) | |||
| `--provider google\ | openai\ | dashscope` | Force provider | |
-m, --model <id> | Model ID | |||
--ar <ratio> | Aspect ratio: 16:9, 1:1, 4:3, 9:16, 2.35:1 | |||
| `--quality normal\ | 2k` | Default: 2k | ||
| `--imageSize 1K\ | 2K\ | 4K` | Google only | |
--ref <files...> | Reference images | |||
--r2 | Upload to R2 after generation, print public URL | |||
--r2-key <name> | R2 object key (default: filename) | |||
--json | JSON output |
Environment Variables
Set in the vault-local .env.r2, ~/.skills/.env, or ~/.baoyu-skills/.env:
| Variable | Description | |
|---|---|---|
GOOGLE_API_KEY / GEMINI_API_KEY | Google API key | |
OPENAI_API_KEY | OpenAI API key | |
DASHSCOPE_API_KEY | DashScope API key | |
R2_ACCESS_KEY_ID | Cloudflare R2 access key | |
R2_SECRET_ACCESS_KEY | Cloudflare R2 secret key | |
R2_ACCOUNT_ID | Cloudflare account ID | |
R2_BUCKET | R2 bucket name | |
R2_PUBLIC_BASE_URL | Public base URL (e.g. https://cdn.example.com) |
Provider Selection
Auto-detects from available API keys. Priority: Google → OpenAI → DashScope. With --ref: Google first (Gemini multimodal), then OpenAI.
R2 Upload
Uses AWS SigV4 signing with built-in Node.js crypto — no external dependencies. With --r2, prints the R2 public URL instead of the local path. For article/social images, always use --r2 and insert the returned URL into Markdown; keep local files only as temporary cache.
Generation Mode
Sequential by default. For parallel batch generation, use multiple background subagents.
Default Workflow in This Vault
For any image that will be referenced by articles, tweets, covers, or long-lived notes:
- Generate the image to a temporary or ignored local path.
- Upload immediately with
--r2orscripts/upload-r2.ts. - Insert the returned
R2_PUBLIC_BASE_URLURL into Markdown. - Do not rely on committed local image files as the canonical asset.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingimage-gen/SKILL.md
Popularity
- Repository stars
- 78
- Repository forks
- 7
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/bozhoudev/bozhou-skills/image-gen)