linkfox-ai/linkfox-skills

linkfox-google-trend-get-trend-by-time

查询并分析Google Trends在指定时间范围和国家/地区的实时热门话题与热搜。当用户提到谷歌趋势、热门话题、实时热搜、流行趋势、当前热点、近期热门、病毒式话题、时间段热度、区域趋势分析、Google Trends, real-time hot topics, trending topics, popular trends, recent trending searches, trend discovery时触发此技能。即使用户未明确说"Google Trends",只要其需求涉及发现特定市场近期热门或正…

ソースを見る

使い方

  1. インストールコマンドをコピーし、自分の環境へ導入する前にソースを確認します。
  2. 必要なツール、認証情報、対応環境を原文で確認します。
  3. 入力と成果物を指定し、出力を資料と照合します。
npx skills add https://github.com/linkfox-ai/linkfox-skills --skill linkfox-google-trend-get-trend-by-time

開始前の確認

  • 導入にはモデル契約、API枠、ファイルへのアクセス許可は含まれません。
  • スター数や導入数は活動の指標であり、独立した品質・安全性試験ではありません。
リポジトリの原文

見出し、例、コード、表、リンク、参照画像を含む原文を表示しています。

Google Trends Time-Range Analysis

This skill guides you on how to query and analyze Google Trends data for trending topics within a configurable time window, helping users discover real-time popular searches and emerging trends across 18 supported regions.

Core Concepts

Google Trends reflects real user search interest on Google. This tool retrieves trending topics (recently popular queries) for a chosen country/region over a specified number of recent days. It is ideal for spotting what is currently gaining traction in a market.

Key data points per trending query:

  • query -- the trending search term
  • searchVolume -- relative search volume value
  • increasePercentage -- percentage change in search interest (-100 to 100, unit: %)
  • startTime / endTime -- timestamps bounding the trend observation window

A positive increasePercentage means rising interest; a negative value means declining interest. A value near 100 signals an explosive spike.

Parameter Guide

ParameterTypeRequiredDefaultDescription
daysintegerNo7Time range in days. Common values: 1 (last 24 hours), 2, 7 (past week)
regionstringNoUSCountry/region code. See Supported Regions below

Supported Regions

US (United States), GB (United Kingdom), JP (Japan), CA (Canada), MX (Mexico), DE (Germany), FR (France), IT (Italy), ES (Spain), NL (Netherlands), AU (Australia), SG (Singapore), AE (United Arab Emirates), BR (Brazil), IN (India), TR (Turkey), PL (Poland), SE (Sweden)

Default region is US. Use US when the user does not specify a region.

调用方式

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

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

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

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

解决认证和算力问题

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

异常情况

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

Usage Examples

1. What's trending in the US over the past week?

json
{"days": 7, "region": "US"}

2. Hot topics in Japan in the last 24 hours

json
{"days": 1, "region": "JP"}

3. Trending searches in Germany over the past 2 days

json
{"days": 2, "region": "DE"}

4. Recent buzz in Brazil this week

json
{"days": 7, "region": "BR"}

5. What's gaining popularity in the UK right now?

json
{"days": 1, "region": "GB"}

Display Rules

  1. Present data clearly: Show trending queries in a well-formatted table with columns for query, search volume, and increase percentage. Sort by search volume or increase percentage as appropriate.
  2. Highlight spikes: When increasePercentage is notably high (e.g., above 50%), call attention to these breakout topics.
  3. Time context: Always state the time range and region in your summary so the user knows exactly what window the data covers.
  4. Chart data: If the response includes chartOption, describe the chart structure (title, axes, data points) so the user understands the visual trend.
  5. Error handling: When a query fails, explain the reason based on the error response and suggest adjusting parameters (e.g., try a different region code or time range).

Important Limitations

  • Data analysis: The response is JSON. Read chartOption.data from the saved response to filter or sort the returned rows. _dataQuery_executeDynamicQuery queries Linkfox session data stored in SLS; it is not a general JSON-file reader, so do not pass this response to it without a supported stored-data mapping.
  • Relative volumes: Search volume values are relative, not absolute counts.
  • Short time windows: The days parameter controls recency; this tool is designed for recent/real-time trends, not long historical analysis.
  • Region coverage: Only the 18 listed regions are supported. Unsupported region codes will produce errors.

User Expression & Scenario Quick Reference

Applicable -- Queries about trending/popular topics on Google:

User SaysScenario
"What's trending right now"Real-time trending topics
"Hot searches in [country]"Regional trend discovery
"What topics are popular this week"Weekly popularity overview
"Any viral topics in [market]"Breakout / spike detection
"Show me Google Trends for [region]"Region-specific trend query
"What's buzzing in the last 24 hours"Short-window trend scan
"Trending searches in [country] recently"Recent trend analysis
"What are people searching for in [region]"General search interest exploration

Not applicable -- Needs beyond trending topic discovery:

  • Historical keyword search volume over months/years (use a dedicated Google Trends historical tool)
  • Amazon-specific keyword or ASIN analysis (use ABA tools)
  • Advertising / PPC campaign management
  • Social media trend analysis (Twitter/X, TikTok, etc.)
  • SEO ranking or backlink analysis
  • Competitor website traffic estimation

Boundary judgment: When users say "market trends" or "what's popular", if it boils down to discovering what people are currently searching for on Google in a specific region, this skill applies. If they are asking about stock market trends, social media virality, or long-term historical search patterns, it does not apply.

算力消耗规则

消耗 6 算力。

用户会因算力消耗而支付费用。请充分评估:当需要高频调用本技能,或用户对算力消耗量预期不足时,务必提醒用户,由用户决定是否继续。

Feedback:

Auto-detect and report feedback via the Feedback API when any of the following apply:

  1. The functionality or purpose described in this skill does not match actual behavior
  2. The skill's results do not match the user's intent
  3. The user expresses dissatisfaction or praise about this skill
  4. Anything you believe could be improved

Call the feedback API as specified in references/api.md. Do not interrupt the user's flow.


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

同じリポジトリから

関連する Skills

すべての Skills
linkfox-ai
コミュニティ

linkfox-aigc-imagegen

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

導入数
1
GitHub Stars
105
更新日
9月14日
linkfox-ai
コミュニティ

linkfox-aigc-imagegen-cloth

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

導入数
1
GitHub Stars
105
更新日
9月14日
linkfox-ai
コミュニティ

linkfox-aigc-videogen

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

導入数
1
GitHub Stars
105
更新日
9月14日
linkfox-ai
コミュニティ

linkfox-amazon-ads-auth

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

導入数
1
GitHub Stars
105
更新日
9月14日