LeoYeAI/agent-master-skills / skills/amazon-sorftime-research-market-skill
product-research
Verified基于Sorftime MCP的深度选品调研。通过LLM Agent执行多维度分析:数据采集→属性标注→交叉分析→竞品VOC→壁垒评估→选品决策评估。交互式执行,输出Markdown报告和Dashboard看板。
| File | Kind | Size |
|---|---|---|
| README.md | markdown | 1.9 KB |
| SKILL.md | skill md | 21.5 KB |
| _meta.json | config | 331 B |
| references/api-quick-reference.md | markdown | 2.7 KB |
| references/api-reference.md | markdown | 5.5 KB |
| references/prompt_templates.md | markdown | 11.7 KB |
| references/sorftime-mcp-api.md | markdown | 13.9 KB |
| references/troubleshooting.md | markdown | 5.2 KB |
| scripts/api_client.py | script | 24.6 KB |
| scripts/collect_data.py | script | 20.0 KB |
| scripts/fix_data_json.py | script | 4.7 KB |
| scripts/get_reviews.py | script | 4.4 KB |
| scripts/render_dashboard.py | script | 27.9 KB |
| scripts/run_analysis.py | script | 20.9 KB |
| scripts/validate_data.py | script | 8.0 KB |
| scripts/verify_reviews.py | script | 2.7 KB |
scripts/verify_reviews.py
View on GitHub#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
验证 Reviews 数据完整性
"""
import json
import os
import sys
def verify_reviews_data(reviews_path):
"""验证 Reviews 数据"""
if not os.path.exists(reviews_path):
print(f"✗ 文件不存在: {reviews_path}")
return False
with open(reviews_path, 'r', encoding='utf-8') as f:
data = json.load(f)
print(f"=== Reviews 数据验证 ===")
print(f"文件路径: {reviews_path}")
print(f"文件大小: {os.path.getsize(reviews_path)/1024:.1f} KB")
print()
print(f"竞品数量: {len(data)}")
total_reviews = 0
for asin, info in data.items():
desc = info.get('description', 'N/A')
count = info.get('review_count', 0)
reviews = info.get('reviews', [])
if isinstance(count, int):
total_reviews += count
review_count = len(reviews) if isinstance(reviews, list) else 0
print(f" - {asin}: {desc} ({count} 条,保存 {review_count} 条)")
print()
print(f"总差评数: {total_reviews}")
print("✓ 数据验证通过")
return True
def find_all_reviews_dirs():
"""查找所有 Reviews 数据目录"""
project_root = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
# 可能的目录位置
search_paths = [
os.path.join(project_root, 'product-research-reports'), # 新的输出目录
# os.path.join(project_root, 'product-research'), # 旧的输出目录(已废弃)
]
print(f"=== 搜索 Reviews 数据目录 ===")
print(f"项目根目录: {project_root}")
print()
found = []
for base_path in search_paths:
if not os.path.exists(base_path):
continue
for root, dirs, files in os.walk(base_path):
if 'competitor_reviews.json' in files:
# 如果在 raw 目录,记录父目录
if os.path.basename(root) == 'raw':
found.append(os.path.dirname(root))
print(f"✓ 找到: {os.path.dirname(root)}")
else:
found.append(root)
print(f"✓ 找到: {root}")
return found
if __name__ == '__main__':
# 查找所有 Reviews 数据
dirs = find_all_reviews_dirs()
if not dirs:
print("\n未找到任何 Reviews 数据")
sys.exit(1)
print(f"\n共找到 {len(dirs)} 个数据目录")
# 验证最新的数据
latest_dir = max(dirs, key=lambda x: os.path.getmtime(x))
reviews_path = os.path.join(latest_dir, 'raw', 'competitor_reviews.json')
print(f"\n验证最新数据: {latest_dir}")
print()
verify_reviews_data(reviews_path)
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness. | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |