Set it. Forget it. Get alerted when it matters. Respond in user's language.
FilePurpose{skill_base_dir}/scripts/zoodata.pyExecute for all API calls (run --help for params){skill_base_dir}/references/reference.mdLoad for exact field names or response structure{skill_base_dir}/data/Runtime: watchlist.json, last-run.json (auto-created)
Required: ZOODATA_API_KEY. Get free key at zoodata.ai/api-keys.
https://api.zoodata.ai (Bearer ZOODATA_API_KEY). Setting ZOODATA_BASE_URL to an untrusted host (anything other than api.zoodata.ai / *.zoodata.ai / localhost) makes the CLI refuse the request and withhold the key — the Bearer token is never sent to an untrusted host.{skill_base_dir}/scripts/zoodata.py (Python 3, stdlib-only). This skill allows daily-radar, market, products, competitors, product, price-band-overview, history, check, plus the review fallback toolkit ( reviews-raw / review-tag-prompt / review-reduce-prompt / review-aggregate). Do not invoke unrelated subcommands for this skill's tasks — the bundled manifest {skill_base_dir}/scripts/allowed-commands.json enforces this: the CLI refuses out-of-scope subcommands with a structured COMMAND_NOT_ALLOWED error before any API request.{skill_base_dir}/data/last-run.json and {skill_base_dir}/data/watchlist.json; a private temporary working dir (created with mktemp -d, removed when the fallback completes) during the review fallback; reads the optional credential store ~/.zoodata/config.json.daily-radar command executes ~14+ API calls (~15-30 credits) in ONE invocation and has NO skip/trim flags — under a credit cap, use the granular commands instead.Before selecting or invoking the first command, read and apply the local references/cli-contract.md. Reapply it after every granular or composite result and before any fallback, additional call, state write, interpretation, or user-facing report. Use this skill's fallback logic only when the shared contract classifies the result as non-terminal.
For a terminal interface failure, respond in the user's language that today's radar could not be completed, then list succeeded and failed endpoint identifiers and state that the previous baseline remains unchanged. Do not emit RED/YELLOW/GREEN alerts or write last-run.json, watchlists, history, or baselines. Keep control tokens, parameters, and retry logs internal unless diagnostics are requested.
Collect in ONE message: ✅ my_asins (1-10) | 💡 competitor_asins (up to 20) | 📌 alert_preferences. Optional: keyword, category. Category is auto-detected from first tracked ASIN if not provided.
Activation requires clear monitoring intent. Do not start a baseline run, update the watchlist, or enable scheduled/recurring execution from a vague or merely related request ("any updates?") — confirm explicitly with the user first; recurring monitoring always needs the user's explicit opt-in.
Category auto-detection: categoryPath is auto-detected from tracked ASINs. If category_source in output is inferred_from_search, confirm with user
All keyword-based endpoints MUST include --category; ASIN-specific endpoints do NOT
Use API fields directly: revenue= sampleAvgMonthlyRevenue (NEVER price×sales), sales= monthlySalesFloor, concentration= sampleTop10BrandSalesRate
reviews/analysis: needs 50+ reviews. Fallback chain when sample is insufficient:
Lightweight: realtime/product ratingBreakdown — only star distribution, no themes
Full 11-dim insights — bypass /reviews/analysis entirely:
a. zoodata.py reviews-raw --asin X → fetch up to 100 raw reviews (10 credits, ~60s)
b. For each review: render Map prompt via zoodata.py review-tag-prompt --review '<json>'
and have your own LLM produce JSON tags (sentiment + 11 dimensions)
c. Collect candidate phrases per dimension; for each dimension render
Reduce prompt via zoodata.py review-reduce-prompt --label-type X --candidates '[...]'
and have your LLM produce semantic clusters
d. zoodata.py review-aggregate --reviews R --tagged T --clusters C
→ consumerInsights output compatible with /reviews/analysis
Fallback caveats (apply to the 4-step chain above — lessons from end-to-end validation):
WORK=$(mktemp -d) (private, 0700 — not a predictable path); remove it with rm -rf "$WORK" after review-aggregate succeeds or the fallback abortsreview-tag-prompt RENDERS the prompt only; YOUR LLM produces the JSON. Render once to learn the schema, then produce tags for all N reviews in one in-context pass (don't call the CLI N times).candidates = {d: sorted({el.strip().lower() for t in tagged for el in (t.get(d) or [])}) for d in DIMS}/reviews/analysis aggregation. This skill's primary workflow outputs (price/BSR/sales deltas, alerts, watchlist baseline) remain valid — do not re-run them.Aggregation without categoryPath: severely distorted data
When ZOODATA_API_KEY is not set (verify via python {skill_base_dir}/scripts/zoodata.py check — exits 2 if no key in env or ~/.zoodata/config.json), stop before any evidence call. Tell the user that a ZooData API key is required, link to https://zoodata.ai/en/api-keys, and explain that the key may be set in the environment or local config. Do not substitute public knowledge or a "for reference only" analysis.
When _transport.status=401, stop further calls, tell the user that the configured key was rejected, direct them to https://zoodata.ai/en/api-keys, and do not fabricate missing data.
When _transport.status=402, stop further calls. Report where the workflow stopped, any compatible partial findings already gathered, and returned credit metadata when present; direct the user to https://zoodata.ai/en/pricing and do not fabricate missing data.
daily-radar --asins "asin1,asin2,..." [--keyword X] [--category Y] (composite, auto-detects category from ASINs){skill_base_dir}/data/last-run.json for change detection (first run = baseline only, no alerts){skill_base_dir}/data/last-run.jsonLevelTriggers🔴 REDPrice drop >10% by competitor; BSR crash >50% (yours); 1-star spike (3+ in 24h)🟡 YELLOWNew competitor in Top 20; competitor price change 5-10%; BSR change 20-50%; brand share shift >2%🟢 GREENCompetitor stock-out; your review velocity up; price band opportunity shift
Growth signal validation:
MetricNormal RangeAction TriggerLikely CausePrice change±3%>5% sustained 3+ daysRepricing strategy or promotion 🔍BSR shift±15% daily>30% sustained or >50% single dayStockout, promotion, or algorithm change 🔍Rating drop±0.1>0.2 in 7 daysProduct quality issue or review attack 🔍Review velocity±20%>50% spikeVine program, review manipulation, or viral moment 🔍New entrant in Top 200-1/week3+ in one weekMarket shift or seasonal demand 🔍
First run: "Baseline Established" — KPI Dashboard (current snapshot) only, no alerts.
Subsequent runs: Alert Summary → RED Alerts → YELLOW Alerts → GREEN Opportunities → KPI Dashboard (today vs yesterday) → Competitor Movement → Market Shifts → Action Items → Data Provenance → API Usage.
Output language MUST match the user's input language. If the user asks in Chinese, the entire report is in Chinese. If in English, output in English. Exception: API field names (e.g. monthlySalesFloor, categoryPath), endpoint names, technical terms (e.g. ASIN, BSR, CR10, FBA, credits) remain in English.
Data is based on ZooData API sampling as of [date]. Monthly sales (
monthlySalesFloor) are lower-bound estimates. This analysis is for reference only and should not be the sole basis for business decisions. Validate with additional sources before acting.
Rules: Strategy recommendations are NEVER 📊. Anomalies (>200% growth) are always 💡. User criteria override AI judgment.
Aggregate-label rule (applies to ALL report output, not just fallback): NEVER attach 📊 to ANY element that aggregates or groups underlying content when ANY piece of that content is 🔍 or 💡. "Aggregate/grouping elements" include:
#, ##, ###, ####) — including top-level summary sections like "Overall Score", "Verdict", "Executive Summary"## Overall Score — 27/100 · Grade F 📊 is WRONG if any Basis row inside is 🔍)**Target ASIN** 📊 as a column label is WRONG if any cell in that column contains 🔍)A group-level 📊 implies the whole block/column/row is data-backed, which smuggles inferred/directional content into the 📊 tier via visual grouping. Either (a) omit the group-level label entirely (preferred when content mixes tiers), or (b) use the LOWEST confidence present inside (🔍 if any underlying content is 🔍; 💡 if any is 💡). This is a universal output-quality rule — it applies regardless of which fallback path (if any) was triggered.
Emoji reservation rule (closely related): The three confidence symbols 📊 🔍 💡 are RESERVED for confidence labeling. NEVER use them as decorative prefixes on section headers, table headers, or any aggregate element — even when you also include a correct confidence suffix on the same line. Example:
## 📊 Overall Score — 27/100 · Grade F 🔍 (the leading 📊 reads as a data-backed claim even though the trailing 🔍 is correct)## Overall Score — 27/100 · Grade F 🔍 (no decorative emoji, just the proper confidence suffix)## 🎯 Overall Score — 27/100 · Grade F 🔍 (use non-reserved decorative icons like 🎯 🧭 📋 📝 📂 🏁 🚨 🏆 🔔 when a visual prefix is desired)Decorative emoji ≠ confidence label — but from a reader's perspective, a leading 📊/🔍/💡 is indistinguishable from a confidence claim. Reserve these three symbols EXCLUSIVELY for confidence annotation to avoid ambiguity.
Sample bias: "Based on Top [N] by sales volume; niche/new products may be underrepresented."
Include a table at the end of every report:
DataEndpointKey ParamsNotes(e.g. Market Overview)markets/searchcategoryPath, topN=10📊 Top N sampling, sales are lower-bound............
Extract endpoint and params from _query in JSON output. Add notes: sampling method, T+1 delay, realtime vs DB, minimum review threshold, etc.
EndpointCallsCredits(each endpoint used)NNTotalNN
Extract from meta.creditsConsumed per response. End with Credits remaining: N.
Realtime×ASINs(5-15) + History(1-2) + Market/Brand(3) + Products(1) + Price(2) + Categories(1) + Reviews(1-3).