linkfox-ai/linkfox-skills

linkfox-sorftime-walmart-category-market

调用 Sorftime 研究 Walmart 美国站类目:获取完整类目树、按自然语言类目名称匹配相关 NodeId,或使用下划线分隔的 NodePath 查询类目市场数据及 Best Seller 商品。用户提到 Walmart 类目树、类目名称搜索、类目匹配、类目节点、NodeId、NodePath、类目市场分析、类目调研、类目规模、类目热销商品、Best Seller,或需要先定位类目再研究市场时使用。

Ver código fuente

Cómo usar

  1. Copia el comando y revisa el paquete antes de instalarlo en tu entorno de agente.
  2. Consulta las herramientas, credenciales y entornos necesarios en el documento original.
  3. Describe las entradas y el resultado deseado; contrasta la salida con las fuentes.
npx skills add https://github.com/linkfox-ai/linkfox-skills --skill linkfox-sorftime-walmart-category-market

Antes de empezar

  • La instalación no incluye suscripción al modelo, cuota API ni permisos sobre tus archivos.
  • Las estrellas e instalaciones reflejan actividad, no una prueba independiente de calidad o seguridad.
Documento original del Skill

Contenido del repositorio de origen con títulos, ejemplos, código, tablas, enlaces e imágenes preservados.

Walmart 类目市场研究

Use Sorftime data to retrieve the Walmart US category hierarchy, match a natural-language category name, or inspect one category's market report and returned Best Seller products.

Core Concepts

  • Send exactly one operation per request. Do not automatically chain operations; each call consumes Sorftime Requests.
  • tree returns the complete category hierarchy and needs no other business parameter.
  • searchByName accepts a natural-language category name and returns up to three related category matches.
  • marketReport requires a known nodePath. Never guess the path from a category name.
  • All fields are flat at the top level of the JSON body. operation values are case-sensitive.

Operation Routing

IntentoperationOther parametersSorftime Request
Download the category treetreeNone5
Match a natural-language category namesearchByNamename1
Query a category market reportmarketReportnodePath5

Complete parameter and response details are in references/api.md.

调用方式

  • API 端点:POST /sorftime/walmart/categoryMarket(完整参数/响应/错误码见 references/api.md)
  • Python 脚本:python scripts/sorftime_walmart_category_market.py '<JSON 参数>' [--inline]
  • 成本约束:本工具会消耗算力;同一会话同一参数组合默认只调用一次,脚本带 24h 本地缓存。失败/空结果不得自动换关键词、翻页或改邮编连续试探;需要继续检索时先向用户说明会产生额外消耗。

输出策略(脚本默认行为):

  • 始终将完整响应写入 <cwd>/linkfox/<YYYY-MM-DD>/<session>/data/linkfox-sorftime-walmart-category-market-<timestamp>.json(<cwd> 为脚本执行时的工作目录,在 Claude Code 里即当前项目目录;<session> 取自环境变量 SESSION_ID,按用户任务自动聚合;禁止写入 /tmp,当前目录不可写则报错)
  • 响应体 ≤ 8 KB:落盘后把完整 JSON 打印到 stdout
  • 响应体 > 8 KB:落盘后 stdout 只输出摘要(顶层字段、常见计数如 total/costToken、最大列表字段的长度 + 前 3 条样本)
  • 加 --inline 强制全量打印到 stdout(同样落盘)

读数据建议:先看摘要判断是否足够;需要具体字段时优先用 jq或ConvertFrom-Json 从保存的 json 文件按需抽取,避免整份 JSON 进入上下文。

解决认证和算力问题

发生以下异常情况时,采用 references/onboarding.md 引导解决问题:

  • 未配置 API Key:环境变量未配置 LINKFOX_AGENT_API_KEY,也未配置 LINKFOXAGENT_API_KEY
  • 响应 401 或 402 状态码
  • 响应提示算力或余额不足:消息含“算力余额不足/计费不足/余额不足/quota exceeded/insufficient balance/套餐到期/需充值/请充值”或类似含义

Usage Examples

bash
python scripts/sorftime_walmart_category_market.py '{"operation":"tree"}'
python scripts/sorftime_walmart_category_market.py '{"operation":"searchByName","name":"patio furniture"}'
python scripts/sorftime_walmart_category_market.py '{"operation":"marketReport","nodePath":"4044_623679_1032619_5842891_9823303"}'

Prefer searchByName when the user supplies a natural-language category name. Use tree only when full hierarchy traversal is required. A tree response can be approximately 10 MB; normally inspect its saved JSON selectively rather than using --inline.

