JimLiu/baoyu-skills / skills/baoyu-image-gen
baoyu-image-gen
VerifiedAI image generation with OpenAI GPT Image 2.5, Azure OpenAI, Google, OpenRouter, DashScope, Z.AI GLM-Image, MiniMax, Jimeng, Seedream, Replicate and Agnes APIs. Supports text-to-image, reference images, aspect ratios, and batch generation from saved prompt files. Sequential by default; use batch parallel generation when the user already has multiple prompts or wants stable multi-image throughput. Use when user asks to generate, create, or draw images.
references/codex-oauth-vs-openai-api-key.md
View on GitHub# Codex OAuth vs OpenAI API key for baoyu-image-gen
`baoyu-image-gen --provider openai` uses the standard OpenAI Images API (`/images/generations`, `/images/edits`) and requires `OPENAI_API_KEY`.
Codex/ChatGPT image generation is driven by Codex OAuth and the Codex runtime's `image_gen` capability, not the public Images API key path. A Codex OAuth token is not a drop-in `OPENAI_API_KEY`, and pointing `OPENAI_BASE_URL` at a Codex backend won't make the `openai` provider work — auth, route, and payload shape differ.
## What to use instead
- Inside Codex with the native `imagegen` skill/tool: use it directly.
- Outside Codex with `codex` CLI installed and logged in: `baoyu-image-gen --provider codex-cli` (preferred). It spawns the bundled `scripts/codex-imagegen/main.ts` and gets baoyu-image-gen's standard CLI + batch flow with the wrapper's retry/cache/log machinery. Standalone callers can run the same code at `packages/baoyu-codex-imagegen/src/main.ts`. Both invoke `codex exec` and the Codex `image_gen` tool; no `OPENAI_API_KEY`.
- Inside Hermes with a native `image_generate` tool: runtime-native fallback. State whether reference images were passed directly or only reconstructed from extracted traits.
- Do not modify the existing `openai` provider to add Codex OAuth; `codex-cli` is the dedicated provider.
For identity-preserving reference prompts, see "Reference-Image Identity Preservation" in SKILL.md.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| writing-skillsobra/superpowersUse when creating new skills, editing existing skills, or verifying skills work before deployment | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| xlsxanthropics/skillsUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .xltx, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path — even casually (like "the xlsx in my downloads") — and wants something done to it or produced from it. Also trigger for cleaning or restructuring messy tabular data files (malformed rows, misplaced headers, junk data) into proper spreadsheets. The deliverable must be a spreadsheet file. Do NOT trigger when the primary deliverable is a Word document, HTML report, standalone Python script, database pipeline, or Google Sheets API integration, even if tabular data is involved. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| shipping-and-launchaddyosmani/agent-skillsPrepares production launches. Use when preparing to deploy to production, or when asking what needs to be in place before shipping. Use when you need a pre-launch checklist, when setting up monitoring, when planning a staged rollout, or when you need a rollback strategy. | Stars: 119k | Updated | Claude CodeCodex | Verified | Install |
| childhoodthedotmack/claude-memBabysit a shipped release after merge, publication, or deployment. Verify published packages, production behavior, installed plugins, and late CI or user reports until the observation window is clean; use babysit for PR readiness before release. | Stars: 118k | Updated | Claude CodeCodex | Verified | Install |