remove-bg
Remove background de imagens usando rembg (IA). Use esta skill sempre que o usuário pedir para remover fundo/background de imagem, recortar sujeito, criar PNG com transparência, isolar sujeito do fundo, ou mencionar 'rembg'. Também ativa quando o usuário referencia uma imagem e quer extrair o sujeito ou tornar o fundo transparente. Inclui setup automático em virtualenv isolado.
What this skill does
# Remove Background de Imagem
Remove o fundo de imagens usando `rembg` (modelo U²-Net), instalado em virtualenv isolado em `~/venvs/rembg/`.
## Setup
O rembg fica em `~/venvs/rembg/` para não poluir o sistema. Na primeira vez, o setup precisa ser executado.
### Verificar se já está instalado
```bash
test -f ~/venvs/rembg/bin/rembg && ~/venvs/rembg/bin/rembg --version || echo "PRECISA_INSTALAR"
```
### Instalar (se necessário)
```bash
bash ${CLAUDE_PLUGIN_ROOT}/skills/remove-bg/scripts/setup.sh
```
Na primeira execução do rembg, o modelo U²-Net (~170MB) é baixado automaticamente para `~/.u2net/`. Avisar o usuário sobre esse download.
## Uso
O script wrapper fica em `${CLAUDE_PLUGIN_ROOT}/skills/remove-bg/scripts/remove_bg.py`.
### Imagem única (saída automática — padrão)
Sem argumento de saída, renomeia a original para `_original` e salva a imagem sem fundo com o nome original:
```bash
# foto.png → foto_original.png (com fundo) + foto.png (sem fundo)
~/venvs/rembg/bin/python ${CLAUDE_PLUGIN_ROOT}/skills/remove-bg/scripts/remove_bg.py foto.png
```
### Com saída explícita
```bash
~/venvs/rembg/bin/python ${CLAUDE_PLUGIN_ROOT}/skills/remove-bg/scripts/remove_bg.py entrada.png saida.png
```
### Com modelo para pessoas
```bash
~/venvs/rembg/bin/python ${CLAUDE_PLUGIN_ROOT}/skills/remove-bg/scripts/remove_bg.py retrato.jpg -m u2net_human_seg
```
### Com alpha matting (bordas mais suaves)
```bash
~/venvs/rembg/bin/python ${CLAUDE_PLUGIN_ROOT}/skills/remove-bg/scripts/remove_bg.py foto.png -a -ae 10 -ab 10
```
### Batch (pasta inteira)
```bash
# Com pasta de saída separada
~/venvs/rembg/bin/python ${CLAUDE_PLUGIN_ROOT}/skills/remove-bg/scripts/remove_bg.py pasta_entrada/ pasta_saida/
# In-place (renomeia originais para _original, salva limpas no nome original)
~/venvs/rembg/bin/python ${CLAUDE_PLUGIN_ROOT}/skills/remove-bg/scripts/remove_bg.py pasta/
```
## Opções
| Flag | Descrição |
|------|-----------|
| `-m <modelo>` | Escolher modelo (ver tabela abaixo) |
| `-a` | Ativar alpha matting (bordas mais suaves) |
| `-ae <N>` | Erosão do alpha matting (padrão: 10) |
| `-ab <N>` | Blur do alpha matting (padrão: 10) |
## Modelos disponíveis
| Modelo | Melhor para |
|--------|-------------|
| `u2net` (padrão) | Uso geral |
| `u2net_human_seg` | Pessoas e retratos |
| `isnet-general-use` | Objetos variados |
| `silueta` | Leve e rápido |
## Fluxo de trabalho
1. Verificar se `~/venvs/rembg/bin/rembg` existe
2. Se não existir, rodar o script de setup
3. Identificar arquivo(s) de entrada do usuário
4. Escolher modelo adequado (pessoas → `u2net_human_seg`, geral → `u2net`)
5. Executar o script wrapper
6. Confirmar resultado ao usuário
## Notas
- Saída sempre em PNG para suportar transparência
- Se a entrada for JPG/JPEG, a saída será `.png`
- Sugerir `u2net_human_seg` quando a imagem contém pessoas
- Para bordas mais suaves (cabelo, pelos), sugerir alpha matting (`-a`)
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.