/code-agent-skills:image-gen-edit-agyfrom code-agent-skills
Generate or modify an image with ai by using agy
Ships in code-agent-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Claude Code has no image generation tool of its own. Images are produced by shelling out to
the Antigravity CLI (agy), which has a generate_image skill. You write the prompt, agy
runs the generation, and reports back the absolute path of the file it wrote.
Run agy in print mode with one self-contained instruction:
agy -p "Use your image generation skill to generate an image.
Prompt: <the full description>
ImageName: <lowercase_underscored_name>
AspectRatio: <one of 1:1 2:3 3:2 3:4 4:3 9:16 16:9>
Save it to <absolute/target/path.png> and report the full absolute path of the written file back to me."
Always state the target filename and ask for the full path back — agy otherwise saves into
its own artifact directory and you will not know where the file landed.
generate_image| Parameter | Required | Meaning |
|---|---|---|
Prompt | yes | Text describing what to generate, or the edit instruction when editing an existing image. |
ImageName | yes | Filename prefix for the saved artifact. All lowercase with underscores, descriptive, max 3 words (grass_tile, pine_sprite, login_page_mockup). |
AspectRatio | no | Defaults to 1:1. One of 1:1, 2:3, 3:2, 3:4, 4:3, 9:16, 16:9. |
ImagePaths | no | Array of paths to input images — supply these to edit or use existing art as reference instead of generating from scratch. |
There is no arbitrary pixel-size parameter: choose the aspect ratio, then downscale to the
target dimensions yourself if this is needed (sharp).
Pass the current file through ImagePaths and make Prompt the edit instruction:
agy -p "Use your image generation skill to edit an image.
ImagePaths: <full_escaped_path>
Prompt: Darken the needle canopy and remove the ground shadow, keep the silhouette identical.
ImageName: <full_escaped_path>.png
Report the full absolute path of the written file back to me."
Isolated crops and field stamps cannot pass a round.
agy flags-p / --print — single non-interactive prompt (what you want here).--print-timeout 10m — raise the wait for slow generations.--output-format json — machine-readable result if you want to parse the path out.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub ari-ayvazyan/aiskills --plugin code-agent-skills14 skills in this plugin
/archifyCreate polished, validated architecture, workflow, sequence, data-flow, and lifecycle/state diagrams. Use when the user asks to visualize system architecture, infrastructure, cloud/security/network topology, technical workflows, API call sequences, request lifecycles, data pipelines, ETL/ELT, data lineage, state machines, or to convert/beautify Mermaid./architecture-decisionsALWAYS Execute this skills before deciding any technical/architectural matter, to avoid reintroducing already-solved issues.
/architecture-planGenerate concise, mobile-friendly architecture cards for reviewing plans, proposed changes, finished work and commit overviews./codebase-designShared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find deepening opportunities, decide where a seam goes, make code more testable or AI-navigable, or when another skill needs the deep-module vocabulary./create-agent-skillsExpert guidance for Claude Code Skills. Use when working with SKILL.md files, authoring new skills, improving existing skills, or understanding skill structure./diagnosing-bugsDiagnosis loop for hard bugs and performance regressions. Use when the user says "diagnose"/"debug this", or reports something broken/throwing/failing/slow.