Display Rules

  1. State the selected operation and show requestConsumed, costCredit, and costToken when returned. If _cache.hit=true, make clear that the cached values describe the original live request and no new production charge occurred.
  2. For tree, show matched category names, their ID hierarchy, and the derived nodePath; never dump the full tree into conversation.
  3. For searchByName, show at most the returned three NodeId and CategoryName pairs; label them as related matches rather than exact classification.
  4. For marketReport, summarize only returned metrics and present Best Seller products compactly.
  5. State the number of Best Seller products actually returned and do not present the result as the entire category catalog.
  6. Preserve upstream field meanings and never invent missing category relationships or metrics.

Important Limitations

  • All three operations target Walmart US (domain=21 is applied by the backend).
  • Sorftime may omit categories unsuitable for third-party sellers; absence does not prove Walmart has no such category.
  • marketReport accepts a numeric underscore-delimited nodePath, not a free-text category name.
  • searchByName returns no more than three related categories and does not guarantee an exact match.
  • tree and marketReport consume 5 upstream requests each; searchByName consumes 1. Do not retry or run another operation without user authorization.
  • This skill does not cover product or keyword data.

User Expression & Scenario Quick Reference

Applicable: Walmart category tree, natural-language category matching, category NodeId/path, category market, and category Best Seller requests.

Not applicable: product detail/trend/sales, keyword metrics, or saved-keyword management.

Boundary judgment: If the primary object is a Walmart product ID, use product analysis. Use searchByName for a category name, tree for hierarchy traversal, and marketReport for a known category path.

算力消耗规则

按动态规则计费:单个 Sorftime Request 当前显示为 6 算力;多 Request 操作由网关按整单计算并取整,最终以入口脚本返回的 costCredit 为准,不要简单用 requestConsumed × 6 代替实际账单。

用户会因算力消耗而支付费用。必须提醒用户并让用户决定是否继续执行另一个 operation。

Feedback:

Auto-detect and report feedback via the Feedback API when the skill behavior or result mismatches intent, the user expresses praise or dissatisfaction, or an improvement is apparent. Call it as specified in references/api.md without interrupting the user's flow.


For more high-quality, professional cross-border e-commerce skills, visit [LinkFox Skills](https://skill.linkfox.com/).

del mismo repositorio

Más Skills

Todos los Skills
linkfox-ai
Comunidad

linkfox-aigc-imagegen

AI生图工具,根据提示词和参考图生成图片。支持多种模型(BANANA/BANANA2/BANANAPRO/GPT2IMAGE/AIDRAWEDIT/WAN27/SEEDREAM5),可控制分辨率、宽高比、输出数量。用户说"生成图片"、"AI画图"、"AI生图"、"帮我画"、"图片生成"、"image generation"、"generate image"、"画一张图"、"做张图"、"图生图"时触发。

instalaciones
1
GitHub Stars
105
Actualizado
14 sept
linkfox-ai
Comunidad

linkfox-aigc-imagegen-cloth

服饰图生成(模特/服装类)。支持单张或套图:白底图(隐形模特)、模特图、种草图、卖点图、A+图、尺码图。单张单类型直接出图;多张多类型自动编排规划。用户上传模特图或服饰图(上装/下装/连衣裙/外套/鞋帽等)并说"做套图""做模特图""做种草图""做卖点图""做A+图""做尺码图""做服饰白底图"时触发。纯图片编辑操作走 linkfox-aigc-imagegen。

instalaciones
1
GitHub Stars
105
Actualizado
14 sept
linkfox-ai
Comunidad

linkfox-aigc-videogen

AI生视频工具(首尾帧/单图模式),根据原图和提示词生成视频,支持可选尾帧图控制结束画面。支持模型KLING可灵/WAN万相/SEED豆包/SEEDFAST/HAILUO海螺。用户说"生成视频"、"AI视频"、"图生视频"、"做个视频"、"video generation"、"generate video"、"图片转视频"、"动态视频"时触发。

instalaciones
1
GitHub Stars
105
Actualizado
14 sept
linkfox-ai
Comunidad

linkfox-amazon-ads-auth

亚马逊广告(Amazon Ads)店铺授权与管理技能,提供完整的授权流程、已绑定账号与站点的查询、令牌刷新与读取、当前用户广告授权连接解绑等能力。发起授权链接时需要先向用户确认一个账号名称;一次授权即可自动发现并绑定同账号下所有可用站点的广告 profile(每个站点对应一个 profileId)。当用户提到亚马逊广告授权、Amazon Ads 授权、绑定广告账户、解绑广告账户、断开广告连接、取消广告授权、刷新广告令牌、查询 profile 列表、管理已授权广告账户、Amazon Advertising authorization, Ads token refresh, list profiles, ad account management时触发此技能。即使未明确提及"Amazon Ads"或"授权",只要涉及亚马逊广告账号绑定、访问令牌管理或广告 profile 列表查询,也应触发。

instalaciones
1
GitHub Stars
105
Actualizado
14 sept