ReplAi-Now/shopify-skills / skills/store/size-chart-builder
size-chart-builder
VerifiedBuild accurate size charts (English or Arabic) from supplier sheets or measurements, and add them to Shopify. Use for "make a size chart", "size guide" or "جدول مقاسات".
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 10.6 KB |
| assets/base-typical-men-bottoms.csv | other | 107 B |
| assets/base-typical-men-shoes.csv | other | 162 B |
| assets/base-typical-men-tops.csv | other | 170 B |
| assets/base-typical-women-bottoms.csv | other | 133 B |
| assets/base-typical-women-dresses.csv | other | 161 B |
| assets/base-typical-women-shoes.csv | other | 161 B |
| assets/base-typical-women-tops.csv | other | 161 B |
| assets/ease.json | config | 1.3 KB |
| assets/setup.example.json | config | 482 B |
| assets/size-chart-snippet.liquid | other | 2.2 KB |
| assets/size-chart-template.csv | other | 71 B |
| references/base-tables.md | markdown | 1.8 KB |
| references/csv-format.md | markdown | 1.8 KB |
| references/extraction.md | markdown | 2.1 KB |
| references/method.md | markdown | 3.3 KB |
| references/shopify-placement.md | markdown | 6.6 KB |
| scripts/sizechart.py | script | 33.3 KB |
| scripts/tabular.py | script | 6.2 KB |
assets/size-chart-snippet.liquid
View on GitHub{%- comment -%}
ReplAi size chart snippet (free e-commerce skills pack).
Renders a size chart stored in a product metafield of type json, shaped like:
{"unit": "cm", "dir": "ltr", "title": "Size chart", "fit_note": "...",
"columns": ["Size", "Chest (cm)"], "rows": [["S", "92"], ["M", "96"]]}
Save as snippets/replai-size-chart.liquid ON A DUPLICATE THEME, then add a
Custom liquid block to the product template with:
{% render 'replai-size-chart', chart: product.metafields.custom.size_chart.value %}
(replace custom.size_chart with the namespace.key the merchant chose)
{%- endcomment -%}
{%- if chart and chart.rows.size > 0 -%}
{%- assign side = 'left' -%}
{%- if chart.dir == 'rtl' -%}{%- assign side = 'right' -%}{%- endif -%}
<div class="replai-size-chart" dir="{{ chart.dir | default: 'ltr' }}" style="max-width:100%;margin:16px 0">
{%- if chart.title != blank -%}<h3 style="margin:0 0 8px">{{ chart.title | escape }}</h3>{%- endif -%}
<div style="max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch">
<table style="border-collapse:collapse;width:100%;min-width:max-content;white-space:nowrap;font-size:14px">
<thead><tr>
{%- for col in chart.columns -%}
<th scope="col" style="{% if forloop.first %}position:sticky;{{ side }}:0;z-index:1;{% endif %}background:#f4f4f4;color:#111;padding:8px 12px;border:1px solid #ddd;text-align:center">{{ col | escape }}</th>
{%- endfor -%}
</tr></thead>
<tbody>
{%- for row in chart.rows -%}
<tr>
{%- for cell in row -%}
{%- if forloop.first -%}
<th scope="row" style="position:sticky;{{ side }}:0;background:#fafafa;color:#111;padding:8px 12px;border:1px solid #ddd;text-align:center">{{ cell | escape }}</th>
{%- else -%}
<td style="padding:8px 12px;border:1px solid #ddd;text-align:center">{{ cell | escape }}</td>
{%- endif -%}
{%- endfor -%}
</tr>
{%- endfor -%}
</tbody>
</table>
</div>
{%- if chart.fit_note != blank -%}<p style="margin:8px 0">{{ chart.fit_note | escape }}</p>{%- endif -%}
</div>
{%- endif -%}
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |