← 返回 Skills 市场
sparkbayes

amazon-review-insights

作者 SparkBayes · GitHub ↗ · v1.0.2 · MIT-0
cross-platform ✓ 安全检测通过
162
总下载
1
收藏
0
当前安装
16
版本数
在 OpenClaw 中安装
/install amazon-review-insights
功能描述
亚马逊产品评论智能分析工具,帮助跨境电商卖家进行产品改进、新品开发、市场调研!核心能力:获取亚马逊评论、AI深度分析差评、精准量化高频问题、挖掘高星隐性差评、生成改进建议、追踪评论趋势、增量更新。
使用说明 (SKILL.md)

AstrMap Review Insights Skill

Language

  • Reply in English if user input is in English or non-Chinese (as this is the unified language)
  • Reply in 中文 if user input is in Chinese

Configuration

API Key

All API calls require an API Key for authentication.

Note: The API endpoint is fixed at https://api.astrmap.com and is not configurable.

Recommended: Set the environment variable in ~/.zshrc or ~/.bashrc:

export CUSTOMER_INSIGHTS_API_KEY="your-api-key-here"

To obtain an API Key: Download and install the AstrMap desktop client from https://www.astrmap.com/, log in, click User Menu (bottom-left)API Keys, create and copy your API Key.

Important: If CUSTOMER_INSIGHTS_API_KEY is not set or no API Key is provided, ask the user first:

"Please provide your AstrMap API Key (download at https://www.astrmap.com/, log in, click User Menu → API Keys to create one)"

Then pass it via --api-key parameter for all subsequent commands.

Security Notice: This Skill sends the API Key to AstrMap servers (api.astrmap.com) for authentication. The API Key will not be used to access other services.

Feature Tiers

Feature Requires Desktop Client Requires API Key
Query completed analysis results No Yes
Create collection-only task Yes (online) Yes
Create auto-analysis task Yes (online) Yes
Incremental fetch Yes (online) Yes
Manual trigger analysis No Yes

Tip: If you only need to query completed analysis results, you can use the API Key directly without downloading the desktop client.

Desktop Client

Creating tasks requires the AstrMap desktop client running online.

When device is offline (check_device returns 1001 error):

  1. Ask the user: "The desktop client is not running. Have you installed it?"
  2. If not installed: Ask if you should help download, then guide through extraction and startup
  3. If installed but not running: Prompt user to start the desktop client, then re-check online status

Desktop Client Download & Installation

1. Get Download Links

python scripts/api_client.py --action get_download_links

2. Extraction Notes

Important: Do not use Windows built-in extraction tools (may cause issues). Use 7-Zip, WPS Extraction, or similar tools instead.

3. Startup Guide

macOS: Move the folder to "Applications" directory, right-click Astrmap.app → "Open", if blocked go to "System Settings → Privacy & Security → General" → "Still open".

Windows: Right-click "launch.vbs" → "Run with PowerShell" or double-click to start.

4. Initial Setup

After launching:

  1. Log in to your AstrMap account
  2. Log in to your Amazon buyer account (do not use your seller account)
  3. Ensure Amazon access is working

Security & Verification

For detailed security verification, privacy risk statement, Amazon account security, and API Key safety guidelines, read {baseDir}/references/security.md.

Dependency Installation

pip install -r requirements.txt

Important Notes

Points System

  • Create task (auto mode): Free review collection, AI analysis deducts points
  • Create task (collection-only mode): Free review collection, no point deduction
  • Incremental fetch: Fetch latest reviews and re-analyze, deducts points
  • Query results: View completed results, no point deduction

Prerequisites (only for creating tasks)

  1. AstrMap desktop client is logged in
  2. Desktop client is logged in to Amazon buyer account
  3. Amazon access is working

Querying completed task results has no restrictions and can be called directly.

Workflow

Invocation

python scripts/api_client.py --action \x3Caction> [--params...]

1. Check Device Online

python scripts/api_client.py --action check_device --api-key "your-key"

Response: {online: true, device_id: "xxx", status: "idle"}

2. Create Task

Note: Creating a task deducts points. Before executing, inform the user and wait for confirmation: "About to create task. Current points: {points}. This will deduct points. Continue?"

Create Task Flow:

  1. --action check_device → Check device online status
  2. --action get_points → Check account points
  3. Inform user of point consumption, wait for confirmation
  4. Confirm prerequisites, then --action create_task --asin \x3CASIN> --site \x3Csite> [--is-auto false]

Run Mode:

Parameter Description
--is-auto true (default) Auto mode: automatically trigger AI analysis after collection
--is-auto false Collection-only mode: stops at "pending analysis" status

Site Mapping: US/CA/UK(English), DE(German), FR(French), IT(Italian), ES(Spanish), JP(Japanese)

Command Examples:

python scripts/api_client.py --action create_task --api-key "your-key" --asin "B09V3KXJPB" --site US

3. Poll Task Status

After submission, poll every 6 minutes:

python scripts/api_client.py --action get_task_detail --api-key "your-key" --task-id "TSK_xxx"

Status Flow:

Auto Mode (is_auto=true): PENDINGDISPATCHINGCOLLECTINGPROCESSINGANALYZINGSUCCESS/FAILED/CANCELLED

Collection-only Mode (is_auto=false): PENDINGDISPATCHINGCOLLECTINGCOLLECTED

Status Prompts:

Status User Message
PENDING "Task submitted, waiting for scheduling..."
DISPATCHING "Allocating device..."
COLLECTING "Fetching Amazon review data, please wait (usually 20~120 seconds)"
PROCESSING "Review data fetched, processing..."
ANALYZING "Data processing complete, AI analyzing..."
SUCCESS "Analysis complete! Fetching results..."
FAILED "Task failed. Please check device status and network connection."
CANCELLED "Task cancelled"
COLLECTED "Collection complete! In pending analysis state."

If task does not complete after a long time (over 18 minutes), prompt user to check if desktop client is online.

4. Get Analysis Results

# AI Insights Summary
python scripts/api_client.py --action get_ai_insights --api-key "your-key" --task-id "TSK_xxx"
# Tag Distribution
python scripts/api_client.py --action get_tag_categories --api-key "your-key" --task-id "TSK_xxx"
# Basic Statistics
python scripts/api_client.py --action get_basic_statistics --api-key "your-key" --task-id "TSK_xxx"
# Negative Reviews List
python scripts/api_client.py --action get_negative_reviews --api-key "your-key" --task-id "TSK_xxx" --page 1 --page-size 20

Note: Querying completed task results does not deduct points and has no prerequisites.

5. Incremental Fetch

Note: Incremental fetch deducts points. Before executing, inform user and wait for confirmation.

Incremental Fetch Flow:

  1. Check device and points
  2. Inform user of point consumption, wait for confirmation
  3. --action create_incremental --task-id \x3Ctask_id>
  4. Poll status (same as create task)

6. Manual Trigger Analysis (Collection-only Mode)

Tasks in collection-only mode (is_auto=false) stop at COLLECTED status, requiring manual AI analysis trigger:

python scripts/api_client.py --action trigger_analysis --api-key "your-key" --task-id "TSK_xxx"

Status flow: COLLECTEDPROCESSINGANALYZINGSUCCESS

All Available Actions

action Description Required Parameters
get_download_links Get desktop client download links -
check_device Check if device is online -
create_task Create task --asin, --site
create_incremental Incremental fetch --task-id
trigger_analysis Manual trigger analysis --task-id
get_task_detail Query task details --task-id
get_task_list Get task list -
get_ai_insights Get AI insights --task-id
get_tag_categories Get tag distribution --task-id
get_issue_statistics Get issue dimension statistics --task-id
get_top_issues Get top issues distribution --task-id
get_basic_statistics Get basic statistics --task-id
get_negative_reviews Get negative reviews list --task-id
get_trend Get review trends --task-id
get_related_comments Get comments associated with tag/issue --task-id, --association-type
get_comments Get raw comments --task-id
get_comments_overview Get comments overview --task-id
get_points Query points balance -

Error Handling

Error Code Description Handling
1001 Device offline Desktop client not running. Ask if installed; if not, provide download guide
1002 Insufficient points Prompt user to recharge at https://www.astrmap.com/
2001 Invalid API Key Check if API Key is correct
2002 API Key disabled Prompt user to create new API Key
2003 API Key expired Prompt user to create new API Key
2004 Insufficient permissions Check API Key permission configuration
2005 Request rate exceeded Prompt user to retry later
InvalidTaskStatus Task status is not COLLECTED Only collection-only tasks with COLLECTED status can trigger analysis

Detailed API Documentation

For detailed API endpoint documentation, request parameters, and response formats, see API Reference.

Usage Examples

Scenario 1: Create New Task

User: Help me get and analyze reviews for B09V3KXJPB
AI Agent:
1. Check API Key → if not configured, ask user to provide
2. Check device and points
3. Inform point consumption, wait for confirmation
4. Create task
5. Poll status every 6 minutes, provide real-time progress
6. After analysis complete, get results

Scenario 2: Collection-only Mode + Manual Trigger Analysis

