# xianyu110/ecommerce-image-skills architecture

> Architecture diagram of the GitHub repository xianyu110/ecommerce-image-skills, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-20). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/xianyu110/ecommerce-image-skills
- Repository: https://github.com/xianyu110/ecommerce-image-skills

## Overview

This repository is a collection of 12 standalone ecommerce-image Agent Skills, not a hosted application. An agent receives a product photo and a platform-specific request, follows a skill’s identity-preservation and sizing guidance, and produces a platform-ready image. Skills may use an agent’s built-in image tool, a bundled GPT Image client, or a generated online-run link. The README documents these alternatives and the feature set; sampled source confirms API generation and batch editing, but most skill instructions were not sampled, so internal skill-to-script links are not asserted.

Main entry points: [`skills/amazon-white-background/SKILL.md`](https://github.com/xianyu110/ecommerce-image-skills/blob/main/skills/amazon-white-background/SKILL.md) (White main image), [`skills/amazon-a-plus/SKILL.md`](https://github.com/xianyu110/ecommerce-image-skills/blob/main/skills/amazon-a-plus/SKILL.md) (A+ modules), [`skills/multi-angle-set/SKILL.md`](https://github.com/xianyu110/ecommerce-image-skills/blob/main/skills/multi-angle-set/SKILL.md) (Multi-angle set), [`skills/taobao-detail-long-image/SKILL.md`](https://github.com/xianyu110/ecommerce-image-skills/blob/main/skills/taobao-detail-long-image/SKILL.md) (Taobao long image)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_amazon["Amazon assets"]
  node_white["White main image<br/>[SKILL.md]"]
  node_aplus["A+ modules<br/>[SKILL.md]"]
  node_listing["Listing suite<br/>[SKILL.md]"]
end

subgraph group_catalog["Catalog creatives"]
  node_lifestyle["Lifestyle scene<br/>[SKILL.md]"]
  node_infographic["Selling points<br/>[SKILL.md]"]
  node_tryon["Model try-on<br/>[SKILL.md]"]
  node_multiangle["Multi-angle set<br/>[SKILL.md]"]
  node_batch["Batch background swap<br/>[SKILL.md]"]
end

subgraph group_commerce["Commerce formats"]
  node_sizechart["Size chart<br/>[SKILL.md]"]
  node_banner["Sale banner<br/>[SKILL.md]"]
  node_taobao["Taobao long image<br/>[SKILL.md]"]
  node_xhs["Xiaohongshu cover<br/>[SKILL.md]"]
end

subgraph group_runtime["Generation runtime"]
  node_api_gen["Image API client<br/>[generate.py]"]
  node_batch_runner["Batch editor<br/>[batch_edit.py]"]
  node_image_api{{"OpenAI-compatible API"}}
  node_online{{"Online image runner"}}
  node_main_check["Main-image check"]
  node_module_crop["A+ module crop<br/>[crop_to_modules.py]"]
  node_grid["Contact sheet<br/>[make_grid.py]"]
  node_long_stitch["Long-image stitch"]
end

node_agent(("Agent user"))
node_product["Product photo"]

node_agent -->|"requests image"| node_white
node_agent -->|"requests image"| node_aplus
node_agent -->|"requests set"| node_listing
node_agent -->|"requests image"| node_lifestyle
node_agent -->|"requests image"| node_infographic
node_agent -->|"requests image"| node_tryon
node_agent -->|"requests set"| node_multiangle
node_agent -->|"requests edits"| node_batch
node_agent -->|"requests image"| node_sizechart
node_agent -->|"requests image"| node_banner
node_agent -->|"requests image"| node_taobao
node_agent -->|"requests image"| node_xhs
node_product -->|"provides input"| node_white
node_product -->|"provides input"| node_aplus
node_product -->|"provides input"| node_listing
node_product -->|"provides input"| node_lifestyle
node_product -->|"provides input"| node_infographic
node_product -->|"provides input"| node_tryon
node_product -->|"provides input"| node_multiangle
node_product -->|"provides input"| node_batch
node_product -->|"provides input"| node_sizechart
node_product -->|"provides input"| node_banner
node_product -->|"provides input"| node_taobao
node_product -->|"provides input"| node_xhs
node_white -->|"checked by"| node_main_check
node_aplus -->|"cropped by"| node_module_crop
node_multiangle -->|"assembled with"| node_grid
node_taobao -->|"stitched by"| node_long_stitch
node_batch_runner -->|"calls"| node_api_gen
node_api_gen -->|"sends generation request"| node_image_api
node_agent -.->|"runs optionally"| node_api_gen
node_agent -->|"uses fallback"| node_online
node_batch_runner -->|"reads image files"| node_product

click node_white "https://github.com/xianyu110/ecommerce-image-skills/blob/main/skills/amazon-white-background/SKILL.md"
click node_aplus "https://github.com/xianyu110/ecommerce-image-skills/blob/main/skills/amazon-a-plus/SKILL.md"
click node_listing "https://github.com/xianyu110/ecommerce-image-skills/blob/main/skills/ecommerce-listing-suite/SKILL.md"
click node_lifestyle "https://github.com/xianyu110/ecommerce-image-skills/blob/main/skills/lifestyle-scene/SKILL.md"
click node_infographic "https://github.com/xianyu110/ecommerce-image-skills/blob/main/skills/selling-point-infographic/SKILL.md"
click node_tryon "https://github.com/xianyu110/ecommerce-image-skills/blob/main/skills/model-try-on/SKILL.md"
click node_multiangle "https://github.com/xianyu110/ecommerce-image-skills/blob/main/skills/multi-angle-set/SKILL.md"
click node_batch "https://github.com/xianyu110/ecommerce-image-skills/blob/main/skills/batch-background-swap/SKILL.md"
click node_sizechart "https://github.com/xianyu110/ecommerce-image-skills/blob/main/skills/size-chart/SKILL.md"
click node_banner "https://github.com/xianyu110/ecommerce-image-skills/blob/main/skills/sale-banner/SKILL.md"
click node_taobao "https://github.com/xianyu110/ecommerce-image-skills/blob/main/skills/taobao-detail-long-image/SKILL.md"
click node_xhs "https://github.com/xianyu110/ecommerce-image-skills/blob/main/skills/xiaohongshu-cover/SKILL.md"
click node_api_gen "https://github.com/xianyu110/ecommerce-image-skills/blob/main/scripts/generate.py"
click node_batch_runner "https://github.com/xianyu110/ecommerce-image-skills/blob/main/scripts/batch_edit.py"
click node_main_check "https://github.com/xianyu110/ecommerce-image-skills/blob/main/scripts/check_main_image.py"
click node_module_crop "https://github.com/xianyu110/ecommerce-image-skills/blob/main/scripts/crop_to_modules.py"
click node_grid "https://github.com/xianyu110/ecommerce-image-skills/blob/main/scripts/make_grid.py"
click node_long_stitch "https://github.com/xianyu110/ecommerce-image-skills/blob/main/scripts/stitch_long_image.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_white,node_aplus,node_listing,node_agent toneBlue
class node_lifestyle,node_infographic,node_tryon,node_multiangle,node_batch toneAmber
class node_sizechart,node_banner,node_taobao,node_xhs toneMint
class node_api_gen,node_batch_runner,node_image_api,node_online,node_main_check,node_module_crop,node_grid,node_long_stitch toneRose
class node_product toneIndigo
```

## Components

### Amazon assets

- [White main image](https://github.com/xianyu110/ecommerce-image-skills/blob/main/skills/amazon-white-background/SKILL.md): `skills/amazon-white-background/SKILL.md`
- [A+ modules](https://github.com/xianyu110/ecommerce-image-skills/blob/main/skills/amazon-a-plus/SKILL.md): `skills/amazon-a-plus/SKILL.md`
- [Listing suite](https://github.com/xianyu110/ecommerce-image-skills/blob/main/skills/ecommerce-listing-suite/SKILL.md): `skills/ecommerce-listing-suite/SKILL.md`

### Catalog creatives

- [Lifestyle scene](https://github.com/xianyu110/ecommerce-image-skills/blob/main/skills/lifestyle-scene/SKILL.md): `skills/lifestyle-scene/SKILL.md`
- [Selling points](https://github.com/xianyu110/ecommerce-image-skills/blob/main/skills/selling-point-infographic/SKILL.md): `skills/selling-point-infographic/SKILL.md`
- [Model try-on](https://github.com/xianyu110/ecommerce-image-skills/blob/main/skills/model-try-on/SKILL.md): `skills/model-try-on/SKILL.md`
- [Multi-angle set](https://github.com/xianyu110/ecommerce-image-skills/blob/main/skills/multi-angle-set/SKILL.md): `skills/multi-angle-set/SKILL.md`
- [Batch background swap](https://github.com/xianyu110/ecommerce-image-skills/blob/main/skills/batch-background-swap/SKILL.md): `skills/batch-background-swap/SKILL.md`

### Commerce formats

- [Size chart](https://github.com/xianyu110/ecommerce-image-skills/blob/main/skills/size-chart/SKILL.md): `skills/size-chart/SKILL.md`
- [Sale banner](https://github.com/xianyu110/ecommerce-image-skills/blob/main/skills/sale-banner/SKILL.md): `skills/sale-banner/SKILL.md`
- [Taobao long image](https://github.com/xianyu110/ecommerce-image-skills/blob/main/skills/taobao-detail-long-image/SKILL.md): `skills/taobao-detail-long-image/SKILL.md`
- [Xiaohongshu cover](https://github.com/xianyu110/ecommerce-image-skills/blob/main/skills/xiaohongshu-cover/SKILL.md): `skills/xiaohongshu-cover/SKILL.md`

### Generation runtime

- [Image API client](https://github.com/xianyu110/ecommerce-image-skills/blob/main/scripts/generate.py): `scripts/generate.py`
- [Batch editor](https://github.com/xianyu110/ecommerce-image-skills/blob/main/scripts/batch_edit.py): `scripts/batch_edit.py`
- **OpenAI-compatible API**
- **Online image runner**
- [Main-image check](https://github.com/xianyu110/ecommerce-image-skills/blob/main/scripts/check_main_image.py): `scripts/check_main_image.py`
- [A+ module crop](https://github.com/xianyu110/ecommerce-image-skills/blob/main/scripts/crop_to_modules.py): `scripts/crop_to_modules.py`
- [Contact sheet](https://github.com/xianyu110/ecommerce-image-skills/blob/main/scripts/make_grid.py): `scripts/make_grid.py`
- [Long-image stitch](https://github.com/xianyu110/ecommerce-image-skills/blob/main/scripts/stitch_long_image.py): `scripts/stitch_long_image.py`

### Other components

- **Agent user**
- **Product photo**

## Connections

- Agent user → White main image: requests image (evidence: `README.md`)
- Agent user → A+ modules: requests image (evidence: `README.md`)
- Agent user → Listing suite: requests set (evidence: `README.md`)
- Agent user → Lifestyle scene: requests image (evidence: `README.md`)
- Agent user → Selling points: requests image (evidence: `README.md`)
- Agent user → Model try-on: requests image (evidence: `README.md`)
- Agent user → Multi-angle set: requests set (evidence: `README.md`)
- Agent user → Batch background swap: requests edits (evidence: `README.md`)
- Agent user → Size chart: requests image (evidence: `README.md`)
- Agent user → Sale banner: requests image (evidence: `README.md`)
- Agent user → Taobao long image: requests image (evidence: `README.md`)
- Agent user → Xiaohongshu cover: requests image (evidence: `README.md`)
- Product photo → White main image: provides input (evidence: `README.md`)
- Product photo → A+ modules: provides input (evidence: `README.md`)
- Product photo → Listing suite: provides input (evidence: `README.md`)
- Product photo → Lifestyle scene: provides input (evidence: `README.md`)
- Product photo → Selling points: provides input (evidence: `README.md`)
- Product photo → Model try-on: provides input (evidence: `README.md`)
- Product photo → Multi-angle set: provides input (evidence: `README.md`)
- Product photo → Batch background swap: provides input (evidence: `README.md`)
- Product photo → Size chart: provides input (evidence: `README.md`)
- Product photo → Sale banner: provides input (evidence: `README.md`)
- Product photo → Taobao long image: provides input (evidence: `README.md`)
- Product photo → Xiaohongshu cover: provides input (evidence: `README.md`)
- White main image → Main-image check: checked by (evidence: `README.md`)
- A+ modules → A+ module crop: cropped by (evidence: `README.md`)
- Multi-angle set → Contact sheet: assembled with (evidence: `README.md`)
- Taobao long image → Long-image stitch: stitched by (evidence: `README.md`)
- Batch editor → Image API client: calls (evidence: `scripts/batch_edit.py`)
- Image API client → OpenAI-compatible API: sends generation request (evidence: `scripts/generate.py`)
- Agent user → Image API client: runs optionally (evidence: `README.md`)
- Agent user → Online image runner: uses fallback (evidence: `README.md`)
- Batch editor → Product photo: reads image files (evidence: `scripts/batch_edit.py`)
