Global Price Comparison
Use this skill to run a global same-product price scan and output a USD-normalized comparison.
Quick start
# 1) Create a starter CSV template
python scripts/global_price_compare.py template --out /tmp/offers.csv
# 2) (Optional) discover candidate links by country/source type
# Uses Brave and Tavily when available (BRAVE_API_KEY / TAVILY_API_KEY)
python scripts/global_price_compare.py discover \
--product "iPhone 16 Pro 256GB" \
--countries US,JP,DE,UK \
--source-types official_store,marketplace,electronics_retailer \
--engine all \
--out /tmp/discover.json
# 3) Fill /tmp/offers.csv with verified offers, then compare
python scripts/global_price_compare.py compare \
--input /tmp/offers.csv \
--format markdown
Workflow
- Define exact product variant (model/storage/spec).
- Run
discover to get candidate URLs by market and source type.
- Add verified offers to CSV (
product,country,currency,source_type,source_name,price,url).
- Run
compare to normalize all prices to USD and rank best/worst.
- Share markdown/JSON/CSV output.
Commands
Template
python scripts/global_price_compare.py template --out /tmp/offers.csv
Discover candidate links
python scripts/global_price_compare.py discover \
--product "PlayStation 5 Slim" \
--countries US,JP,DE \
--source-types official_store,marketplace,electronics_retailer \
--engine all \
--count 3 \
--format markdown
Notes:
discover supports --engine brave|tavily|all (default all).
- For
all, it uses Brave first and only falls back to Tavily when Brave fails or returns no results.
- Set one or both keys as needed:
BRAVE_API_KEY, TAVILY_API_KEY.
- Source types are intentionally generic (not local-store specific).
Compare offers in USD
python scripts/global_price_compare.py compare \
--input /tmp/offers.csv \
--format markdown \
--out /tmp/comparison.csv
Outputs include:
- ranked offers by USD price
- delta vs best offer
- spread in USD and %
Defaults
Default country set:
US, UK, JP, DE, FR, CA, AU, SG, HK, TW
Default source types:
official_store
marketplace
electronics_retailer
general_retailer
Data/quality guardrails
Before finalizing recommendations:
- confirm same model/variant
- confirm tax/shipping basis consistency
- separate new vs refurbished/used
- keep URL + timestamp evidence
Detailed schema + guardrails:
references/data-shape-and-source-types.md
Resources
- Script:
scripts/global_price_compare.py
- Reference:
references/data-shape-and-source-types.md
1---2name: global-price-comparison3description: Discover and compare the same product across multiple countries and source types (official stores, marketplaces, retailers) using Brave and/or Tavily web search, then normalize all offers to USD for ranking and spread analysis. Use when users ask for global product price comparison, cross-country official price checks, or cheapest-market analysis.4---56# Global Price Comparison78Use this skill to run a **global same-product price scan** and output a **USD-normalized comparison**.910## Quick start1112```bash13# 1) Create a starter CSV template14python scripts/global_price_compare.py template --out /tmp/offers.csv1516# 2) (Optional) discover candidate links by country/source type17# Uses Brave and Tavily when available (BRAVE_API_KEY / TAVILY_API_KEY)18python scripts/global_price_compare.py discover \19 --product "iPhone 16 Pro 256GB" \20 --countries US,JP,DE,UK \21 --source-types official_store,marketplace,electronics_retailer \22 --engine all \23 --out /tmp/discover.json2425# 3) Fill /tmp/offers.csv with verified offers, then compare26python scripts/global_price_compare.py compare \27 --input /tmp/offers.csv \28 --format markdown29```3031## Workflow32331. Define exact product variant (model/storage/spec).342. Run `discover` to get candidate URLs by market and source type.353. Add verified offers to CSV (`product,country,currency,source_type,source_name,price,url`).364. Run `compare` to normalize all prices to USD and rank best/worst.375. Share markdown/JSON/CSV output.3839## Commands4041### Template4243```bash44python scripts/global_price_compare.py template --out /tmp/offers.csv45```4647### Discover candidate links4849```bash50python scripts/global_price_compare.py discover \51 --product "PlayStation 5 Slim" \52 --countries US,JP,DE \53 --source-types official_store,marketplace,electronics_retailer \54 --engine all \55 --count 3 \56 --format markdown57```5859Notes:60- `discover` supports `--engine brave|tavily|all` (default `all`).61- For `all`, it uses **Brave first** and only falls back to Tavily when Brave fails or returns no results.62- Set one or both keys as needed: `BRAVE_API_KEY`, `TAVILY_API_KEY`.63- Source types are intentionally generic (not local-store specific).6465### Compare offers in USD6667```bash68python scripts/global_price_compare.py compare \69 --input /tmp/offers.csv \70 --format markdown \71 --out /tmp/comparison.csv72```7374Outputs include:75- ranked offers by USD price76- delta vs best offer77- spread in USD and %7879## Defaults8081Default country set:82- `US, UK, JP, DE, FR, CA, AU, SG, HK, TW`8384Default source types:85- `official_store`86- `marketplace`87- `electronics_retailer`88- `general_retailer`8990## Data/quality guardrails9192Before finalizing recommendations:93- confirm same model/variant94- confirm tax/shipping basis consistency95- separate new vs refurbished/used96- keep URL + timestamp evidence9798Detailed schema + guardrails:99- `references/data-shape-and-source-types.md`100101## Resources102103- Script: `scripts/global_price_compare.py`104- Reference: `references/data-shape-and-source-types.md`