User: Help me collect reviews only, don't analyze for now
AI Agent:
1. Check API Key and device
2. Create task with --is-auto false
3. Poll status until COLLECTED
4. After user confirms analysis, run trigger_analysis (API Key only, no desktop client required)

Scenario 3: Query Completed Task

User: View analysis results for TSK_xxx
AI Agent:
1. Check API Key
2. Get analysis results directly (no device or prerequisites required)
安全使用建议
This skill appears internally consistent, but you must trust the external AstrMap service and its desktop client. Before installing: 1) Only provide a CUSTOMER_INSIGHTS_API_KEY you trust—treat it like a password and rotate/disable it when unused. 2) Verify desktop client download URLs, checksums, and code signatures as advised; consider using a dedicated/isolated Amazon buyer account (do not use your seller/main account). 3) Be aware tasks that create new collection jobs may consume account points—confirm before creating tasks. 4) If you need higher assurance, inspect the downloaded desktop client and network traffic, or contact AstrMap support/verify their privacy policy and reputation first.
能力标签
requires-sensitive-credentials
能力评估
Purpose & Capability
Name/description match the included client and API reference. The only required credential is CUSTOMER_INSIGHTS_API_KEY which is exactly what the skill uses to authenticate to api.astrmap.com. No unrelated credentials, binaries, or config paths are requested.
Instruction Scope
SKILL.md limits runtime actions to calling AstrMap endpoints via scripts/api_client.py and guiding the user to install/run the AstrMap desktop client. It instructs setting CUSTOMER_INSIGHTS_API_KEY and to verify downloads/signatures. It does not ask for Amazon seller credentials or other unrelated system data. The only scope creep is that the workflow depends on a third‑party desktop app that logs into an Amazon buyer account (documented and warned about).
Install Mechanism
This is instruction-only with a local Python client file and a small requirements.txt (requests). No packaged install is pulled from unknown hosts by the skill itself. The skill suggests downloading a desktop client from https://www.astrmap.com (not a major mainstream vendor but consistent with the product); the SKILL.md advises checksum/signature verification. Risk is limited but depends on trusting that external download.
Credentials
Only CUSTOMER_INSIGHTS_API_KEY is required and is used for Bearer auth to AstrMap. The skill explicitly states it will not request Amazon credentials. The need for an API key is proportional to the stated functionality. Note: the API key is sensitive and will be sent to api.astrmap.com for authentication.
Persistence & Privilege
Skill is not always-enabled, does not request system-wide privileges, and does not modify other skills. It can be invoked autonomously (platform default), which is normal; no additional elevated persistence is requested.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install amazon-review-insights
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /amazon-review-insights 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.2.1
amazon-review-insights v1.2.1 - Updated documentation to clarify: "Manual trigger analysis" now only requires an API Key and does not require the desktop client. - No functional or code changes; documentation only.
v1.2.0
Optimize SKILL.md: move security docs to references/security.md, reduce from 426 to 295 lines
v1.1.0
Unify all documentation to English, remove description_zh, rename directory to amazon-review-insights
v1.0.2
Revert display name to amazon-review-insights for security scan testing.
v1.0.1
Update display name to AstrMap Customer Insights for better branding consistency.
v1.0.0
Fix registry metadata: ensure CUSTOMER_INSIGHTS_API_KEY is properly declared. Brand name unified to AstrMap. Security enhancements: privacy risk statement, mandatory checksum verification, code signing verification. Added get_related_comments action for tag/issue based comment queries.
v0.9.12
Version 0.9.12 - Updated skill environment variable requirements to only list the variable name (`CUSTOMER_INSIGHTS_API_KEY`) without a description or required field. - No code or functionality changes detected. - Documentation and configuration instructions remain consistent with the previous version.
v0.9.11
amazon-review-insights 0.9.11 - Removed the _meta.json file from the project. - No changes to core functionality or usage. - All features and documentation remain unchanged.
v0.9.10
No file changes detected in this version. - No updates or modifications since the previous release. - All functionality and documentation remain unchanged.
v0.9.9
amazon-review-insights v0.9.9 - Added _meta.json file for enhanced skill metadata management. - No changes to logic or features; this update involves metadata structure only.
v0.9.8
- Added a detailed privacy risk statement describing data access and risk levels for the AstrMap desktop client, API client, and API Key usage. - Clarified that this skill does not process Amazon credentials; all Amazon logins occur only within the AstrMap desktop client. - Updated environment variable metadata to include a required description for CUSTOMER_INSIGHTS_API_KEY. - Improved wording for API Key security and added a clear statement in the configuration section explaining data flow and authentication usage. - Specified that get_download_links does not require an API Key in the operations table. - No core workflow or functional changes.
v0.9.7
- Added plain English and Chinese descriptions for broader global accessibility. - Unified product/brand naming to "AstrMap" and applied updated branding throughout. - Refined client installation and verification guidance, including signature and security checks. - Clarified multi-language reply logic: respond in the user's input language (Chinese or otherwise). - Updated wording and structure for greater international clarity (e.g., "global sellers," not just "跨境"). - No functional or interface changes to skill commands or APIs.
v0.9.6
amazon-review-insights v0.9.6 - 更新了桌面客户端下载验证和配置说明,下载链接统一指向 download-config.json 获取,强调文件来源与完整性校验。 - 优化安全与验证说明,简化文字并明确官方下载渠道和校验方法。 - 增强 API Key 和账号安全的建议,强调不要使用主账号,推荐环境变量方式存储密钥。 - 调整安装指引相关表述,更聚焦实际文件下载、启动和首次使用流程。 - 其他使用说明与错误处理等未做功能性调整,仅有小幅表述优化。
v0.9.5
amazon-review-insights v0.9.5 - 新增“功能分层说明”:明确哪些操作无需桌面客户端,提升易用性与安全感知。 - 增加安全与验证说明,包括桌面客户端下载安全、Amazon 账号安全、API Key 安全等使用建议。 - 相关提示文字与组织结构优化,使用户更易理解各操作权限与风险。 - 其余功能、操作与流程未变化。
v0.9.4
**桌面客户端处理与错误引导全面升级。** - 新增 get_download_links 操作,用于动态获取桌面客户端下载链接和版本信息。 - 遇到设备不在线(1001 错误)时,完善了与用户交互的指引流程:询问安装状态、自动获取下载链接、分操作系统提供解压与启动指引。 - 明确解压及首次使用注意事项,新增对常见安装失败场景的处理建议。 - 补充了 API Key 相关错误(禁用、过期、频率超限等)的处理说明。 - 积分规则及轮询超时提示细化,任务状态新增 CANCELLED。 - 各操作、状态处理、错误码全量列表同步更新。
v0.9.3
- 新增“仅采集模式”支持:创建任务时可通过 `--is-auto false` 参数仅采集评论,采集完成后需手动触发分析。 - 增加 `trigger_analysis` 操作:支持对仅采集模式下的已采集任务手动发起AI分析。 - 优化任务状态流转说明和用户提示,区分自动分析与仅采集模式下的不同流程和状态(新增 COLLECTED 状态)。 - 更新部分指令说明和使用示例,便于用户理解新模式流程。 - 扩展错误码说明,补充了仅采集模式相关的状态校验错误。
v0.9.2
- No functional or file changes detected in this release. - Version bump only; content and workflow remain unchanged.
v0.9.1
- 明确说明 API 端点为 https://api.astrmap.com,不可自定义或更改。 - 更新隐私政策,说明 API Key 会被安全发送至星图服务器进行身份认证,不再仅本地使用。 - 明确任务前置条件需使用亚马逊买家账号,并提醒勿用卖家业务账号。 - 优化说明文档表述,细化部分操作指引,无功能性变更。
v0.9.0
amazon-review-insights 0.9.0 introduces a comprehensive Chinese guide for setup and workflow, with clear user instructions and required API usage for Amazon review analysis. - 新增详细 SKILL.md,全面介绍安装配置、任务流程与命令示例 - 明确 API Key 获取与环境变量设置要求 - 全面梳理任务流程,包括前置条件、积分提示及用户交互建议 - 列举所有支持的 API 操作及错误码处理方法 - 补充真实场景下的人机对话模板,方便快速入门 - 细化增量分析、轮询策略与异常处理指引
元数据
Slug amazon-review-insights
版本 1.0.2
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 16
常见问题

amazon-review-insights 是什么?

亚马逊产品评论智能分析工具,帮助跨境电商卖家进行产品改进、新品开发、市场调研!核心能力:获取亚马逊评论、AI深度分析差评、精准量化高频问题、挖掘高星隐性差评、生成改进建议、追踪评论趋势、增量更新。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 162 次。

如何安装 amazon-review-insights?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install amazon-review-insights」即可一键安装,无需额外配置。

amazon-review-insights 是免费的吗?

是的,amazon-review-insights 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

amazon-review-insights 支持哪些平台?

amazon-review-insights 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 amazon-review-insights?

由 SparkBayes(@sparkbayes)开发并维护,当前版本 v1.0.2。

💬 留言讨论