compare-products

Compare N products from URLs and render a comparison table (HTML or Markdown)

Instructions

You will receive product_urls (array) and dimensions (array of attribute names). For each URL:

  1. Visit the page using browser.navigate.
  2. Take a browser.screenshot of the hero region (used as thumbnail).
  3. Run web.extract with a schema that includes the requested

    dimensions plus title, primary image URL, and current price.

  4. Normalise units (e.g. convert "R$ 1.234,56" → 1234.56 as number,

    detect currency).

Once all products are extracted, render a comparison artefact in output_format. Mark the cell as *old*when the value is the best on that dimension (lowest price, highest spec score). Add a short "Notes" paragraph at the bottom summarising which product wins for which use case.

If any product fails to load (timeout, captcha), keep going with the remaining ones and add a footnote listing the skipped URLs.

Steps

  1. Initialise an empty result table with columns = dimensions.
  2. For each URL, attempt extraction with up to 2 retries on transient

    failure. After 2 retries, mark as skipped and continue.

  3. Detect "winner" per dimension (lowest price, longest warranty,

    highest weight capacity, etc.) and apply bold formatting.

  4. Render and save to comparison.

Examples

*ser:*"comparar essas 3 cadeiras [3 URLs]" *xpected:*HTML page with 3 columns, pricespecsphoto, winner highlighted, "Notes" paragraph with a buy recommendation.

*ser:*"compare these two laptops in markdown" *xpected:*Markdown table with 2 columns, plus a 2-3 sentence notes section.

Caveats

  • Do *ot*include personal opinions in the Notes paragraph; stick

    to objective trade-offs (e.g. "X is heavier but supports more weight").

  • Do *ot*fabricate specs — if a dimension wasn't extracted, write

    "Not specified" in that cell, never invent.

  • Currency: always show the original currency string in parentheses

    for trust ("R$ 4.993,00 (≈ USD 1,050)").

References

  • Manus screenshot 20260514 (the original cadeira-comparativa flow

    inspiring this skill)

  • TOOLS-013 (skill format)
  • SANDBOX-010 (browser tool)
  • AICORE-114 (web.extract)

Source: ../home/koder/dev/koder/meta/docs/stack/specs/ai/skill-format-examples/compare-products/SKILL.md