add: agent-agnostic image generation for non-Codex users#2
Open
nicoecheza wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Makes the two skills work with any agent that can run a Python script, not just Codex. Codex behavior is unchanged — built-in
image_genis still the recommended path on that host.Why
The skills were Codex-only because they required built-in
image_genandview_image. Agents like Claude Code and Cursor have neither. This PR adds a thin CLI fallback so the same skills run unchanged on those hosts.How
scripts/image_gen.py— agent-agnostic image generation CLI.--backendorSPRITE_FORGE_BACKEND; model overridable viaSPRITE_FORGE_MODEL.--reference <path>for image-edit / variation flows.scripts/view_image.py— optional metadata shim for hosts without a built-inview_image.SKILL.mdfiles updated to describe the dual path (built-in tool on Codex,scripts/image_gen.pyelsewhere) and the equivalent reference-handling guidance.requirements-optional.txtso Codex users keep a minimal install.Backwards compatibility
requirements.txtunchanged.image_gen,view_image,$CODEX_HOME/generated_images/...) all still apply on Codex; the new instructions sit alongside them as the non-Codex branch.scripts/generate2dsprite.py,scripts/extract_prop_pack.py, orscripts/compose_layered_preview.py.Testing
scripts/image_gen.py --helpandscripts/view_image.py <path>verified locally.OPENAI_API_KEY.