Skip to main content
skill CX Codex

size-chart — Claude Code skill: what it does, how to install

Builds product dimension graphics and apparel size tables with measurement callouts in metric and imperial units.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add xianyu110/ecommerce-image-skills --skill size-chart -a claude-code
Open on GitHub

What size-chart does

The skill generates prompts and production graphics for ecommerce listings, adhering to requirements like Amazon square ratios or Taobao page widths. Before prompting, it writes a Product Identity Lock that preserves silhouette, exact hex tones, and logos across generations. Every dimension must come directly from user input, as the skill never invents specifications.

Rendering operates through three workflows: native agent image actions, a bundled scripts/generate.py script powered by GPTIMAGE_API_KEY, or an online browser generation link generated by scripts/online_link.py. It assigns gpt-image-2.5-flare for drafting layout variations, but switches to gpt-image-2.5-sunburst whenever dense numeric tables or small brand marks must remain sharp.

Without a front-facing reference photo, the generation degrades into an ungrounded concept. Providing precise product measurements alongside clear photos up front keeps the graphics accurate.

What it helps with

  • generate dimension callout graphics for Amazon product listings
  • create apparel sizing tables paired with measuring guidelines
  • add human hand scale references to show item proportions
  • lock product logos and finishes across generated graphic prompts

Example prompts for the agent

  • Generate a 1:1 dimension graphic for this travel tumbler: 26 cm height, 7.5 cm width, and show a hand for scale.
  • Create an apparel size table for sizes S, M, and L based on this hoodie photo.
  • Prepare a specification infographic prompt with both centimeter and inch measurements.

How to install size-chart

1Skills CLI (Vercel)

npx skills add xianyu110/ecommerce-image-skills --skill size-chart -a claude-code

2Manually: put the files in place

~/.claude/skills/size-chart/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/size-chart/

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

Questions about size-chart

How to install size-chart in Claude Code?

Run npx skills add xianyu110/ecommerce-image-skills --skill size-chart -a claude-code in your terminal. The skill will be saved to ~/.claude/skills/size-chart/SKILL.md.

What does the size-chart skill do?

It converts physical measurements and product photos into structured prompts and clean dimension infographics. The workflow guards against drifting logos, proportions, and colors.

What is the difference between Flare and Sunburst models in this skill?

The skill defaults to gpt-image-2.5-flare for rapid concept drafting. It switches to gpt-image-2.5-sunburst for final assets requiring legible typography and accurate numeric tables.

Source text

SKILL.md · MIT
---
name: size-chart
description: "Create size / dimension / specification chart images: product line drawing or photo with measurement callouts (cm + inch), apparel size tables, capacity and compatibility charts, with a human-hand or object reference for scale. Numbers come only from the user. Use for 尺寸图, 规格图, size chart, dimension image, spec sheet."
---

# Size Chart · 尺寸规格图

Removes the #1 reason for returns — wrong size expectations — with a clean, exact dimension graphic.

