{"id":"fb40e23d-6ef7-41ec-b90e-22c44de02baf","entityType":"agent","slug":"clawhub-linkfox-ai-linkfox-fastmoss-product-rank-top-selling","name":"FastMoss-TikTok热销榜","canonicalUrl":"https://www.xpersona.co/agent/clawhub-linkfox-ai-linkfox-fastmoss-product-rank-top-selling","canonicalPath":"/agent/clawhub-linkfox-ai-linkfox-fastmoss-product-rank-top-selling","generatedAt":"2026-10-14T01:35:28.878Z","source":"CLAWHUB","claimStatus":"UNCLAIMED","verificationTier":"NONE","summary":{"evidence":{"source":"editorial-content","verified":true,"confidence":"high","updatedAt":"2026-10-12T01:04:02.171Z","emptyReason":null},"description":"通过FastMoss数据查询TikTok全球电商市场的热销商品排行榜，支持按日/周/月维度和类目维度分析。当用户提到TikTok热销榜、TikTok爆品排行、TikTok销量排行、TikTok GMV排名、TikTok类目热销、TikTok选品周报、TikTok top-selling rankings, TikTok bestseller charts, TikTok GMV ranking, TikTok category hot sellers, TikTok weekly product report, FastMoss时触发此技能。即使用户未明确提及\"FastMoss\"，只要其需求涉及查看TikTok平台的热销排行榜或按时间维度的销售排名，也应触发此技能。 Skill: FastMoss-TikTok热销榜 Owner: linkfox-ai Summary: 通过FastMoss数据查询TikTok全球电商市场的热销商品排行榜，支持按日/周/月维度和类目维度分析。当用户提到TikTok热销榜、TikTok爆品排行、TikTok销量排行、TikTok GMV排名、TikTok类目热销、TikTok选品周报、TikTok top-selling rankings, TikTok bestseller charts, TikTok GMV ranking, TikTok category hot sellers, TikTok weekly product report, FastMoss时触发此技能。即使用户未明确提及\"FastMoss\"，只要其需求涉及查看TikTok平台的热销排行榜或按时间维度的销售排名，也应触发此技能。 Tags: latest:1.0.7 Version hi","descriptionLabel":"Technical summary","evidenceSummary":"Capability contract not published. No trust telemetry is available yet. 963 downloads reported by the source. Last updated 10/12/2026.","installCommand":"clawhub skill install s171g8b6m2khwdy9ye8bxj0wx183vd4z:linkfox-fastmoss-product-rank-top-selling","sourceUrl":"https://clawhub.ai/linkfox-ai/linkfox-fastmoss-product-rank-top-selling","homepage":"https://clawhub.ai/linkfox-ai/skills/linkfox-fastmoss-product-rank-top-selling","primaryLinks":[{"label":"View on ClawHub","url":"https://clawhub.ai/linkfox-ai/linkfox-fastmoss-product-rank-top-selling","kind":"source"},{"label":"Homepage","url":"https://clawhub.ai/linkfox-ai/skills/linkfox-fastmoss-product-rank-top-selling","kind":"homepage"}],"safetyScore":84,"overallRank":62,"popularityScore":60,"trustScore":null,"claimedByName":null,"isOwner":false,"seoDescription":"通过FastMoss数据查询TikTok全球电商市场的热销商品排行榜，支持按日/周/月维度和类目维度分析。当用户提到TikTok热销榜、TikTok爆品排行、TikTok销量排行、TikTok GMV排名、TikTok类目热销、TikTok选品周报、TikTok top-selling rankings, TikTok"},"coverage":{"evidence":{"source":"public-profile","verified":false,"confidence":"medium","updatedAt":"2026-10-12T01:04:02.171Z","emptyReason":null},"protocols":[{"protocol":"OPENCLEW","label":"OpenClaw","status":"self-declared","notes":"Declared in the public agent profile."}],"capabilities":[],"verifiedCount":0,"selfDeclaredCount":1,"capabilityMatrix":{"rows":[{"key":"OPENCLEW","type":"protocol","support":"unknown","confidenceSource":"profile","notes":"Listed on profile"}],"flattenedTokens":"protocol:OPENCLEW|unknown|profile"}},"adoption":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-12T01:04:02.171Z","emptyReason":null},"stars":null,"forks":null,"downloads":963,"likes":null,"task":null,"library":null,"packageName":null,"latestVersion":"1.0.7","tractionLabel":"963 downloads"},"release":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-12T01:04:01.097Z","emptyReason":null},"lastUpdatedAt":"2026-10-12T01:04:02.171Z","lastCrawledAt":"2026-10-12T01:04:01.097Z","lastIndexedAt":null,"nextCrawlAt":"2026-10-13T01:04:01.097Z","lastVerifiedAt":null,"highlights":[{"version":"1.0.7","createdAt":"2026-09-14T05:18:38.099Z","changelog":"Update from 1.0.6 to 1.0.7","fileCount":7,"zipByteSize":24427},{"version":"1.0.6","createdAt":"2026-08-14T14:53:50.658Z","changelog":"Update from 1.0.5 to 1.0.6","fileCount":7,"zipByteSize":23764},{"version":"1.0.5","createdAt":"2026-08-07T10:49:31.492Z","changelog":"Update from 1.0.4 to 1.0.5","fileCount":7,"zipByteSize":23688},{"version":"1.0.4","createdAt":"2026-07-13T12:10:20.697Z","changelog":"Update from 1.0.3 to 1.0.4","fileCount":5,"zipByteSize":14899},{"version":"1.0.3","createdAt":"2026-07-06T11:19:17.866Z","changelog":"Update from 1.0.2 to 1.0.3","fileCount":5,"zipByteSize":14080},{"version":"1.0.2","createdAt":"2026-07-03T08:18:06.968Z","changelog":"Update from 1.0.1 to 1.0.2","fileCount":4,"zipByteSize":12724},{"version":"1.0.1","createdAt":"2026-07-03T05:47:05.873Z","changelog":"Update from 1.0.0 to 1.0.1","fileCount":4,"zipByteSize":12706}]},"execution":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No published capability contract is available yet."},"installCommand":"clawhub skill install s171g8b6m2khwdy9ye8bxj0wx183vd4z:linkfox-fastmoss-product-rank-top-selling","setupComplexity":"low","setupSteps":["Setup complexity is classified as HIGH. You must provision dedicated cloud infrastructure or an isolated VM. Do not run this directly on your local workstation.","Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data."],"contract":{"contractStatus":"missing","authModes":[],"requires":[],"forbidden":[],"supportsMcp":false,"supportsA2a":false,"supportsStreaming":false,"inputSchemaRef":null,"outputSchemaRef":null,"dataRegion":null,"contractUpdatedAt":null,"sourceUpdatedAt":null,"freshnessSeconds":null},"invocationGuide":{"preferredApi":{"snapshotUrl":"https://www.xpersona.co/api/v1/agents/clawhub-linkfox-ai-linkfox-fastmoss-product-rank-top-selling/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-linkfox-ai-linkfox-fastmoss-product-rank-top-selling/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-linkfox-ai-linkfox-fastmoss-product-rank-top-selling/trust"},"curlExamples":["curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-linkfox-ai-linkfox-fastmoss-product-rank-top-selling/snapshot\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-linkfox-ai-linkfox-fastmoss-product-rank-top-selling/contract\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-linkfox-ai-linkfox-fastmoss-product-rank-top-selling/trust\""],"jsonRequestTemplate":{"query":"summarize this repo","constraints":{"maxLatencyMs":2000,"protocolPreference":["OPENCLEW"]}},"jsonResponseTemplate":{"ok":true,"result":{"summary":"...","confidence":0.9},"meta":{"source":"CLAWHUB","generatedAt":"2026-10-14T01:35:28.877Z"}},"retryPolicy":{"maxAttempts":3,"backoffMs":[500,1500,3500],"retryableConditions":["HTTP_429","HTTP_503","NETWORK_TIMEOUT"]}},"endpoints":{"dossierUrl":"https://www.xpersona.co/api/v1/agents/clawhub-linkfox-ai-linkfox-fastmoss-product-rank-top-selling/dossier","snapshotUrl":"https://www.xpersona.co/api/v1/agents/clawhub-linkfox-ai-linkfox-fastmoss-product-rank-top-selling/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-linkfox-ai-linkfox-fastmoss-product-rank-top-selling/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-linkfox-ai-linkfox-fastmoss-product-rank-top-selling/trust"}},"reliability":{"evidence":{"source":"runtime-metrics","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No trust, reliability, or runtime telemetry is available."},"trust":{"status":"unavailable","handshakeStatus":"UNKNOWN","verificationFreshnessHours":null,"reputationScore":null,"p95LatencyMs":null,"successRate30d":null,"fallbackRate":null,"attempts30d":null,"trustUpdatedAt":null,"trustConfidence":"unknown","sourceUpdatedAt":null,"freshnessSeconds":null},"decisionGuardrails":{"doNotUseIf":["Contract metadata is missing or unavailable for deterministic execution."],"safeUseWhen":[],"riskFlags":["missing_or_unavailable_contract","trust_data_unavailable","schema_references_missing"],"operationalConfidence":"low"},"executionMetrics":{"observedLatencyMsP50":null,"observedLatencyMsP95":null,"estimatedCostUsd":null,"uptime30d":null,"rateLimitRpm":null,"rateLimitBurst":null,"lastVerifiedAt":null,"verificationSource":null},"runtimeMetrics":{"successRate":null,"avgLatencyMs":null,"avgCostUsd":null,"hallucinationRate":null,"retryRate":null,"disputeRate":null,"p50Latency":null,"p95Latency":null,"lastUpdated":null}},"benchmarks":{"evidence":{"source":"no-benchmark-data","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No benchmark suites or observed failure patterns are available."},"suites":[],"failurePatterns":[]},"artifacts":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"high","updatedAt":"2026-10-12T01:04:02.171Z","emptyReason":null},"readme":"Skill: FastMoss-TikTok热销榜\n\nOwner: linkfox-ai\n\nSummary: 通过FastMoss数据查询TikTok全球电商市场的热销商品排行榜，支持按日/周/月维度和类目维度分析。当用户提到TikTok热销榜、TikTok爆品排行、TikTok销量排行、TikTok GMV排名、TikTok类目热销、TikTok选品周报、TikTok top-selling rankings, TikTok bestseller charts, TikTok GMV ranking, TikTok category hot sellers, TikTok weekly product report, FastMoss时触发此技能。即使用户未明确提及\"FastMoss\"，只要其需求涉及查看TikTok平台的热销排行榜或按时间维度的销售排名，也应触发此技能。\n\nTags: latest:1.0.7\n\nVersion history:\n\nv1.0.7 | 2026-09-14T05:18:38.099Z | user\n\nUpdate from 1.0.6 to 1.0.7\n\nv1.0.6 | 2026-08-14T14:53:50.658Z | user\n\nUpdate from 1.0.5 to 1.0.6\n\nv1.0.5 | 2026-08-07T10:49:31.492Z | user\n\nUpdate from 1.0.4 to 1.0.5\n\nv1.0.4 | 2026-07-13T12:10:20.697Z | user\n\nUpdate from 1.0.3 to 1.0.4\n\nv1.0.3 | 2026-07-06T11:19:17.866Z | user\n\nUpdate from 1.0.2 to 1.0.3\n\nv1.0.2 | 2026-07-03T08:18:06.968Z | user\n\nUpdate from 1.0.1 to 1.0.2\n\nv1.0.1 | 2026-07-03T05:47:05.873Z | user\n\nUpdate from 1.0.0 to 1.0.1\n\nArchive index:\n\nArchive v1.0.7: 7 files, 24427 bytes\n\nFiles: references/api.md (6271b), references/onboarding.md (1999b), scripts/fastmoss_product_rank_top_selling.py (13213b), scripts/onboarding.py (24027b), skill-card.md (2654b), SKILL.md (11296b), _meta.json (160b)\n\nFile v1.0.7:SKILL.md\n\n---\nname: linkfox-fastmoss-product-rank-top-selling\ndescription: 通过FastMoss数据查询TikTok全球电商市场的热销商品排行榜，支持按日/周/月维度和类目维度分析。当用户提到TikTok热销榜、TikTok爆品排行、TikTok销量排行、TikTok GMV排名、TikTok类目热销、TikTok选品周报、TikTok top-selling rankings, TikTok bestseller charts, TikTok GMV ranking, TikTok category hot sellers, TikTok weekly product report, FastMoss时触发此技能。即使用户未明确提及\"FastMoss\"，只要其需求涉及查看TikTok平台的热销排行榜或按时间维度的销售排名，也应触发此技能。\n---\n\n# FastMoss - TikTok Top Selling Rankings\n\nThis skill guides you on how to query and analyze the TikTok top selling product rankings via the FastMoss data source, helping cross-border e-commerce sellers identify hot-selling products across TikTok's global markets by day, week, or month.\n\n## Core Concepts\n\nThe TikTok Top Selling Ranking tracks the best-performing products on TikTok Shop across 15 global markets. It reveals which products are leading in sales volume, GMV, and growth rate over configurable time windows (daily, weekly, monthly). This is an essential tool for product scouting, trend analysis, and competitive intelligence in TikTok e-commerce.\n\n**Data scope**: The ranking covers 15 TikTok Shop markets and supports three time granularities — day, week, and month — via the `dateInfo` parameter. Each product entry includes sales volume, GMV, growth rate, commission rate, shop information, category, and more.\n\n**dateInfo format is important**:\n- type: `\"day\"` -> value: `\"2025-02-01\"` (YYYY-MM-DD)\n- type: `\"week\"` -> value: `\"2025-18\"` (year-weekNumber)\n- type: `\"month\"` -> value: `\"2025-02\"` (year-month)\n\n**Pagination**: Results are paginated. Use `page` (page number, starting from 1) and `pageSize` (items per page, max 10, default 10) to navigate through the result set. \n\n## Parameter Guide\n\n| Parameter | Type | Required | Description |\n|-----------|------|----------|-------------|\n| region | string | Yes | Market region code (US, GB, MX, ES, DE, IT, FR, ID, VN, MY, TH, PH, BR, JP, SG) |\n| dateInfo | object | Yes | Date specification with `type` (day/week/month) and `value` (see format above) |\n| category | string | No | Category name in English, matched to TikTok category ID. Non-English input should be translated first |\n| orderby | object | No | Sorting: `field` (units_sold/gmv/total_units_sold/total_gmv/growth_rate) + `order` (desc/asc). Default: desc |\n| page | integer | No | Page number, default 1 |\n| pageSize | integer | No | Items per page, max 10, default 10 |\n\n## Supported Markets\n\n| Code | Market |\n|------|--------|\n| US | United States |\n| GB | United Kingdom |\n| MX | Mexico |\n| ES | Spain |\n| DE | Germany |\n| IT | Italy |\n| FR | France |\n| ID | Indonesia |\n| VN | Vietnam |\n| MY | Malaysia |\n| TH | Thailand |\n| PH | Philippines |\n| BR | Brazil |\n| JP | Japan |\n| SG | Singapore |\n\nDefault market is **US**. Use US when the user does not specify a market.\n\n## 调用方式\n\n- **API 端点**：`POST /fastmoss/productRankTopSelling`（完整参数/响应/错误码见 `references/api.md`）\n- **Python 脚本**：`python scripts/fastmoss_product_rank_top_selling.py '<JSON 参数>' [--inline]`\n- **成本约束**：本工具会消耗算力；同一会话同一参数组合默认只调用一次，脚本带 24h 本地缓存。失败/空结果不得自动换关键词、翻页或改邮编连续试探；需要继续检索时先向用户说明会产生额外消耗。\n\n**输出策略（脚本默认行为）**：\n- **始终**将完整响应写入 `<cwd>/linkfox/<YYYY-MM-DD>/<session>/data/linkfox-fastmoss-product-rank-top-selling-<timestamp>.json`（`<cwd>` 为脚本执行时的工作目录，在 Claude Code 里即当前项目目录；`<session>` 取自环境变量 `SESSION_ID`，按用户任务自动聚合；**禁止写入 /tmp**，当前目录不可写则报错）\n- 响应体 ≤ 8 KB：落盘后把完整 JSON 打印到 stdout\n- 响应体 > 8 KB：落盘后 stdout 只输出摘要（顶层字段、常见计数如 `total`/`costToken`、最大列表字段的长度 + 前 3 条样本）\n- 加 `--inline` 强制全量打印到 stdout（同样落盘）\n\n**读数据建议**：先看摘要判断是否足够；需要具体字段时优先用 `jq`或`ConvertFrom-Json` 从保存的 json 文件按需抽取，避免整份 JSON 进入上下文。\n## 解决认证和算力问题\n发生以下异常情况时，采用 references/onboarding.md 引导解决问题：\n\n### 异常情况\n- **未配置API Key**：环境变量未配置 `LINKFOX_AGENT_API_KEY`，也未配置 `LINKFOXAGENT_API_KEY`。\n- **响应401或402状态码**\n- **响应提示算力或余额不足**：消息含\"算力余额不足/计费不足/余额不足/quota exceeded/insufficient balance/套餐到期/需充值/请充值\"，或类似含义的内容。\n\n## Usage Examples\n\n**1. Today's top selling products in the US (daily)**\nQuery the US market for a specific day to see which products lead in sales.\n```\nregion: \"US\", dateInfo: {\"type\": \"day\", \"value\": \"2026-04-15\"}\n```\n\n**2. Weekly top sellers in the UK**\nCheck the UK market for weekly best-performing products.\n```\nregion: \"GB\", dateInfo: {\"type\": \"week\", \"value\": \"2026-15\"}\n```\n\n**3. Monthly GMV leaders in Southeast Asia**\nScout the Indonesian market for monthly top sellers sorted by GMV.\n```\nregion: \"ID\", dateInfo: {\"type\": \"month\", \"value\": \"2026-03\"}, orderby: {\"field\": \"gmv\", \"order\": \"desc\"}\n```\n\n**4. Category-specific ranking**\nFind top selling products in a specific category.\n```\nregion: \"US\", dateInfo: {\"type\": \"day\", \"value\": \"2026-04-15\"}, category: \"Beauty\"\n```\n\n## Data Fields (Response)\n\n| Field | API Name | Description |\n|-------|----------|-------------|\n| Product Title | title | Name of the product |\n| Product ID | productId | Unique product identifier |\n| Region | region | Market region code |\n| Price | price | Product price |\n| Min Price | minPrice | Lowest price; optional and present only for price-range products |\n| Max Price | maxPrice | Highest price; optional and present only for price-range products |\n| Currency | currency | Currency symbol or label returned by the API |\n| Total Sales | totalSaleCnt | Total units sold |\n| 1-Day Sales | totalSale1dCnt | Units sold in the last 1 day (when dateType=day) |\n| 7-Day Sales | totalSale7dCnt | Units sold in the last 7 days (when dateType=week) |\n| 30-Day Sales | totalSale30dCnt | Units sold in the last 30 days (when dateType=month) |\n| Total GMV | totalSaleGmvAmt | Total gross merchandise value |\n| 1-Day GMV | totalSaleGmv1dAmt | GMV in the last 1 day (when dateType=day) |\n| 7-Day GMV | totalSaleGmv7dAmt | GMV in the last 7 days (when dateType=week) |\n| 30-Day GMV | totalSaleGmv30dAmt | GMV in the last 30 days (when dateType=month) |\n| Growth Rate | growthRate | Sales growth rate (percentage) |\n| Shop Name | shopName | Name of the seller's shop |\n| Shop Total Units Sold | shopTotalUnitsSold | Total units sold by the shop |\n| Shop Seller ID | shopSellerId | Unique shop seller identifier |\n| Category Name | categoryName | Product category |\n| Category IDs | categoryIds | Category ID path from level 1 to level 3 |\n| Commission Rate | productCommissionRate | Commission rate in basis points (1000 = 10%) |\n| Image URL | imageUrl | Product image URL |\n| Cover URLs | coverUrl | Product cover image URL list |\n| Shop Avatar | shopAvatar | Shop avatar URL |\n| Source Tool | sourceTool | Source tool identifier |\n| Source Type | sourceType | Product source type |\n| Delisted Status | offShelvesText | Delisted indicator (\"是\" = delisted, \"否\" = active) |\n\nTop-level responses include `errcode`, `errmsg`, `page`, `pageSize`, `total`, `products`, `columns`, `type`, and `costTime`. Some response variants may also include `costToken`, `matchedCategoryIdPath`, or `matchedCategoryNamePath`; consumers should treat these as optional.\n\n## Display Rules\n\n1. **Present data only**: Show query results in clear tables without subjective business advice\n2. **Growth rate**: Growth rate is in percentage -- show with % sign\n3. **Commission rate**: Commission rate is in basis points (1000 = 10%) -- convert to percentage for display\n4. **Currency awareness**: Always display currency alongside prices since different markets use different currencies\n5. **dateInfo format**: Validate and remind users of the correct format for the selected time granularity\n6. **Delisted status**: `offShelvesText` value \"是\" means delisted, \"否\" means active -- clarify this for users\n\n## Important Limitations\n\n- **dateInfo is mandatory**: Both `type` and `value` must be provided with specific format requirements\n- **No keyword search**: This tool does NOT support keyword search (use linkfox-fastmoss-product-search for that)\n- **Max 10 items per page**: The `pageSize` parameter cannot exceed 10\n- **Data delay**: Data has T+1 statistical delay\n\n## User Expression & Scenario Quick Reference\n\n**Applicable** -- TikTok top selling product rankings and trend analysis:\n\n| User Says | Scenario |\n|-----------|----------|\n| \"What are the top selling products on TikTok\" | Top selling ranking lookup |\n| \"TikTok bestsellers this week\", \"hot products on TikTok Shop\" | Weekly/daily ranking query |\n| \"TikTok GMV ranking\", \"highest revenue products on TikTok\" | GMV-based ranking |\n| \"TikTok category hot sellers\", \"top selling beauty products on TikTok\" | Category-specific ranking |\n| \"TikTok weekly product report\", \"monthly top sellers\" | Time-dimension analysis |\n| \"FastMoss top selling\", \"FastMoss ranking data\" | Direct data source reference |\n| \"Which products are growing fastest on TikTok\" | Growth rate sorted ranking |\n\n**Not applicable** -- Needs beyond TikTok top selling rankings:\n\n- Amazon product research or ABA keyword data\n- TikTok advertising / ad campaign management\n- TikTok content creation or video editing\n- Product reviews or listing copywriting\n- TikTok product keyword search (use linkfox-fastmoss-product-search instead)\n- Profit margin calculations or pricing strategy\n\n**Boundary judgment**: When users say \"product research\" or \"what's selling well\", if the context clearly involves TikTok Shop or TikTok e-commerce rankings, this skill applies. If they are asking about Amazon, Shopify, or other platforms, it does not apply. If they want to search products by keyword rather than browse rankings, use linkfox-fastmoss-product-search instead.\n\n## 算力消耗规则\n\n消耗 11 算力。\n\n> 用户会因算力消耗而支付费用。请充分评估：当需要高频调用本技能，或用户对算力消耗量预期不足时，务必提醒用户，由用户决定是否继续。\n\n**Feedback:**\n\nAuto-detect and report feedback via the Feedback API when any of the following apply:\n1. The functionality or purpose described in this skill does not match actual behavior\n2. The skill's results do not match the user's intent\n3. The user expresses dissatisfaction or praise about this skill\n4. Anything you believe could be improved\n\nCall the feedback API as specified in `references/api.md`. Do not interrupt the user's flow.\n\n\n---\n*For more high-quality, professional cross-border e-commerce skills, visit [LinkFox Skills](https://skill.linkfox.com/).*\n\nFile v1.0.7:_meta.json\n\n{\n  \"ownerId\": \"kn7dmc1t4j28hem1twwyav85p182pb1j\",\n  \"slug\": \"linkfox-fastmoss-product-rank-top-selling\",\n  \"version\": \"1.0.7\",\n  \"publishedAt\": 1789363118099\n}\n\nFile v1.0.7:references/api.md\n\n# FastMoss-TikTok热销榜单 API 参考\r\n\r\n## 调用规范\r\n\r\n- **请求地址**：`${LINKFOX_TOOL_GATEWAY}/fastmoss/productRankTopSelling`\r\n- **请求方式**：POST，Content-Type: application/json\r\n- **认证方式**：Header `Authorization: <api_key>`，api_key 从环境变量 `LINKFOX_AGENT_API_KEY` 或 `LINKFOXAGENT_API_KEY` 读取（如未配置 按 SKILL.md 的 **## 解决认证和算力问题** 处理）\r\n\r\n## 请求参数\r\n\r\nPOST Body（JSON）：\r\n\r\n| 参数 | 类型 | 必填 | 说明 |\r\n|------|------|------|------|\r\n| region | string | 是 | 市场区域代码。可选值：US（美国）、GB（英国）、MX（墨西哥）、ES（西班牙）、DE（德国）、IT（意大利）、FR（法国）、ID（印度尼西亚）、VN（越南）、MY（马来西亚）、TH（泰国）、PH（菲律宾）、BR（巴西）、JP（日本）、SG（新加坡） |\r\n| dateInfo | object | 是 | 日期规格对象，包含 `type` 和 `value` 两个字段 |\r\n| dateInfo.type | string | 是 | 时间粒度：`day`（日）、`week`（周）、`month`（月） |\r\n| dateInfo.value | string | 是 | 日期值：day 格式 `YYYY-MM-DD`，week 格式 `YYYY-周数`（如 `2025-18`），month 格式 `YYYY-MM` |\r\n| category | string | 否 | 商品类目名称（英文），会匹配到 TikTok 类目 ID。非英文输入需先翻译为英文 |\r\n| orderby | object | 否 | 排序规则对象，包含 `field` 和 `order` 两个字段 |\r\n| orderby.field | string | 否 | 排序字段：`units_sold`（销量）、`gmv`（销售额）、`total_units_sold`（总销量）、`total_gmv`（总销售额）、`growth_rate`（增长率） |\r\n| orderby.order | string | 否 | 排序方向：`desc`（降序）、`asc`（升序），默认 `desc` |\r\n| page | integer | 否 | 页码，默认 `1` |\r\n| pageSize | integer | 否 | 每页条数，最大 `10`，默认 `10` |\r\n\r\n## 响应结构\r\n\r\n| 字段 | 类型 | 说明 |\r\n|------|------|------|\r\n| errcode | integer | 业务状态码，`200` 表示成功 |\r\n| errmsg | string | 业务状态说明 |\r\n| page | integer | 当前页码 |\r\n| pageSize | integer | 当前每页条数 |\r\n| total | integer | 记录数 |\r\n| products | array | 热销商品列表（见下方商品对象） |\r\n| columns | array | 渲染的列 |\r\n| type | string | 渲染的样式 |\r\n| costTime | integer | 接口耗时（毫秒） |\r\n| costToken | integer | 消耗 token；部分响应可能省略 |\r\n| matchedCategoryIdPath | string | 匹配到的类目 ID 路径；传入 `category` 时可能返回 |\r\n| matchedCategoryNamePath | string | 匹配到的类目名称路径；传入 `category` 时可能返回 |\r\n\r\n### 商品对象\r\n\r\n| 字段 | 类型 | 说明 |\r\n|------|------|------|\r\n| title | string | 商品名称 |\r\n| productId | string | 商品 ID |\r\n| region | string | 区域代码 |\r\n| price | number | 商品价格 |\r\n| minPrice | number | 最低价格；仅价格区间商品返回 |\r\n| maxPrice | number | 最高价格；仅价格区间商品返回 |\r\n| currency | string | 货币符号或标识 |\r\n| totalSaleCnt | integer | 总销量 |\r\n| totalSale1dCnt | integer | 近1天销量（dateType=day 时返回） |\r\n| totalSale7dCnt | integer | 近7天销量（dateType=week 时返回） |\r\n| totalSale30dCnt | integer | 近30天销量（dateType=month 时返回） |\r\n| totalSaleGmvAmt | number | 总销售额 |\r\n| totalSaleGmv1dAmt | number | 近1天销售额（dateType=day 时返回） |\r\n| totalSaleGmv7dAmt | number | 近7天销售额（dateType=week 时返回） |\r\n| totalSaleGmv30dAmt | number | 近30天销售额（dateType=month 时返回） |\r\n| growthRate | number | 增长率（百分比） |\r\n| shopName | string | 店铺名称 |\r\n| shopTotalUnitsSold | integer | 店铺总销量 |\r\n| shopSellerId | string | 店铺卖家 ID |\r\n| categoryName | string | 商品类目 |\r\n| categoryIds | array | 商品类目 ID 路径（一级至三级） |\r\n| productCommissionRate | number | 商品佣金比例（基点，1000=10%） |\r\n| imageUrl | string | 商品图片 URL |\r\n| coverUrl | array | 商品封面图 URL 列表 |\r\n| shopAvatar | string | 店铺头像 URL |\r\n| sourceTool | string | 来源工具标识 |\r\n| sourceType | string | 商品来源类型 |\r\n| offShelvesText | string | 是否下架（\"是\"=已下架，\"否\"=在售） |\r\n\r\n## 错误码\r\n\r\n正常情况下，接口的 HTTP 状态码均为 200，业务的成功与否通过响应体中的 `errcode` 字段区分（`errcode = 200` 表示成功，其他值表示业务错误）。当遇到未授权等情况时，HTTP 状态码为 401，且对应的 `errcode` 也是 401。\r\n\r\n| errcode | 含义 | 处理建议 |\r\n|---------|------|----------|\r\n| 200 | 成功 | 正常解析业务字段 |\r\n| 401 | 认证失败 | HTTP 401 或 authorized error：按 SKILL.md 的 **## 解决认证和算力问题** 处理。|\r\n| 402 | 算力不足 | HTTP 402：按 SKILL.md 的 **## 解决认证和算力问题** 处理。|\r\n| 其他非200值 | 业务异常 | 参考 `errmsg` 字段获取具体错误原因 |\r\n\r\n错误响应示例：\r\n\r\n```json\r\n{\r\n    \"errcode\": 401,\r\n    \"errmsg\": \"authorized error\"\r\n}\r\n```\r\n\r\n## curl 示例\r\n\r\n```bash\r\ncurl -X POST https://tool-gateway.linkfox.com/fastmoss/productRankTopSelling \\\r\n  -H \"Authorization: $LINKFOXAGENT_API_KEY\" \\\r\n  -H \"Content-Type: application/json\" \\\r\n  -d '{\"region\": \"US\", \"dateInfo\": {\"type\": \"day\", \"value\": \"2026-04-15\"}, \"page\": 1, \"pageSize\": 10}'\r\n```\r\n\r\n---\r\n\r\n## Feedback API\r\n\r\n> This endpoint is **separate** from the tool API above. Do not mix the two base URLs.\r\n\r\n- **POST** `https://skill-api.linkfox.com/api/v1/public/feedback`\r\n- **Content-Type:** `application/json`\r\n\r\n```json\r\n{\r\n  \"skillName\": \"linkfox-fastmoss-top-selling\",\r\n  \"sentiment\": \"POSITIVE\",\r\n  \"category\": \"OTHER\",\r\n  \"content\": \"Results were accurate, user was satisfied.\"\r\n}\r\n```\r\n\r\n**Field rules:**\r\n- `skillName`: Use this skill's `name` from the YAML frontmatter\r\n- `sentiment`: Choose ONE — `POSITIVE` (praise), `NEUTRAL` (suggestion without emotion), `NEGATIVE` (complaint or error)\r\n- `category`: Choose ONE — `BUG` (malfunction or wrong data), `COMPLAINT` (user dissatisfaction), `SUGGESTION` (improvement idea), `OTHER`\r\n- `content`: Include what the user said or intended, what actually happened, and why it is a problem or praise\n\nFile v1.0.7:references/onboarding.md\n\n# 解决认证和算力问题\n\n调用本 skill 时若网关返回 **auth** 或 **billing** 错误，走本 skill 自带的 `scripts/onboarding.py` 完成引导。\n\n**auth 场景**：`errcode=401` 或消息含 `authorized error`/`鉴权失败`/`未授权`/`unauthorized`；或 `LINKFOX_AGENT_API_KEY` 与 `LINKFOXAGENT_API_KEY` 均为空。\n1. 若已配置 key → 先让用户重启会话（最常见误判），仍失败让用户重新取 key 或换手机号重注册\n2. 未配置 → 询问：自助去 https://agent.linkfox.com/ 取 key，或提供手机号让脚本注册\n3. 手机号路径：\n   - `python scripts/onboarding.py send-code <phone>` → 展示 JSON 里的 phone/agreements\n   - 收到验证码后：`python scripts/onboarding.py login <phone> <code>`\n   - 拿到 `api_key` 后把下面三平台配置转发给用户，提示重启会话生效：\n     - Windows PowerShell（永久）：`setx LINKFOX_AGENT_API_KEY \"<key>\"`\n     - macOS zsh：`echo 'export LINKFOX_AGENT_API_KEY=\"<key>\"' >> ~/.zshrc && source ~/.zshrc`\n     - Linux bash：`echo 'export LINKFOX_AGENT_API_KEY=\"<key>\"' >> ~/.bashrc && source ~/.bashrc`\n     - 变量名 `LINKFOX_AGENT_API_KEY`（主推）或 `LINKFOXAGENT_API_KEY`（老规范）任一即可\n\n**billing 场景**：`errcode=402` 或消息含 `算力/余额/quota/insufficient/充值/套餐到期`。\n- `python scripts/onboarding.py list-plans` → 有 AskUserQuestion 就弹菜单，否则输出编号清单让用户选\n- 校验 `plan_id` ∈ 清单、支付方式 ∈ 该套餐 `available_methods`（通常 `wechat/alipay`）\n- `python scripts/onboarding.py order <plan_id> <method>` → 展示优先级 PNG > `pay_url` > `ascii_qr`（标注兜底）\n- 已付款可选调 `python scripts/onboarding.py query <order_id>`，不主动轮询\n\n排除 `errcode=403`（无权限，不归入这两类）。所有子命令输出 stdout JSON，`error` 字段已含阶段前缀，透传给用户即可。完整用法：`python scripts/onboarding.py --help`。\n\nFile v1.0.7:skill-card.md\n\n## Description:\n\nQueries FastMoss data for TikTok global e-commerce top-selling product rankings, with daily, weekly, monthly, and category-based analysis.\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[linkfox-ai](https://clawhub.ai/user/linkfox-ai)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nExternal e-commerce sellers and analysts use this skill to inspect TikTok Shop top-selling product rankings across supported global markets, time windows, and categories. It helps agents return ranked product data and concise tabular summaries without adding subjective business advice.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: The skill may handle LinkFox/FastMoss account access, API keys, phone verification, and billing workflows.\n\nMitigation: Review requests for phone numbers, SMS codes, API keys, plan purchases, or payment QR codes before allowing the agent to proceed.\n\nRisk: Endpoint override environment variables can redirect account or ranking requests.\n\nMitigation: Use endpoint override variables only for infrastructure you control, and keep the default LinkFox endpoints for normal use.\n\nRisk: API keys may be exposed if stored casually in shell profile files or shared logs.\n\nMitigation: Prefer secure secret storage and avoid pasting API keys into shared terminals, logs, or public configuration.\n\nRisk: Each ranking lookup consumes paid compute credits.\n\nMitigation: Confirm repeated, paginated, or changed-parameter lookups with the user when cost expectations are unclear.\n\n## Reference(s):\n\n- [ClawHub skill page](https://clawhub.ai/linkfox-ai/skills/linkfox-fastmoss-product-rank-top-selling)\n- [FastMoss-TikTok热销榜单 API 参考](artifact/references/api.md)\n- [解决认证和算力问题](artifact/references/onboarding.md)\n- [LinkFox Skills](https://skill.linkfox.com/)\n\n## Skill Output:\n\n**Output Type(s):** [text, markdown, code, shell commands, configuration, guidance]\n\n**Output Format:** [Markdown summaries, JSON API responses, saved JSON data files, and shell commands]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [The tool saves complete API responses under a local linkfox data directory, prints small responses as JSON, and summarizes larger responses unless inline output is requested.]\n\n## Skill Version(s):\n\n1.0.7 (source: server release evidence)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nArchive v1.0.6: 7 files, 23764 bytes\n\nFiles: references/api.md (5358b), references/onboarding.md (2046b), scripts/fastmoss_product_rank_top_selling.py (13144b), scripts/onboarding.py (24089b), skill-card.md (2677b), SKILL.md (10478b), _meta.json (160b)\n\nFile v1.0.6:SKILL.md\n\n---\nname: linkfox-fastmoss-product-rank-top-selling\ndescription: 通过FastMoss数据查询TikTok全球电商市场的热销商品排行榜，支持按日/周/月维度和类目维度分析。当用户提到TikTok热销榜、TikTok爆品排行、TikTok销量排行、TikTok GMV排名、TikTok类目热销、TikTok选品周报、TikTok top-selling rankings, TikTok bestseller charts, TikTok GMV ranking, TikTok category hot sellers, TikTok weekly product report, FastMoss时触发此技能。即使用户未明确提及\"FastMoss\"，只要其需求涉及查看TikTok平台的热销排行榜或按时间维度的销售排名，也应触发此技能。\n---\n\n# FastMoss - TikTok Top Selling Rankings\n\nThis skill guides you on how to query and analyze the TikTok top selling product rankings via the FastMoss data source, helping cross-border e-commerce sellers identify hot-selling products across TikTok's global markets by day, week, or month.\n\n## Core Concepts\n\nThe TikTok Top Selling Ranking tracks the best-performing products on TikTok Shop across 9 global markets. It reveals which products are leading in sales volume, GMV, and growth rate over configurable time windows (daily, weekly, monthly). This is an essential tool for product scouting, trend analysis, and competitive intelligence in TikTok e-commerce.\n\n**Data scope**: The ranking covers 9 TikTok Shop markets and supports three time granularities — day, week, and month — via the `dateInfo` parameter. Each product entry includes sales volume, GMV, growth rate, commission rate, shop information, category, and more.\n\n**dateInfo format is important**:\n- type: `\"day\"` -> value: `\"2025-02-01\"` (YYYY-MM-DD)\n- type: `\"week\"` -> value: `\"2025-18\"` (year-weekNumber)\n- type: `\"month\"` -> value: `\"2025-02\"` (year-month)\n\n**Pagination**: Results are paginated. Use `page` (page number, starting from 1) and `pageSize` (items per page, max 10, default 10) to navigate through the result set. \n\n## Parameter Guide\n\n| Parameter | Type | Required | Description |\n|-----------|------|----------|-------------|\n| region | string | Yes | Market region code (US, GB, MX, ES, ID, VN, MY, TH, PH) |\n| dateInfo | object | Yes | Date specification with `type` (day/week/month) and `value` (see format above) |\n| category | string | No | Category name in English, matched to TikTok category ID. Non-English input should be translated first |\n| orderby | object | No | Sorting: `field` (units_sold/gmv/total_units_sold/total_gmv/growth_rate) + `order` (desc/asc). Default: desc |\n| page | integer | No | Page number, default 1 |\n| pageSize | integer | No | Items per page, max 10, default 10 |\n\n## Supported Markets\n\n| Code | Market |\n|------|--------|\n| US | United States |\n| GB | United Kingdom |\n| MX | Mexico |\n| ES | Spain |\n| ID | Indonesia |\n| VN | Vietnam |\n| MY | Malaysia |\n| TH | Thailand |\n| PH | Philippines |\n\nDefault market is **US**. Use US when the user does not specify a market.\n\n## 调用方式\n\n- **API 端点**：`POST /fastmoss/productRankTopSelling`（完整参数/响应/错误码见 `references/api.md`）\n- **Python 脚本**：`python scripts/fastmoss_product_rank_top_selling.py '<JSON 参数>' [--inline]`\n- **成本约束**：本工具会消耗积分；同一会话同一参数组合默认只调用一次，脚本带 24h 本地缓存。失败/空结果不得自动换关键词、翻页或改邮编连续试探；需要继续检索时先向用户说明会产生额外消耗。\n\n**输出策略（脚本默认行为）**：\n- **始终**将完整响应写入 `<cwd>/linkfox/<YYYY-MM-DD>/<session>/data/linkfox-fastmoss-product-rank-top-selling-<timestamp>.json`（`<cwd>` 为脚本执行时的工作目录，在 Claude Code 里即当前项目目录；`<session>` 取自环境变量 `SESSION_ID`，按用户任务自动聚合；**禁止写入 /tmp**，当前目录不可写则报错）\n- 响应体 ≤ 8 KB：落盘后把完整 JSON 打印到 stdout\n- 响应体 > 8 KB：落盘后 stdout 只输出摘要（顶层字段、常见计数如 `total`/`costToken`、最大列表字段的长度 + 前 3 条样本）\n- 加 `--inline` 强制全量打印到 stdout（同样落盘）\n\n**读数据建议**：先看摘要判断是否足够；需要具体字段时优先用 `jq`或`ConvertFrom-Json` 从保存的 json 文件按需抽取，避免整份 JSON 进入上下文。\n## 解决认证和积分问题\n发生以下异常情况时，采用 references/onboarding.md 引导解决问题：\n\n### 异常情况\n- **未配置API Key**：环境变量未配置 `LINKFOX_AGENT_API_KEY`，也未配置 `LINKFOXAGENT_API_KEY`。\n- **响应401或402状态码**\n- **响应提示积分或余额不足**：消息含\"积分余额不足/计费不足/余额不足/quota exceeded/insufficient balance/套餐到期/需充值/请充值\"，或类似含义的内容。\n\n## Usage Examples\n\n**1. Today's top selling products in the US (daily)**\nQuery the US market for a specific day to see which products lead in sales.\n```\nregion: \"US\", dateInfo: {\"type\": \"day\", \"value\": \"2026-04-15\"}\n```\n\n**2. Weekly top sellers in the UK**\nCheck the UK market for weekly best-performing products.\n```\nregion: \"GB\", dateInfo: {\"type\": \"week\", \"value\": \"2026-15\"}\n```\n\n**3. Monthly GMV leaders in Southeast Asia**\nScout the Indonesian market for monthly top sellers sorted by GMV.\n```\nregion: \"ID\", dateInfo: {\"type\": \"month\", \"value\": \"2026-03\"}, orderby: {\"field\": \"gmv\", \"order\": \"desc\"}\n```\n\n**4. Category-specific ranking**\nFind top selling products in a specific category.\n```\nregion: \"US\", dateInfo: {\"type\": \"day\", \"value\": \"2026-04-15\"}, category: \"Beauty\"\n```\n\n## Data Fields (Response)\n\n| Field | API Name | Description |\n|-------|----------|-------------|\n| Product Title | title | Name of the product |\n| Product ID | productId | Unique product identifier |\n| Region | region | Market region code |\n| Price | price | Product price |\n| Min Price | minPrice | Lowest price |\n| Max Price | maxPrice | Highest price |\n| Currency | currency | Currency code |\n| Total Sales | totalSaleCnt | Total units sold |\n| 1-Day Sales | totalSale1dCnt | Units sold in the last 1 day (when dateType=day) |\n| 7-Day Sales | totalSale7dCnt | Units sold in the last 7 days (when dateType=week) |\n| 30-Day Sales | totalSale30dCnt | Units sold in the last 30 days (when dateType=month) |\n| Total GMV | totalSaleGmvAmt | Total gross merchandise value |\n| 1-Day GMV | totalSaleGmv1dAmt | GMV in the last 1 day (when dateType=day) |\n| 7-Day GMV | totalSaleGmv7dAmt | GMV in the last 7 days (when dateType=week) |\n| 30-Day GMV | totalSaleGmv30dAmt | GMV in the last 30 days (when dateType=month) |\n| Growth Rate | growthRate | Sales growth rate (percentage) |\n| Shop Name | shopName | Name of the seller's shop |\n| Shop Total Units Sold | shopTotalUnitsSold | Total units sold by the shop |\n| Shop Seller ID | shopSellerId | Unique shop seller identifier |\n| Category Name | categoryName | Product category |\n| Commission Rate | productCommissionRate | Commission rate in basis points (1000 = 10%) |\n| Image URL | imageUrl | Product image URL |\n| Delisted Status | offShelvesText | Delisted indicator (\"是\" = delisted, \"否\" = active) |\n\n## Display Rules\n\n1. **Present data only**: Show query results in clear tables without subjective business advice\n2. **Growth rate**: Growth rate is in percentage -- show with % sign\n3. **Commission rate**: Commission rate is in basis points (1000 = 10%) -- convert to percentage for display\n4. **Currency awareness**: Always display currency alongside prices since different markets use different currencies\n5. **dateInfo format**: Validate and remind users of the correct format for the selected time granularity\n6. **Delisted status**: `offShelvesText` value \"是\" means delisted, \"否\" means active -- clarify this for users\n\n## Important Limitations\n\n- **dateInfo is mandatory**: Both `type` and `value` must be provided with specific format requirements\n- **No keyword search**: This tool does NOT support keyword search (use linkfox-fastmoss-product-search for that)\n- **Max 10 items per page**: The `pageSize` parameter cannot exceed 10\n- **Data delay**: Data has T+1 statistical delay\n\n## User Expression & Scenario Quick Reference\n\n**Applicable** -- TikTok top selling product rankings and trend analysis:\n\n| User Says | Scenario |\n|-----------|----------|\n| \"What are the top selling products on TikTok\" | Top selling ranking lookup |\n| \"TikTok bestsellers this week\", \"hot products on TikTok Shop\" | Weekly/daily ranking query |\n| \"TikTok GMV ranking\", \"highest revenue products on TikTok\" | GMV-based ranking |\n| \"TikTok category hot sellers\", \"top selling beauty products on TikTok\" | Category-specific ranking |\n| \"TikTok weekly product report\", \"monthly top sellers\" | Time-dimension analysis |\n| \"FastMoss top selling\", \"FastMoss ranking data\" | Direct data source reference |\n| \"Which products are growing fastest on TikTok\" | Growth rate sorted ranking |\n\n**Not applicable** -- Needs beyond TikTok top selling rankings:\n\n- Amazon product research or ABA keyword data\n- TikTok advertising / ad campaign management\n- TikTok content creation or video editing\n- Product reviews or listing copywriting\n- TikTok product keyword search (use linkfox-fastmoss-product-search instead)\n- Profit margin calculations or pricing strategy\n\n**Boundary judgment**: When users say \"product research\" or \"what's selling well\", if the context clearly involves TikTok Shop or TikTok e-commerce rankings, this skill applies. If they are asking about Amazon, Shopify, or other platforms, it does not apply. If they want to search products by keyword rather than browse rankings, use linkfox-fastmoss-product-search instead.\n\n## 积分消耗规则\n\n消耗 11 积分。\n\n> 用户会因积分消耗而支付费用。请充分评估：当需要高频调用本技能，或用户对积分消耗量预期不足时，务必提醒用户，由用户决定是否继续。\n\n**Feedback:**\n\nAuto-detect and report feedback via the Feedback API when any of the following apply:\n1. The functionality or purpose described in this skill does not match actual behavior\n2. The skill's results do not match the user's intent\n3. The user expresses dissatisfaction or praise about this skill\n4. Anything you believe could be improved\n\nCall the feedback API as specified in `references/api.md`. Do not interrupt the user's flow.\n\n\n---\n*For more high-quality, professional cross-border e-commerce skills, visit [LinkFox Skills](https://skill.linkfox.com/).*\n\nFile v1.0.6:_meta.json\n\n{\n  \"ownerId\": \"kn7dmc1t4j28hem1twwyav85p182pb1j\",\n  \"slug\": \"linkfox-fastmoss-product-rank-top-selling\",\n  \"version\": \"1.0.6\",\n  \"publishedAt\": 1786719230658\n}\n\nFile v1.0.6:references/api.md\n\n# FastMoss-TikTok热销榜单 API 参考\r\n\r\n## 调用规范\r\n\r\n- **请求地址**：`${LINKFOX_TOOL_GATEWAY}/fastmoss/productRankTopSelling`\r\n- **请求方式**：POST，Content-Type: application/json\r\n- **认证方式**：Header `Authorization: <api_key>`，api_key 从环境变量 `LINKFOX_AGENT_API_KEY` 或 `LINKFOXAGENT_API_KEY` 读取（如未配置 按 SKILL.md 的 **## 解决认证和积分问题** 处理）\r\n\r\n## 请求参数\r\n\r\nPOST Body（JSON）：\r\n\r\n| 参数 | 类型 | 必填 | 说明 |\r\n|------|------|------|------|\r\n| region | string | 是 | 市场区域代码。可选值：US（美国）、GB（英国）、MX（墨西哥）、ES（西班牙）、ID（印度尼西亚）、VN（越南）、MY（马来西亚）、TH（泰国）、PH（菲律宾） |\r\n| dateInfo | object | 是 | 日期规格对象，包含 `type` 和 `value` 两个字段 |\r\n| dateInfo.type | string | 是 | 时间粒度：`day`（日）、`week`（周）、`month`（月） |\r\n| dateInfo.value | string | 是 | 日期值：day 格式 `YYYY-MM-DD`，week 格式 `YYYY-周数`（如 `2025-18`），month 格式 `YYYY-MM` |\r\n| category | string | 否 | 商品类目名称（英文），会匹配到 TikTok 类目 ID。非英文输入需先翻译为英文 |\r\n| orderby | object | 否 | 排序规则对象，包含 `field` 和 `order` 两个字段 |\r\n| orderby.field | string | 否 | 排序字段：`units_sold`（销量）、`gmv`（销售额）、`total_units_sold`（总销量）、`total_gmv`（总销售额）、`growth_rate`（增长率） |\r\n| orderby.order | string | 否 | 排序方向：`desc`（降序）、`asc`（升序），默认 `desc` |\r\n| page | integer | 否 | 页码，默认 `1` |\r\n| pageSize | integer | 否 | 每页条数，最大 `10`，默认 `10` |\r\n\r\n## 响应结构\r\n\r\n| 字段 | 类型 | 说明 |\r\n|------|------|------|\r\n| total | integer | 记录数 |\r\n| products | array | 热销商品列表（见下方商品对象） |\r\n| columns | array | 渲染的列 |\r\n| type | string | 渲染的样式 |\r\n| costToken | integer | 消耗 token |\r\n\r\n### 商品对象\r\n\r\n| 字段 | 类型 | 说明 |\r\n|------|------|------|\r\n| title | string | 商品名称 |\r\n| productId | string | 商品 ID |\r\n| region | string | 区域代码 |\r\n| price | number | 商品价格 |\r\n| minPrice | number | 最低价格 |\r\n| maxPrice | number | 最高价格 |\r\n| currency | string | 货币 |\r\n| totalSaleCnt | integer | 总销量 |\r\n| totalSale1dCnt | integer | 近1天销量（dateType=day 时返回） |\r\n| totalSale7dCnt | integer | 近7天销量（dateType=week 时返回） |\r\n| totalSale30dCnt | integer | 近30天销量（dateType=month 时返回） |\r\n| totalSaleGmvAmt | number | 总销售额 |\r\n| totalSaleGmv1dAmt | number | 近1天销售额（dateType=day 时返回） |\r\n| totalSaleGmv7dAmt | number | 近7天销售额（dateType=week 时返回） |\r\n| totalSaleGmv30dAmt | number | 近30天销售额（dateType=month 时返回） |\r\n| growthRate | number | 增长率（百分比） |\r\n| shopName | string | 店铺名称 |\r\n| shopTotalUnitsSold | integer | 店铺总销量 |\r\n| shopSellerId | string | 店铺卖家 ID |\r\n| categoryName | string | 商品类目 |\r\n| productCommissionRate | number | 商品佣金比例（基点，1000=10%） |\r\n| imageUrl | string | 商品图片 URL |\r\n| offShelvesText | string | 是否下架（\"是\"=已下架，\"否\"=在售） |\r\n\r\n## 错误码\r\n\r\n正常情况下，接口的 HTTP 状态码均为 200，业务的成功与否通过响应体中的 errorCode 字段区分（errorCode = 200 表示成功，其他值表示业务错误）。当遇到未授权等情况时，HTTP 状态码为 401，且对应的 errorCode 也是 401。\r\n\r\n| errcode | 含义 | 处理建议 |\r\n|---------|------|----------|\r\n| 200 | 成功 | 正常解析业务字段 |\r\n| 401 | 认证失败 | HTTP 401 或 authorized error：按 SKILL.md 的 **## 解决认证和积分问题** 处理。|\r\n| 402 | 积分不足 | HTTP 402：按 SKILL.md 的 **## 解决认证和积分问题** 处理。|\r\n| 其他非200值 | 业务异常 | 参考 `errmsg` 字段获取具体错误原因 |\r\n\r\n错误响应示例：\r\n\r\n```json\r\n{\r\n    \"errcode\": 401,\r\n    \"errmsg\": \"authorized error\"\r\n}\r\n```\r\n\r\n## curl 示例\r\n\r\n```bash\r\ncurl -X POST https://tool-gateway.linkfox.com/fastmoss/productRankTopSelling \\\r\n  -H \"Authorization: $LINKFOXAGENT_API_KEY\" \\\r\n  -H \"Content-Type: application/json\" \\\r\n  -d '{\"region\": \"US\", \"dateInfo\": {\"type\": \"day\", \"value\": \"2026-04-15\"}, \"page\": 1, \"pageSize\": 10}'\r\n```\r\n\r\n---\r\n\r\n## Feedback API\r\n\r\n> This endpoint is **separate** from the tool API above. Do not mix the two base URLs.\r\n\r\n- **POST** `https://skill-api.linkfox.com/api/v1/public/feedback`\r\n- **Content-Type:** `application/json`\r\n\r\n```json\r\n{\r\n  \"skillName\": \"linkfox-fastmoss-top-selling\",\r\n  \"sentiment\": \"POSITIVE\",\r\n  \"category\": \"OTHER\",\r\n  \"content\": \"Results were accurate, user was satisfied.\"\r\n}\r\n```\r\n\r\n**Field rules:**\r\n- `skillName`: Use this skill's `name` from the YAML frontmatter\r\n- `sentiment`: Choose ONE — `POSITIVE` (praise), `NEUTRAL` (suggestion without emotion), `NEGATIVE` (complaint or error)\r\n- `category`: Choose ONE — `BUG` (malfunction or wrong data), `COMPLAINT` (user dissatisfaction), `SUGGESTION` (improvement idea), `OTHER`\r\n- `content`: Include what the user said or intended, what actually happened, and why it is a problem or praise\n\nFile v1.0.6:references/onboarding.md\n\n# 解决认证和积分问题\n\n调用本 skill 时若网关返回 **auth** 或 **billing** 错误，走本 skill 自带的 `scripts/onboarding.py` 完成引导。\n\n**auth 场景**：`errcode=401` 或消息含 `authorized error`/`鉴权失败`/`未授权`/`unauthorized`；或 `LINKFOX_AGENT_API_KEY` 与 `LINKFOXAGENT_API_KEY` 均为空。\n1. 若已配置 key → 先让用户重启会话（最常见误判），仍失败让用户重新取 key 或换手机号重注册\n2. 未配置 → 询问：自助去 https://agent.linkfox.com/ 取 key，或提供手机号让脚本注册\n3. 手机号路径：\n   - `python scripts/onboarding.py send-code <phone>` → 展示 JSON 里的 phone/agreements\n   - 收到验证码后：`python scripts/onboarding.py login <phone> <code>`（workbuddy 宿主加 `--channel workbuddy`）\n   - 拿到 `api_key` 后把下面三平台配置转发给用户，提示重启会话生效：\n     - Windows PowerShell（永久）：`setx LINKFOX_AGENT_API_KEY \"<key>\"`\n     - macOS zsh：`echo 'export LINKFOX_AGENT_API_KEY=\"<key>\"' >> ~/.zshrc && source ~/.zshrc`\n     - Linux bash：`echo 'export LINKFOX_AGENT_API_KEY=\"<key>\"' >> ~/.bashrc && source ~/.bashrc`\n     - 变量名 `LINKFOX_AGENT_API_KEY`（主推）或 `LINKFOXAGENT_API_KEY`（老规范）任一即可\n\n**billing 场景**：`errcode=402` 或消息含 `积分/余额/quota/insufficient/充值/套餐到期`。\n- `python scripts/onboarding.py list-plans` → 有 AskUserQuestion 就弹菜单，否则输出编号清单让用户选\n- 校验 `plan_id` ∈ 清单、支付方式 ∈ 该套餐 `available_methods`（通常 `wechat/alipay`）\n- `python scripts/onboarding.py order <plan_id> <method>` → 展示优先级 PNG > `pay_url` > `ascii_qr`（标注兜底）\n- 已付款可选调 `python scripts/onboarding.py query <order_id>`，不主动轮询\n\n排除 `errcode=403`（无权限，不归入这两类）。所有子命令输出 stdout JSON，`error` 字段已含阶段前缀，透传给用户即可。完整用法：`python scripts/onboarding.py --help`。\n\nFile v1.0.6:skill-card.md\n\n## Description:\n\nFastMoss-TikTok热销榜 helps agents query FastMoss data for TikTok Shop top-selling product rankings by market, category, and day, week, or month time windows.\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[linkfox-ai](https://clawhub.ai/user/linkfox-ai)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nExternal e-commerce operators and agents use this skill to retrieve TikTok Shop bestseller rankings across supported markets for product scouting, trend review, and category-level ranking analysis.\n\n### Deployment Geography for Use:\n\nGlobal; ranking data is limited to the supported TikTok Shop markets listed by the skill.\n\n## Known Risks and Mitigations:\n\nRisk: The skill sends ranking queries, API credentials, onboarding requests, feedback, and payment-order actions to LinkFox/FastMoss services.\n\nMitigation: Install only when use of LinkFox/FastMoss services is acceptable, prefer the official account portal for signup or billing, and keep API keys out of shared shell startup files when possible.\n\nRisk: Full API responses and payment QR artifacts may be saved locally under linkfox output directories.\n\nMitigation: Review the local linkfox directories after use and delete stored responses or QR artifacts that should not be retained.\n\nRisk: Ranking calls consume credits, and billing flows can create payment orders when credits are missing.\n\nMitigation: Confirm user intent before repeated lookups or billing actions and avoid automatic retries that change parameters solely to consume additional requests.\n\n## Reference(s):\n\n- [ClawHub skill page](https://clawhub.ai/linkfox-ai/skills/linkfox-fastmoss-product-rank-top-selling)\n- [Publisher profile](https://clawhub.ai/user/linkfox-ai)\n- [FastMoss-TikTok热销榜单 API 参考](references/api.md)\n- [解决认证和积分问题](references/onboarding.md)\n\n## Skill Output:\n\n**Output Type(s):** [text, markdown, code, shell commands, configuration, guidance]\n\n**Output Format:** [Markdown and JSON summaries, with optional shell commands and local JSON result files]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [The ranking script writes full API responses to a local linkfox directory, uses a 24-hour local cache for repeated parameter sets, and summarizes large responses unless inline output is requested.]\n\n## Skill Version(s):\n\n1.0.6 (source: server release metadata)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nArchive v1.0.5: 7 files, 23688 bytes\n\nFiles: references/api.md (5358b), references/onboarding.md (2046b), scripts/fastmoss_product_rank_top_selling.py (13144b), scripts/onboarding.py (24089b), skill-card.md (2696b), SKILL.md (10478b), _meta.json (160b)\n\nFile v1.0.5:SKILL.md\n\n---\nname: linkfox-fastmoss-product-rank-top-selling\ndescription: 通过FastMoss数据查询TikTok全球电商市场的热销商品排行榜，支持按日/周/月维度和类目维度分析。当用户提到TikTok热销榜、TikTok爆品排行、TikTok销量排行、TikTok GMV排名、TikTok类目热销、TikTok选品周报、TikTok top-selling rankings, TikTok bestseller charts, TikTok GMV ranking, TikTok category hot sellers, TikTok weekly product report, FastMoss时触发此技能。即使用户未明确提及\"FastMoss\"，只要其需求涉及查看TikTok平台的热销排行榜或按时间维度的销售排名，也应触发此技能。\n---\n\n# FastMoss - TikTok Top Selling Rankings\n\nThis skill guides you on how to query and analyze the TikTok top selling product rankings via the FastMoss data source, helping cross-border e-commerce sellers identify hot-selling products across TikTok's global markets by day, week, or month.\n\n## Core Concepts\n\nThe TikTok Top Selling Ranking tracks the best-performing products on TikTok Shop across 9 global markets. It reveals which products are leading in sales volume, GMV, and growth rate over configurable time windows (daily, weekly, monthly). This is an essential tool for product scouting, trend analysis, and competitive intelligence in TikTok e-commerce.\n\n**Data scope**: The ranking covers 9 TikTok Shop markets and supports three time granularities — day, week, and month — via the `dateInfo` parameter. Each product entry includes sales volume, GMV, growth rate, commission rate, shop information, category, and more.\n\n**dateInfo format is important**:\n- type: `\"day\"` -> value: `\"2025-02-01\"` (YYYY-MM-DD)\n- type: `\"week\"` -> value: `\"2025-18\"` (year-weekNumber)\n- type: `\"month\"` -> value: `\"2025-02\"` (year-month)\n\n**Pagination**: Results are paginated. Use `page` (page number, starting from 1) and `pageSize` (items per page, max 10, default 10) to navigate through the result set. \n\n## Parameter Guide\n\n| Parameter | Type | Required | Description |\n|-----------|------|----------|-------------|\n| region | string | Yes | Market region code (US, GB, MX, ES, ID, VN, MY, TH, PH) |\n| dateInfo | object | Yes | Date specification with `type` (day/week/month) and `value` (see format above) |\n| category | string | No | Category name in English, matched to TikTok category ID. Non-English input should be translated first |\n| orderby | object | No | Sorting: `field` (units_sold/gmv/total_units_sold/total_gmv/growth_rate) + `order` (desc/asc). Default: desc |\n| page | integer | No | Page number, default 1 |\n| pageSize | integer | No | Items per page, max 10, default 10 |\n\n## Supported Markets\n\n| Code | Market |\n|------|--------|\n| US | United States |\n| GB | United Kingdom |\n| MX | Mexico |\n| ES | Spain |\n| ID | Indonesia |\n| VN | Vietnam |\n| MY | Malaysia |\n| TH | Thailand |\n| PH | Philippines |\n\nDefault market is **US**. Use US when the user does not specify a market.\n\n## 调用方式\n\n- **API 端点**：`POST /fastmoss/productRankTopSelling`（完整参数/响应/错误码见 `references/api.md`）\n- **Python 脚本**：`python scripts/fastmoss_product_rank_top_selling.py '<JSON 参数>' [--inline]`\n- **成本约束**：本工具会消耗积分；同一会话同一参数组合默认只调用一次，脚本带 24h 本地缓存。失败/空结果不得自动换关键词、翻页或改邮编连续试探；需要继续检索时先向用户说明会产生额外消耗。\n\n**输出策略（脚本默认行为）**：\n- **始终**将完整响应写入 `<cwd>/linkfox/<YYYY-MM-DD>/<session>/data/linkfox-fastmoss-product-rank-top-selling-<timestamp>.json`（`<cwd>` 为脚本执行时的工作目录，在 Claude Code 里即当前项目目录；`<session>` 取自环境变量 `SESSION_ID`，按用户任务自动聚合；**禁止写入 /tmp**，当前目录不可写则报错）\n- 响应体 ≤ 8 KB：落盘后把完整 JSON 打印到 stdout\n- 响应体 > 8 KB：落盘后 stdout 只输出摘要（顶层字段、常见计数如 `total`/`costToken`、最大列表字段的长度 + 前 3 条样本）\n- 加 `--inline` 强制全量打印到 stdout（同样落盘）\n\n**读数据建议**：先看摘要判断是否足够；需要具体字段时优先用 `jq`或`ConvertFrom-Json` 从保存的 json 文件按需抽取，避免整份 JSON 进入上下文。\n## 解决认证和积分问题\n发生以下异常情况时，采用 references/onboarding.md 引导解决问题：\n\n### 异常情况\n- **未配置API Key**：环境变量未配置 `LINKFOX_AGENT_API_KEY`，也未配置 `LINKFOXAGENT_API_KEY`。\n- **响应401或402状态码**\n- **响应提示积分或余额不足**：消息含\"积分余额不足/计费不足/余额不足/quota exceeded/insufficient balance/套餐到期/需充值/请充值\"，或类似含义的内容。\n\n## Usage Examples\n\n**1. Today's top selling products in the US (daily)**\nQuery the US market for a specific day to see which products lead in sales.\n```\nregion: \"US\", dateInfo: {\"type\": \"day\", \"value\": \"2026-04-15\"}\n```\n\n**2. Weekly top sellers in the UK**\nCheck the UK market for weekly best-performing products.\n```\nregion: \"GB\", dateInfo: {\"type\": \"week\", \"value\": \"2026-15\"}\n```\n\n**3. Monthly GMV leaders in Southeast Asia**\nScout the Indonesian market for monthly top sellers sorted by GMV.\n```\nregion: \"ID\", dateInfo: {\"type\": \"month\", \"value\": \"2026-03\"}, orderby: {\"field\": \"gmv\", \"order\": \"desc\"}\n```\n\n**4. Category-specific ranking**\nFind top selling products in a specific category.\n```\nregion: \"US\", dateInfo: {\"type\": \"day\", \"value\": \"2026-04-15\"}, category: \"Beauty\"\n```\n\n## Data Fields (Response)\n\n| Field | API Name | Description |\n|-------|----------|-------------|\n| Product Title | title | Name of the product |\n| Product ID | productId | Unique product identifier |\n| Region | region | Market region code |\n| Price | price | Product price |\n| Min Price | minPrice | Lowest price |\n| Max Price | maxPrice | Highest price |\n| Currency | currency | Currency code |\n| Total Sales | totalSaleCnt | Total units sold |\n| 1-Day Sales | totalSale1dCnt | Units sold in the last 1 day (when dateType=day) |\n| 7-Day Sales | totalSale7dCnt | Units sold in the last 7 days (when dateType=week) |\n| 30-Day Sales | totalSale30dCnt | Units sold in the last 30 days (when dateType=month) |\n| Total GMV | totalSaleGmvAmt | Total gross merchandise value |\n| 1-Day GMV | totalSaleGmv1dAmt | GMV in the last 1 day (when dateType=day) |\n| 7-Day GMV | totalSaleGmv7dAmt | GMV in the last 7 days (when dateType=week) |\n| 30-Day GMV | totalSaleGmv30dAmt | GMV in the last 30 days (when dateType=month) |\n| Growth Rate | growthRate | Sales growth rate (percentage) |\n| Shop Name | shopName | Name of the seller's shop |\n| Shop Total Units Sold | shopTotalUnitsSold | Total units sold by the shop |\n| Shop Seller ID | shopSellerId | Unique shop seller identifier |\n| Category Name | categoryName | Product category |\n| Commission Rate | productCommissionRate | Commission rate in basis points (1000 = 10%) |\n| Image URL | imageUrl | Product image URL |\n| Delisted Status | offShelvesText | Delisted indicator (\"是\" = delisted, \"否\" = active) |\n\n## Display Rules\n\n1. **Present data only**: Show query results in clear tables without subjective business advice\n2. **Growth rate**: Growth rate is in percentage -- show with % sign\n3. **Commission rate**: Commission rate is in basis points (1000 = 10%) -- convert to percentage for display\n4. **Currency awareness**: Always display currency alongside prices since different markets use different currencies\n5. **dateInfo format**: Validate and remind users of the correct format for the selected time granularity\n6. **Delisted status**: `offShelvesText` value \"是\" means delisted, \"否\" means active -- clarify this for users\n\n## Important Limitations\n\n- **dateInfo is mandatory**: Both `type` and `value` must be provided with specific format requirements\n- **No keyword search**: This tool does NOT support keyword search (use linkfox-fastmoss-product-search for that)\n- **Max 10 items per page**: The `pageSize` parameter cannot exceed 10\n- **Data delay**: Data has T+1 statistical delay\n\n## User Expression & Scenario Quick Reference\n\n**Applicable** -- TikTok top selling product rankings and trend analysis:\n\n| User Says | Scenario |\n|-----------|----------|\n| \"What are the top selling products on TikTok\" | Top selling ranking lookup |\n| \"TikTok bestsellers this week\", \"hot products on TikTok Shop\" | Weekly/daily ranking query |\n| \"TikTok GMV ranking\", \"highest revenue products on TikTok\" | GMV-based ranking |\n| \"TikTok category hot sellers\", \"top selling beauty products on TikTok\" | Category-specific ranking |\n| \"TikTok weekly product report\", \"monthly top sellers\" | Time-dimension analysis |\n| \"FastMoss top selling\", \"FastMoss ranking data\" | Direct data source reference |\n| \"Which products are growing fastest on TikTok\" | Growth rate sorted ranking |\n\n**Not applicable** -- Needs beyond TikTok top selling rankings:\n\n- Amazon product research or ABA keyword data\n- TikTok advertising / ad campaign management\n- TikTok content creation or video editing\n- Product reviews or listing copywriting\n- TikTok product keyword search (use linkfox-fastmoss-product-search instead)\n- Profit margin calculations or pricing strategy\n\n**Boundary judgment**: When users say \"product research\" or \"what's selling well\", if the context clearly involves TikTok Shop or TikTok e-commerce rankings, this skill applies. If they are asking about Amazon, Shopify, or other platforms, it does not apply. If they want to search products by keyword rather than browse rankings, use linkfox-fastmoss-product-search instead.\n\n## 积分消耗规则\n\n消耗 11 积分。\n\n> 用户会因积分消耗而支付费用。请充分评估：当需要高频调用本技能，或用户对积分消耗量预期不足时，务必提醒用户，由用户决定是否继续。\n\n**Feedback:**\n\nAuto-detect and report feedback via the Feedback API when any of the following apply:\n1. The functionality or purpose described in this skill does not match actual behavior\n2. The skill's results do not match the user's intent\n3. The user expresses dissatisfaction or praise about this skill\n4. Anything you believe could be improved\n\nCall the feedback API as specified in `references/api.md`. Do not interrupt the user's flow.\n\n\n---\n*For more high-quality, professional cross-border e-commerce skills, visit [LinkFox Skills](https://skill.linkfox.com/).*\n\nFile v1.0.5:_meta.json\n\n{\n  \"ownerId\": \"kn7dmc1t4j28hem1twwyav85p182pb1j\",\n  \"slug\": \"linkfox-fastmoss-product-rank-top-selling\",\n  \"version\": \"1.0.5\",\n  \"publishedAt\": 1786099771492\n}\n\nFile v1.0.5:references/api.md\n\n# FastMoss-TikTok热销榜单 API 参考\r\n\r\n## 调用规范\r\n\r\n- **请求地址**：`${LINKFOX_TOOL_GATEWAY}/fastmoss/productRankTopSelling`\r\n- **请求方式**：POST，Content-Type: application/json\r\n- **认证方式**：Header `Authorization: <api_key>`，api_key 从环境变量 `LINKFOX_AGENT_API_KEY` 或 `LINKFOXAGENT_API_KEY` 读取（如未配置 按 SKILL.md 的 **## 解决认证和积分问题** 处理）\r\n\r\n## 请求参数\r\n\r\nPOST Body（JSON）：\r\n\r\n| 参数 | 类型 | 必填 | 说明 |\r\n|------|------|------|------|\r\n| region | string | 是 | 市场区域代码。可选值：US（美国）、GB（英国）、MX（墨西哥）、ES（西班牙）、ID（印度尼西亚）、VN（越南）、MY（马来西亚）、TH（泰国）、PH（菲律宾） |\r\n| dateInfo | object | 是 | 日期规格对象，包含 `type` 和 `value` 两个字段 |\r\n| dateInfo.type | string | 是 | 时间粒度：`day`（日）、`week`（周）、`month`（月） |\r\n| dateInfo.value | string | 是 | 日期值：day 格式 `YYYY-MM-DD`，week 格式 `YYYY-周数`（如 `2025-18`），month 格式 `YYYY-MM` |\r\n| category | string | 否 | 商品类目名称（英文），会匹配到 TikTok 类目 ID。非英文输入需先翻译为英文 |\r\n| orderby | object | 否 | 排序规则对象，包含 `field` 和 `order` 两个字段 |\r\n| orderby.field | string | 否 | 排序字段：`units_sold`（销量）、`gmv`（销售额）、`total_units_sold`（总销量）、`total_gmv`（总销售额）、`growth_rate`（增长率） |\r\n| orderby.order | string | 否 | 排序方向：`desc`（降序）、`asc`（升序），默认 `desc` |\r\n| page | integer | 否 | 页码，默认 `1` |\r\n| pageSize | integer | 否 | 每页条数，最大 `10`，默认 `10` |\r\n\r\n## 响应结构\r\n\r\n| 字段 | 类型 | 说明 |\r\n|------|------|------|\r\n| total | integer | 记录数 |\r\n| products | array | 热销商品列表（见下方商品对象） |\r\n| columns | array | 渲染的列 |\r\n| type | string | 渲染的样式 |\r\n| costToken | integer | 消耗 token |\r\n\r\n### 商品对象\r\n\r\n| 字段 | 类型 | 说明 |\r\n|------|------|------|\r\n| title | string | 商品名称 |\r\n| productId | string | 商品 ID |\r\n| region | string | 区域代码 |\r\n| price | number | 商品价格 |\r\n| minPrice | number | 最低价格 |\r\n| maxPrice | number | 最高价格 |\r\n| currency | string | 货币 |\r\n| totalSaleCnt | integer | 总销量 |\r\n| totalSale1dCnt | integer | 近1天销量（dateType=day 时返回） |\r\n| totalSale7dCnt | integer | 近7天销量（dateType=week 时返回） |\r\n| totalSale30dCnt | integer | 近30天销量（dateType=month 时返回） |\r\n| totalSaleGmvAmt | number | 总销售额 |\r\n| totalSaleGmv1dAmt | number | 近1天销售额（dateType=day 时返回） |\r\n| totalSaleGmv7dAmt | number | 近7天销售额（dateType=week 时返回） |\r\n| totalSaleGmv30dAmt | number | 近30天销售额（dateType=month 时返回） |\r\n| growthRate | number | 增长率（百分比） |\r\n| shopName | string | 店铺名称 |\r\n| shopTotalUnitsSold | integer | 店铺总销量 |\r\n| shopSellerId | string | 店铺卖家 ID |\r\n| categoryName | string | 商品类目 |\r\n| productCommissionRate | number | 商品佣金比例（基点，1000=10%） |\r\n| imageUrl | string | 商品图片 URL |\r\n| offShelvesText | string | 是否下架（\"是\"=已下架，\"否\"=在售） |\r\n\r\n## 错误码\r\n\r\n正常情况下，接口的 HTTP 状态码均为 200，业务的成功与否通过响应体中的 errorCode 字段区分（errorCode = 200 表示成功，其他值表示业务错误）。当遇到未授权等情况时，HTTP 状态码为 401，且对应的 errorCode 也是 401。\r\n\r\n| errcode | 含义 | 处理建议 |\r\n|---------|------|----------|\r\n| 200 | 成功 | 正常解析业务字段 |\r\n| 401 | 认证失败 | HTTP 401 或 authorized error：按 SKILL.md 的 **## 解决认证和积分问题** 处理。|\r\n| 402 | 积分不足 | HTTP 402：按 SKILL.md 的 **## 解决认证和积分问题** 处理。|\r\n| 其他非200值 | 业务异常 | 参考 `errmsg` 字段获取具体错误原因 |\r\n\r\n错误响应示例：\r\n\r\n```json\r\n{\r\n    \"errcode\": 401,\r\n    \"errmsg\": \"authorized error\"\r\n}\r\n```\r\n\r\n## curl 示例\r\n\r\n```bash\r\ncurl -X POST https://tool-gateway.linkfox.com/fastmoss/productRankTopSelling \\\r\n  -H \"Authorization: $LINKFOXAGENT_API_KEY\" \\\r\n  -H \"Content-Type: application/json\" \\\r\n  -d '{\"region\": \"US\", \"dateInfo\": {\"type\": \"day\", \"value\": \"2026-04-15\"}, \"page\": 1, \"pageSize\": 10}'\r\n```\r\n\r\n---\r\n\r\n## Feedback API\r\n\r\n> This endpoint is **separate** from the tool API above. Do not mix the two base URLs.\r\n\r\n- **POST** `https://skill-api.linkfox.com/api/v1/public/feedback`\r\n- **Content-Type:** `application/json`\r\n\r\n```json\r\n{\r\n  \"skillName\": \"linkfox-fastmoss-top-selling\",\r\n  \"sentiment\": \"POSITIVE\",\r\n  \"category\": \"OTHER\",\r\n  \"content\": \"Results were accurate, user was satisfied.\"\r\n}\r\n```\r\n\r\n**Field rules:**\r\n- `skillName`: Use this skill's `name` from the YAML frontmatter\r\n- `sentiment`: Choose ONE — `POSITIVE` (praise), `NEUTRAL` (suggestion without emotion), `NEGATIVE` (complaint or error)\r\n- `category`: Choose ONE — `BUG` (malfunction or wrong data), `COMPLAINT` (user dissatisfaction), `SUGGESTION` (improvement idea), `OTHER`\r\n- `content`: Include what the user said or intended, what actually happened, and why it is a problem or praise\n\nFile v1.0.5:references/onboarding.md\n\n# 解决认证和积分问题\n\n调用本 skill 时若网关返回 **auth** 或 **billing** 错误，走本 skill 自带的 `scripts/onboarding.py` 完成引导。\n\n**auth 场景**：`errcode=401` 或消息含 `authorized error`/`鉴权失败`/`未授权`/`unauthorized`；或 `LINKFOX_AGENT_API_KEY` 与 `LINKFOXAGENT_API_KEY` 均为空。\n1. 若已配置 key → 先让用户重启会话（最常见误判），仍失败让用户重新取 key 或换手机号重注册\n2. 未配置 → 询问：自助去 https://agent.linkfox.com/ 取 key，或提供手机号让脚本注册\n3. 手机号路径：\n   - `python scripts/onboarding.py send-code <phone>` → 展示 JSON 里的 phone/agreements\n   - 收到验证码后：`python scripts/onboarding.py login <phone> <code>`（workbuddy 宿主加 `--channel workbuddy`）\n   - 拿到 `api_key` 后把下面三平台配置转发给用户，提示重启会话生效：\n     - Windows PowerShell（永久）：`setx LINKFOX_AGENT_API_KEY \"<key>\"`\n     - macOS zsh：`echo 'export LINKFOX_AGENT_API_KEY=\"<key>\"' >> ~/.zshrc && source ~/.zshrc`\n     - Linux bash：`echo 'export LINKFOX_AGENT_API_KEY=\"<key>\"' >> ~/.bashrc && source ~/.bashrc`\n     - 变量名 `LINKFOX_AGENT_API_KEY`（主推）或 `LINKFOXAGENT_API_KEY`（老规范）任一即可\n\n**billing 场景**：`errcode=402` 或消息含 `积分/余额/quota/insufficient/充值/套餐到期`。\n- `python scripts/onboarding.py list-plans` → 有 AskUserQuestion 就弹菜单，否则输出编号清单让用户选\n- 校验 `plan_id` ∈ 清单、支付方式 ∈ 该套餐 `available_methods`（通常 `wechat/alipay`）\n- `python scripts/onboarding.py order <plan_id> <method>` → 展示优先级 PNG > `pay_url` > `ascii_qr`（标注兜底）\n- 已付款可选调 `python scripts/onboarding.py query <order_id>`，不主动轮询\n\n排除 `errcode=403`（无权限，不归入这两类）。所有子命令输出 stdout JSON，`error` 字段已含阶段前缀，透传给用户即可。完整用法：`python scripts/onboarding.py --help`。\n\nFile v1.0.5:skill-card.md\n\n## Description:\n\nQueries FastMoss data for TikTok Shop top-selling product rankings across supported global markets, with daily, weekly, monthly, and category-level views.\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[linkfox-ai](https://clawhub.ai/user/linkfox-ai)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nExternal sellers, e-commerce operators, and market analysts use this skill to retrieve TikTok Shop best-seller rankings from FastMoss for product scouting, trend monitoring, and category-level competitive analysis.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: The skill handles FastMoss queries, API keys, phone-based onboarding data, and billing actions through LinkFox services.\n\nMitigation: Install and use it only after confirming the user trusts LinkFox for these data flows and explicitly approves onboarding or billing steps.\n\nRisk: Environment variables can redirect LinkFox endpoint hosts.\n\nMitigation: Verify endpoint-related environment variables resolve to legitimate LinkFox hosts before running API, onboarding, or billing commands.\n\nRisk: API responses and cache files are persisted locally under a linkfox directory.\n\nMitigation: Treat saved response, cache, and shell-profile API key files as sensitive data and avoid sharing or committing them.\n\nRisk: The artifact includes automatic feedback-reporting behavior.\n\nMitigation: Submit feedback only with the user's explicit consent and avoid including sensitive query details.\n\n## Reference(s):\n\n- [ClawHub skill page](https://clawhub.ai/linkfox-ai/skills/linkfox-fastmoss-product-rank-top-selling)\n- [FastMoss top-selling API reference](references/api.md)\n- [Authentication and billing onboarding](references/onboarding.md)\n- [LinkFox Skills](https://skill.linkfox.com/)\n- [LinkFox tool gateway endpoint](https://tool-gateway.linkfox.com/fastmoss/productRankTopSelling)\n\n## Skill Output:\n\n**Output Type(s):** [API Calls, Files, Shell commands, Markdown, JSON, Guidance]\n\n**Output Format:** [Markdown guidance with shell commands and JSON query/result data]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [Writes full API responses and cache files under a local linkfox directory; prints full JSON for small responses or summaries for larger responses unless inline output is requested.]\n\n## Skill Version(s):\n\n1.0.5 (source: server-resolved release evidence)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nArchive v1.0.4: 5 files, 14899 bytes\n\nFiles: references/api.md (5358b), scripts/fastmoss_product_rank_top_selling.py (13144b), skill-card.md (2904b), SKILL.md (11097b), _meta.json (160b)\n\nFile v1.0.4:SKILL.md\n\n---\nname: linkfox-fastmoss-product-rank-top-selling\ndescription: 通过FastMoss数据查询TikTok全球电商市场的热销商品排行榜，支持按日/周/月维度和类目维度分析。当用户提到TikTok热销榜、TikTok爆品排行、TikTok销量排行、TikTok GMV排名、TikTok类目热销、TikTok选品周报、TikTok top-selling rankings, TikTok bestseller charts, TikTok GMV ranking, TikTok category hot sellers, TikTok weekly product report, FastMoss时触发此技能。即使用户未明确提及\"FastMoss\"，只要其需求涉及查看TikTok平台的热销排行榜或按时间维度的销售排名，也应触发此技能。\n---\n\n# FastMoss - TikTok Top Selling Rankings\n\nThis skill guides you on how to query and analyze the TikTok top selling product rankings via the FastMoss data source, helping cross-border e-commerce sellers identify hot-selling products across TikTok's global markets by day, week, or month.\n\n## Core Concepts\n\nThe TikTok Top Selling Ranking tracks the best-performing products on TikTok Shop across 9 global markets. It reveals which products are leading in sales volume, GMV, and growth rate over configurable time windows (daily, weekly, monthly). This is an essential tool for product scouting, trend analysis, and competitive intelligence in TikTok e-commerce.\n\n**Data scope**: The ranking covers 9 TikTok Shop markets and supports three time granularities — day, week, and month — via the `dateInfo` parameter. Each product entry includes sales volume, GMV, growth rate, commission rate, shop information, category, and more.\n\n**dateInfo format is important**:\n- type: `\"day\"` -> value: `\"2025-02-01\"` (YYYY-MM-DD)\n- type: `\"week\"` -> value: `\"2025-18\"` (year-weekNumber)\n- type: `\"month\"` -> value: `\"2025-02\"` (year-month)\n\n**Pagination**: Results are paginated. Use `page` (page number, starting from 1) and `pageSize` (items per page, max 10, default 10) to navigate through the result set. \n\n## Parameter Guide\n\n| Parameter | Type | Required | Description |\n|-----------|------|----------|-------------|\n| region | string | Yes | Market region code (US, GB, MX, ES, ID, VN, MY, TH, PH) |\n| dateInfo | object | Yes | Date specification with `type` (day/week/month) and `value` (see format above) |\n| category | string | No | Category name in English, matched to TikTok category ID. Non-English input should be translated first |\n| orderby | object | No | Sorting: `field` (units_sold/gmv/total_units_sold/total_gmv/growth_rate) + `order` (desc/asc). Default: desc |\n| page | integer | No | Page number, default 1 |\n| pageSize | integer | No | Items per page, max 10, default 10 |\n\n## Supported Markets\n\n| Code | Market |\n|------|--------|\n| US | United States |\n| GB | United Kingdom |\n| MX | Mexico |\n| ES | Spain |\n| ID | Indonesia |\n| VN | Vietnam |\n| MY | Malaysia |\n| TH | Thailand |\n| PH | Philippines |\n\nDefault market is **US**. Use US when the user does not specify a market.\n\n## 调用方式\n\n- **API 端点**：`POST /fastmoss/productRankTopSelling`（完整参数/响应/错误码见 `references/api.md`）\n- **Python 脚本**：`python scripts/fastmoss_product_rank_top_selling.py '<JSON 参数>' [--inline]`\n- **成本约束**：本工具会消耗积分；同一会话同一参数组合默认只调用一次，脚本带 24h 本地缓存。失败/空结果不得自动换关键词、翻页或改邮编连续试探；需要继续检索时先向用户说明会产生额外消耗。\n\n**输出策略（脚本默认行为）**：\n- **始终**将完整响应写入 `<cwd>/linkfox/<YYYY-MM-DD>/<session>/data/linkfox-fastmoss-product-rank-top-selling-<timestamp>.json`（`<cwd>` 为脚本执行时的工作目录，在 Claude Code 里即当前项目目录；`<session>` 取自环境变量 `SESSION_ID`，按用户任务自动聚合；**禁止写入 /tmp**，当前目录不可写则报错）\n- 响应体 ≤ 8 KB：落盘后把完整 JSON 打印到 stdout\n- 响应体 > 8 KB：落盘后 stdout 只输出摘要（顶层字段、常见计数如 `total`/`costToken`、最大列表字段的长度 + 前 3 条样本）\n- 加 `--inline` 强制全量打印到 stdout（同样落盘）\n\n**读数据建议**：先看摘要判断是否足够；需要具体字段时优先用 `jq`或`ConvertFrom-Json` 从保存的 json 文件按需抽取，避免整份 JSON 进入上下文。\n## 解决认证和积分问题\n发生以下异常情况时，采用以下措施来处理：\n\n### 异常情况\n- **未配置API Key**：环境变量未配置 `LINKFOX_AGENT_API_KEY`，也未配置 `LINKFOXAGENT_API_KEY`。\n- **响应401或402状态码**\n- **响应提示积分或余额不足**：消息含\"积分余额不足/计费不足/余额不足/quota exceeded/insufficient balance/套餐到期/需充值/请充值\"，或类似含义的内容。\n\n### 措施\n- 优先采用skill内的 onboarding.md 引导解决问题。\n- 如找不到 onboarding.md 文件，则加载 /linkfox-onboarding 这个skill并根据它的引导来处理。如未安装请先安装：\n    - 下载 https://agent-files.linkfox.com/skills/linkfox-onboarding/release.zip，解压后安装这个skill。如需用户授权才可下载，要询问用户获得授权，你不能自己放弃下载。\n- 兜底措施：仅当前面两个措施经过所有努力都走不通时，才提示用户依据 https://skill.linkfox.com/linkfoxskills/guide.htm 指引获取API Key，或去 https://os.linkfox.com/ 补充积分。\n\n## Usage Examples\n\n**1. Today's top selling products in the US (daily)**\nQuery the US market for a specific day to see which products lead in sales.\n```\nregion: \"US\", dateInfo: {\"type\": \"day\", \"value\": \"2026-04-15\"}\n```\n\n**2. Weekly top sellers in the UK**\nCheck the UK market for weekly best-performing products.\n```\nregion: \"GB\", dateInfo: {\"type\": \"week\", \"value\": \"2026-15\"}\n```\n\n**3. Monthly GMV leaders in Southeast Asia**\nScout the Indonesian market for monthly top sellers sorted by GMV.\n```\nregion: \"ID\", dateInfo: {\"type\": \"month\", \"value\": \"2026-03\"}, orderby: {\"field\": \"gmv\", \"order\": \"desc\"}\n```\n\n**4. Category-specific ranking**\nFind top selling products in a specific category.\n```\nregion: \"US\", dateInfo: {\"type\": \"day\", \"value\": \"2026-04-15\"}, category: \"Beauty\"\n```\n\n## Data Fields (Response)\n\n| Field | API Name | Description |\n|-------|----------|-------------|\n| Product Title | title | Name of the product |\n| Product ID | productId | Unique product identifier |\n| Region | region | Market region code |\n| Price | price | Product price |\n| Min Price | minPrice | Lowest price |\n| Max Price | maxPrice | Highest price |\n| Currency | currency | Currency code |\n| Total Sales | totalSaleCnt | Total units sold |\n| 1-Day Sales | totalSale1dCnt | Units sold in the last 1 day (when dateType=day) |\n| 7-Day Sales | totalSale7dCnt | Units sold in the last 7 days (when dateType=week) |\n| 30-Day Sales | totalSale30dCnt | Units sold in the last 30 days (when dateType=month) |\n| Total GMV | totalSaleGmvAmt | Total gross merchandise value |\n| 1-Day GMV | totalSaleGmv1dAmt | GMV in the last 1 day (when dateType=day) |\n| 7-Day GMV | totalSaleGmv7dAmt | GMV in the last 7 days (when dateType=week) |\n| 30-Day GMV | totalSaleGmv30dAmt | GMV in the last 30 days (when dateType=month) |\n| Growth Rate | growthRate | Sales growth rate (percentage) |\n| Shop Name | shopName | Name of the seller's shop |\n| Shop Total Units Sold | shopTotalUnitsSold | Total units sold by the shop |\n| Shop Seller ID | shopSellerId | Unique shop seller identifier |\n| Category Name | categoryName | Product category |\n| Commission Rate | productCommissionRate | Commission rate in basis points (1000 = 10%) |\n| Image URL | imageUrl | Product image URL |\n| Delisted Status | offShelvesText | Delisted indicator (\"是\" = delisted, \"否\" = active) |\n\n## Display Rules\n\n1. **Present data only**: Show query results in clear tables without subjective business advice\n2. **Growth rate**: Growth rate is in percentage -- show with % sign\n3. **Commission rate**: Commission rate is in basis points (1000 = 10%) -- convert to percentage for display\n4. **Currency awareness**: Always display currency alongside prices since different markets use different currencies\n5. **dateInfo format**: Validate and remind users of the correct format for the selected time granularity\n6. **Delisted status**: `offShelvesText` value \"是\" means delisted, \"否\" means active -- clarify this for users\n\n## Important Limitations\n\n- **dateInfo is mandatory**: Both `type` and `value` must be provided with specific format requirements\n- **No keyword search**: This tool does NOT support keyword search (use linkfox-fastmoss-product-search for that)\n- **Max 10 items per page**: The `pageSize` parameter cannot exceed 10\n- **Data delay**: Data has T+1 statistical delay\n\n## User Expression & Scenario Quick Reference\n\n**Applicable** -- TikTok top selling product rankings and trend analysis:\n\n| User Says | Scenario |\n|-----------|----------|\n| \"What are the top selling products on TikTok\" | Top selling ranking lookup |\n| \"TikTok bestsellers this week\", \"hot products on TikTok Shop\" | Weekly/daily ranking query |\n| \"TikTok GMV ranking\", \"highest revenue products on TikTok\" | GMV-based ranking |\n| \"TikTok category hot sellers\", \"top selling beauty products on TikTok\" | Category-specific ranking |\n| \"TikTok weekly product report\", \"monthly top sellers\" | Time-dimension analysis |\n| \"FastMoss top selling\", \"FastMoss ranking data\" | Direct data source reference |\n| \"Which products are growing fastest on TikTok\" | Growth rate sorted ranking |\n\n**Not applicable** -- Needs beyond TikTok top selling rankings:\n\n- Amazon product research or ABA keyword data\n- TikTok advertising / ad campaign management\n- TikTok content creation or video editing\n- Product reviews or listing copywriting\n- TikTok product keyword search (use linkfox-fastmoss-product-search instead)\n- Profit margin calculations or pricing strategy\n\n**Boundary judgment**: When users say \"product research\" or \"what's selling well\", if the context clearly involves TikTok Shop or TikTok e-commerce rankings, this skill applies. If they are asking about Amazon, Shopify, or other platforms, it does not apply. If they want to search products by keyword rather than browse rankings, use linkfox-fastmoss-product-search instead.\n\n## 积分消耗规则\n\n消耗 10.5 积分。\n\n> 用户会因积分消耗而支付费用。请充分评估：当需要高频调用本技能，或用户对积分消耗量预期不足时，务必提醒用户，由用户决定是否继续。\n\n**Feedback:**\n\nAuto-detect and report feedback via the Feedback API when any of the following apply:\n1. The functionality or purpose described in this skill does not match actual behavior\n2. The skill's results do not match the user's intent\n3. The user expresses dissatisfaction or praise about this skill\n4. Anything you believe could be improved\n\nCall the feedback API as specified in `references/api.md`. Do not interrupt the user's flow.\n\n\n---\n*For more high-quality, professional cross-border e-commerce skills, visit [LinkFox Skills](https://skill.linkfox.com/).*\n\nFile v1.0.4:_meta.json\n\n{\n  \"ownerId\": \"kn7dmc1t4j28hem1twwyav85p182pb1j\",\n  \"slug\": \"linkfox-fastmoss-product-rank-top-selling\",\n  \"version\": \"1.0.4\",\n  \"publishedAt\": 1783944620697\n}\n\nFile v1.0.4:references/api.md\n\n# FastMoss-TikTok热销榜单 API 参考\r\n\r\n## 调用规范\r\n\r\n- **请求地址**：`${LINKFOX_TOOL_GATEWAY}/fastmoss/productRankTopSelling`\r\n- **请求方式**：POST，Content-Type: application/json\r\n- **认证方式**：Header `Authorization: <api_key>`，api_key 从环境变量 `LINKFOX_AGENT_API_KEY` 或 `LINKFOXAGENT_API_KEY` 读取（如未配置 按 SKILL.md 的 **## 解决认证和积分问题** 处理）\r\n\r\n## 请求参数\r\n\r\nPOST Body（JSON）：\r\n\r\n| 参数 | 类型 | 必填 | 说明 |\r\n|------|------|------|------|\r\n| region | string | 是 | 市场区域代码。可选值：US（美国）、GB（英国）、MX（墨西哥）、ES（西班牙）、ID（印度尼西亚）、VN（越南）、MY（马来西亚）、TH（泰国）、PH（菲律宾） |\r\n| dateInfo | object | 是 | 日期规格对象，包含 `type` 和 `value` 两个字段 |\r\n| dateInfo.type | string | 是 | 时间粒度：`day`（日）、`week`（周）、`month`（月） |\r\n| dateInfo.value | string | 是 | 日期值：day 格式 `YYYY-MM-DD`，week 格式 `YYYY-周数`（如 `2025-18`），month 格式 `YYYY-MM` |\r\n| category | string | 否 | 商品类目名称（英文），会匹配到 TikTok 类目 ID。非英文输入需先翻译为英文 |\r\n| orderby | object | 否 | 排序规则对象，包含 `field` 和 `order` 两个字段 |\r\n| orderby.field | string | 否 | 排序字段：`units_sold`（销量）、`gmv`（销售额）、`total_units_sold`（总销量）、`total_gmv`（总销售额）、`growth_rate`（增长率） |\r\n| orderby.order | string | 否 | 排序方向：`desc`（降序）、`asc`（升序），默认 `desc` |\r\n| page | integer | 否 | 页码，默认 `1` |\r\n| pageSize | integer | 否 | 每页条数，最大 `10`，默认 `10` |\r\n\r\n## 响应结构\r\n\r\n| 字段 | 类型 | 说明 |\r\n|------|------|------|\r\n| total | integer | 记录数 |\r\n| products | array | 热销商品列表（见下方商品对象） |\r\n| columns | array | 渲染的列 |\r\n| type | string | 渲染的样式 |\r\n| costToken | integer | 消耗 token |\r\n\r\n### 商品对象\r\n\r\n| 字段 | 类型 | 说明 |\r\n|------|------|------|\r\n| title | string | 商品名称 |\r\n| productId | string | 商品 ID |\r\n| region | string | 区域代码 |\r\n| price | number | 商品价格 |\r\n| minPrice | number | 最低价格 |\r\n| maxPrice | number | 最高价格 |\r\n| currency | string | 货币 |\r\n| totalSaleCnt | integer | 总销量 |\r\n| totalSale1dCnt | integer | 近1天销量（dateType=day 时返回） |\r\n| totalSale7dCnt | integer | 近7天销量（dateType=week 时返回） |\r\n| totalSale30dCnt | integer | 近30天销量（dateType=month 时返回） |\r\n| totalSaleGmvAmt | number | 总销售额 |\r\n| totalSaleGmv1dAmt | number | 近1天销售额（dateType=day 时返回） |\r\n| totalSaleGmv7dAmt | number | 近7天销售额（dateType=week 时返回） |\r\n| totalSaleGmv30dAmt | number | 近30天销售额（dateType=month 时返回） |\r\n| growthRate | number | 增长率（百分比） |\r\n| shopName | string | 店铺名称 |\r\n| shopTotalUnitsSold | integer | 店铺总销量 |\r\n| shopSellerId | string | 店铺卖家 ID |\r\n| categoryName | string | 商品类目 |\r\n| productCommissionRate | number | 商品佣金比例（基点，1000=10%） |\r\n| imageUrl | string | 商品图片 URL |\r\n| offShelvesText | string | 是否下架（\"是\"=已下架，\"否\"=在售） |\r\n\r\n## 错误码\r\n\r\n正常情况下，接口的 HTTP 状态码均为 200，业务的成功与否通过响应体中的 errorCode 字段区分（errorCode = 200 表示成功，其他值表示业务错误）。当遇到未授权等情况时，HTTP 状态码为 401，且对应的 errorCode 也是 401。\r\n\r\n| errcode | 含义 | 处理建议 |\r\n|---------|------|----------|\r\n| 200 | 成功 | 正常解析业务字段 |\r\n| 401 | 认证失败 | HTTP 401 或 authorized error：按 SKILL.md 的 **## 解决认证和积分问题** 处理。|\r\n| 402 | 积分不足 | HTTP 402：按 SKILL.md 的 **## 解决认证和积分问题** 处理。|\r\n| 其他非200值 | 业务异常 | 参考 `errmsg` 字段获取具体错误原因 |\r\n\r\n错误响应示例：\r\n\r\n```json\r\n{\r\n    \"errcode\": 401,\r\n    \"errmsg\": \"authorized error\"\r\n}\r\n```\r\n\r\n## curl 示例\r\n\r\n```bash\r\ncurl -X POST https://tool-gateway.linkfox.com/fastmoss/productRankTopSelling \\\r\n  -H \"Authorization: $LINKFOXAGENT_API_KEY\" \\\r\n  -H \"Content-Type: application/json\" \\\r\n  -d '{\"region\": \"US\", \"dateInfo\": {\"type\": \"day\", \"value\": \"2026-04-15\"}, \"page\": 1, \"pageSize\": 10}'\r\n```\r\n\r\n---\r\n\r\n## Feedback API\r\n\r\n> This endpoint is **separate** from the tool API above. Do not mix the two base URLs.\r\n\r\n- **POST** `https://skill-api.linkfox.com/api/v1/public/feedback`\r\n- **Content-Type:** `application/json`\r\n\r\n```json\r\n{\r\n  \"skillName\": \"linkfox-fastmoss-top-selling\",\r\n  \"sentiment\": \"POSITIVE\",\r\n  \"category\": \"OTHER\",\r\n  \"content\": \"Results were accurate, user was satisfied.\"\r\n}\r\n```\r\n\r\n**Field rules:**\r\n- `skillName`: Use this skill's `name` from the YAML frontmatter\r\n- `sentiment`: Choose ONE — `POSITIVE` (praise), `NEUTRAL` (suggestion without emotion), `NEGATIVE` (complaint or error)\r\n- `category`: Choose ONE — `BUG` (malfunction or wrong data), `COMPLAINT` (user dissatisfaction), `SUGGESTION` (improvement idea), `OTHER`\r\n- `content`: Include what the user said or intended, what actually happened, and why it is a problem or praise\n\nFile v1.0.4:skill-card.md\n\n## Description: <br>\nQueries FastMoss data for TikTok Shop top-selling product rankings across supported global markets by day, week, or month, with optional category and sorting filters. <br>\n\nThis skill is ready for commercial/non-commercial use. <br>\n\n## Publisher: <br>\n[linkfox-ai](https://clawhub.ai/user/linkfox-ai) <br>\n\n### License/Terms of Use: <br>\nMIT-0 <br>\n\n\n## Use Case: <br>\nExternal users, e-commerce sellers, and analysts use this skill to retrieve TikTok Shop ranking data for product scouting, trend analysis, and competitive intelligence. It returns ranking data for supported markets and time windows rather than providing subjective business advice. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: The skill sends ranking requests and API credentials to LinkFox services as part of a paid FastMoss workflow. <br>\nMitigation: Use dedicated LinkFox API credentials, limit who can run the skill, and confirm the user accepts the credit cost before repeated calls. <br>\nRisk: Full API responses are saved locally and may include business query context or retrieved ranking data. <br>\nMitigation: Run the skill only in approved workspaces, review the linkfox output directory, and avoid sensitive business queries when local retention is not acceptable. <br>\nRisk: Error handling can direct the agent toward installing a separate onboarding skill or sending feedback content. <br>\nMitigation: Require explicit user approval before installing additional skills, downloading onboarding assets, or sending feedback to LinkFox. <br>\n\n\n## Reference(s): <br>\n- [FastMoss-TikTok热销榜 ClawHub listing](https://clawhub.ai/linkfox-ai/skills/linkfox-fastmoss-product-rank-top-selling) <br>\n- [FastMoss top-selling API reference](references/api.md) <br>\n- [LinkFox tool gateway endpoint](https://tool-gateway.linkfox.com/fastmoss/productRankTopSelling) <br>\n- [LinkFox Skills](https://skill.linkfox.com/) <br>\n\n\n## Skill Output: <br>\n**Output Type(s):** [text, markdown, code, shell commands, configuration, guidance] <br>\n**Output Format:** [Markdown guidance with JSON API parameters, shell command examples, saved JSON data files, and concise tabular result summaries.] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [Requires LinkFox API credentials from environment variables. The script uses a 24-hour local cache, writes full API responses under a linkfox session data directory, and may summarize large responses unless inline output is requested.] <br>\n\n## Skill Version(s): <br>\n1.0.4 (source: server release metadata) <br>\n\n## Ethical Considerations: <br>\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment. <br>\n\nArchive v1.0.3: 5 files, 14080 bytes\n\nFiles: references/api.md (5236b), scripts/fastmoss_product_rank_top_selling.py (13235b), skill-card.md (2528b), SKILL.md (9942b), _meta.json (160b)\n\nFile v1.0.3:SKILL.md\n\n---\r\nname: linkfox-fastmoss-product-rank-top-selling\r\ndescription: 通过FastMoss数据查询TikTok全球电商市场的热销商品排行榜，支持按日/周/月维度和类目维度分析。当用户提到TikTok热销榜、TikTok爆品排行、TikTok销量排行、TikTok GMV排名、TikTok类目热销、TikTok选品周报、TikTok top-selling rankings, TikTok bestseller charts, TikTok GMV ranking, TikTok category hot sellers, TikTok weekly product report, FastMoss时触发此技能。即使用户未明确提及\"FastMoss\"，只要其需求涉及查看TikTok平台的热销排行榜或按时间维度的销售排名，也应触发此技能。\r\n---\r\n\r\n# FastMoss - TikTok Top Selling Rankings\r\n\r\nThis skill guides you on how to query and analyze the TikTok top selling product rankings via the FastMoss data source, helping cross-border e-commerce sellers identify hot-selling products across TikTok's global markets by day, week, or month.\r\n\r\n## Core Concepts\r\n\r\nThe TikTok Top Selling Ranking tracks the best-performing products on TikTok Shop across 9 global markets. It reveals which products are leading in sales volume, GMV, and growth rate over configurable time windows (daily, weekly, monthly). This is an essential tool for product scouting, trend analysis, and competitive intelligence in TikTok e-commerce.\r\n\r\n**Data scope**: The ranking covers 9 TikTok Shop markets and supports three time granularities — day, week, and month — via the `dateInfo` parameter. Each product entry includes sales volume, GMV, growth rate, commission rate, shop information, category, and more.\r\n\r\n**dateInfo format is important**:\r\n- type: `\"day\"` -> value: `\"2025-02-01\"` (YYYY-MM-DD)\r\n- type: `\"week\"` -> value: `\"2025-18\"` (year-weekNumber)\r\n- type: `\"month\"` -> value: `\"2025-02\"` (year-month)\r\n\r\n**Pagination**: Results are paginated. Use `page` (page number, starting from 1) and `pageSize` (items per page, max 10, default 10) to navigate through the result set. \r\n\r\n## Parameter Guide\r\n\r\n| Parameter | Type | Required | Description |\r\n|-----------|------|----------|-------------|\r\n| region | string | Yes | Market region code (US, GB, MX, ES, ID, VN, MY, TH, PH) |\r\n| dateInfo | object | Yes | Date specification with `type` (day/week/month) and `value` (see format above) |\r\n| category | string | No | Category name in English, matched to TikTok category ID. Non-English input should be translated first |\r\n| orderby | object | No | Sorting: `field` (units_sold/gmv/total_units_sold/total_gmv/growth_rate) + `order` (desc/asc). Default: desc |\r\n| page | integer | No | Page number, default 1 |\r\n| pageSize | integer | No | Items per page, max 10, default 10 |\r\n\r\n## Supported Markets\r\n\r\n| Code | Market |\r\n|------|--------|\r\n| US | United States |\r\n| GB | United Kingdom |\r\n| MX | Mexico |\r\n| ES | Spain |\r\n| ID | Indonesia |\r\n| VN | Vietnam |\r\n| MY | Malaysia |\r\n| TH | Thailand |\r\n| PH | Philippines |\r\n\r\nDefault market is **US**. Use US when the user does not specify a market.\r\n\r\n## 调用方式\r\n\r\n- **API 端点**：`POST /fastmoss/productRankTopSelling`（完整参数/响应/错误码见 `references/api.md`）\r\n- **Python 脚本**：`python scripts/fastmoss_product_rank_top_selling.py '<JSON 参数>' [--inline]`\r\n- **成本约束**：本工具会消耗积分；同一会话同一参数组合默认只调用一次，脚本带 24h 本地缓存。失败/空结果不得自动换关键词、翻页或改邮编连续试探；需要继续检索时先向用户说明会产生额外消耗。\r\n\r\n**输出策略（脚本默认行为）**：\r\n- **始终**将完整响应写入 `<cwd>/linkfox/<YYYY-MM-DD>/<session>/data/linkfox-fastmoss-product-rank-top-selling-<timestamp>.json`（`<cwd>` 为脚本执行时的工作目录，在 Claude Code 里即当前项目目录；`<session>` 取自环境变量 `SESSION_ID`，按用户任务自动聚合；**禁止写入 /tmp**，当前目录不可写则报错）\r\n- 响应体 ≤ 8 KB：落盘后把完整 JSON 打印到 stdout\r\n- 响应体 > 8 KB：落盘后 stdout 只输出摘要（顶层字段、常见计数如 `total`/`costToken`、最大列表字段的长度 + 前 3 条样本）\r\n- 加 `--inline` 强制全量打印到 stdout（同样落盘）\r\n\r\n**读数据建议**：先看摘要判断是否足够；需要具体字段时优先用 `jq`或`ConvertFrom-Json` 从保存的 json 文件按需抽取，避免整份 JSON 进入上下文。\r\n## Usage Examples\r\n\r\n**1. Today's top selling products in the US (daily)**\r\nQuery the US market for a specific day to see which products lead in sales.\r\n```\r\nregion: \"US\", dateInfo: {\"type\": \"day\", \"value\": \"2026-04-15\"}\r\n```\r\n\r\n**2. Weekly top sellers in the UK**\r\nCheck the UK market for weekly best-performing products.\r\n```\r\nregion: \"GB\", dateInfo: {\"type\": \"week\", \"value\": \"2026-15\"}\r\n```\r\n\r\n**3. Monthly GMV leaders in Southeast Asia**\r\nScout the Indonesian market for monthly top sellers sorted by GMV.\r\n```\r\nregion: \"ID\", dateInfo: {\"type\": \"month\", \"value\": \"2026-03\"}, orderby: {\"field\": \"gmv\", \"order\": \"desc\"}\r\n```\r\n\r\n**4. Category-specific ranking**\r\nFind top selling products in a specific category.\r\n```\r\nregion: \"US\", dateInfo: {\"type\": \"day\", \"value\": \"2026-04-15\"}, category: \"Beauty\"\r\n```\r\n\r\n## Data Fields (Response)\r\n\r\n| Field | API Name | Description |\r\n|-------|----------|-------------|\r\n| Product Title | title | Name of the product |\r\n| Product ID | productId | Unique product identifier |\r\n| Region | region | Market region code |\r\n| Price | price | Product price |\r\n| Min Price | minPrice | Lowest price |\r\n| Max Price | maxPrice | Highest price |\r\n| Currency | currency | Currency code |\r\n| Total Sales | totalSaleCnt | Total units sold |\r\n| 1-Day Sales | totalSale1dCnt | Units sold in the last 1 day (when dateType=day) |\r\n| 7-Day Sales | totalSale7dCnt | Units sold in the last 7 days (when dateType=week) |\r\n| 30-Day Sales | totalSale30dCnt | Units sold in the last 30 days (when dateType=month) |\r\n| Total GMV | totalSaleGmvAmt | Total gross merchandise value |\r\n| 1-Day GMV | totalSaleGmv1dAmt | GMV in the last 1 day (when dateType=day) |\r\n| 7-Day GMV | totalSaleGmv7dAmt | GMV in the last 7 days (when dateType=week) |\r\n| 30-Day GMV | totalSaleGmv30dAmt | GMV in the last 30 days (when dateType=month) |\r\n| Growth Rate | growthRate | Sales growth rate (percentage) |\r\n| Shop Name | shopName | Name of the seller's shop |\r\n| Shop Total Units Sold | shopTotalUnitsSold | Total units sold by the shop |\r\n| Shop Seller ID | shopSellerId | Unique shop seller identifier |\r\n| Category Name | categoryName | Product category |\r\n| Commission Rate | productCommissionRate | Commission rate in basis points (1000 = 10%) |\r\n| Image URL | imageUrl | Product image URL |\r\n| Delisted Status | offShelvesText | Delisted indicator (\"是\" = delisted, \"否\" = active) |\r\n\r\n## Display Rules\r\n\r\n1. **Present data only**: Show query results in clear tables without subjective business advice\r\n2. **Growth rate**: Growth rate is in percentage -- show with % sign\r\n3. **Commission rate**: Commission rate is in basis points (1000 = 10%) -- convert to percentage for display\r\n4. **Currency awareness**: Always display currency alongside prices since different markets use different currencies\r\n5. **dateInfo format**: Validate and remind users of the correct format for the selected time granularity\r\n6. **Delisted status**: `offShelvesText` value \"是\" means delisted, \"否\" means active -- clarify this for users\r\n\r\n## Important Limitations\r\n\r\n- **dateInfo is mandatory**: Both `type` and `value` must be provided with specific format requirements\r\n- **No keyword search**: This tool does NOT support keyword search (use linkfox-fastmoss-product-search for that)\r\n- **Max 10 items per page**: The `pageSize` parameter cannot exceed 10\r\n- **Data delay**: Data has T+1 statistical delay\r\n\r\n## User Expression & Scenario Quick Reference\r\n\r\n**Applicable** -- TikTok top selling product rankings and trend analysis:\r\n\r\n| User Says | Scenario |\r\n|-----------|----------|\r\n| \"What are the top selling products on TikTok\" | Top selling ranking lookup |\r\n| \"TikTok bestsellers this week\", \"hot products on TikTok Shop\" | Weekly/daily ranking query |\r\n| \"TikTok GMV ranking\", \"highest revenue products on TikTok\" | GMV-based ranking |\r\n| \"TikTok category hot sellers\", \"top selling beauty products on TikTok\" | Category-specific ranking |\r\n| \"TikTok weekly product report\", \"monthly top sellers\" | Time-dimension analysis |\r\n| \"FastMoss top selling\", \"FastMoss ranking data\" | Direct data source reference |\r\n| \"Which products are growing fastest on TikTok\" | Growth rate sorted ranking |\r\n\r\n**Not applicable** -- Needs beyond TikTok top selling rankings:\r\n\r\n- Amazon product research or ABA keyword data\r\n- TikTok advertising / ad campaign management\r\n- TikTok content creation or video editing\r\n- Product reviews or listing copywriting\r\n- TikTok product keyword search (use linkfox-fastmoss-product-search instead)\r\n- Profit margin calculations or pricing strategy\r\n\r\n**Boundary judgment**: When users say \"product research\" or \"what's selling well\", if the context clearly involves TikTok Shop or TikTok e-commerce rankings, this skill applies. If they are asking about Amazon, Shopify, or other platforms, it does not apply. If they want to search products by keyword rather than browse rankings, use linkfox-fastmoss-product-search instead.\r\n\r\n\r\n**Feedback:**\r\n\r\nAuto-detect and report feedback via the Feedback API when any of the following apply:\r\n1. The functionality or purpose described in this skill does not match actual behavior\r\n2. The skill's results do not match the user's intent\r\n3. The user expresses dissatisfaction or praise about this skill\r\n4. Anything you believe could be improved\r\n\r\nCall the feedback API as specified in `references/api.md`. Do not interrupt the user's flow.\r\n\r\n\r\n---\r\n*For more high-quality, professional cross-border e-commerce skills, visit [LinkFox Skills](https://skill.linkfox.com/).*\n\nFile v1.0.3:_meta.json\n\n{\n  \"ownerId\": \"kn7dmc1t4j28hem1twwyav85p182pb1j\",\n  \"slug\": \"linkfox-fastmoss-product-rank-top-selling\",\n  \"version\": \"1.0.3\",\n  \"publishedAt\": 1783336757866\n}\n\nFile v1.0.3:references/api.md\n\n# FastMoss-TikTok热销榜单 API 参考\r\n\r\n## 调用规范\r\n\r\n- **请求地址**：`${LINKFOX_TOOL_GATEWAY}/fastmoss/productRankTopSelling`\r\n- **请求方式**：POST，Content-Type: application/json\r\n- **认证方式**：Header `Authorization: <api_key>`，api_key 从环境变量 `LINKFOX_AGENT_API_KEY` 或 `LINKFOXAGENT_API_KEY` 读取\r\n\r\n## 请求参数\r\n\r\nPOST Body（JSON）：\r\n\r\n| 参数 | 类型 | 必填 | 说明 |\r\n|------|------|------|------|\r\n| region | string | 是 | 市场区域代码。可选值：US（美国）、GB（英国）、MX（墨西哥）、ES（西班牙）、ID（印度尼西亚）、VN（越南）、MY（马来西亚）、TH（泰国）、PH（菲律宾） |\r\n| dateInfo | object | 是 | 日期规格对象，包含 `type` 和 `value` 两个字段 |\r\n| dateInfo.type | string | 是 | 时间粒度：`day`（日）、`week`（周）、`month`（月） |\r\n| dateInfo.value | string | 是 | 日期值：day 格式 `YYYY-MM-DD`，week 格式 `YYYY-周数`（如 `2025-18`），month 格式 `YYYY-MM` |\r\n| category | string | 否 | 商品类目名称（英文），会匹配到 TikTok 类目 ID。非英文输入需先翻译为英文 |\r\n| orderby | object | 否 | 排序规则对象，包含 `field` 和 `order` 两个字段 |\r\n| orderby.field | string | 否 | 排序字段：`units_sold`（销量）、`gmv`（销售额）、`total_units_sold`（总销量）、`total_gmv`（总销售额）、`growth_rate`（增长率） |\r\n| orderby.order | string | 否 | 排序方向：`desc`（降序）、`asc`（升序），默认 `desc` |\r\n| page | integer | 否 | 页码，默认 `1` |\r\n| pageSize | integer | 否 | 每页条数，最大 `10`，默认 `10` |\r\n\r\n## 响应结构\r\n\r\n| 字段 | 类型 | 说明 |\r\n|------|------|------|\r\n| total | integer | 记录数 |\r\n| products | array | 热销商品列表（见下方商品对象） |\r\n| columns | array | 渲染的列 |\r\n| type | string | 渲染的样式 |\r\n| costToken | integer | 消耗 token |\r\n\r\n### 商品对象\r\n\r\n| 字段 | 类型 | 说明 |\r\n|------|------|------|\r\n| title | string | 商品名称 |\r\n| productId | string | 商品 ID |\r\n| region | string | 区域代码 |\r\n| price | number | 商品价格 |\r\n| minPrice | number | 最低价格 |\r\n| maxPrice | number | 最高价格 |\r\n| currency | string | 货币 |\r\n| totalSaleCnt | integer | 总销量 |\r\n| totalSale1dCnt | integer | 近1天销量（dateType=day 时返回） |\r\n| totalSale7dCnt | integer | 近7天销量（dateType=week 时返回） |\r\n| totalSale30dCnt | integer | 近30天销量（dateType=month 时返回） |\r\n| totalSaleGmvAmt | number | 总销售额 |\r\n| totalSaleGmv1dAmt | number | 近1天销售额（dateType=day 时返回） |\r\n| totalSaleGmv7dAmt | number | 近7天销售额（dateType=week 时返回） |\r\n| totalSaleGmv30dAmt | number | 近30天销售额（dateType=month 时返回） |\r\n| growthRate | number | 增长率（百分比） |\r\n| shopName | string | 店铺名称 |\r\n| shopTotalUnitsSold | integer | 店铺总销量 |\r\n| shopSellerId | string | 店铺卖家 ID |\r\n| categoryName | string | 商品类目 |\r\n| productCommissionRate | number | 商品佣金比例（基点，1000=10%） |\r\n| imageUrl | string | 商品图片 URL |\r\n| offShelvesText | string | 是否下架（\"是\"=已下架，\"否\"=在售） |\r\n\r\n## 错误码\r\n\r\n正常情况下，接口的 HTTP 状态码均为 200，业务的成功与否通过响应体中的 errorCode 字段区分（errorCode = 200 表示成功，其他值表示业务错误）。当遇到未授权等情况时，HTTP 状态码为 401，且对应的 errorCode 也是 401。\r\n\r\n| errcode | 含义 | 处理建议 |\r\n|---------|------|----------|\r\n| 200 | 成功 | 正常解析业务字段 |\r\n| 401 | 认证失败 | 检查请求头 `Authorization` 是否正确携带 API Key；API Key 申请方式请参考上述[调用规范](#调用规范)下的认证方式。|\r\n| 其他非200值 | 业务异常 | 参考 `errmsg` 字段获取具体错误原因 |\r\n\r\n错误响应示例：\r\n\r\n```json\r\n{\r\n    \"errcode\": 401,\r\n    \"errmsg\": \"authorized error\"\r\n}\r\n```\r\n\r\n## curl 示例\r\n\r\n```bash\r\ncurl -X POST https://tool-gateway.linkfox.com/fastmoss/productRankTopSelling \\\r\n  -H \"Authorization: $LINKFOXAGENT_API_KEY\" \\\r\n  -H \"Content-Type: application/json\" \\\r\n  -d '{\"region\": \"US\", \"dateInfo\": {\"type\": \"day\", \"value\": \"2026-04-15\"}, \"page\": 1, \"pageSize\": 10}'\r\n```\r\n\r\n---\r\n\r\n## Feedback API\r\n\r\n> This endpoint is **separate** from the tool API above. Do not mix the two base URLs.\r\n\r\n- **POST** `https://skill-api.linkfox.com/api/v1/public/feedback`\r\n- **Content-Type:** `application/json`\r\n\r\n```json\r\n{\r\n  \"skillName\": \"linkfox-fastmoss-top-selling\",\r\n  \"sentiment\": \"POSITIVE\",\r\n  \"category\": \"OTHER\",\r\n  \"content\": \"Results were accurate, user was satisfied.\"\r\n}\r\n```\r\n\r\n**Field rules:**\r\n- `skillName`: Use this skill's `name` from the YAML frontmatter\r\n- `sentiment`: Choose ONE — `POSITIVE` (praise), `NEUTRAL` (suggestion without emotion), `NEGATIVE` (complaint or error)\r\n- `category`: Choose ONE — `BUG` (malfunction or wrong data), `COMPLAINT` (user dissatisfaction), `SUGGESTION` (improvement idea), `OTHER`\r\n- `content`: Include what the user said or intended, what actually happened, and why it is a problem or praise\n\nFile v1.0.3:skill-card.md\n\n## Description: <br>\nQueries FastMoss data for TikTok Shop top-selling product rankings by market, category, and daily, weekly, or monthly time window. <br>\n\nThis skill is ready for commercial/non-commercial use. <br>\n\n## Publisher: <br>\n[linkfox-ai](https://clawhub.ai/user/linkfox-ai) <br>\n\n### License/Terms of Use: <br>\nMIT-0 <br>\n\n\n## Use Case: <br>\nExternal e-commerce sellers, operators, and analysts use this skill to retrieve TikTok Shop product ranking data from FastMoss for product scouting, trend monitoring, and competitive analysis. <br>\n\n### Deployment Geography for Use: <br>\nGlobal; data queries are limited to the supported TikTok Shop market codes US, GB, MX, ES, ID, VN, MY, TH, and PH. <br>\n\n## Known Risks and Mitigations: <br>\nRisk: The skill makes external FastMoss/TikTok product-ranking requests through a configurable gateway and requires API credentials. <br>\nMitigation: Install only when the user controls the API credentials and verify that LINKFOX_TOOL_GATEWAY points to a trusted HTTPS service. <br>\nRisk: Full query results are written to local JSON files and may include detailed product-ranking data. <br>\nMitigation: Avoid use in shared workspaces unless saved results are acceptable, and delete generated response files when no longer needed. <br>\nRisk: The authoritative security evidence marks the release verdict as suspicious and says review is needed before installation. <br>\nMitigation: Review the skill, its gateway configuration, and generated local files before deployment. <br>\n\n\n## Reference(s): <br>\n- [ClawHub skill page](https://clawhub.ai/linkfox-ai/skills/linkfox-fastmoss-product-rank-top-selling) <br>\n- [FastMoss-TikTok热销榜单 API reference](references/api.md) <br>\n- [LinkFox Skills](https://skill.linkfox.com/) <br>\n\n\n## Skill Output: <br>\n**Output Type(s):** [text, markdown, shell commands, JSON files, guidance] <br>\n**Output Format:** [Markdown guidance with shell commands and saved JSON response files] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [Requires LinkFox API credentials and a trusted gateway; large API responses are saved locally and summarized in stdout.] <br>\n\n## Skill Version(s): <br>\n1.0.3 (source: server release evidence) <br>\n\n## Ethical Considerations: <br>\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment. <br>\n\nArchive v1.0.2: 4 files, 12724 bytes\n\nFiles: references/api.md (5236b), scripts/fastmoss_product_rank_top_selling.py (13235b), SKILL.md (9942b), _meta.json (160b)\n\nFile v1.0.2:SKILL.md\n\n---\r\nname: linkfox-fastmoss-product-rank-top-selling\r\ndescription: 通过FastMoss数据查询TikTok全球电商市场的热销商品排行榜，支持按日/周/月维度和类目维度分析。当用户提到TikTok热销榜、TikTok爆品排行、TikTok销量排行、TikTok GMV排名、TikTok类目热销、TikTok选品周报、TikTok top-selling rankings, TikTok bestseller charts, TikTok GMV ranking, TikTok category hot sellers, TikTok weekly product report, FastMoss时触发此技能。即使用户未明确提及\"FastMoss\"，只要其需求涉及查看TikTok平台的热销排行榜或按时间维度的销售排名，也应触发此技能。\r\n---\r\n\r\n# FastMoss - TikTok Top Selling Rankings\r\n\r\nThis skill guides you on how to query and analyze the TikTok top selling product rankings via the FastMoss data source, helping cross-border e-commerce sellers identify hot-selling products across TikTok's global markets by day, week, or month.\r\n\r\n## Core Concepts\r\n\r\nThe TikTok Top Selling Ranking tracks the best-performing products on TikTok Shop across 9 global markets. It reveals which products are leading in sales volume, GMV, and growth rate over configurable time windows (daily, weekly, monthly). This is an essential tool for product scouting, trend analysis, and competitive intelligence in TikTok e-commerce.\r\n\r\n**Data scope**: The ranking covers 9 TikTok Shop markets and supports three time granularities — day, week, and month — via the `dateInfo` parameter. Each product entry includes sales volume, GMV, growth rate, commission rate, shop information, category, and more.\r\n\r\n**dateInfo format is important**:\r\n- type: `\"day\"` -> value: `\"2025-02-01\"` (YYYY-MM-DD)\r\n- type: `\"week\"` -> value: `\"2025-18\"` (year-weekNumber)\r\n- type: `\"month\"` -> value: `\"2025-02\"` (year-month)\r\n\r\n**Pagination**: Results are paginated. Use `page` (page number, starting from 1) and `pageSize` (items per page, max 10, default 10) to navigate through the result set. \r\n\r\n## Parameter Guide\r\n\r\n| Parameter | Type | Required | Description |\r\n|-----------|------|----------|-------------|\r\n| region | string | Yes | Market region code (US, GB, MX, ES, ID, VN, MY, TH, PH) |\r\n| dateInfo | object | Yes | Date specification with `type` (day/week/month) and `value` (see format above) |\r\n| category | string | No | Category name in English, matched to TikTok category ID. Non-English input should be translated first |\r\n| orderby | object | No | Sorting: `field` (units_sold/gmv/total_units_sold/total_gmv/growth_rate) + `order` (desc/asc). Default: desc |\r\n| page | integer | No | Page number, default 1 |\r\n| pageSize | integer | No | Items per page, max 10, default 10 |\r\n\r\n## Supported Markets\r\n\r\n| Code | Market |\r\n|------|--------|\r\n| US | United States |\r\n| GB | United Kingdom |\r\n| MX | Mexico |\r\n| ES | Spain |\r\n| ID | Indonesia |\r\n| VN | Vietnam |\r\n| MY | Malaysia |\r\n| TH | Thailand |\r\n| PH | Philippines |\r\n\r\nDefault market is **US**. Use US when the user does not specify a market.\r\n\r\n## 调用方式\r\n\r\n- **API 端点**：`POST /fastmoss/productRankTopSelling`（完整参数/响应/错误码见 `references/api.md`）\r\n- **Python 脚本**：`python scripts/fastmoss_product_rank_top_selling.py '<JSON 参数>' [--inline]`\r\n- **成本约束**：本工具会消耗积分；同一会话同一参数组合默认只调用一次，脚本带 24h 本地缓存。失败/空结果不得自动换关键词、翻页或改邮编连续试探；需要继续检索时先向用户说明会产生额外消耗。\r\n\r\n**输出策略（脚本默认行为）**：\r\n- **始终**将完整响应写入 `<cwd>/linkfox/<YYYY-MM-DD>/<session>/data/linkfox-fastmoss-product-rank-top-selling-<timestamp>.json`（`<cwd>` 为脚本执行时的工作目录，在 Claude Code 里即当前项目目录；`<session>` 取自环境变量 `SESSION_ID`，按用户任务自动聚合；**禁止写入 /tmp**，当前目录不可写则报错）\r\n- 响应体 ≤ 8 KB：落盘后把完整 JSON 打印到 stdout\r\n- 响应体 > 8 KB：落盘后 stdout 只输出摘要（顶层字段、常见计数如 `total`/`costToken`、最大列表字段的长度 + 前 3 条样本）\r\n- 加 `--inline` 强制全量打印到 stdout（同样落盘）\r\n\r\n**读数据建议**：先看摘要判断是否足够；需要具体字段时优先用 `jq`或`ConvertFrom-Json` 从保存的 json 文件按需抽取，避免整份 JSON 进入上下文。\r\n## Usage Examples\r\n\r\n**1. Today's top selling products in the US (daily)**\r\nQuery the US market for a specific day to see which products lead in sales.\r\n```\r\nregion: \"US\", dateInfo: {\"type\": \"day\", \"value\": \"2026-04-15\"}\r\n```\r\n\r\n**2. Weekly top sellers in the UK**\r\nCheck the UK market for weekly best-performing products.\r\n```\r\nregion: \"GB\", dateInfo: {\"type\": \"week\", \"value\": \"2026-15\"}\r\n```\r\n\r\n**3. Monthly GMV leaders in Southeast Asia**\r\nScout the Indonesian market for monthly top sellers sorted by GMV.\r\n```\r\nregion: \"ID\", dateInfo: {\"type\": \"month\", \"value\": \"2026-03\"}, orderby: {\"field\": \"gmv\", \"order\": \"desc\"}\r\n```\r\n\r\n**4. Category-specific ranking**\r\nFind top selling products in a specific category.\r\n```\r\nregion: \"US\", dateInfo: {\"type\": \"day\", \"value\": \"2026-04-15\"}, category: \"Beauty\"\r\n```\r\n\r\n## Data Fields (Response)\r\n\r\n| Field | API Name | Description |\r\n|-------|----------|-------------|\r\n| Product Title | title | Name of the product |\r\n| Product ID | productId | Unique product identifier |\r\n| Region | region | Market region code |\r\n| Price | price | Product price |\r\n| Min Price | minPrice | Lowest price |\r\n| Max Price | maxPrice | Highest price |\r\n| Currency | currency | Currency code |\r\n| Total Sales | totalSaleCnt | Total units sold |\r\n| 1-Day Sales | totalSale1dCnt | Units sold in the last 1 day (when dateType=day) |\r\n| 7-Day Sales | totalSale7dCnt | Units sold in the last 7 days (when dateType=week) |\r\n| 30-Day Sales | totalSale30dCnt | Units sold in the last 30 days (when dateType=month) |\r\n| Total GMV | totalSaleGmvAmt | Total gross merchandise value |\r\n| 1-Day GMV | totalSaleGmv1dAmt | GMV in the last 1 day (when dateType=day) |\r\n| 7-Day GMV | totalSaleGmv7dAmt | GMV in the last 7 days (when dateType=week) |\r\n| 30-Day GMV | totalSaleGmv30dAmt | GMV in the last 30 days (when dateType=month) |\r\n| Growth Rate | growthRate | Sales growth rate (percentage) |\r\n| Shop Name | shopName | Name of the seller's shop |\r\n| Shop Total Units Sold | shopTotalUnitsSold | Total units sold by the shop |\r\n| Shop Seller ID | shopSellerId | Unique shop seller identifier |\r\n| Category Name | categoryName | Product category |\r\n| Commission Rate | productCommissionRate | Commission rate in basis points (1000 = 10%) |\r\n| Image URL | imageUrl | Product image URL |\r\n| Delisted Status | offShelvesText | Delisted indicator (\"是\" = delisted, \"否\" = active) |\r\n\r\n## Display Rules\r\n\r\n1. **Present data only**: Show query results in clear tables without subjective business advice\r\n2. **Growth rate**: Growth rate is in percentage -- show with % sign\r\n3. **Commission rate**: Commission rate is in basis points (1000 = 10%) -- convert to percentage for display\r\n4. **Currency awareness**: Always display currency alongside prices since different markets use different currencies\r\n5. **dateInfo format**: Validate and remind users of the correct format for the selected time granularity\r\n6. **Delisted status**: `offShelvesText` value \"是\" means delisted, \"否\" means active -- clarify this for users\r\n\r\n## Important Limitations\r\n\r\n- **dateInfo is mandatory**: Both `type` and `value` must be provided with specific format requirements\r\n- **No keyword search**: This tool does NOT support keyword search (use linkfox-fastmoss-product-search for that)\r\n- **Max 10 items per page**: The `pageSize` parameter cannot exceed 10\r\n- **Data delay**: Data has T+1 statistical delay\r\n\r\n## User Expression & Scenario Quick Reference\r\n\r\n**Applicable** -- TikTok top selling product rankings and trend analysis:\r\n\r\n| User Says | Scenario |\r\n|-----------|----------|\r\n| \"What are the top selling products on TikTok\" | Top selling ranking lookup |\r\n| \"TikTok bestsellers this week\", \"hot products on TikTok Shop\" | Weekly/daily ranking query |\r\n| \"TikTok GMV ranking\", \"highest revenue products on TikTok\" | GMV-based ranking |\r\n| \"TikTok category hot sellers\", \"top selling beauty products on TikTok\" | Category-specific ranking |\r\n| \"TikTok weekly product report\", \"monthly top sellers\" | Time-dimension analysis |\r\n| \"FastMoss top selling\", \"FastMoss ranking data\" | Direct data source reference |\r\n| \"Which products are growing fastest on TikTok\" | Growth rate sorted ranking |\r\n\r\n**Not applicable** -- Needs beyond TikTok top selling rankings:\r\n\r\n- Amazon product research or ABA keyword data\r\n- TikTok advertising / ad campaign management\r\n- TikTok content creation or video editing\r\n- Product reviews or listing copywriting\r\n- TikTok product keyword search (use linkfox-fastmoss-product-search instead)\r\n- Profit margin calculations or pricing strategy\r\n\r\n**Boundary judgment**: When users say \"product research\" or \"what's selling well\", if the context clearly involves TikTok Shop or TikTok e-commerce rankings, this skill applies. If they are asking about Amazon, Shopify, or other platforms, it does not apply. If they want to search products by keyword rather than browse rankings, use linkfox-fastmoss-product-search instead.\r\n\r\n\r\n**Feedback:**\r\n\r\nAuto-detect and report feedback via the Feedback API when any of the following apply:\r\n1. The functionality or purpose described in this skill does not match actual behavior\r\n2. The skill's results do not match the user's intent\r\n3. The user expresses dissatisfaction or praise about this skill\r\n4. Anything you believe could be improved\r\n\r\nCall the feedback API as specified in `references/api.md`. Do not interrupt the user's flow.\r\n\r\n\r\n---\r\n*For more high-quality, professional cross-border e-commerce skills, visit [LinkFox Skills](https://skill.linkfox.com/).*\n\nFile v1.0.2:_meta.json\n\n{\n  \"ownerId\": \"kn7dmc1t4j28hem1twwyav85p182pb1j\",\n  \"slug\": \"linkfox-fastmoss-product-rank-top-selling\",\n  \"version\": \"1.0.2\",\n  \"publishedAt\": 1783066686968\n}\n\nFile v1.0.2:references/api.md\n\n# FastMoss-TikTok热销榜单 API 参考\r\n\r\n## 调用规范\r\n\r\n- **请求地址**：`${LINKFOX_TOOL_GATEWAY}/fastmoss/productRankTopSelling`\r\n- **请求方式**：POST，Content-Type: application/json\r\n- **认证方式**：Header `Authorization: <api_key>`，api_key 从环境变量 `LINKFOX_AGENT_API_KEY` 或 `LINKFOXAGENT_API_KEY` 读取\r\n\r\n## 请求参数\r\n\r\nPOST Body（JSON）：\r\n\r\n| 参数 | 类型 | 必填 | 说明 |\r\n|------|------|------|------|\r\n| region | string | 是 | 市场区域代码。可选值：US（美国）、GB（英国）、MX（墨西哥）、ES（西班牙）、ID（印度尼西亚）、VN（越南）、MY（马来西亚）、TH（泰国）、PH（菲律宾） |\r\n| dateInfo | object | 是 | 日期规格对象，包含 `type` 和 `value` 两个字段 |\r\n| dateInfo.type | string | 是 | 时间粒度：`day`（日）、`week`（周）、`month`（月） |\r\n| dateInfo.value | string | 是 | 日期值：day 格式 `YYYY-MM-DD`，week 格式 `YYYY-周数`（如 `2025-18`），month 格式 `YYYY-MM` |\r\n| category | string | 否 | 商品类目名称（英文），会匹配到 TikTok 类目 ID。非英文输入需先翻译为英文 |\r\n| orderby | object | 否 | 排序规则对象，包含 `field` 和 `order` 两个字段 |\r\n| orderby.field | string | 否 | 排序字段：`units_sold`（销量）、`gmv`（销售额）、`total_units_sold`（总销量）、`total_gmv`（总销售额）、`growth_rate`（增长率） |\r\n| orderby.order | string | 否 | 排序方向：`desc`（降序）、`asc`（升序），默认 `desc` |\r\n| page | integer | 否 | 页码，默认 `1` |\r\n| pageSize | integer | 否 | 每页条数，最大 `10`，默认 `10` |\r\n\r\n## 响应结构\r\n\r\n| 字段 | 类型 | 说明 |\r\n|------|------|------|\r\n| total | integer | 记录数 |\r\n| products | array | 热销商品列表（见下方商品对象） |\r\n| columns | array | 渲染的列 |\r\n| type | string | 渲染的样式 |\r\n| costToken | integer | 消耗 token |\r\n\r\n### 商品对象\r\n\r\n| 字段 | 类型 | 说明 |\r\n|------|------|------|\r\n| title | string | 商品名称 |\r\n| productId | string | 商品 ID |\r\n| region | string | 区域代码 |\r\n| price | number | 商品价格 |\r\n| minPrice | number | 最低价格 |\r\n| maxPrice | number | 最高价格 |\r\n| currency | string | 货币 |\r\n| totalSaleCnt | integer | 总销量 |\r\n| totalSale1dCnt | integer | 近1天销量（dateType=day 时返回） |\r\n| totalSale7dCnt | integer | 近7天销量（dateType=week 时返回） |\r\n| totalSale30dCnt | integer | 近30天销量（dateType=month 时返回） |\r\n| totalSaleGmvAmt | number | 总销售额 |\r\n| totalSaleGmv1dAmt | number | 近1天销售额（dateType=day 时返回） |\r\n| totalSaleGmv7dAmt | number | 近7天销售额（dateType=week 时返回） |\r\n| totalSaleGmv30dAmt | number | 近30天销售额（dateType=month 时返回） |\r\n| growthRate | number | 增长率（百分比） |\r\n| shopName | string | 店铺名称 |\r\n| shopTotalUnitsSold | integer | 店铺总销量 |\r\n| shopSellerId | string | 店铺卖家 ID |\r\n| categoryName | string | 商品类目 |\r\n| productCommissionRate | number | 商品佣金比例（基点，1000=10%） |\r\n| imageUrl | string | 商品图片 URL |\r\n| offShelvesText | string | 是否下架（\"是\"=已下架，\"否\"=在售） |\r\n\r\n## 错误码\r\n\r\n正常情况下，接口的 HTTP 状态码均为 200，业务的成功与否通过响应体中的 errorCode 字段区分（errorCode = 200 表示成功，其他值表示业务错误）。当遇到未授权等情况时，HTTP 状态码为 401，且对应的 errorCode 也是 401。\r\n\r\n| errcode | 含义 | 处理建议 |\r\n|---------|------|----------|\r\n| 200 | 成功 | 正常解析业务字段 |\r\n| 401 | 认证失败 | 检查请求头 `Authorization` 是否正确携带 API Key；API Key 申请方式请参考上述[调用规范](#调用规范)下的认证方式。|\r\n| 其他非200值 | 业务异常 | 参考 `errmsg` 字段获取具体错误原因 |\r\n\r\n错误响应示例：\r\n\r\n```json\r\n{\r\n    \"errcode\": 401,\r\n    \"errmsg\": \"authorized error\"\r\n}\r\n```\r\n\r\n## curl 示例\r\n\r\n```bash\r\ncurl -X POST https://tool-gateway.linkfox.com/fastmoss/productRankTopSelling \\\r\n  -H \"Authorization: $LINKFOXAGENT_API_KEY\" \\\r\n  -H \"Content-Type: application/json\" \\\r\n  -d '{\"region\": \"US\", \"dateInfo\": {\"type\": \"day\", \"value\": \"2026-04-15\"}, \"page\": 1, \"pageSize\": 10}'\r\n```\r\n\r\n---\r\n\r\n## Feedback API\r\n\r\n> This endpoint is **separate** from the tool API above. Do not mix the two base URLs.\r\n\r\n- **POST** `https://skill-api.linkfox.com/api/v1/public/feedback`\r\n- **Content-Type:** `application/json`\r\n\r\n```json\r\n{\r\n  \"skillName\": \"linkfox-fastmoss-top-selling\",\r\n  \"sentiment\": \"POSITIVE\",\r\n  \"category\": \"OTHER\",\r\n  \"content\": \"Results were accurate, user was satisfied.\"\r\n}\r\n```\r\n\r\n**Field rules:**\r\n- `skillName`: Use this skill's `name` from the YAML frontmatter\r\n- `sentiment`: Choose ONE — `POSITIVE` (praise), `NEUTRAL` (suggestion without emotion), `NEGATIVE` (complaint or error)\r\n- `category`: Choose ONE — `BUG` (malfunction or wrong data), `COMPLAINT` (user dissatisfaction), `SUGGESTION` (improvement idea), `OTHER`\r\n- `content`: Include what the user said or intended, what actually happened, and why it is a problem or praise\n\nArchive v1.0.1: 4 files, 12706 bytes\n\nFiles: references/api.md (5237b), scripts/fastmoss_product_rank_top_selling.py (13237b), SKILL.md (9942b), _meta.json (160b)\n\nFile v1.0.1:SKILL.md\n\n---\r\nname: linkfox-fastmoss-product-rank-top-selling\r\ndescription: 通过FastMoss数据查询TikTok全球电商市场的热销商品排行榜，支持按日/周/月维度和类目维度分析。当用户提到TikTok热销榜、TikTok爆品排行、TikTok销量排行、TikTok GMV排名、TikTok类目热销、TikTok选品周报、TikTok top-selling rankings, TikTok bestseller charts, TikTok GMV ranking, TikTok category hot sellers, TikTok weekly product report, FastMoss时触发此技能。即使用户未明确提及\"FastMoss\"，只要其需求涉及查看TikTok平台的热销排行榜或按时间维度的销售排名，也应触发此技能。\r\n---\r\n\r\n# FastMoss - TikTok Top Selling Rankings\r\n\r\nThis skill guides you on how to query and analyze the TikTok top selling product rankings via the FastMoss data source, helping cross-border e-commerce sellers identify hot-selling products across TikTok's global markets by day, week, or month.\r\n\r\n## Core Concepts\r\n\r\nThe TikTok Top Selling Ranking tracks the best-performing products on TikTok Shop across 9 global markets. It reveals which products are leading in sales volume, GMV, and growth rate over configurable time windows (daily, weekly, monthly). This is an essential tool for product scouting, trend analysis, and competitive intelligence in TikTok e-commerce.\r\n\r\n**Data scope**: The ranking covers 9 TikTok Shop markets and supports three time granularities — day, week, and month — via the `dateInfo` parameter. Each product entry includes sales volume, GMV, growth rate, commission rate, shop information, category, and more.\r\n\r\n**dateInfo format is important**:\r\n- type: `\"day\"` -> value: `\"2025-02-01\"` (YYYY-MM-DD)\r\n- type: `\"week\"` -> value: `\"2025-18\"` (year-weekNumber)\r\n- type: `\"month\"` -> value: `\"2025-02\"` (year-month)\r\n\r\n**Pagination**: Results are paginated. Use `page` (page number, starting from 1) and `pageSize` (items per page, max 10, default 10) to navigate through the result set. \r\n\r\n## Parameter Guide\r\n\r\n| Parameter | Type | Required | Description |\r\n|-----------|------|----------|-------------|\r\n| region | string | Yes | Market region code (US, GB, MX, ES, ID, VN, MY, TH, PH) |\r\n| dateInfo | object | Yes | Date specification with `type` (day/week/month) and `value` (see format above) |\r\n| category | string | No | Category name in English, matched to TikTok category ID. Non-English input should be translated first |\r\n| orderby | object | No | Sorting: `field` (units_sold/gmv/total_units_sold/total_gmv/growth_rate) + `order` (desc/asc). Default: desc |\r\n| page | integer | No | Page number, default 1 |\r\n| pageSize | integer | No | Items per page, max 10, default 10 |\r\n\r\n## Supported Markets\r\n\r\n| Code | Market |\r\n|------|--------|\r\n| US | United States |\r\n| GB | United Kingdom |\r\n| MX | Mexico |\r\n| ES | Spain |\r\n| ID | Indonesia |\r\n| VN | Vietnam |\r\n| MY | Malaysia |\r\n| TH | Thailand |\r\n| PH | Philippines |\r\n\r\nDefault market is **US**. Use US when the user does not specify a market.\r\n\r\n## 调用方式\r\n\r\n- **API 端点**：`POST /fastmoss/productRankTopSelling`（完整参数/响应/错误码见 `references/api.md`）\r\n- **Python 脚本**：`python scripts/fastmoss_product_rank_top_selling.py '<JSON 参数>' [--inline]`\r\n- **成本约束**：本工具会消耗积分；同一会话同一参数组合默认只调用一次，脚本带 24h 本地缓存。失败/空结果不得自动换关键词、翻页或改邮编连续试探；需要继续检索时先向用户说明会产生额外消耗。\r\n\r\n**输出策略（脚本默认行为）**：\r\n- **始终**将完整响应写入 `<cwd>/linkfox/<YYYY-MM-DD>/<session>/data/linkfox-fastmoss-product-rank-top-selling-<timestamp>.json`（`<cwd>` 为脚本执行时的工作目录，在 Claude Code 里即当前项目目录；`<session>` 取自环境变量 `SESSION_ID`，按用户任务自动聚合；**禁止写入 /tmp**，当前目录不可写则报错）\r\n- 响应体 ≤ 8 KB：落盘后把完整 JSON 打印到 stdout\r\n- 响应体 > 8 KB：落盘后 stdout 只输出摘要（顶层字段、常见计数如 `total`/`costToken`、最大列表字段的长度 + 前 3 条样本）\r\n- 加 `--inline` 强制全量打印到 stdout（同样落盘）\r\n\r\n**读数据建议**：先看摘要判断是否足够；需要具体字段时优先用 `jq`或`ConvertFrom-Json` 从保存的 json 文件按需抽取，避免整份 JSON 进入上下文。\r\n## Usage Examples\r\n\r\n**1. Today's top selling products in the US (daily)**\r\nQuery the US market for a specific day to see which products lead in sales.\r\n```\r\nregion: \"US\", dateInfo: {\"type\": \"day\", \"value\": \"2026-04-15\"}\r\n```\r\n\r\n**2. Weekly top sellers in the UK**\r\nCheck the UK market for weekly best-performing products.\r\n```\r\nregion: \"GB\", dateInfo: {\"type\": \"week\", \"value\": \"2026-15\"}\r\n```\r\n\r\n**3. Monthly GMV leaders in Southeast Asia**\r\nScout the Indonesian market for monthly top sellers sorted by GMV.\r\n```\r\nregion: \"ID\", dateInfo: {\"type\": \"month\", \"value\": \"2026-03\"}, orderby: {\"field\": \"gmv\", \"order\": \"desc\"}\r\n```\r\n\r\n**4. Category-specific ranking**\r\nFind top selling products in a specific category.\r\n```\r\nregion: \"US\", dateInfo: {\"type\": \"day\", \"value\": \"2026-04-15\"}, category: \"Beauty\"\r\n```\r\n\r\n## Data Fields (Response)\r\n\r\n| Field | API Name | Description |\r\n|-------|----------|-------------|\r\n| Product Title | title | Name of the product |\r\n| Product ID | productId | Unique product identifier |\r\n| Region | region | Market region code |\r\n| Price | price | Product price |\r\n| Min Price | minPrice | Lowest price |\r\n| Max Price | maxPrice | Highest price |\r\n| Currency | currency | Currency code |\r\n| Total Sales | totalSaleCnt | Total units sold |\r\n| 1-Day Sales | totalSale1dCnt | Units sold in the last 1 day (when dateType=day) |\r\n| 7-Day Sales | totalSale7dCnt | Units sold in the last 7 days (when dateType=week) |\r\n| 30-Day Sales | totalSale30dCnt | Units sold in the last 30 days (when dateType=month) |\r\n| Total GMV | totalSaleGmvAmt | Total gross merchandise value |\r\n| 1-Day GMV | totalSaleGmv1dAmt | GMV in the last 1 day (when dateType=day) |\r\n| 7-Day GMV | totalSaleGmv7dAmt | GMV in the last 7 days (when dateType=week) |\r\n| 30-Day GMV | totalSaleGmv30dAmt | GMV in the last 30 days (when dateType=month) |\r\n| Growth Rate | growthRate | Sales growth rate (percentage) |\r\n| Shop Name | shopName | Name of the seller's shop |\r\n| Shop Total Units Sold | shopTotalUnitsSold | Total units sold by the shop |\r\n| Shop Seller ID | shopSellerId | Unique shop seller identifier |\r\n| Category Name | categoryName | Product category |\r\n| Commission Rate | productCommissionRate | Commission rate in basis points (1000 = 10%) |\r\n| Image URL | imageUrl | Product image URL |\r\n| Delisted Status | offShelvesText | Delisted indicator (\"是\" = delisted, \"否\" = active) |\r\n\r\n## Display Rules\r\n\r\n1. **Present data only**: Show query results in clear tables without subjective business advice\r\n2. **Growth rate**: Growth rate is in percentage -- show with % sign\r\n3. **Commission rate**: Commission rate is in basis points (1000 = 10%) -- convert to percentage for display\r\n4. **Currency awareness**: Always display currency alongside prices since different markets use different currencies\r\n5. **dateInfo format**: Validate and remind users of the correct format for the selected time granularity\r\n6. **Delisted status**: `offShelvesText` value \"是\" means delisted, \"否\" means active -- clarify this for users\r\n\r\n## Important Limitations\r\n\r\n- **dateInfo is mandatory**: Both `type` and `value` must be provided with specific format requirements\r\n- **No keyword search**: This tool does NOT support keyword search (use linkfox-fastmoss-product-search for that)\r\n- **Max 10 items per page**: The `pageSize` parameter cannot exceed 10\r\n- **Data delay**: Data has T+1 statistical delay\r\n\r\n## User Expression & Scenario Quick Reference\r\n\r\n**Applicable** -- TikTok top selling product rankings and trend analysis:\r\n\r\n| User Says | Scenario |\r\n|-----------|----------|\r\n| \"What are the top selling products on TikTok\" | Top selling ranking lookup |\r\n| \"TikTok bestsellers this week\", \"hot products on TikTok Shop\" | Weekly/daily ranking query |\r\n| \"TikTok GMV ranking\", \"highest revenue products on TikTok\" | GMV-based ranking |\r\n| \"TikTok category hot sellers\", \"top selling beauty products on TikTok\" | Category-specific ranking |\r\n| \"TikTok weekly product report\", \"monthly top sellers\" | Time-dimension analysis |\r\n| \"FastMoss top selling\", \"FastMoss ranking data\" | Direct data source reference |\r\n| \"Which products are growing fastest on TikTok\" | Growth rate sorted ranking |\r\n\r\n**Not applicable** -- Needs beyond TikTok top selling rankings:\r\n\r\n- Amazon product research or ABA keyword data\r\n- TikTok advertising / ad campaign management\r\n- TikTok content creation or video editing\r\n- Product reviews or listing copywriting\r\n- TikTok product keyword search (use linkfox-fastmoss-product-search instead)\r\n- Profit margin calculations or pricing strategy\r\n\r\n**Boundary judgment**: When users say \"product research\" or \"what's selling well\", if the context clearly involves TikTok Shop or TikTok e-commerce rankings, this skill applies. If they are asking about Amazon, Shopify, or other platforms, it does not apply. If they want to search products by keyword rather than browse rankings, use linkfox-fastmoss-product-search instead.\r\n\r\n\r\n**Feedback:**\r\n\r\nAuto-detect and report feedback via the Feedback API when any of the following apply:\r\n1. The functionality or purpose described in this skill does not match actual behavior\r\n2. The skill's results do not match the user's intent\r\n3. The user expresses dissatisfaction or praise about this skill\r\n4. Anything you believe could be improved\r\n\r\nCall the feedback API as specified in `references/api.md`. Do not interrupt the user's flow.\r\n\r\n\r\n---\r\n*For more high-quality, professional cross-border e-commerce skills, visit [LinkFox Skills](https://skill.linkfox.com/).*\n\nFile v1.0.1:_meta.json\n\n{\n  \"ownerId\": \"kn7dmc1t4j28hem1twwyav85p182pb1j\",\n  \"slug\": \"linkfox-fastmoss-product-rank-top-selling\",\n  \"version\": \"1.0.1\",\n  \"publishedAt\": 1783057625873\n}\n\nFile v1.0.1:references/api.md\n\n# FastMoss-TikTok热销榜单 API 参考\r\n\r\n## 调用规范\r\n\r\n- **请求地址**：`${LINKFOX_AGENT_API_URL}/fastmoss/productRankTopSelling`\r\n- **请求方式**：POST，Content-Type: application/json\r\n- **认证方式**：Header `Authorization: <api_key>`，api_key 从环境变量 `LINKFOX_AGENT_API_KEY` 或 `LINKFOXAGENT_API_KEY` 读取\r\n\r\n## 请求参数\r\n\r\nPOST Body（JSON）：\r\n\r\n| 参数 | 类型 | 必填 | 说明 |\r\n|------|------|------|------|\r\n| region | string | 是 | 市场区域代码。可选值：US（美国）、GB（英国）、MX（墨西哥）、ES（西班牙）、ID（印度尼西亚）、VN（越南）、MY（马来西亚）、TH（泰国）、PH（菲律宾） |\r\n| dateInfo | object | 是 | 日期规格对象，包含 `type` 和 `value` 两个字段 |\r\n| dateInfo.type | string | 是 | 时间粒度：`day`（日）、`week`（周）、`month`（月） |\r\n| dateInfo.value | string | 是 | 日期值：day 格式 `YYYY-MM-DD`，week 格式 `YYYY-周数`（如 `2025-18`），month 格式 `YYYY-MM` |\r\n| category | string | 否 | 商品类目名称（英文），会匹配到 TikTok 类目 ID。非英文输入需先翻译为英文 |\r\n| orderby | object | 否 | 排序规则对象，包含 `field` 和 `order` 两个字段 |\r\n| orderby.field | string | 否 | 排序字段：`units_sold`（销量）、`gmv`（销售额）、`total_units_sold`（总销量）、`total_gmv`（总销售额）、`growth_rate`（增长率） |\r\n| orderby.order | string | 否 | 排序方向：`desc`（降序）、`asc`（升序），默认 `desc` |\r\n| page | integer | 否 | 页码，默认 `1` |\r\n| pageSize | integer | 否 | 每页条数，最大 `10`，默认 `10` |\r\n\r\n## 响应结构\r\n\r\n| 字段 | 类型 | 说明 |\r\n|------|------|------|\r\n| total | integer | 记录数 |\r\n| products | array | 热销商品列表（见下方商品对象） |\r\n| columns | array | 渲染的列 |\r\n| type | string | 渲染的样式 |\r\n| costToken | integer | 消耗 token |\r\n\r\n### 商品对象\r\n\r\n| 字段 | 类型 | 说明 |\r\n|------|------|------|\r\n| title | string | 商品名称 |\r\n| productId | string | 商品 ID |\r\n| region | string | 区域代码 |\r\n| price | number | 商品价格 |\r\n| minPrice | number | 最低价格 |\r\n| maxPrice | number | 最高价格 |\r\n| currency | string | 货币 |\r\n| totalSaleCnt | integer | 总销量 |\r\n| totalSale1dCnt | integer | 近1天销量（dateType=day 时返回） |\r\n| totalSale7dCnt | integer | 近7天销量（dateType=week 时返回） |\r\n| totalSale30dCnt | integer | 近30天销量（dateType=month 时返回） |\r\n| totalSaleGmvAmt | number | 总销售额 |\r\n| totalSaleGmv1dAmt | number | 近1天销售额（dateType=day 时返回） |\r\n| totalSaleGmv7dAmt | number | 近7天销售额（dateType=week 时返回） |\r\n| totalSaleGmv30dAmt | number | 近30天销售额（dateType=month 时返回） |\r\n| growthRate | number | 增长率（百分比） |\r\n| shopName | string | 店铺名称 |\r\n| shopTotalUnitsSold | integer | 店铺总销量 |\r\n| shopSellerId | string | 店铺卖家 ID |\r\n| categoryName | string | 商品类目 |\r\n| productCommissionRate | number | 商品佣金比例（基点，1000=10%） |\r\n| imageUrl | string | 商品图片 URL |\r\n| offShelvesText | string | 是否下架（\"是\"=已下架，\"否\"=在售） |\r\n\r\n## 错误码\r\n\r\n正常情况下，接口的 HTTP 状态码均为 200，业务的成功与否通过响应体中的 errorCode 字段区分（errorCode = 200 表示成功，其他值表示业务错误）。当遇到未授权等情况时，HTTP 状态码为 401，且对应的 errorCode 也是 401。\r\n\r\n| errcode | 含义 | 处理建议 |\r\n|---------|------|----------|\r\n| 200 | 成功 | 正常解析业务字段 |\r\n| 401 | 认证失败 | 检查请求头 `Authorization` 是否正确携带 API Key；API Key 申请方式请参考上述[调用规范](#调用规范)下的认证方式。|\r\n| 其他非200值 | 业务异常 | 参考 `errmsg` 字段获取具体错误原因 |\r\n\r\n错误响应示例：\r\n\r\n```json\r\n{\r\n    \"errcode\": 401,\r\n    \"errmsg\": \"authorized error\"\r\n}\r\n```\r\n\r\n## curl 示例\r\n\r\n```bash\r\ncurl -X POST https://tool-gateway.linkfox.com/fastmoss/productRankTopSelling \\\r\n  -H \"Authorization: $LINKFOXAGENT_API_KEY\" \\\r\n  -H \"Content-Type: application/json\" \\\r\n  -d '{\"region\": \"US\", \"dateInfo\": {\"type\": \"day\", \"value\": \"2026-04-15\"}, \"page\": 1, \"pageSize\": 10}'\r\n```\r\n\r\n---\r\n\r\n## Feedback API\r\n\r\n> This endpoint is **separate** from the tool API above. Do not mix the two base URLs.\r\n\r\n- **POST** `https://skill-api.linkfox.com/api/v1/public/feedback`\r\n- **Content-Type:** `application/json`\r\n\r\n```json\r\n{\r\n  \"skillName\": \"linkfox-fastmoss-top-selling\",\r\n  \"sentiment\": \"POSITIVE\",\r\n  \"category\": \"OTHER\",\r\n  \"content\": \"Results were accurate, user was satisfied.\"\r\n}\r\n```\r\n\r\n**Field rules:**\r\n- `skillName`: Use this skill's `name` from the YAML frontmatter\r\n- `sentiment`: Choose ONE — `POSITIVE` (praise), `NEUTRAL` (suggestion without emotion), `NEGATIVE` (complaint or error)\r\n- `category`: Choose ONE — `BUG` (malfunction or wrong data), `COMPLAINT` (user dissatisfaction), `SUGGESTION` (improvement idea), `OTHER`\r\n- `content`: Include what the user said or intended, what actually happened, and why it is a problem or praise","readmeExcerpt":"Skill: FastMoss-TikTok热销榜 Owner: linkfox-ai Summary: 通过FastMoss数据查询TikTok全球电商市场的热销商品排行榜，支持按日/周/月维度和类目维度分析。当用户提到TikTok热销榜、TikTok爆品排行、TikTok销量排行、TikTok GMV排名、TikTok类目热销、TikTok选品周报、TikTok top-selling rankings, TikTok bestseller charts, TikTok GMV ranking, TikTok category hot sellers, TikTok weekly product report, FastMoss时触发此技能。即使用户未明确提及\"FastMoss\"，只要其需求涉及查看TikTok平台的热销排行榜或按时间维度的销售排名，也应触发此技能。 Tags: latest:1.0.7 Version hi","codeSnippets":[],"executableExamples":[{"language":"text","snippet":"region: \"US\", dateInfo: {\"type\": \"day\", \"value\": \"2026-04-15\"}"},{"language":"text","snippet":"region: \"GB\", dateInfo: {\"type\": \"week\", \"value\": \"2026-15\"}"},{"language":"text","snippet":"region: \"ID\", dateInfo: {\"type\": \"month\", \"value\": \"2026-03\"}, orderby: {\"field\": \"gmv\", \"order\": \"desc\"}"},{"language":"text","snippet":"region: \"US\", dateInfo: {\"type\": \"day\", \"value\": \"2026-04-15\"}, category: \"Beauty\""},{"language":"text","snippet":"region: \"US\", dateInfo: {\"type\": \"day\", \"value\": \"2026-04-15\"}"},{"language":"text","snippet":"region: \"GB\", dateInfo: {\"type\": \"week\", \"value\": \"2026-15\"}"}],"parameters":null,"dependencies":[],"permissions":[],"extractedFiles":[{"path":"SKILL.md","content":"---\nname: linkfox-fastmoss-product-rank-top-selling\ndescription: 通过FastMoss数据查询TikTok全球电商市场的热销商品排行榜，支持按日/周/月维度和类目维度分析。当用户提到TikTok热销榜、TikTok爆品排行、TikTok销量排行、TikTok GMV排名、TikTok类目热销、TikTok选品周报、TikTok top-selling rankings, TikTok bestseller charts, TikTok GMV ranking, TikTok category hot sellers, TikTok weekly product report, FastMoss时触发此技能。即使用户未明确提及\"FastMoss\"，只要其需求涉及查看TikTok平台的热销排行榜或按时间维度的销售排名，也应触发此技能。\n---\n\n# FastMoss - TikTok Top Selling Rankings\n\nThis skill guides you on how to query and analyze the TikTok top selling product rankings via the FastMoss data source, helping cross-border e-commerce sellers identify hot-selling products across TikTok's global markets by day, week, or month.\n\n## Core Concepts\n\nThe TikTok Top Selling Ranking tracks the best-performing products on TikTok Shop across 15 global markets. It reveals which products are leading in sales volume, GMV, and growth rate over configurable time windows (daily, weekly, monthly). This is an essential tool for product scouting, trend analysis, and competitive intelligence in TikTok e-commerce.\n\n**Data scope**: The ranking covers 15 TikTok Shop markets and supports three time granularities — day, week, and month — via the `dateInfo` parameter. Each product entry includes sales volume, GMV, growth rate, commission rate, shop information, category, and more.\n\n**dateInfo format is important**:\n- type: `\"day\"` -> value: `\"2025-02-01\"` (YYYY-MM-DD)\n- type: `\"week\"` -> value: `\"2025-18\"` (year-weekNumber)\n- type: `\"month\"` -> value: `\"2025-02\"` (year-month)\n\n**Pagination**: Results are paginated. Use `page` (page number, starting from 1) and `pageSize` (items per page, max 10, default 10) to navigate through the result set. \n\n## Parameter Guide\n\n| Parameter | Type | Required | Description |\n|-----------|------|----------|-------------|\n| region | string | Yes | Market region code (US, GB, MX, ES, DE, IT, FR, ID, VN, MY, TH, PH, BR, JP, SG) |\n| dateInfo | object | Yes | Date specification with `type` (day/week/month) and `value` (see format above) |\n| category | string | No | Category name in English, matched to TikTok category ID. Non-English input should be translated first |\n| orderby | object | No | Sorting: `field` (units_sold/gmv/total_units_sold/total_gmv/growth_rate) + `order` (desc/asc). Default: desc |\n| page | integer | No | Page number, default 1 |\n| pageSize | integer | No | Items per page, max 10, default 10 |\n\n## Supported Markets\n\n| Code | Market |\n|------|--------|\n| US | United States |\n| GB | United Kingdom |\n| MX | Mexico |\n| ES | Spain |\n| DE | Germany |\n| IT | Italy |\n| FR | France |\n| ID | Indonesia |\n| VN | Vietnam |\n| MY | Malaysia |\n| TH | Thailand |\n| PH | Philippines |\n| BR | Brazil |\n| JP | Japan |\n| SG | Singapore |\n\nDefault market is **US**. Use US when the user does not specify a market.\n\n## 调用方式\n\n- **API 端点**：`POST /fastmoss/productRankTopSelling`（完整参数/响应/错误码见 `references/api.md`）\n- **Python 脚本**：`python scripts/fastmoss_product_rank_top_selling.py '<JSON 参数>' ["},{"path":"_meta.json","content":"{\n  \"ownerId\": \"kn7dmc1t4j28hem1twwyav85p182pb1j\",\n  \"slug\": \"linkfox-fastmoss-product-rank-top-selling\",\n  \"version\": \"1.0.7\",\n  \"publishedAt\": 1789363118099\n}"},{"path":"references/api.md","content":"# FastMoss-TikTok热销榜单 API 参考\r\n\r\n## 调用规范\r\n\r\n- **请求地址**：`${LINKFOX_TOOL_GATEWAY}/fastmoss/productRankTopSelling`\r\n- **请求方式**：POST，Content-Type: application/json\r\n- **认证方式**：Header `Authorization: <api_key>`，api_key 从环境变量 `LINKFOX_AGENT_API_KEY` 或 `LINKFOXAGENT_API_KEY` 读取（如未配置 按 SKILL.md 的 **## 解决认证和算力问题** 处理）\r\n\r\n## 请求参数\r\n\r\nPOST Body（JSON）：\r\n\r\n| 参数 | 类型 | 必填 | 说明 |\r\n|------|------|------|------|\r\n| region | string | 是 | 市场区域代码。可选值：US（美国）、GB（英国）、MX（墨西哥）、ES（西班牙）、DE（德国）、IT（意大利）、FR（法国）、ID（印度尼西亚）、VN（越南）、MY（马来西亚）、TH（泰国）、PH（菲律宾）、BR（巴西）、JP（日本）、SG（新加坡） |\r\n| dateInfo | object | 是 | 日期规格对象，包含 `type` 和 `value` 两个字段 |\r\n| dateInfo.type | string | 是 | 时间粒度：`day`（日）、`week`（周）、`month`（月） |\r\n| dateInfo.value | string | 是 | 日期值：day 格式 `YYYY-MM-DD`，week 格式 `YYYY-周数`（如 `2025-18`），month 格式 `YYYY-MM` |\r\n| category | string | 否 | 商品类目名称（英文），会匹配到 TikTok 类目 ID。非英文输入需先翻译为英文 |\r\n| orderby | object | 否 | 排序规则对象，包含 `field` 和 `order` 两个字段 |\r\n| orderby.field | string | 否 | 排序字段：`units_sold`（销量）、`gmv`（销售额）、`total_units_sold`（总销量）、`total_gmv`（总销售额）、`growth_rate`（增长率） |\r\n| orderby.order | string | 否 | 排序方向：`desc`（降序）、`asc`（升序），默认 `desc` |\r\n| page | integer | 否 | 页码，默认 `1` |\r\n| pageSize | integer | 否 | 每页条数，最大 `10`，默认 `10` |\r\n\r\n## 响应结构\r\n\r\n| 字段 | 类型 | 说明 |\r\n|------|------|------|\r\n| errcode | integer | 业务状态码，`200` 表示成功 |\r\n| errmsg | string | 业务状态说明 |\r\n| page | integer | 当前页码 |\r\n| pageSize | integer | 当前每页条数 |\r\n| total | integer | 记录数 |\r\n| products | array | 热销商品列表（见下方商品对象） |\r\n| columns | array | 渲染的列 |\r\n| type | string | 渲染的样式 |\r\n| costTime | integer | 接口耗时（毫秒） |\r\n| costToken | integer | 消耗 token；部分响应可能省略 |\r\n| matchedCategoryIdPath | string | 匹配到的类目 ID 路径；传入 `category` 时可能返回 |\r\n| matchedCategoryNamePath | string | 匹配到的类目名称路径；传入 `category` 时可能返回 |\r\n\r\n### 商品对象\r\n\r\n| 字段 | 类型 | 说明 |\r\n|------|------|------|\r\n| title | string | 商品名称 |\r\n| productId | string | 商品 ID |\r\n| region | string | 区域代码 |\r\n| price | number | 商品价格 |\r\n| minPrice | number | 最低价格；仅价格区间商品返回 |\r\n| maxPrice | number | 最高价格；仅价格区间商品返回 |\r\n| currency | string | 货币符号或标识 |\r\n| totalSaleCnt | integer | 总销量 |\r\n| totalSale1dCnt | integer | 近1天销量（dateType=day 时返回） |\r\n| totalSale7dCnt | integer | 近7天销量（dateType=week 时返回） |\r\n| totalSale30dCnt | integer | 近30天销量（dateType=month 时返回） |\r\n| totalSaleGmvAmt | number | 总销售额 |\r\n| totalSaleGmv1dAmt | number | 近1天销售额（dateType=day 时返回） |\r\n| totalSaleGmv7dAmt | number | 近7天销售额（dateType=week 时返回） |\r\n| totalSaleGmv30dAmt | number | 近30天销售额（dateType=month 时返回） |\r\n| growthRate | number | 增长率（百分比） |\r\n| shopName | string | 店铺名称 |\r\n| shopTotalUnitsSold | integer | 店铺总销量 |\r\n| shopSellerId | string | 店铺卖家 ID |\r\n| categoryName | string | 商品类目 |\r\n| categoryIds | array | 商品类目 ID 路径（一级至三级） |\r\n| productCommissionRate | number | 商品佣金比例（基点，1000=10%） |\r\n| imageUrl | string | 商品图片 URL |\r\n| coverUrl | array | 商品封面图 URL 列表 |\r\n| shopAvatar | string | 店铺头像 URL |\r\n| sourceTool | string | 来源工具标识 |\r\n| sourceType | string | 商品来源类型 |\r\n| offShelvesText | string | 是否下架（\"是\"=已下架，\"否\"=在售） |\r\n\r\n## 错误码\r\n\r\n正常情况下，接口的 HTTP 状态码均为 200，业务的成功与否"},{"path":"references/onboarding.md","content":"# 解决认证和算力问题\n\n调用本 skill 时若网关返回 **auth** 或 **billing** 错误，走本 skill 自带的 `scripts/onboarding.py` 完成引导。\n\n**auth 场景**：`errcode=401` 或消息含 `authorized error`/`鉴权失败`/`未授权`/`unauthorized`；或 `LINKFOX_AGENT_API_KEY` 与 `LINKFOXAGENT_API_KEY` 均为空。\n1. 若已配置 key → 先让用户重启会话（最常见误判），仍失败让用户重新取 key 或换手机号重注册\n2. 未配置 → 询问：自助去 https://agent.linkfox.com/ 取 key，或提供手机号让脚本注册\n3. 手机号路径：\n   - `python scripts/onboarding.py send-code <phone>` → 展示 JSON 里的 phone/agreements\n   - 收到验证码后：`python scripts/onboarding.py login <phone> <code>`\n   - 拿到 `api_key` 后把下面三平台配置转发给用户，提示重启会话生效：\n     - Windows PowerShell（永久）：`setx LINKFOX_AGENT_API_KEY \"<key>\"`\n     - macOS zsh：`echo 'export LINKFOX_AGENT_API_KEY=\"<key>\"' >> ~/.zshrc && source ~/.zshrc`\n     - Linux bash：`echo 'export LINKFOX_AGENT_API_KEY=\"<key>\"' >> ~/.bashrc && source ~/.bashrc`\n     - 变量名 `LINKFOX_AGENT_API_KEY`（主推）或 `LINKFOXAGENT_API_KEY`（老规范）任一即可\n\n**billing 场景**：`errcode=402` 或消息含 `算力/余额/quota/insufficient/充值/套餐到期`。\n- `python scripts/onboarding.py list-plans` → 有 AskUserQuestion 就弹菜单，否则输出编号清单让用户选\n- 校验 `plan_id` ∈ 清单、支付方式 ∈ 该套餐 `available_methods`（通常 `wechat/alipay`）\n- `python scripts/onboarding.py order <plan_id> <method>` → 展示优先级 PNG > `pay_url` > `ascii_qr`（标注兜底）\n- 已付款可选调 `python scripts/onboarding.py query <order_id>`，不主动轮询\n\n排除 `errcode=403`（无权限，不归入这两类）。所有子命令输出 stdout JSON，`error` 字段已含阶段前缀，透传给用户即可。完整用法：`python scripts/onboarding.py --help`。"},{"path":"skill-card.md","content":"## Description:\n\nQueries FastMoss data for TikTok global e-commerce top-selling product rankings, with daily, weekly, monthly, and category-based analysis.\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[linkfox-ai](https://clawhub.ai/user/linkfox-ai)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nExternal e-commerce sellers and analysts use this skill to inspect TikTok Shop top-selling product rankings across supported global markets, time windows, and categories. It helps agents return ranked product data and concise tabular summaries without adding subjective business advice.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: The skill may handle LinkFox/FastMoss account access, API keys, phone verification, and billing workflows.\n\nMitigation: Review requests for phone numbers, SMS codes, API keys, plan purchases, or payment QR codes before allowing the agent to proceed.\n\nRisk: Endpoint override environment variables can redirect account or ranking requests.\n\nMitigation: Use endpoint override variables only for infrastructure you control, and keep the default LinkFox endpoints for normal use.\n\nRisk: API keys may be exposed if stored casually in shell profile files or shared logs.\n\nMitigation: Prefer secure secret storage and avoid pasting API keys into shared terminals, logs, or public configuration.\n\nRisk: Each ranking lookup consumes paid compute credits.\n\nMitigation: Confirm repeated, paginated, or changed-parameter lookups with the user when cost expectations are unclear.\n\n## Reference(s):\n\n- [ClawHub skill page](https://clawhub.ai/linkfox-ai/skills/linkfox-fastmoss-product-rank-top-selling)\n- [FastMoss-TikTok热销榜单 API 参考](artifact/references/api.md)\n- [解决认证和算力问题](artifact/references/onboarding.md)\n- [LinkFox Skills](https://skill.linkfox.com/)\n\n## Skill Output:\n\n**Output Type(s):** [text, markdown, code, shell commands, configuration, guidance]\n\n**Output Format:** [Markdown summaries, JSON API responses, saved JSON data files, and shell commands]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [The tool saves complete API responses under a local linkfox data directory, prints small responses as JSON, and summarizes larger responses unless inline output is requested.]\n\n## Skill Version(s):\n\n1.0.7 (source: server release evidence)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment."}],"languages":[],"docsSourceLabel":"CLAWHUB","editorialOverview":"通过FastMoss数据查询TikTok全球电商市场的热销商品排行榜，支持按日/周/月维度和类目维度分析。当用户提到TikTok热销榜、TikTok爆品排行、TikTok销量排行、TikTok GMV排名、TikTok类目热销、TikTok选品周报、TikTok top-selling rankings, TikTok bestseller charts, TikTok GMV ranking, TikTok category hot sellers, TikTok weekly product report, FastMoss时触发此技能。即使用户未明确提及\"FastMoss\"，只要其需求涉及查看TikTok平台的热销排行榜或按时间维度的销售排名，也应触发此技能。 Skill: FastMoss-TikTok热销榜 Owner: linkfox-ai Summary: 通过FastMoss数据查询TikTok全球电商市场的热销商品排行榜，支持按日/周/月维度和类目维度分析。当用户提到TikTok热销榜、TikTok爆品排行、TikTok销量排行、TikTok GMV排名、TikTok类目热销、TikTok选品周报、TikTok top-selling rankings, TikTok bestseller charts, TikTok GMV ranking, TikTok category hot sellers, TikTok weekly product report, FastMoss时触发此技能。即使用户未明确提及\"FastMoss\"，只要其需求涉及查看TikTok平台的热销排行榜或按时间维度的销售排名，也应触发此技能。 Tags: latest:1.0.7 Version hi","editorialQuality":{"score":100,"threshold":65,"status":"ready","wordCount":1473,"uniquenessScore":47,"reasons":[]}},"media":{"evidence":{"source":"no-media","verified":false,"confidence":"low","updatedAt":"2026-10-12T01:04:02.171Z","emptyReason":"No screenshots, media assets, or demo links are available."},"primaryImageUrl":null,"mediaAssetCount":0,"assets":[],"demoUrl":null},"ownerResources":{"evidence":{"source":"unclaimed","verified":false,"confidence":"low","updatedAt":"2026-10-12T01:04:02.171Z","emptyReason":"This page has not been claimed by the agent owner."},"hasCustomPage":false,"customPageUpdatedAt":null,"customLinks":[],"structuredLinks":{"docsUrl":null,"demoUrl":null,"supportUrl":null,"pricingUrl":null,"statusUrl":null},"customPage":null},"relatedAgents":{"evidence":{"source":"protocol-neighbors","verified":false,"confidence":"medium","updatedAt":"2026-10-14T01:35:28.878Z","emptyReason":null},"items":[{"id":"8ebccd8e-3863-4187-8355-c3f14e1f9edf","entityType":"agent","canonicalPath":"/agent/iofficeai-aionui","slug":"iofficeai-aionui","name":"AionUi","description":"Free, local, open-source 24/7 Cowork app and OpenClaw for Gemini CLI, Claude Code, Codex, OpenCode, Qwen Code, Goose CLI, Auggie, and more | 🌟 Star if you like it!","url":"https://github.com/iOfficeAI/AionUi","homepage":"https://www.aionui.com","source":"GITHUB_REPOS","protocols":["MCP","OPENCLAW"],"capabilities":[],"safetyScore":100,"overallRank":70,"updatedAt":"2026-10-09T19:11:12.944Z","createdAt":"2026-02-25T03:38:16.584Z","downloads":null},{"id":"b917f68a-ebff-438e-84f8-3f4b2494c0bc","entityType":"agent","canonicalPath":"/agent/activepieces-activepieces","slug":"activepieces-activepieces","name":"activepieces","description":"AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents","url":"https://github.com/activepieces/activepieces","homepage":"https://www.activepieces.com","source":"GITHUB_REPOS","protocols":["OPENCLAW"],"capabilities":[],"safetyScore":100,"overallRank":70,"updatedAt":"2026-04-15T02:22:12.426Z","createdAt":"2026-02-25T03:38:12.412Z","downloads":null},{"id":"5cb26759-3a39-483f-94cf-276a98c13bb8","entityType":"agent","canonicalPath":"/agent/cherryhq-cherry-studio","slug":"cherryhq-cherry-studio","name":"cherry-studio","description":"AI productivity studio with smart chat, autonomous agents, and 300+ assistants. Unified access to frontier LLMs","url":"https://github.com/CherryHQ/cherry-studio","homepage":"https://cherry-ai.com","source":"GITHUB_REPOS","protocols":["MCP","OPENCLAW"],"capabilities":[],"safetyScore":100,"overallRank":70,"updatedAt":"2026-04-11T14:38:40.986Z","createdAt":"2026-02-25T03:38:19.379Z","downloads":null},{"id":"6f6582d0-5d76-4f0f-b81d-86520247950b","entityType":"agent","canonicalPath":"/agent/copilotkit-copilotkit","slug":"copilotkit-copilotkit","name":"CopilotKit","description":"The Frontend for Agents & Generative UI. React + Angular","url":"https://github.com/CopilotKit/CopilotKit","homepage":"https://docs.copilotkit.ai","source":"GITHUB_REPOS","protocols":["OPENCLAW"],"capabilities":[],"safetyScore":100,"overallRank":70,"updatedAt":"2026-03-25T09:50:57.846Z","createdAt":"2026-02-25T03:39:14.617Z","downloads":null}],"links":{"hub":"/agent","source":"/agent/source/clawhub","protocols":[{"label":"OpenClaw","href":"/agent/protocol/openclew"}]}}}