技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
linkfox-sorftime-walmart-product-analysis【数据与研究】调用 Sorftime 按自然语言名称搜索 Walmart 美国站商品,或查询商品详情、商品趋势与按日销量。用户提到 Walmart 商品名称搜索、按名称找产品、相关产品、ProductId、商品详情、价格、评分、类目排名、商品趋势、历史变化、销量趋势、变体销量、按日销量、昨日销量、竞品发现或竞品跟踪时使用。
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use Sorftime to find Walmart US products by a natural-language name or inspect one product's detail, historical trend, or daily sales-volume series.
operation per request. Never call all four operations as a default workflow.searchByName to discover related products, detail for the current product summary, trend for historical product changes, and salesVolume for dated sales rows.searchByName requires name; the other operations require string productId. operation values are case-sensitive.| Intent | operation | Parameters | Sorftime Request |
|---|---|---|---|
| Find related products by name | searchByName | name, optional pageIndex | 2 |
| Current product details | detail | productId | 1 |
| Historical product trend | trend | productId | 2 |
| Daily/variant sales rows | salesVolume | productId, optional dates/page | 1 |
Read references/api.md before calling for exact date and pagination rules.
productId as a string, even when it contains digits only.searchByName accepts a natural-language product name and returns up to 100 related products per page; pageIndex defaults to 1.salesVolume accepts optional queryDate and queryEndDate in yyyy-MM-dd. With neither, it returns the recent 30-day range; with only queryDate, the end defaults to the current day.pageIndex applies to searchByName and salesVolume, starts at 1, and defaults to 1.POST /sorftime/walmart/productAnalysis(完整参数/响应/错误码见 references/api.md)python scripts/sorftime_walmart_product_analysis.py '<JSON 参数>' [--inline]输出策略(脚本默认行为):
<cwd>/linkfox/<YYYY-MM-DD>/<session>/data/linkfox-sorftime-walmart-product-analysis-<timestamp>.json(<cwd> 为脚本执行时的工作目录,在 Claude Code 里即当前项目目录;<session> 取自环境变量 SESSION_ID,按用户任务自动聚合;禁止写入 /tmp,当前目录不可写则报错)total/costToken、最大列表字段的长度 + 前 3 条样本)--inline 强制全量打印到 stdout(同样落盘)读数据建议:先看摘要判断是否足够;需要具体字段时优先用 jq或ConvertFrom-Json 从保存的 json 文件按需抽取,避免整份 JSON 进入上下文。
发生以下异常情况时,采用 references/onboarding.md 引导解决问题:
LINKFOX_AGENT_API_KEY,也未配置 LINKFOXAGENT_API_KEYpython scripts/sorftime_walmart_product_analysis.py '{"operation":"searchByName","name":"wireless earbuds","pageIndex":1}'
python scripts/sorftime_walmart_product_analysis.py '{"operation":"detail","productId":"5169493923"}'
python scripts/sorftime_walmart_product_analysis.py '{"operation":"trend","productId":"5169493923"}'
python scripts/sorftime_walmart_product_analysis.py '{"operation":"salesVolume","productId":"5169493923","queryDate":"2026-07-01","queryEndDate":"2026-07-31","pageIndex":1}'
requestConsumed, costCredit, and costToken. If _cache.hit=true, make clear that the cached values describe the original live request and no new production charge occurred.searchByName, label results as related products rather than exact matches and report the requested page.detail, present only fields returned by the ProductSummeryObject; do not infer missing attributes.trend, identify time fields and units from the response before summarizing changes.salesVolume, interpret rows as [date, sales, type]; type=2 marks yesterday's sales record.searchByName is natural-language related-product discovery, not a multi-filter product database or category-market query.Applicable: finding Walmart products from a natural-language product name, or queries centered on a known ProductId and its details, trend, or sales history.
Not applicable: category market research, keyword metrics/reverse lookup, or multi-condition product filtering.
Boundary judgment: Use searchByName only when the user needs related products from a name; use detail for a current snapshot, trend for historical attributes, and salesVolume only for dated sales rows.
按动态规则计费:单个 Sorftime Request 当前显示为 6 算力;多 Request 操作由网关按整单计算并取整,最终以入口脚本返回的 costCredit 为准,不要简单用 requestConsumed × 6 代替实际账单。
用户会因算力消耗而支付费用。不要未经确认补调另一 operation 或下一页。
Feedback:
Auto-detect and report feedback via the Feedback API when behavior or results mismatch intent, the user expresses praise or dissatisfaction, or an improvement is apparent. Follow references/api.md without interrupting the user's flow.
For more high-quality, professional cross-border e-commerce skills, visit LinkFox Skills.