Drives the local pixr Gemini image CLI for generation, editing, variations, model selection, saved defaults, profile-based defaults, reference-image workflows, and output sizing or format conversion. Use when the user wants to generate or edit images with pixr, inspect config, refs, or profiles, set the default model or save directory, manage ~/.pixr files, or get command-specific help for this CLI.
Use this skill when the task is specifically about the local pixr CLI in this repository or its home-directory defaults under ~/.pixr.
Typical triggers:
Do not use this skill for general Gemini API design discussions that are not tied to this CLI.
Prefer the installed binary when available:
pixrIf you are working inside this repo and do not want to depend on a global link, use:
npm run dev -- <command>npm run pixr -- <command>pixr help for global help or pixr <command> --help for command help.pixr config --json.pixr profile listpixr profile show <name>pixr profile init <name>pixr config --profile <name> --jsonpixr model ...pixr save-dir ...~/.pixr/INSTRUCTION.md~/.pixr/STYLE.md~/.pixr/prompts/<command>.md~/.nano-image/STYLE.md~/.pixr/assets or ~/.pixr/profiles/<name>/assets and verify with pixr refs --json.
Remember that pixr keeps only the latest three default asset images by modified time.For generation details and command recipes, read references/command-reference.md.
Key rules:
generate or gen for prompt-only creation.edit for text-guided changes to an existing image.vary for one or more Gemini-generated variations of an existing image.~/.pixr/config.json.--save-to or --output, that overrides the saved default output directory.png; jpg, jpeg, and webp are supported through local conversion.When generating from scratch:
pixr generate "<prompt>" (or pixr gen "<prompt>").pixr edit passes for controlled refinements.For edits, use a Photoshop-style layer mindset.
Mandatory rules:
Recommended layer order (smallest changes first):
Per-layer loop:
pixr edit command focused only on that micro-goal.Example iterative sequence:
pixr edit --input in.png --prompt "Remove small background clutter only; keep subject unchanged."pixr edit --input step1.png --prompt "Adjust face proportions slightly; keep lighting and colors unchanged."pixr edit --input step2.png --prompt "Add warm rim light on subject; do not alter composition."Prefer precise constraints in edit prompts:
For persistent settings and file layout, read references/defaults-and-files.md.
Prefer command-driven config changes:
pixr model <name>pixr modelspixr save-dir --set "<path>"pixr save-dir --clear-save-dirpixr profile init <name> --model ... --save-dir ...pixr profile init <name>Avoid editing ~/.pixr/config.json directly unless the user explicitly asks for a manual file edit.
Read references/troubleshooting.md when:
After making changes or guiding usage:
--json when you need machine-readable confirmation