360 Secure SkillHub
360 安全技能中心

Product photo cleanup (morigraph)

该Skill调用morigraph远程MCP清理商品或物品照片:上传PNG/JPEG,去除背景为透明或纯色,按像素裁剪缩放;用户同意付费后可进一步生成生活场景或做风格化处理。需要联网、morigraph账户和可连接远程MCP的宿主。

分类:营销
jovensoh
jovensoh
热度 17.02
最近更新 2026-11-30 22:53:06

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add jovensoh/morigraph-product-photo-cleanup
兼容性
通用兼容
联网要求
需要联网
数据出网
必须出网
Metadata
name
product-photo-cleanup
description
Cleans up product photos for a shop listing or ad: removes the background, puts the product on white or a flat colour, crops and resizes, and optionally places it in a new scene. Use when the user has product or object photos (PNG or JPEG) to tidy or prepare for a marketplace.
license
MIT
compatibility
Needs network access and a host that can connect a remote MCP server (Claude Code, Codex, Cursor and others).
metadata
{"author":"morigraph","mcp-server":"https://morigraph.com/mcp"}

Product photo cleanup

Connect morigraph first

This skill runs on the morigraph MCP server at https://morigraph.com/mcp. If its tools (for example morigraph:background_remove) are not available, connect it, then continue. Tools are written here as morigraph:<tool>; your host may show them under a slightly different prefix.

  • Claude Code: claude mcp add --transport http --scope user morigraph https://morigraph.com/mcp
  • Codex: codex mcp add morigraph --url https://morigraph.com/mcp
  • Cursor: add {"mcpServers":{"morigraph":{"url":"https://morigraph.com/mcp"}}} to ~/.cursor/mcp.json
  • Any other host: add a remote (streamable HTTP) MCP server with that URL. Steps per app: https://morigraph.com/connect/?ref=skills

Only connect it when the user asks for this task or agrees. Never ask the user for a password or token: sign-in happens in their browser.

This needs a free morigraph account, because photos are saved to the user's Files. The first call opens a browser sign-in; if none appears, send the user to https://morigraph.com/connect/?ref=skills

Steps

  1. Get the photo into Files. If it is a local file, upload it with morigraph:files_upload (start, chunks in order, complete). Never invent image bytes: if you cannot read the file, ask the user to upload it in the morigraph dashboard.
  2. Remove the background with morigraph:background_remove: pass a request_key (a stable unique string; letters, digits and _ . : - only) and the source file as its file_id and revision. Leave background out for a transparent PNG, or set a flat colour as #RRGGBB (#FFFFFF for the white most marketplaces want). Photos can be up to 10 MiB and 4096 pixels a side. This step is free and never changes the original.
  3. Poll the returned job with morigraph:jobs_get until it finishes, then show the result.
  4. Crop and resize with morigraph:photo_edit (free). Its operations run in order, in pixels: a crop (x, y, width, height) that keeps the product centred, then a resize to the size the user's shop needs. If they did not say, ask which marketplace, and do not guess its pixel rules; ask or leave the size as is.
  5. Only if the user wants more than cleanup (a lifestyle scene, a restyle, an upscale), use morigraph:image_edit. It costs credits (0.4 to 8 per edit, the tool states the price): tell the user the cost and get a yes before calling it.
  6. Tell the user where the finished files are. Create a public link with morigraph:files_link only when they need to post the image somewhere, and say the link is public.

Rules

  • Keep the product itself unchanged: no altered colours, logos, labels or proportions unless the user asks. A listing photo must show what is sold.
  • Batch work: process one photo fully first, show it, then repeat the approved settings on the rest.
  • Reuse the same request_key on a retry; never resubmit a slow job under a new key.