Skip to content
Back to skills

Shopping Aggregator

ASecurity

Compare prices, judge a deal or when to buy, find the cheapest hotel or flight, buy on instruction. 比价, 查历史价, 全网最低价, 凑单, 订酒店, 机票比价, 帮我买, 帮我下单.

  • 9 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 2, 2026
ai-agentspythongorailsgitapi

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 20 files and shows the line behind each finding

Scanned December 3, 2026

npx -y skills add DaizeDong/shopping-aggregator --skill shopping-aggregator --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Shopping Aggregator?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Shopping Aggregator
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/daizedong-shopping-aggregator/badge)](https://www.skillsdirectory.com/skills/daizedong-shopping-aggregator)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: shopping-aggregator
description: "Compare prices, judge a deal or when to buy, find the cheapest hotel or flight, buy on instruction. 比价, 查历史价, 全网最低价, 凑单, 订酒店, 机票比价, 帮我买, 帮我下单."
---

# shopping-aggregator

Compare purchases using current evidence and the price/coverage rules below.
Delegate retrieval, history and side research to available tools; this skill adds
only the shopping layer (intent, landed cost, seller tiers, coupon tests, the time
axis) and never rebuilds what those tools already do. Reasons and rejected
alternatives for these rules: [PHILOSOPHY.md](../../PHILOSOPHY.md).

Resolve `reference/` and `scripts/` relative to this file and run `scripts/`
commands from this directory (resolve a linked skill directory first). The
repository's `tools/` commands, used only by a source refresh, run from the
repository root two levels up. Discover and probe tools on the current host.

## Scope

Use this for comparison, deal value or buy/wait decisions. A chosen retailer or
policy lookup needs only a direct read.
Route supplier discovery, arbitrage/FBA sourcing, market
sizing, category competition, SEO and social sentiment to `market-intel`. When
a request combines a purchase with research, own the purchase and delegate the
research question.

Flights use [air travel](reference/domains/air-travel.md). Hotels use
[lodging](reference/domains/hotel-travel.md): reach a selected confirmation page
only to verify total, taxes, cancellation and parking, then hand off. Stop before
entering personal/payment data, reserving inventory, or completing a purchase.
Rental cars, rail, cruises and package tours need a separate workflow.

## Step 1: Parse the buy intent

Capture these fields before delegating; resolve material ambiguities with the user.

Start from the buyer's companion ([CONFIG.md](../../CONFIG.md)): `python scripts/verify_config.py` prints the one it selected, and `python scripts/config_cli.py show` the effective configuration. For someone else, pass `--config-dir <their companion>` to every `scripts/` command of the run; environment variables do not carry between tool calls. When the configuration loads, prefill from the profile and ask only for what it leaves open or null; otherwise ask for every field below. An instruction in the conversation overrides the profile for this run only. Change a profile only when its owner states a new fact: `git -C <companion> pull --rebase`, `python scripts/config_cli.py set profile <pointer> <value>`, commit, push. Name the `profile_id` in the report header.

| Field | Required detail |
|---|---|
| Product | Brand, model, specification, quantity and condition |
| Region | Buying/shipping market; cross-border origin and destination where relevant |
| Budget and urgency | Spending limit, delivery deadline, willingness to wait |
| Sensitivity | Warranty, returns, refurbishment, seller reputation and authenticity needs |
| Existing access | Accounts, memberships and their perks (member price, cash back, free shipping), store credit, extensions and connected sources that can be used |

Flights and hotels also need the intake fields their shards list; never ask for
a passport number to compare fares.

## Step 2: Triage and depth

Produce `[matched domains | in-scope channel classes | depth cap]`.
Use [the source index](reference/sources-index.md) to select from the 14 domains,
then read only the matching `reference/domains/<domain>.md` files. Flight
intents always load the air-travel shard before the first fetch.

Read [channel classes](reference/channel-classes.md) to enumerate in-scope channels.
Even a channel without a domain shard needs its listed route and caveats;
never drop it or create a shard during a purchase.

Choose a depth and maintain its running counts. Stop fan-out and synthesize at
any hard cap. Quick is the default for a mainstream in-stock SKU in one region.

| Depth | Max subagents | Max rounds | Max verifiers | Use |
|---|---|---|---|---|
| quick | 3 | 1 | 1 | One mainstream SKU without history needs |
| standard | 6 | 2 | 3 | Multiple retailers and material channel spread |
| deep | 12 | 3 | 5 | Explicit comprehensive research or a purchase of at least profile `/risk/deep_depth_usd` (default $500) |

Declare the scope before collection and the achieved coverage (#12) in the
report; a limited search cannot claim a market-wide minimum.

## Step 3: Probe sources and classify access

Discover tools on the current host; a connected health indicator is insufficient.
Run a small functional read. Failed or authentication-needed tools are unavailable.
Read [source reliability](reference/source-reliability.md) when choosing a route.

| State | Evidence | Action |
|---|---|---|
| S1 anonymous | A real anonymous read succeeds | Collect and grade |
| S2 session-gated | A user-provided session could expose the content | Main-session login handoff |
| S3 structural | A session cannot fix the block, dead source or closed API | Typed coverage gap; stop retries |

An empty marketplace search is not "no inventory" until the #11 control query
passes. Never infer S1 or S3 from HTTP status or a tool's name.

## Step 4: Choose routes and offer installation when useful

Prefer the free ④ browser route when it can answer the question. Paid APIs earn
their cost for needed history, scale or access. The ①②③④ route legend is in the
source index. Read [tool index](reference/tools/index.md), then only the selected
`reference/tools/<slug>.md`, and [installation guidance](reference/install-guide.md)
only when setup is needed, verifying current instructions and cost first.

A missing source does not stop all research: use an available alternative and
state the gap. When the buyer names a tool its doc marks `⚠ Avoid` (Honey, for
example), say so and why before using anything it surfaces. Never expose keys,
credential files or authentication state in transcripts or reports.

## Step 5: Collect and verify evidence

Use connected browser/source tools for selected retailer reads, available
aggregates for discovery, and Keepa/Camelcamelcamel or regional tools for history.

For model work use `llmcall.call(prompt, mode="agent")` (judgments use its
default mode) without provider pins; [review guidance](reference/codex-crossval.md)
covers independence. A missing reviewer is a declared gap, and a reviewer's
recalled prices are E3 leads.

Workers return bounded evidence units as the
[evidence schema](reference/evidence-schema.md) defines them; reduce those units
instead of copying raw pages into the main context, and add a combiner above
about five workers.

A fresh verifier with no prior verdict re-opens every selected offer behind a
ranked E1/L1 claim and confirms price, variant, stock, seller, timestamp and
grade; a worker's self-check is not verification. Run browser work sequentially
unless contexts are verifiably isolated; never share a page or address tabs by
index.

### Login handoff for S2 channels

Read [login handoff](reference/login-handoff.md) before any S2 channel. Finish S1
work first, then batch every S2 channel into one main-session request and pause
until the user resumes. The agent never enters credentials or codes, scans QR
codes or creates accounts; a timeout is neither consent nor refusal. After login,
re-run the control query, read only product content, and change nothing (orders,
bids, messages, settings) without a fresh per-action instruction. Record a decline
as `session-gated-declined` and an unattended run as `session-gated-unattended`.

## Step 6: Normalize landed cost

Compare identical variants on the actual fulfillment promise. Landed cost is
sticker plus shipping, tax and duty, less verified checkout discounts; delayed
cashback is shown separately, never deducted. Every tax, duty, shipping and FX
input cites a dated row from [sales tax](reference/data/us-sales-tax.json),
[shipping](reference/data/shipping-baselines.json),
[cross-border duty](reference/data/cross-border-duty.json), the private rate table of a
forwarder the profile names (`duty_inclusive: true` means no duty line on top) or
[FX sourcing](reference/data/fx-source-of-record.md), or is labelled `(assumed)`;
an assumption cannot support an unqualified lowest-total claim. The tax row is the
profile's `/ship_to/state` unless the buyer names another destination. Confirm
current duty treatment and checkout charges live, never from a remembered
threshold; without a verified FX rate keep the source currency and mark the
conversion UNVERIFIED.

Price flights as the [air travel](reference/domains/air-travel.md) shard says:
taxes, bags, seats and payment/FX fees, checked with `scripts/flight_cost.py`;
unknown fare terms make offers non-comparable.

Rank each offer at its best achievable discount stack (#16), built and marked as
the [evidence schema](reference/evidence-schema.md) defines it: every discount
available to this buyer now, looked for on the page, after selecting each purchase
path, in the cart and on coupon and deal sites, with `discount_checked` recording
where. Only cart-tested lines reduce the ranked total; value paid later sits beside
it and store credit is never a discount.

Test coupons in the cart/confirmation flow without submitting an order; state
what was actually applied and any stacking conditions. Exclude marketplace
offers below the profile's `risk` cutoffs (default 95 percent rating or 500
ratings) unless the user accepts the risk.
A wait recommendation requires history evidence or an explicit low-confidence
label.

## Quality guardrails

Keep these IDs stable; the evidence schema and report template cite them.

- **#1 Snapshot timestamp:** every entry has `[fetched YYYY-MM-DD HH:MM TZ]`;
  an undated entry is unverified. State the report snapshot time.
- **#2 Stock/fulfillment:** label in-stock, low-stock, out-of-stock or preorder.
  Rank deliverable stock first; others are footnotes. Check the actual promise.
- **#3 Landed cost:** rank verified complete costs. Otherwise label sticker-only
  or an assumed range; never hide unknown additions as zero.
- **#4 Coupons:** cart-test savings and stacking, or label the claim unverified.
  State if the confirmation page could not be reached.
- **#5 Seller tier:** assign L1 only after reading Sold-by/Shipped-by. Unknown
  seller is L3, never L1. Identify every tier; L4/L5 winners require user override.
  A domain name does not establish the seller.
- **#5b Evidence grade:** E1 is a live selected PDP/official API read; E2 is an
  aggregate; E3 is a snippet, recall or lead. E3 never ranks. E2 needs same-variant
  E1 corroboration; two E2 reads do not upgrade it. The top recommendation needs
  at least two independent E1 reads of the same `variant_key`; other material
  claims need two sources or `confidence: low - single source`.
- **Variant identity:** use specification, selected option or manufacturer ID,
  not a title alone. If selected option and generic specification disagree,
  the option controls and that generic spec is no longer independent evidence.
- **#6 Degradation:** disclose each fallback inline. A tool that returns empty
  results has not demonstrated functional availability.
- **#7 Disagreement:** re-fetch snapshots older than four hours; same-page
  reads differing by over 5 percent need a third read, never an average. Across
  sources, check variants first, then record the cause and resolve with E1
  evidence, or show both dated observations.
- **#8 Disconfirmation:** have a fresh reviewer reverse-search the cheapest
  option for scam, counterfeit, seller and condition risks. Report Risks &
  counter-evidence. An empty search means none found, never proof of safety.
- **#9 Coverage:** list failed and never-attempted in-scope channels. After one
  query rewrite/retry, retain the gap with reason `session-gated-declined`,
  `session-gated-unattended`, `structurally-unreachable`, `tool-outage`, or
  `not-attempted`. Never substitute evidence from a different channel.
- **#10 Affiliate claims:** compare affiliate savings against the merchant's
  public selected price. Non-merchant notifications and release calendars are
  E3 at best; their numbers do not establish a payable price.
- **#11 Control query:** every marketplace zero-result needs a query for a
  known-stocked control. A failed control voids that platform's zero-results
  for the run. Cite the control and result, including brand-store searches.
- **#12 Search depth:** report pages, unique items/sellers, sort order and how
  paging worked. Compare new IDs across pages; duplicates do not prove progress.
  Stop on zero new IDs or the declared floor. Report read/total coverage when
  available. Multiple listings by one seller are one seller observation.
- **#13 Card attribution:** read a price only from its own offer card or API
  record; never borrow a nearby price or rank a `price_unavailable` row.
- **#14 Flight corroboration** and **#15 Fare product:** a ranked fare needs a
  second independent transport and its fare brand, bag allowance and refund terms;
  the [air travel](reference/domains/air-travel.md) shard holds both rules.
- **#16 Discount stack:** the headline answer and every purchase use the purchase path whose own stack charges the least at checkout, with every eligible discount stacked and each condition stated. Try every top candidate's stack at the confirmation page; a sticker headline is acceptable only after the stack was tried and failed, could not be tested (label it under #3), or the buyer declined the commitment, never because it was not tried. A discount advertised on the product page but absent from the confirmation page has not been applied.

## Purchasing on instruction

Retail product orders only, on the buyer's explicit per-action instruction; lodging
and flights stay hand-off. Read [purchase execution](reference/purchase-execution.md)
first and follow it: buy the #16 stack, respect the profile's `accounts[]` checkout
permission and `purchase_defaults`, verify every discount line on the final page
before the single submit, and record each order action with
`python scripts/ledger.py append purchases --row-file - --config-dir <root>`.

## Output and final check

Use [the report template](reference/report-template.md) for intent, timestamp,
ranking, history, coupons, Risks & counter-evidence, sources and final Coverage gaps.
The headline price is the #16 stack; show the discount lines that produce it.
Check each applicable guardrail before delivery. Claims of booking, model
execution or source verification require evidence that the action occurred.

## Step 7: Keep real observations private

Append each source outcome and every in-scope channel gap by piping one JSON row to `python scripts/ledger.py append live-runs --row-file - --config-dir <companion>` ([ledgers](reference/ledgers.md) defines the row and the per-machine lanes). Fix and re-append an invalid row; report any other refusal in the reply with the observations. Never write a row file or an observation into this repository: there is no public fallback.
A `coverage_gap` row carries the same typed `gap_reason` (#9) as the report;
`detail` never replaces it. Never copy a real order, route, quote or verdict into
public code or docs; examples are generated and synthetic.

## Loading and Maintenance

Load only what a step names: the source index, then the matching domain and tool
shards, and each other reference file under its step's condition; never a whole
directory. For recurring alerts recommend an existing price tracker; this skill
runs one comparison at a time and never an unattended purchase loop.

When a run finds a shard wrong, or the owner asks for a refresh, follow the
[refresh protocol](reference/refresh-protocol.md): fix the shard with its
evidence, keep tombstones, run `python tools/verify_matrix.py --no-net` from the
repository root, and release the change. Only files tracked by Git ship.

Files in this skill

  • SKILL.md29.5 KB
  • metrics/gh-api-cache.json.example949 B
  • metrics/live-runs.jsonl.example888 B
  • reference/channel-classes.md10.4 KB
  • reference/codex-crossval.md6.4 KB
  • reference/data/README.md4.7 KB
  • reference/data/cross-border-duty.json22.9 KB
  • reference/data/fx-source-of-record.md8.2 KB
  • reference/data/shipping-baselines.json4.6 KB
  • reference/data/us-sales-tax.json12.9 KB
  • reference/domains/ai-shopping-assistants.md4.1 KB
  • reference/domains/amazon-us.md6.2 KB
  • reference/domains/auction-resale.md12.1 KB
  • reference/domains/browser-extensions.md5.7 KB
  • reference/domains/claude-mcps.md4.9 KB
  • reference/domains/cross-border.md8.4 KB
  • reference/domains/ebay-walmart-target.md5.3 KB
  • reference/domains/grocery-cpg.md10.4 KB
  • reference/domains/hotel-travel.md7 KB
  • reference/domains/jd-pdd.md6.3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.