ZooData — Amazon Daily Market Radar
Automated daily Amazon market digest.
How to use it
Claude Code
- Run the line below. It pulls the whole folder into
~/.claude/skills/amazon-daily-market-radar, including the files SKILL.md points to. - Describe your job in plain words. Claude Code follows the skill from there.
npx degit SerendipityOneInc/ZooData-Skills/amazon-daily-market-radar#main ~/.claude/skills/amazon-daily-market-radarFor one project only, change the path to .claude/skills/amazon-daily-market-radar. This skill also uses watchlist.json, last-run.json, zoodata.py — copying SKILL.md alone won't be enough. See the folder on GitHub.
Claude (web or desktop app)
- On this page open ⋯ → Download .md.
- Save it as SKILL.md in a folder, zip the folder, then Customize → Skills → + → Create skill → Upload a skill.
- Pick the file and Save. Claude shows the name and description and runs a security scan.
- Check the skill is switched on.
- Start a new chat and describe your job in plain words. The AI follows the skill from there.
ChatGPT or another app
- ChatGPT: make a Project and paste it into Instructions.
- Neither? Paste it at the top of a new chat — it works for that chat.
Not working?
- Check which app you pasted it into — the steps above name the right one.
- Some skills need the paid tier of Claude or ChatGPT.
Paste into Claude, ChatGPT or Cursor.
Source of ZooData — Amazon Daily Market Radar
Show the full text204 lines
| name | description | metadata |
|---|---|---|
| amazon-daily-market-radar | > Automated daily Amazon market digest. Given the user's own ASINs (1-10) and any competitor ASINs (up to 20), produces a daily change-detection briefing: price moves, BSR shifts, new entrants in the surrounding category, review wave detection, stockout signals. Output is a triaged alert dashboard (RED/YELLOW/GREEN) comparing today against yesterday's snapshot. Designed for unattended scheduled automation (cron-style daily run). Use when the user EXPLICITLY requests ongoing OPERATIONAL daily monitoring of their products and the surrounding market — a "what changed since yesterday" digest. Use when user asks: set up daily market monitoring for my ASINs, run my daily radar, what changed in my tracked market since yesterday, daily briefing on my tracked ASINs and competitors, emerging-brand or stockout alerts on my watchlist. Establishing monitoring and recurring runs always require the user's explicit opt-in — do not activate on vague update questions. Requires ZOODATA_API_KEY. | version: "1.0.9 author: SerendipityOneInc homepage: https://github.com/SerendipityOneInc/ZooData-Skills openclaw: {"requires": {"env": ["ZOODATA_API_KEY"]}, "primaryEnv": "ZOODATA_API_KEY"} |
ZooData — Amazon Daily Market Radar
Set it. Forget it. Get alerted when it matters. Respond in user's language.
Files
| File | Purpose |
|---|---|
{skill_base_dir}/scripts/zoodata.py |
Execute for all API calls (run --help for params) |
{skill_base_dir}/references/reference.md |
Load for exact field names or response structure |
{skill_base_dir}/data/ |
Runtime: watchlist.json, last-run.json (auto-created) |
Credential
Required: ZOODATA_API_KEY. Get free key at zoodata.ai/api-keys.
Capabilities & Data Flow
- Network: only
https://api.zoodata.ai(BearerZOODATA_API_KEY). SettingZOODATA_BASE_URLto an untrusted host (anything other thanapi.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. - Execution: bundled shared ZooData CLI
{skill_base_dir}/scripts/zoodata.py(Python 3, stdlib-only). This skill allowsdaily-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.jsonenforces this: the CLI refuses out-of-scope subcommands with a structuredCOMMAND_NOT_ALLOWEDerror before any API request. - Local files: baseline snapshots
{skill_base_dir}/data/last-run.jsonand{skill_base_dir}/data/watchlist.json; a private temporary working dir (created withmktemp -d, removed when the fallback completes) during the review fallback; reads the optional credential store~/.zoodata/config.json. - Sent to the API: keywords, category paths, ASINs, marketplace/date and numeric filter values only. Never sent: budget, experience level, risk tolerance, or any other user-profile text — profile inputs map client-side to numeric filters.
- Credits: every API call consumes account credits. For broad or ambiguous requests, state the estimated credit cost and confirm with the user before running multi-call scans. The composite
daily-radarcommand 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.
Shared CLI Contract
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.
Local Interface Failure Output
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.
Input (First Run)
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.
API Pitfalls (CRITICAL)
- Category auto-detection: categoryPath is auto-detected from tracked ASINs. If
category_sourcein output isinferred_from_search, confirm with user - All keyword-based endpoints MUST include
--category; ASIN-specific endpoints do NOT - Use API fields directly: read
references/reference.md § 2for market revenue and concentration fields; use product sales as a lower-bound estimate - reviews/analysis: needs 50+ reviews. Fallback chain when sample is insufficient:
- Lightweight:
realtime/productratingBreakdown — only star distribution, no themes - Full 11-dim insights — bypass
/reviews/analysisentirely: a.zoodata.py reviews-raw --asin X→ fetch up to 100 raw reviews (10 credits, ~60s) b. For each review: render Map prompt viazoodata.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 viazoodata.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):
- Working dir:
WORK=$(mktemp -d)(private, 0700 — not a predictable path); remove it withrm -rf "$WORK"afterreview-aggregatesucceeds or the fallback aborts - Step b CLI behavior:
review-tag-promptRENDERS 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). - Step c candidate extraction (Python one-liner):
candidates = {d: sorted({el.strip().lower() for t in tagged for el in (t.get(d) or [])}) for d in DIMS} - Small-sample rule (reviewCount<50): demote single-mention items 📊→🔍; NEVER attach table-level or section-header 📊 when any row inside is 🔍; suppress "🔴 Critical" verdicts on count=1
- Scope: fallback replaces ONLY the
/reviews/analysisaggregation. This skill's primary workflow outputs (price/BSR/sales deltas, alerts, watchlist baseline) remain valid — do not re-run them.
- Working dir:
- Lightweight:
- Aggregation without categoryPath: severely distorted data
On Missing Key
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.
On 401 Invalid Key
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.
On 402 Credit Exhausted
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.
Execution
daily-radar --asins "asin1,asin2,..." [--keyword X] [--category Y](composite, auto-detects category from ASINs)- Compare against
{skill_base_dir}/data/last-run.jsonfor change detection (first run = baseline only, no alerts) - Generate alert-prioritized briefing → save snapshot to
{skill_base_dir}/data/last-run.json
Alert Rules
| Level | Triggers |
|---|---|
| 🔴 RED | Price drop >10% by competitor; BSR crash >50% (yours); 1-star spike (3+ in 24h) |
| 🟡 YELLOW | New competitor in Top 20; competitor price change 5-10%; BSR change 20-50%; brand share shift >2% |
| 🟢 GREEN | Competitor stock-out; your review velocity up; price band opportunity shift |
Change Detection Logic
- Price change >5% → 🔴
- BSR move >20% → 🟡
- New ASINs in top 20 (vs last run) → 🟡
Growth signal validation:
- 📊 Sustained: 7+ days consistent direction
- 🔍 Possible signal: 2-3 days of change
- 💡 Single-day spike: could be promotion/restock
Change Interpretation Guide
| Metric | Normal Range | Action Trigger | Likely Cause |
|---|---|---|---|
| Price change | ±3% | >5% sustained 3+ days | Repricing strategy or promotion 🔍 |
| BSR shift | ±15% daily | >30% sustained or >50% single day | Stockout, promotion, or algorithm change 🔍 |
| Rating drop | ±0.1 | >0.2 in 7 days | Product quality issue or review attack 🔍 |
| Review velocity | ±20% | >50% spike | Vine program, review manipulation, or viral moment 🔍 |
| New entrant in Top 20 | 0-1/week | 3+ in one week | Market shift or seasonal demand 🔍 |
Action Recommendations by Alert Level
- 🔴 RED: Require immediate response — check inventory, match price if needed, investigate quality issues 💡
- 🟡 YELLOW: Monitor for 3-5 days before acting — may be temporary fluctuation 💡
- 🟢 GREEN: Opportunity window — act within 1-2 weeks before competitors notice 💡
Output Spec
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.
Language (required)
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.
Disclaimer (required, at the top of every report)
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.
Confidence Labels (required, tag EVERY conclusion)
- 📊 Data-backed — direct API data (e.g. "CR10 = 54.8% 📊")
- 🔍 Inferred — logical reasoning from data (e.g. "brand concentration is moderate 🔍")
- 💡 Directional — suggestions, predictions, strategy (e.g. "consider entering $10-15 band 💡")
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:
- Section headers at EVERY level (
#,##,###,####) — including top-level summary sections like "Overall Score", "Verdict", "Executive Summary" - Summary/score lines anywhere in the report (e.g.
## Overall Score — 27/100 · Grade F 📊is WRONG if any Basis row inside is 🔍) - Table column headers in comparison tables (e.g.
**Target ASIN** 📊as a column label is WRONG if any cell in that column contains 🔍) - Table row headers or row-aggregation labels (when the row aggregates multiple cells of mixed confidence)
- Any other visual grouping label — bullet-list group titles, callout box titles, etc.
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:
- ❌ WRONG:
## 📊 Overall Score — 27/100 · Grade F 🔍(the leading 📊 reads as a data-backed claim even though the trailing 🔍 is correct) - ✅ RIGHT:
## Overall Score — 27/100 · Grade F 🔍(no decorative emoji, just the proper confidence suffix) - ✅ RIGHT:
## 🎯 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."
Data Provenance (required)
Include a table at the end of every report:
| Data | Endpoint | Key Params | Notes |
|---|---|---|---|
| (e.g. Market Overview) | markets/search |
Copy actual _query.params |
📊 Full category and selected Top 100 metrics |
| ... | ... | ... | ... |
Extract endpoint and params from _query in JSON output. Add notes: sampling method, T+1 delay, realtime vs DB, minimum review threshold, etc.
API Usage (required)
| Endpoint | Calls | Credits |
|---|---|---|
| (each endpoint used) | N | N |
| Total | N | N |
Extract from meta.creditsConsumed per response. End with Credits remaining: N.
API Budget: ~15-30 credits
Realtime×ASINs(5-15) + History(1-2) + Market/Brand(3) + Products(1) + Price(2) + Categories(1) + Reviews(1-3).
| 1 | |
| 2 | name amazon-daily-market-radar |
| 3 | description > |
| 4 | Automated daily Amazon market digest. Given the user's own ASINs (1-10) |
| 5 | and any competitor ASINs (up to 20), produces a daily change-detection |
| 6 | briefing price moves, BSR shifts, new entrants in the surrounding |
| 7 | category, review wave detection, stockout signals. Output is a triaged |
| 8 | alert dashboard (RED/YELLOW/GREEN) comparing today against yesterday's |
| 9 | snapshot. Designed for unattended scheduled automation (cron-style daily |
| 10 | run). |
| 11 | Use when the user EXPLICITLY requests ongoing OPERATIONAL daily |
| 12 | monitoring of their products and the surrounding market — a "what |
| 13 | changed since yesterday" digest. |
| 14 | Use when user asks: set up daily market monitoring for my ASINs, run |
| 15 | my daily radar, what changed in my tracked market since yesterday, |
| 16 | daily briefing on my tracked ASINs and competitors, emerging-brand or |
| 17 | stockout alerts on my watchlist. Establishing monitoring and recurring |
| 18 | runs always require the user's explicit opt-in — do not activate on |
| 19 | vague update questions. |
| 20 | Requires ZOODATA_API_KEY. |
| 21 | metadata |
| 22 | version "1.0.9" |
| 23 | author SerendipityOneInc |
| 24 | homepage https://github.com/SerendipityOneInc/ZooData-Skills |
| 25 | openclaw {"requires": {"env": ["ZOODATA_API_KEY"]}, "primaryEnv": "ZOODATA_API_KEY"} |
| 26 | |
| 27 | |
| 28 | # ZooData — Amazon Daily Market Radar |
| 29 | |
| 30 | > Set it. Forget it. Get alerted when it matters. Respond in user's language. |
| 31 | |
| 32 | ## Files |
| 33 | |
| 34 | | File | Purpose | |
| 35 | |------|---------| |
| 36 | | `{skill_base_dir}/scripts/zoodata.py` | **Execute** for all API calls (run `--help` for params) | |
| 37 | | `{skill_base_dir}/references/reference.md` | Load for exact field names or response structure | |
| 38 | | `{skill_base_dir}/data/` | Runtime: watchlist.json, last-run.json (auto-created) | |
| 39 | |
| 40 | ## Credential |
| 41 | |
| 42 | Required: `ZOODATA_API_KEY`. Get free key at [zoodata.ai/api-keys]. |
| 43 | |
| 44 | ## Capabilities & Data Flow |
| 45 | |
| 46 | **Network**: only `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. |
| 47 | **Execution**: bundled shared ZooData CLI `{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. |
| 48 | **Local files**: baseline snapshots `{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`. |
| 49 | **Sent to the API**: keywords, category paths, ASINs, marketplace/date and numeric filter values only. **Never sent**: budget, experience level, risk tolerance, or any other user-profile text — profile inputs map client-side to numeric filters. |
| 50 | **Credits**: every API call consumes account credits. For broad or ambiguous requests, state the estimated credit cost and confirm with the user before running multi-call scans. The composite `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. |
| 51 | |
| 52 | ## Shared CLI Contract |
| 53 | |
| 54 | 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. |
| 55 | |
| 56 | ### Local Interface Failure Output |
| 57 | |
| 58 | 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. |
| 59 | |
| 60 | ## Input (First Run) |
| 61 | |
| 62 | 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. |
| 63 | |
| 64 | 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. |
| 65 | |
| 66 | ## API Pitfalls (CRITICAL) |
| 67 | |
| 68 | **Category auto-detection**: categoryPath is auto-detected from tracked ASINs. If `category_source` in output is `inferred_from_search`, confirm with user |
| 69 | **All keyword-based endpoints MUST include `--category`**; ASIN-specific endpoints do NOT |
| 70 | **Use API fields directly**: read `references/reference.md § 2` for market revenue and concentration fields; use product sales as a lower-bound estimate |
| 71 | **reviews/analysis**: needs 50+ reviews. Fallback chain when sample is insufficient: |
| 72 | **Lightweight**: `realtime/product` ratingBreakdown — only star distribution, no themes |
| 73 | **Full 11-dim insights** — bypass `/reviews/analysis` entirely: |
| 74 | a. `zoodata.py reviews-raw --asin X` → fetch up to 100 raw reviews (10 credits, ~60s) |
| 75 | b. For each review: render Map prompt via `zoodata.py review-tag-prompt --review '<json>'` |
| 76 | and have your own LLM produce JSON tags (sentiment + 11 dimensions) |
| 77 | c. Collect candidate phrases per dimension; for each dimension render |
| 78 | Reduce prompt via `zoodata.py review-reduce-prompt --label-type X --candidates '[...]'` |
| 79 | and have your LLM produce semantic clusters |
| 80 | d. `zoodata.py review-aggregate --reviews R --tagged T --clusters C` |
| 81 | → consumerInsights output compatible with `/reviews/analysis` |
| 82 | **Fallback caveats** (apply to the 4-step chain above — lessons from end-to-end validation): |
| 83 | **Working dir**: `WORK=$(mktemp -d)` (private, 0700 — not a predictable path); remove it with `rm -rf "$WORK"` after `review-aggregate` succeeds or the fallback aborts |
| 84 | **Step b CLI behavior**: `review-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). |
| 85 | **Step c candidate extraction** (Python one-liner): |
| 86 | `candidates = {d: sorted({el.strip().lower() for t in tagged for el in (t.get(d) or [])}) for d in DIMS}` |
| 87 | **Small-sample rule (reviewCount<50)**: demote single-mention items 📊→🔍; NEVER attach table-level or section-header 📊 when any row inside is 🔍; suppress "🔴 Critical" verdicts on count=1 |
| 88 | **Scope**: fallback replaces ONLY the `/reviews/analysis` aggregation. This skill's primary workflow outputs (price/BSR/sales deltas, alerts, watchlist baseline) remain valid — do not re-run them. |
| 89 | **Aggregation without categoryPath**: severely distorted data |
| 90 | |
| 91 | ## On Missing Key |
| 92 | |
| 93 | 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. |
| 94 | ## On 401 Invalid Key |
| 95 | |
| 96 | 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. |
| 97 | |
| 98 | ## On 402 Credit Exhausted |
| 99 | |
| 100 | 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. |
| 101 | |
| 102 | ## Execution |
| 103 | |
| 104 | `daily-radar --asins "asin1,asin2,..." [--keyword X] [--category Y]` (composite, auto-detects category from ASINs) |
| 105 | Compare against `{skill_base_dir}/data/last-run.json` for change detection (first run = baseline only, no alerts) |
| 106 | Generate alert-prioritized briefing → save snapshot to `{skill_base_dir}/data/last-run.json` |
| 107 | |
| 108 | ## Alert Rules |
| 109 | |
| 110 | | Level | Triggers | |
| 111 | |-------|----------| |
| 112 | | 🔴 RED | Price drop >10% by competitor; BSR crash >50% (yours); 1-star spike (3+ in 24h) | |
| 113 | | 🟡 YELLOW | New competitor in Top 20; competitor price change 5-10%; BSR change 20-50%; brand share shift >2% | |
| 114 | | 🟢 GREEN | Competitor stock-out; your review velocity up; price band opportunity shift | |
| 115 | |
| 116 | ## Change Detection Logic |
| 117 | |
| 118 | Price change >5% → 🔴 |
| 119 | BSR move >20% → 🟡 |
| 120 | New ASINs in top 20 (vs last run) → 🟡 |
| 121 | |
| 122 | Growth signal validation: |
| 123 | 📊 Sustained: 7+ days consistent direction |
| 124 | 🔍 Possible signal: 2-3 days of change |
| 125 | 💡 Single-day spike: could be promotion/restock |
| 126 | |
| 127 | ### Change Interpretation Guide |
| 128 | | Metric | Normal Range | Action Trigger | Likely Cause | |
| 129 | |--------|-------------|----------------|-------------| |
| 130 | | Price change | ±3% | >5% sustained 3+ days | Repricing strategy or promotion 🔍 | |
| 131 | | BSR shift | ±15% daily | >30% sustained or >50% single day | Stockout, promotion, or algorithm change 🔍 | |
| 132 | | Rating drop | ±0.1 | >0.2 in 7 days | Product quality issue or review attack 🔍 | |
| 133 | | Review velocity | ±20% | >50% spike | Vine program, review manipulation, or viral moment 🔍 | |
| 134 | | New entrant in Top 20 | 0-1/week | 3+ in one week | Market shift or seasonal demand 🔍 | |
| 135 | |
| 136 | ### Action Recommendations by Alert Level |
| 137 | **🔴 RED**: Require immediate response — check inventory, match price if needed, investigate quality issues 💡 |
| 138 | **🟡 YELLOW**: Monitor for 3-5 days before acting — may be temporary fluctuation 💡 |
| 139 | **🟢 GREEN**: Opportunity window — act within 1-2 weeks before competitors notice 💡 |
| 140 | |
| 141 | ## Output Spec |
| 142 | |
| 143 | First run: "Baseline Established" — KPI Dashboard (current snapshot) only, no alerts. |
| 144 | |
| 145 | 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. |
| 146 | |
| 147 | ### Language (required) |
| 148 | |
| 149 | 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. |
| 150 | |
| 151 | ### Disclaimer (required, at the top of every report) |
| 152 | |
| 153 | > 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. |
| 154 | |
| 155 | ### Confidence Labels (required, tag EVERY conclusion) |
| 156 | |
| 157 | 📊 **Data-backed** — direct API data (e.g. "CR10 = 54.8% 📊") |
| 158 | 🔍 **Inferred** — logical reasoning from data (e.g. "brand concentration is moderate 🔍") |
| 159 | 💡 **Directional** — suggestions, predictions, strategy (e.g. "consider entering $10-15 band 💡") |
| 160 | |
| 161 | Rules: Strategy recommendations are NEVER 📊. Anomalies (>200% growth) are always 💡. User criteria override AI judgment. |
| 162 | |
| 163 | **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: |
| 164 | Section headers at EVERY level (`#`, `##`, `###`, `####`) — including top-level summary sections like "Overall Score", "Verdict", "Executive Summary" |
| 165 | Summary/score lines anywhere in the report (e.g. `## Overall Score — 27/100 · Grade F 📊` is WRONG if any Basis row inside is 🔍) |
| 166 | Table **column** headers in comparison tables (e.g. `**Target ASIN** 📊` as a column label is WRONG if any cell in that column contains 🔍) |
| 167 | Table row headers or row-aggregation labels (when the row aggregates multiple cells of mixed confidence) |
| 168 | Any other visual grouping label — bullet-list group titles, callout box titles, etc. |
| 169 | |
| 170 | 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. |
| 171 | |
| 172 | **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: |
| 173 | ❌ WRONG: `## 📊 Overall Score — 27/100 · Grade F 🔍` (the leading 📊 reads as a data-backed claim even though the trailing 🔍 is correct) |
| 174 | ✅ RIGHT: `## Overall Score — 27/100 · Grade F 🔍` (no decorative emoji, just the proper confidence suffix) |
| 175 | ✅ RIGHT: `## 🎯 Overall Score — 27/100 · Grade F 🔍` (use non-reserved decorative icons like 🎯 🧭 📋 📝 📂 🏁 🚨 🏆 🔔 when a visual prefix is desired) |
| 176 | |
| 177 | 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. |
| 178 | |
| 179 | Sample bias: "Based on Top [N] by sales volume; niche/new products may be underrepresented." |
| 180 | |
| 181 | ### Data Provenance (required) |
| 182 | |
| 183 | Include a table at the end of every report: |
| 184 | |
| 185 | | Data | Endpoint | Key Params | Notes | |
| 186 | |------|----------|------------|-------| |
| 187 | | (e.g. Market Overview) | `markets/search` | Copy actual `_query.params` | 📊 Full category and selected Top 100 metrics | |
| 188 | | ... | ... | ... | ... | |
| 189 | |
| 190 | Extract endpoint and params from `_query` in JSON output. Add notes: sampling method, T+1 delay, realtime vs DB, minimum review threshold, etc. |
| 191 | |
| 192 | ### API Usage (required) |
| 193 | |
| 194 | | Endpoint | Calls | Credits | |
| 195 | |----------|-------|---------| |
| 196 | | (each endpoint used) | N | N | |
| 197 | | **Total** | **N** | **N** | |
| 198 | |
| 199 | Extract from `meta.creditsConsumed` per response. End with `Credits remaining: N`. |
| 200 | |
| 201 | ## API Budget: ~15-30 credits |
| 202 | |
| 203 | Realtime×ASINs(5-15) + History(1-2) + Market/Brand(3) + Products(1) + Price(2) + Categories(1) + Reviews(1-3). |
| 204 |
Discussion
Browse more free Claude skills or everything in Development.