skills-trending-analysis

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Skills Trending Analysis (Direct API)

热门技能趋势分析(直接API版)

Fetches trending information from the
skills.sh
ecosystem by directly communicating with its internal JSON API.
This Skill is designed to be "Zero-Setup Ready" by focusing on standard Python libraries.

通过直接调用其内部JSON API,从
skills.sh
生态系统中获取热门信息。
本Skill专为**“零配置就绪”**设计,仅依赖标准Python库。

Input

输入

A keyword can be optionally specified for filtering.
  • --limit
    : Number of items to fetch (default: 1000).
  • With keyword: Filters the fetched items by the keyword.
  • Without keyword: Fetches the top trending items.
Examples:
swift
,
python
,
agent

可选择性指定关键词进行过滤。
  • --limit
    :要获取的条目数量(默认值:1000)。
  • 指定关键词:按关键词过滤获取到的条目。
  • 不指定关键词:获取排名靠前的热门条目。
示例:
swift
python
agent

Output

输出

Generates results including the following:
  1. Trending summary
  2. Top skills
  3. Keyword ranking
  4. Developer ranking
  5. Ecosystem analysis

生成的结果包含以下内容:
  1. 趋势总结
  2. 热门技能排行
  3. 关键词排名
  4. 开发者排名
  5. 生态系统分析

Execution Steps (Smart Flow)

执行步骤(智能流程)

1. Try Direct Execution (Fastest)

1. 尝试直接执行(最快方式)

Most environments already have the necessary
requests
library. Try running directly:
bash
python3 scripts/fetch_trending.py
python3 scripts/analyze_trending.py --input tmp/trending.json --output tmp/trending_analysis.json

大多数环境已配备必要的
requests
库。尝试直接运行:
bash
python3 scripts/fetch_trending.py
python3 scripts/analyze_trending.py --input tmp/trending.json --output tmp/trending_analysis.json

2. If it fails (Environment Setup)

2. 若执行失败(环境配置)

If you get a
ModuleNotFoundError: No module named 'requests'
, then set up the environment:
Using uv (Recommended):
bash
uv venv
source .venv/bin/activate
uv pip install -r requirements.txt
Using standard pip:
bash
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt

如果出现
ModuleNotFoundError: No module named 'requests'
错误,则进行环境配置:
推荐使用uv:
bash
uv venv
source .venv/bin/activate
uv pip install -r requirements.txt
使用标准pip:
bash
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt

Data Fetching Strategy

数据获取策略

  • Direct API Access: Communicates directly with
    https://skills.sh/api/skills/all-time
    .
  • No Browser Required: Eliminates dependencies like Chromium or Playwright.
  • Efficient: Uses pagination to fetch precisely what is needed.
  • Cached: Results are cached locally for 1 hour.

  • 直接API访问: 直接与
    https://skills.sh/api/skills/all-time
    通信。
  • 无需浏览器: 消除对Chromium或Playwright等依赖的需求。
  • 高效性: 使用分页功能精确获取所需数据。
  • 缓存机制: 结果在本地缓存1小时。

Statistical Analysis Specifications

统计分析规范

  • summary: Total skills, installs, unique developers/keywords.
  • skill_ranking: Sorted by install counts.
  • keyword_ranking: Frequency and install impact.
  • developer_ranking: Top developers and their specialties.
  • concentration: Market share analysis.

  • summary: 技能总数、安装量、独立开发者/关键词数量。
  • skill_ranking: 按安装量排序。
  • keyword_ranking: 关键词出现频率及对安装量的影响。
  • developer_ranking: 顶级开发者及其专长领域。
  • concentration: 市场份额分析。

Final Summary by AI

AI生成最终总结

Based on the Python analysis results, the AI will provide a premium trend report. Use the output of
analyze_trending.py
as the source of truth for all numerical data.

基于Python分析结果,AI将提供一份优质趋势报告。以
analyze_trending.py
的输出作为所有数值数据的权威来源。

Referenced Files

参考文件

  • requirements.txt
  • scripts/fetch_trending.py
  • scripts/analyze_trending.py
  • references/output-format.md
  • requirements.txt
  • scripts/fetch_trending.py
  • scripts/analyze_trending.py
  • references/output-format.md