Skip to main content
skill CX Codex

remove-background — Claude Code skill: cut out image backgrounds

A skill that strips backgrounds from photos through the Pilio API: portraits, product shots, transparent cutouts. Runs from your agent's terminal.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add pilioai/skills --skill remove-background -a claude-code
Open on GitHub

What remove-background does

The skill drives the Pilio CLI, so the official SDK handles the file upload and task creation. One command does the work: pnpm dlx @pilio/cli remove-background --input ./portrait.png. What comes back is a task payload.

If that task is still pending or processing, wait on it with pnpm dlx @pilio/cli task wait <task_id>. A single call won't hand you the finished image.

You need PILIO_API_KEY set in the environment beforehand. Don't paste keys into the chat, and the skill won't ask you to. There's also a web version of the same workflow if you want to eyeball the result first.

What it helps with

  • cut a person out of a photo onto a transparent background
  • strip backgrounds from product shots for a catalog
  • wait for a background removal task to finish
  • batch background removal from the terminal

Example prompts for the agent

  • remove the background from ./portrait.png with Pilio
  • make a transparent background for this product photo
  • run remove-background and wait for the task

How to install remove-background

1Skills CLI (Vercel)

npx skills add pilioai/skills --skill remove-background -a claude-code

2Manually: put the files in place

~/.claude/skills/remove-background/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/remove-background/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about remove-background

How do I install remove-background in Claude?

Run npx skills add pilioai/skills --skill remove-background -a claude-code. The skill lands at ~/.claude/skills/remove-background/SKILL.md.

What does remove-background do?

It removes an image background through the Pilio developer API and returns a task with the result. Works for portraits, products and transparent cutouts.

What do I need before using it?

A PILIO_API_KEY environment variable. You don't paste the key into the conversation.

Source text

SKILL.md · MIT
---
name: remove-background
description: Remove an image background with the Pilio developer API. Use when the user wants transparent-background cutouts, portrait or product background removal, or automated image background cleanup through Pilio.
---

# Remove Background

Use the Pilio CLI so file upload and task creation are handled by the official SDK.

Require `PILIO_API_KEY` in the environment. Do not ask the user to paste API keys into the conversation.

Try the same workflow online first: https://pilio.ai/background-remover

Run:

```bash
pnpm dlx @pilio/cli remove-background --input ./portrait.png
```

The command returns a task payload. If the task is still pending or processing, wait for it:

```bash
pnpm dlx @pilio/cli task wait <task_id>
```

© pilioai · MIT · pilioai/skills

Similar skills

Everything for AI and ML →

From the same set5

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor