Features
baoyu-image-gen: newcodex-cliprovider that wraps thecodex-imagegenbackend so the Codeximage_gentool is reachable through the standard--provider/ batch / EXTEND.md flow. Uses the user's Codex subscription — noOPENAI_API_KEYrequired. Adds env varsBAOYU_CODEX_IMAGEGEN_{BIN,CACHE_DIR,TIMEOUT_MS,RETRIES,LOG_FILE}and resolves hyphenated provider names forBAOYU_IMAGE_GEN_<PROVIDER>_*overrides (e.g.,BAOYU_IMAGE_GEN_CODEX_CLI_CONCURRENCY).codex-cliis never auto-selected — pin via--provider codex-cliordefault_provider: codex-cliin EXTEND.md
Refactor
codex-imagegen: extracted fromscripts/codex-imagegen/+scripts/codex-imagegen.shto its own workspace package atpackages/baoyu-codex-imagegen/. The bash shim is gone;src/main.tsnow carries a#!/usr/bin/env bunshebang and is the sole entrypoint (bun packages/baoyu-codex-imagegen/src/main.ts …or, without bun onPATH,npx -y bun …).scripts/sync-codex-imagegen.shkeepsskills/baoyu-image-gen/scripts/codex-imagegen/in sync for skill self-containment
Documentation
baoyu-cover-image: replace the long inlinescripts/codex-imagegen.shinvocation block inSKILL.mdwith a pointer toreferences/codex-imagegen.md, documenting the preferredbaoyu-image-gen --provider codex-clipath and keeping the direct-wrapper fallbackbaoyu-article-illustrator,baoyu-comic,baoyu-infographic,baoyu-slide-deck,baoyu-xhs-images: add aCodex via codex execbranch to each skill's backend-selection ladder and ship a per-skillreferences/codex-imagegen.mdwith the invocation contract (preferred path, fallback, stdout schema, batch semantics)docs/codex-imagegen-backend.mdandCLAUDE.md: update path layout and invocation examples to reflect the new workspace package location