# Aihubmix Image Gen

> Use when UI Designer needs to generate a product UI draft image from a product spec, design tokens, or layout prompt via the configured CPA or OpenAI-compatible image model.

- Skill: `wyattjy/aihubmix-image-gen` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add wyattjy/aihubmix-image-gen`
- Raw SKILL.md: https://api.skillmd.com/api/skills/wyattjy/aihubmix-image-gen/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: WyattJY (https://skillmd.com/u/wyattjy)
- Updated: 2026-09-21
- Page: https://skillmd.com/skills/wyattjy/aihubmix-image-gen

---


# UI Image Generation
## Claude Code Adaptation

- This copy is prepared for Claude Code personal or project skills.
- Resolve bundled files relative to ${CLAUDE_SKILL_DIR} when Claude Code exposes it; otherwise use the local skill directory.
- Map old agent/tool wording to the closest Claude Code capability by intent.

## Inputs
- `ui_brief.md`, `requirements.md`, or a short product/UI prompt.
- Target platform: web, dashboard, mobile, app, landing, or admin console.
- Constraints: brand, audience, states, density, and forbidden styles.

## Environment
Read credentials only from environment or `.env`:
- `CLAUDE_UI_IMAGE_API_KEY or CODEX_UI_IMAGE_API_KEY`, `CLAUDE_UI_IMAGE_BASE_URL or CODEX_UI_IMAGE_BASE_URL`, `CLAUDE_UI_IMAGE_MODEL or CODEX_UI_IMAGE_MODEL`
- `CPA_IMAGE_API_KEY`, `CPA_IMAGE_BASE_URL`, `CPA_IMAGE_MODEL`
- compatible `OPENAI_API_KEY`, `OPENAI_BASE_URL`, `OPENAI_IMAGE_MODEL`

## Workflow
1. Convert the product spec into one concrete visual prompt.
2. Generate or dry-run one draft image at a time.
3. Save outputs under `tmp/ui-drafts/` or a project-local `ui-drafts/`.
4. Ask Wyatt to approve direction before block-level design.
5. After approval, write `DESIGN_TOKENS.md` and `COMPONENT_SPEC.md`.

## Hard rules
- Never print API keys, tokens, `.env`, cookies, or account files.
- Do not hard-code model names; use `CLAUDE_UI_IMAGE_MODEL`, `CODEX_UI_IMAGE_MODEL`, `CPA_IMAGE_MODEL`, or `OPENAI_IMAGE_MODEL`.
- Image drafts are for UI direction only; final frontend implementation must still follow the G0-G9 gate.
- Do not generate UI that requests or displays company raw data.

