소스 정보
- 저장소
- DreamLab-AI/agentbox
- 최근 소스 활동
- 2026년 4월 23일 16:31
- 감지된 SKILL.md 언어
- 영어
- 스타
- 19
- 포크
- 0
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
메뉴
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/DreamLab-AI/agentbox --skill product-image-processor명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SKILL.md 표시 중
SOC 직업 분류 기준
| name | product-image-processor |
| description | Download, resize, and remove backgrounds from product images at scale |
| user-invocable | true |
| allowed-tools | ["Read","Write","Bash","Glob","Grep","WebFetch","AskUserQuestion","mcp__google__sheets_values_get","mcp__google__sheets_spreadsheet_get"] |
Download product images from a Google Sheet, normalize sizing, and remove backgrounds. Saves output at each processing stage.
Works with the master Google Sheet — the 33-column schema defined in ../../schema/product-schema.md. Image URLs are in column AC, product names in column C. Read ../../schema/sheet-conventions.md for CRUD patterns with MCP tools.
If no arguments provided, ask the user:
docs.google.com/spreadsheets/d/{ID}/...). This is typically the same master sheet used by Norma Jean.AC in the master schema, or the user can specify)C in the master schema). If not provided, derive names from the image URL/filename.~/Documents/Work-Docs/product-images-YYYY-MM-DD/ as default but let the user pick any path.Use mcp__google__sheets_spreadsheet_get to inspect the sheet, then mcp__google__sheets_values_get to read the image URL column and optional name column.
Build a list of { index, url, name } entries. Skip empty rows.
Create the output directory at the user's chosen path with 3 subfolders:
<output-path>/
├── originals/ # Raw downloads
├── resized/ # Normalized sizing
└── nobg/ # Background removed
If the folder already exists, append a suffix: -2, -3, etc.
Download each image using curl in Bash:
curl -L -o "<output-path>" "<url>"
IMPORTANT: Use curl, NOT WebFetch. WebFetch processes content through an AI model which corrupts binary image data.
Name files as: 001-product-name.png, 002-product-name.png, etc.
001-image.png, 002-image.png, etc.If the downloaded file is not a PNG (check extension or content type), convert it to PNG during the resize step.
Run a Python script to resize all images in originals/ → resized/:
from PIL import Image
import os, sys
input_dir = sys.argv[1] # originals/
output_dir = sys.argv[2] # resized/
max_edge = int(sys.argv[3]) if len(sys.argv) > 3 else 2000
for fname in sorted(os.listdir(input_dir)):
if not fname.lower().endswith(('.png', '.jpg', '.jpeg', '.webp', '.gif', '.bmp', '.tiff')):
continue
try:
img = Image.open(os.path.join(input_dir, fname))
img = img.convert("RGBA")
w, h = img.size
longest = max(w, h)
if longest > max_edge:
scale = max_edge / longest
new_w, new_h = int(w * scale), int(h * scale)
img = img.resize((new_w, new_h), Image.LANCZOS)
out_name = os.path.splitext(fname)[0] + ".png"
img.save(os.path.join(output_dir, out_name), "PNG")
print(f"OK: {fname} → {out_name} ({img.size[0]}x{img.size[1]})")
except Exception as e:
print()
Rules:
Check if rembg is installed. If not, install it:
pip3 install rembg onnxruntime
Then run background removal on all resized images → nobg/:
from rembg import remove
from PIL import Image
import os, sys, io
input_dir = sys.argv[1] # resized/
output_dir = sys.argv[2] # nobg/
for fname in sorted(os.listdir(input_dir)):
if not fname.lower().endswith('.png'):
continue
try:
input_path = os.path.join(input_dir, fname)
with open(input_path, 'rb') as f:
input_data = f.read()
output_data = remove(input_data)
img = Image.open(io.BytesIO(output_data))
img.save(os.path.join(output_dir, fname), "PNG")
print(f"OK: {fname}")
except Exception as e:
print(f"FAIL: {fname} — {e}")
Note: The first run of rembg downloads the u2net model (~170MB). Warn the user this may take a minute.
After processing, print a summary:
## Product Image Processing Complete
📁 Output: ~/Documents/Work-Docs/product-images-YYYY-MM-DD/
| Stage | Success | Failed |
|-------------|---------|--------|
| Downloaded | 12 | 1 |
| Resized | 12 | 0 |
| BG Removed | 12 | 0 |
### Failures
- 003-chair-arm.png: Download failed (404 Not Found)
Include the full path to the output folder so the user can open it.