PREREQUISITE: Read
../amazon-shared/SKILL.mdfor the marketplace TLD map, hamburger-menu navigation, sign-in / Ziniao / OTP handling, and the ad-console vs seller-central account caveat. For noon, read../noon-shared/SKILL.mdfor login + page structure.
This skill collects — it does not analyze or recommend. The output is a machine-readable dataset (one JSON per product + a manifest) that a downstream consumer ingests. Your only job is to make that dataset complete and well-formed for every product the store sells.
What this skill produces
For every (platform, country) the store covers, and every product in
that combo's catalog:
- One JSON per product:
store-data/<slug>/reviews/<platform>/<country>/<product_id>.json(thereviews/v1contract — current rating + full review history). - One run index:
store-data/<slug>/reviews/_MANIFEST.json— per combo, the enumeratedexpectedproduct set and thecollectedset with files written. The server's completeness reviewer parses this to tell you what's still missing each round. - One short Markdown summary:
./REVIEW_COLLECT_<YYYY-MM-DD>.mdin the task dir — combo totals + the manifest progress line. This is the result you pass tovibe_seller_set_task_result.
The JSON dumps are the deliverable; the MD is just a human-readable
cover. Write JSON via vibe_seller_write_workspace_file (the only tool
that writes through the stores/<slug> symlink).
Safety — read-only
This is a read-only skill, exactly like the ad-audit Layer-1 collect
step. You open and read review pages. You never: post a review,
reply to a review, vote/report a review, edit a listing, or change
anything on Amazon or noon. If a task asks you to respond to reviews,
stop and say that is out of scope for review-collect.
START HERE — two files, then run
Do NOT pre-read every reference (it buries the model and causes shortcutting). Read just these two, then execute:
output-spec.md— the data contract (the exactreviews/v1JSON + manifest shape "done" means). The server reviewer checks against it.collect-quickref.md— the entire procedure on one page (enumerate → drill each product's reviews newest-first → write JSON → update manifest → converge). Load a heavy reference only when a step there tells you to.
Then write the dumps and call
vibe_seller_set_task_result("./REVIEW_COLLECT_<date>.md"). The server's
completeness reviewer replies with a short "what's still missing" list
(combos under-collected + malformed product files) and converges over
rounds — partial is accepted each round, just fix the top gaps and
re-submit until it returns nothing.
Scope — read it from metadata.json, not the DB
The combos to collect come from
stores/<slug>/metadata.json → platforms.{amazon,noon} (the
per-platform country lists). Do NOT trust the stale DB countries
column. Collect every (platform, country) listed there unless the task
narrows it.
Two platforms, two DOMs
| Platform | enumerate the product universe | reviews page (sort newest-first) |
|---|---|---|
| amazon | All Listings Report (../amazon-reports/SKILL.md) → the ASIN universe per country | https://www.amazon.<tld>/product-reviews/<asin>/?sortBy=recent — page to the end; &filterByStar=one_star,two_star guarantees the bad-comment set is captured. product_id = ASIN. |
| noon | noon catalog (../noon-listing/SKILL.md) → product ids per country | noon product page → reviews section, sorted by date. product_id = noon product id. Verify the sort control during the run. |
TLD map: ../amazon-shared/SKILL.md §1. Some marketplaces render the
DOM in a non-English locale (e.g. Arabic, Spanish) — extract by structure
(stars, dates, counts), not by matching English labels.
noon specifics (shared across countries; extract the bodies)
noon sells one physical product across its per-country sites under the same noon product id, with shared ratings and reviews — the rating, the rating count, the star breakdown, and the individual review texts are IDENTICAL on every country site. Treat noon reviews as per-product, not per-country:
- Collect a noon product's reviews ONCE, then write the same rating +
review CONTENT to each country's file. Each per-country file still
keeps its OWN
countryfield (e.g. a<country-a>file says"country":"<country-a>", a<country-b>file"country":"<country-b>") and its own path — only the rating, count, andreviewsarray are copied across. Do NOT re-scrape the reviews independently per country: a per-country re-scrape can land on a slow / empty / "Sorry, this product is not available" page and capture a wrong rating or zero reviews, producing a country that disagrees with its siblings for the same product (e.g.<country-a>shows 2.4/0 while<country-b>shows 4.3 for the same item). If one country's page is unavailable, copy the shared content (from a country where it loaded) into that country's file so all combos agree. - The header shows TWO numbers: "N ratings" (everyone who starred)
and "M reviews" (those who also wrote text). Use the ratings
number (N) as
rating_count; collect the M written reviews into thereviewsarray. N and M differ — a product can have many ratings but few or zero written reviews. - Extract the review bodies — not just the summary rating. Open the
reviews section, page/scroll it, and read each written review's text,
author, date, and star into a review object. If the page shows M > 0
written reviews but you extracted fewer (or zero), extraction FAILED
(the bodies are on the page — read the review cards by structure,
Arabic included): re-open the reviews section and retry. (When the page
genuinely shows 0 written reviews, an empty
reviewsarray is correct even thoughrating_countis non-zero — don't retry forever.)
Full history, parallel, idempotent
- Full review history every run. Sort newest-first and page through
to the end. There is no early-stop cursor — re-runs page everything
again and dedup by
review id(stable hash ofauthor|date|titlewhen the platform exposes no id). The per-product JSON is the dedup store; writing it twice is a no-op upsert. - Parallelize across products with a small concurrency cap (start at
2, raise toward ~4–6 only if stable) to avoid anti-bot rate-limiting.
See
collect-quickref.mdfor the multi-window pattern and the self-heal note (browser-use can wedge a tab — the quickref covers recovery). - A single cursor key
last_review_collect_date(ISO date) is written toschedule_stateviavibe_seller_set_schedule_statefor cross-run reporting only — it does not gate collection.
The converge loop (the server IS the reviewer)
You do not have to collect everything in one pass. Do your best, call
vibe_seller_set_task_result("./REVIEW_COLLECT_<date>.md"), and the
server's completeness reviewer replies with exactly which combos are
under-collected and which product JSONs are missing/malformed. Fix the
top gaps, re-submit. The dataset converges. Missing is acceptable each
round — only progress matters; a re-submit that collects nothing new
several rounds in a row is what stalls the gate.