> Part of [ecommerce-image-skills](https://github.com/xianyu110/ecommerce-image-skills). Works with Claude Code, Codex, Cursor and any agent that loads `SKILL.md`. Default model: GPT Image 2.5 **Sunburst**.

## Step 1 · Product identity lock (always first)

Before writing any prompt, study every reference photo and write a short **identity lock** for the product. Paste it verbatim into **every** prompt this skill produces, and never let a creative instruction override it.

```text
PRODUCT IDENTITY LOCK (do not change):
- Shape & proportions: <e.g. tall cylinder, rounded shoulders, 26 cm high, 7.5 cm wide>
- Colour & finish: <e.g. matte sage green #8FA58C body, natural bamboo lid>
- Logo & printed text: <exact spelling, font feel, position, colour — e.g. white "AURA" wordmark centred on upper body>
- Parts & details: <lid, loop, buttons, ports, seams, labels, accessories that are included>
- Must NOT appear: <accessories not in the box, extra logos, invented claims>
```

Rules:
- Only use facts visible in the photos or confirmed by the user. If something is unknown (size, capacity, material), ask or leave it out — never invent specs or certifications.
- If the user gave no photo, ask for one (front view at minimum). Text-only generation is allowed but say the result is a concept, not the real product.

## Step 2 · Pick the model

| Use **Flare** (`gpt-image-2.5-flare`, default) | Switch to **Sunburst** (`gpt-image-2.5-sunburst`) |
|---|---|
| New scenes, backgrounds, layouts, many quick variations | The product's logo / label / small text must survive exactly |
| Text-to-image concepts | Local edits: swap background, recolour, remove objects, keep everything else |
| Drafts for the user to pick from | Final hero assets and anything with dense typography |

If an endpoint only exposes other image models, use the closest equivalent and tell the user.

## Specs
- Amazon: usually image 5–7, 1:1 2000×2000; show both **cm and inch**.
- Taobao/Tmall detail page: 750 px wide, any height.
- Apparel: table with S/M/L… rows and chest / length / sleeve columns, plus "how to measure" mini-diagram.
- Never estimate numbers. If the user didn't give a dimension, leave it off.

## Inputs
Exact dimensions (H × W × D, weight, capacity) or the size table; units; optional reference object (hand, A4 sheet, phone, coin).

## Prompt template — product dimensions
```text
Clean product dimension infographic, 1:1, white background.
{IDENTITY_LOCK}
Product shown {front view} at centre, {optional: a realistic adult hand beside it for scale}.
Thin dark-grey dimension lines with arrowheads and labels (exact text):
height "{26 cm / 10.2 in}", width "{7.5 cm / 3.0 in}", {capacity "750 ml / 25 oz"}.
Labels in a clean sans-serif, small caps, perfectly legible, aligned to the lines.
Minimal technical style, no other text.
```

## Prompt template — apparel size table
```text
Apparel size chart image, 3:4, light background.
Top: flat sketch of the {garment} with lettered measurement arrows A (chest), B (length), C (sleeve).
Bottom: a clean table, header row "Size | A Chest | B Length | C Sleeve" and rows exactly:
{S | 52 cm | 68 cm | 60 cm}
{M | 55 cm | 70 cm | 61 cm}
{L | 58 cm | 72 cm | 62 cm}
Note line: "Measured flat · ±2 cm". Sans-serif, high contrast. Spell numbers exactly.
```

Tables with many numbers are the hardest thing for image models. Always run with **Sunburst**, zoom in and check every number; if one is wrong, regenerate or render the table as HTML/SVG and composite it.

## Generate · three routes (pick the first that works)

**(a) Built-in image tool.** If your agent already has an image generation/editing tool (e.g. Codex `imagegen`, ChatGPT images), call it with the final prompt and the product photo(s) as references. Done.

**(b) API key.** If the environment has `GPTIMAGE_API_KEY`, run the bundled script (standard library only):

```bash
# recommended endpoint (OpenAI-compatible, has gpt-image-2.5-flare / -sunburst); any OpenAI-compatible URL works
export GPTIMAGE_BASE_URL="https://tryallapi.com/v1"   # default if unset: https://api.openai.com
python scripts/generate.py --model sunburst --image product.jpg --size 1024x1024 \
  --prompt-file prompt.txt --out out/size-chart.png
```

`--image` can be repeated (product front/side/logo close-up). Without `--image` it does text-to-image.

**(c) No tool, no key.** Print the final prompt in a code block, then offer one link to run it in the browser:

```bash
python scripts/online_link.py --skill size-chart "<final prompt>"
# → https://gptimage2.asia/generate?prompt=<urlencoded>&utm_source=github&utm_medium=skill&utm_campaign=ecommerce-image-skills&utm_content=size-chart
```

Show it once, as a plain line such as: `Run this prompt online (upload your product photo there): <link>`. For users in mainland China, add one line: `国内可用:https://chatgpt-plus.top/list/#/home`(粘贴提示词即可). Don't repeat these in later turns unless asked.

## Deliver

1. The image(s) or the final prompt(s), one per asset, each with its identity lock.
2. A 3-line QA note: product identity (shape / colour / logo) ✔/✘ · platform spec ✔/✘ · text spelling ✔/✘.
3. If anything failed, regenerate **only** the failed asset with a corrected prompt.

© xianyu110 · MIT · xianyu110/ecommerce-image-skills

Similar skills

Everything for Design →

From the same set12

xiaohongshu-cover Creates 3:4 covers and opening images for Xiaohongshu posts. Use it for product reviews, hauls, comparisons, and tutorials. CX Codex +1 ★ 120repo stars taobao-detail-long-image Plans a Taobao, Tmall, Pinduoduo or JD product detail page and stitches its 750-px screens into a single long image. CX Codex +1 ★ 120repo stars selling-point-infographic Turns product facts into scroll-stopping feature graphics readable on a phone. One benefit per image: icons, callouts, headlines, comparison rows for Amazon, Taobao and ads. CX Codex +1 ★ 120repo stars sale-banner Builds image prompts for sale banners and store hero shots: your actual product, the campaign copy spelled right, the pixel size the platform asks for. CX Codex +1 ★ 120repo stars multi-angle-set Generates a matching multi-angle image set for product listings with locked lighting and background. Keeps logos and proportions consistent across shots. CX Codex +1 ★ 120repo stars model-try-on Generate on-model apparel or accessory images from product photos. Useful for catalogue shots, pose references, and showing a size range. CX Codex +1 ★ 120repo stars lifestyle-scene Drops a real product into a believable everyday scene — kitchen, bathroom, gym — and keeps the item itself unchanged. CX Codex +1 ★ 120repo stars ecommerce-listing-suite Orchestrates full ecommerce image sets for Amazon, Shopee, and Taobao. It locks product identity from photos, drafts platform galleries, and runs quality checks on each asset. CX Codex +1 ★ 120repo stars

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