PREREQUISITE: read
../amazon-shared/SKILL.mdfor login, Ziniao auto-fill / OTP, marketplace TLDs, hamburger navigation, and the capture rule (live data →/tmp/<task>/, neverknowledge/).
Amazon's Add Products via Upload takes a category flat-file
template — a macro-enabled .xlsm whose Template sheet is a wide
table (one column per attribute). One upload creates or edits a whole
variation family (a Parent plus N colour/size Children) at once.
This is the batch equivalent of the per-SKU web wizard, and the default
for anything touching more than one variant.
Two references, load what the task needs:
references/template-round-trip.md— the download → inspect → fill → upload → read-feedback loop, the operation column (create/update/partialupdate/delete), and the parent-child cluster. Load for any listing CRUD.references/1688-sourcing.md— turning a supplier link into a filled template: page extraction, local no-GPU OCR of detail images, AI-generated copy, the bilingual review step, and image handling. Load when the task starts from a product link.
Work it like a human: upload → read the report → fix → repeat
The template, its required fields, valid values, and even the upload mechanics change per product type and over time. Do not follow a fixed recipe from memory. Run the loop a human runs:
- Download a FRESH template for the exact product type — Amazon's own error messages say "download the latest template". Never reuse a stale one.
inspectit. The field set / required fields / valid values for THIS category are the ground truth, not this doc.- Fill, upload, then download the processing report and run
parse-feedback REPORT.xlsm. It reads the summary tables and the per-cell comments (批注) on the report'sTemplatetab — where Amazon writes the precise, field-level verdict per SKU — and printssku=… field=… : MESSAGE. - For each ERROR line, fix exactly the field it names — set it to a
value from the template's own valid set (
inspect --field NAME). Do not reinterpret or theorise a root cause; act on the report's words. (If a WARNING names a key defining attribute like material/pattern, fix it too — that's often what unblocks new-ASIN creation.) - Re-upload and repeat until only expected noise remains (see the main-image rule below).
- Final verify — the two sources of truth, not the feed count: the
downloaded report shows 0 blocking errors, AND the Manage
Inventory page shows the family (parent's "Variations (N)", each
child a real ASIN — not
-— with title / description / bullets).
The fixes listed below are examples this loop surfaced on real templates — priors that speed up diagnosis, not a checklist that replaces reading the actual report.
Verification: trust inventory, not the feed count
The report's "records processed / 0 errors" means the feed was
accepted, not that a live listing exists. A record with errors can
still create an incomplete stub; a clean feed can leave a suppressed
listing. Always confirm on Manage Inventory (or
skucentral?mSku=<sku> without &condition=New — that param
false-negates incomplete listings). Confirm the SKU has an ASIN, and for
a family that the parent shows "Variations (N)".
Priors that recur across categories
- Upload a tab-delimited
.txt, not the.xlsm.fillwrites the.txtnext to the.xlsmfor you — upload that. An openpyxl-saved.xlsmtriggers a 90502 FATAL ("worksheet template type not supported for Excel upload"). - Children are NOT minimal. Each child needs the full required set
its category asks for (e.g.
item_name,target_gender,age_range_description, and any compound-attribute sub-fields), plus its differentiator + offer — not justparent_sku+ colour. - Enum case is exact (
UAE/KSA, notuae/ksa).fillcanonicalises a value to the template's own casing when the field has a valid set. - Compound attributes come as a set — e.g. Apparel Size needs
apparel_size_class+apparel_size_system+apparel_body_type+apparel_height_typetogether; a partial set errors (99001/99022). - Own-country only — in the generator, select the store's single marketplace (multi-marketplace disables Listing Preferences and adds offer blocks you don't need). Fill only that marketplace's offer.
- Main image is not required by default — we do not upload
images from here (the seller adds them separately). So a
18320("main image is missing") error is expected noise, not a blocker; don't chase it, and don't hotlink a supplier CDN URL intomain_image_url(Amazon can't fetch a referer-protected 1688/alibaba URL anyway). "Done" = every error resolved except the image one. - A buyable child that
8560s ("doesn't match any ASINs … include standard_product_id") — Amazon is refusing to mint a new ASIN for it. Two cases, decided by whether that child's ASIN already exists:- ASIN already exists (you're re-submitting, or a prior create left
a catalog ASIN — note a
deleteremoves your SKU/offer but not the catalog ASIN): don't try to create — match it. Setoperation: update,external_product_id= the existing ASIN,external_product_id_type: asin. This is the reliable fix and what resolves a variation child that won't join its family. - Genuinely new ASIN, GTIN-exempt brand (leave
external_product_idblank): the exemption alone is not enough — the report also warns which key defining attributes are missing (e.g.material_type,pattern_name); fill exactly those from the template's valid values so the ASIN can be minted. Either way, setupdate_deleteon every row including children — never leave a child's operation blank.
- ASIN already exists (you're re-submitting, or a prior create left
a catalog ASIN — note a
- Offer/price is per-marketplace, and only
our_pricematters. The buyable offer is one block per marketplace:purchasable_offer[marketplace_id=<MKT>]#1.our_price#1.schedule#1.value_with_tax(+fulfillment_availability#1.quantity). Of the many price columns onlyour_priceis needed. Fill the block for the marketplace you're selling on; verify it in THAT marketplace's Pricing view — the feed "N/N successful" count does not reflect price, and quantity can apply while price shows--if you set a different marketplace's column. - A multi-marketplace account's template bundles every marketplace's offer columns (e.g. a Europe account yields both SA + AE columns even when you select one) — a truly single-country template may not be downloadable there. "Clean single-country" then means: fill only the intended marketplace's offer block, leave the others blank.
The two scripts
S=<skills>/amazon-listing/scripts
PY=<project-venv>/bin/python3 # needs openpyxl + rapidocr-onnxruntime
listing_bulk.py— deterministic template writer. It keys every field by its field API name (the row that containsitem_sku), which is identical in every console language, so it is locale-robust the same wayamazon-ads/ads_bulk.pyis.inspect TEMPLATE.xlsm [--field NAME]— dump the field set, which fields are Required, the accepted enum tokens, and the variation cluster. Run this first on every fresh template — the column set and valid values differ per product type.fill TEMPLATE.xlsm --spec SPEC.json --out OUT.xlsm— write parent/child rows, set the operation column per row, validate enums and required fields against the template's own metadata sheets, and preserve the workbook (macros, signature row) verbatim.parse-feedback REPORT— extract Amazon's verdict: the summary tables and the per-cell comments (批注) on the report'sTemplatetab, emitted assku=… field=… : MESSAGE. The 批注 are the precise, field-level fixes — the engine of the self-correct loop.
ocr_1688.py— local, GPU-free OCR (rapidocr-onnxruntime) of the supplier's detail images, where the spec table / size chart live.
Operation rules (the in-sheet update_delete column)
The operation is chosen per row in the sheet, not inferred:
operation in spec | update_delete cell | Use when |
|---|---|---|
create (default) | blank | new SKU. No ASIN → this is the default. |
update | Update | full re-submit of an existing SKU's attributes. |
partialupdate | partialupdate | change only the fields present; leave others as-is. |
delete | delete | remove the SKU. Needs only sku + operation. |
Rule of thumb: no ASIN yet → create; the ASIN already exists → update
and match it (put the ASIN in external_product_id with
external_product_id_type: asin). The operation column is authoritative,
so set it explicitly on every row, children included — a blank child
operation is a common cause of a child failing to join its family.
End-to-end flow (product link → live listing)
- Extract the product from the supplier link (see
1688-sourcing.md): page data + OCR of detail images. - Generate an Amazon title, 5 bullet points, and a long description from the extracted data.
- Bilingual review — present the generated copy to the user in both the user's language and the target marketplace language, plus the proposed parent-child structure (which variation theme, which children). Wait for the user's confirmation / edits. This is the one genuinely interactive step; do not skip it.
- Download the category template for the product type (into
~/.vibe-seller/downloads/<slug>/),inspectit. - Fill a spec (parent + children) and produce the
.xlsm. - Upload the
.txtand run the self-correct loop (see "Work it like a human" above):parse-feedbackthe report, fix exactly the field each 批注 names, re-upload, repeat, and verify on Manage Inventory + the Pricing view — not the feed count. Stop when the only remaining error is the image (18320).
Sourcing login
The supplier site (1688) needs a login for some bulk specs, but the core product data is reachable without it. When a login is needed, the login is a QR scan — ask the user to scan it (do not attempt to authenticate on their behalf). Say which QR and wait.