pixr CLI
БесплатноБез исполняемых скриптовНе проверенDrives the local pixr image CLI (Gemini, OpenAI-compatible, OpenRouter, fal) for generation, editing, variations, model selection, saved defaults…
от dishant0406327 установок в других каталогахОб этом скилле
Pixr CLI
When To Use
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:
- "generate an image with pixr"
- "edit an image with pixr"
- "create variations with pixr"
- "set the pixr model"
- "save images to a default folder"
- "use the refs from ~/.pixr/assets"
- "init a pixr profile"
- "make a profile use a different model or save dir"
- "show the pixr profile layout"
- "show what pixr supports"
- "fix or inspect pixr config"
Do not use this skill for general image-API design discussions that are not tied to this CLI.
Providers And Models (Never Assume Either)
pixr works with gemini (default), openai (any OpenAI-compatible API), openrouter, and fal. There is no built-in model and no hardcoded capability list: the user chooses the provider and model for each task, and everything about a model comes live from the provider.
- Pick the provider with
--provider,--base-url, and--api-key-env <ENV_VAR_NAME>(or a profile /commands.<name>in config). Checkpixr config --jsonfor what is resolved and whether a key is loaded. - Find models:
pixr models --provider <p> --search "<text>" [--category image-to-image] --json. - Check what a model supports before using it:
pixr models --info <model> --provider <p>(parameters, input image limit, native mask field). Gemini and OpenAI-compatible APIs publish nothing; then requests are sent as asked. - Pass provider parameters with
--param name=value(JSON values;@file.pngbecomes an image data URL). Do not invent parameter names; use the ones--infolists. - Never choose a model for the user because a task "needs" one (for example background removal or upscaling). Search the catalog, show the options, and use the one the user picks.
Execution Mode
Prefer the installed binary when available:
pixr
If 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>
Core Workflow
- Start by checking the exact command surface instead of assuming flags.
Use
pixr helpfor global help orpixr <command> --helpfor command help. - If the task is generation, inspect saved defaults first when they matter.
Run
pixr config --json. - If the task depends on profile-specific defaults, inspect or scaffold them first:
pixr profile listpixr profile show <name>pixr profile init <name>pixr config --profile <name> --json
- If the task depends on a saved model or output directory, prefer the dedicated commands over editing config by hand:
pixr model ...pixr save-dir ...
- If the task depends on reusable prompts or style, use the home-directory files:
~/.pixr/INSTRUCTION.md~/.pixr/STYLE.md~/.pixr/prompts/<command>.md~/.nano-image/STYLE.md
- If the task uses default reference images, inspect
~/.pixr/assetsor~/.pixr/profiles/<name>/assetsand verify withpixr refs --json. Remember that pixr keeps only the latest three default asset images by modified time. - After changing behavior, validate with one concrete CLI command and capture the resulting output path or config state.
Image Workflows
For generation details and command recipes, read references/command-reference.md.
Key rules:
- Use
generateorgenfor prompt-only creation. - Use
editfor text-guided changes to an existing image. - Use
varyfor one or more variations of an existing image. - Use
edit <image> --mask <mask.png>to change only part of an image (white = change, black = keep, same size as the input). Make masks withpixr mask <image> --rect x,y,w,h(or--ellipse). Outpaint withpixr extend <image> --pad ..., which also writes the mask of the new area. editworks with any image-to-image model; the prompt is optional for models that take none.- Local tools that need no provider or key:
pixr info,resize,crop,extend,mask,grid(gridputs several candidates in one sheet to compare). - For automation:
--json,--no-stdin, and errors arrive as JSON on stderr with exit code 1 (2 for usage errors). -wplus-hstretches an image of a different shape (pixr warns); use one of them to keep the shape.- Respect saved defaults from
~/.pixr/config.json. - If the user passes
--save-toor--output, that overrides the saved default output directory. - Width-only or height-only requests preserve aspect ratio during local resize.
- Width plus height forces the final image to the exact requested dimensions.
- Format defaults to
png;jpg,jpeg, andwebpare supported through local conversion.
Generate Workflow (Simple and Direct)
When generating from scratch:
- Write one clear prompt for the full scene.
- Run
pixr generate "<prompt>"(orpixr gen "<prompt>"). - Check the output image.
- If changes are needed, do not keep str
Установить pixr CLI в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл pixr CLI?
Drives the local pixr image CLI (Gemini, OpenAI-compatible, OpenRouter, fal) 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.
Как установить скилл pixr CLI?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл pixr CLI запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic