Skip to content
Last updated

Agent Skills for coding agents

Bria publishes a set of agent skills: instruction files and helper scripts that teach a coding agent how to call the Bria API well. Once installed, you ask your agent in plain language ("remove the background from these five product photos and place them in a kitchen scene") and it plans the calls, runs them against the REST API with your key, and saves the results.

Skills are the right fit when your agent works in a shell or IDE and you want reproducible scripts alongside your code. If your client speaks MCP and you want Bria available as tools with no scripts involved, use the MCP server instead. Both use the same API and the same account.

Works with: Claude Code, Cursor, Cline, Codex and every agent supported by skills.sh.

Install

Claude Code (plugin marketplace)

/plugin marketplace add Bria-AI/bria-skill
/plugin install bria-ai@bria-skills

The marketplace also bundles remove-background, vgl and image-utils as separate plugins, for example /plugin install remove-background@bria-skills.

Any other agent

npx skills add bria-ai/bria-skill

The skills CLI installs into the skill directory of the agent you pick. For Cursor, that is ~/.cursor/skills/; each skill is a folder containing a SKILL.md file, so you can also copy the skills/ folder from the repository by hand.

npm installer

npx bria-skills

Copies the skills into ~/.claude/skills/bria-skills/ for Claude Code. Run npx bria-skills uninstall to remove them.

Set your API key

Create a key in the Bria Console and export it. The skills read BRIA_API_KEY (the SDK and MCP server read BRIA_API_TOKEN; set both if you use more than one integration):

export BRIA_API_KEY="<your-bria-api-key>"

If the key is missing, the skill walks you through setup the first time you use it.

What is included

SkillWhat it covers
bria-aiThe core skill: text-to-image with FIBO, instruction-based editing, object add/replace/erase, masked edits, background removal (plain or guided by a prompt) and replacement, relight, restyle, reseason, expansion, upscaling, product cutouts, packshots, lifestyle shots, product holding and virtual try-on, and a batch product-catalog pipeline with marketplace presets.
remove-backgroundA focused skill for transparent PNGs and cutouts (RMBG 2.0). The fastest path when background removal is all you need. Name what to keep or drop ("keep the mat", "only the chair") and it runs Guided Remove Background instead of the plain cut.
vglWriting VGL structured prompts for deterministic, reproducible generation: objects, lighting, camera, composition and style as JSON.
image-utilsClassic manipulation with Pillow (resize, crop, composite, watermark, format conversion) for post-processing results. Requires pip install Pillow requests.

What you can ask for

CapabilityControlExample
Generate images from textPrompt, aspect ratio, VGL JSON"A modern office with natural lighting, 16:9"
Edit specific objectsAdd, replace or remove by name"Replace the red mug with a blue one"
Edit by instructionWhole image, natural language"Make it golden hour"
Edit masked regionsPixel-level, only where you paintInpaint the sky and nothing else
Remove backgroundsAutomatic transparent PNGsOne call, no manual masking
Keep or drop part of a cutoutPlain words on top of the default cut, original pixels kept"Remove the background but keep the mat and the plant"
Control lighting, style or seasonIndependently of contentOil painting, winter snow, spotlight
Expand imagesDirectional outpaintingSquare to 16:9
Product photographyScene control"Kitchen countertop, morning light"
Put a product in someone's handsPerson photo plus 1-3 product photos, no prompt needed"Have her hold this can, logo facing the camera"
Put garments on a personPerson photo plus 1-3 garment photos, no prompt needed"Dress him in the navy blazer and grey trousers"
Upscale2x or 4x, detail-preservingPrint-ready assets
PipelinesChain stepsGenerate, remove background, lifestyle shot

Example prompts

  • Building a website: "Generate a hero image for a SaaS landing page, 16:9, modern and clean."
  • E-commerce catalog: "Turn the photos in ./raw/ into cutouts, packshots and an Amazon-ready listing set."
  • Presentations: "Create a slide visual showing data analytics, blue gradient, corporate style."

Reference