Skip to content
Agentmart
Submit a tool

size-chart

Create size / dimension / specification chart images: product line drawing or photo with measurement callouts (cm + inch), apparel size tables, capacity and…

Skill by xianyu110

IndexedMIT★ 114
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/xianyu110-size-chart

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

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.

Use cases: spreadsheets, data

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found
Runs as
Python package

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/size-chart

What's inside

Skill 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.
License
MIT
Instructions
97 lines in SKILL.md · view on GitHub

Before installing

  • Ships executable scripts

Files (3)

  • SKILL.md
  • generate.py · scripts/
  • online_link.py · scripts/

SKILL.md (first lines)

# 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.

From xianyu110/ecommerce-image-skills, MIT.

More from xianyu110/ecommerce-image-skills

Signals

Stars
114
Forks
19
Open issues
0
Last commit (this folder)
Oct 4, 2026 (24 days ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from xianyu110

Cite this page

size-chart skill. Agent Mart. https://agentmart.dev/skills/xianyu110-size-chart (last updated 2026-10-24)