skills-trending-analysis
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseSkills Trending Analysis (Direct API)
热门技能趋势分析(直接API版)
Fetches trending information from the ecosystem by directly communicating with its internal JSON API.
skills.shThis 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.
- : Number of items to fetch (default: 1000).
--limit - With keyword: Filters the fetched items by the keyword.
- Without keyword: Fetches the top trending items.
Examples: , ,
swiftpythonagent可选择性指定关键词进行过滤。
- :要获取的条目数量(默认值:1000)。
--limit - 指定关键词:按关键词过滤获取到的条目。
- 不指定关键词:获取排名靠前的热门条目。
示例:、、
swiftpythonagentOutput
输出
Generates results including the following:
- Trending summary
- Top skills
- Keyword ranking
- Developer ranking
- Ecosystem analysis
生成的结果包含以下内容:
- 趋势总结
- 热门技能排行
- 关键词排名
- 开发者排名
- 生态系统分析
Execution Steps (Smart Flow)
执行步骤(智能流程)
1. Try Direct Execution (Fastest)
1. 尝试直接执行(最快方式)
Most environments already have the necessary library. Try running directly:
requestsbash
python3 scripts/fetch_trending.py
python3 scripts/analyze_trending.py --input tmp/trending.json --output tmp/trending_analysis.json大多数环境已配备必要的库。尝试直接运行:
requestsbash
python3 scripts/fetch_trending.py
python3 scripts/analyze_trending.py --input tmp/trending.json --output tmp/trending_analysis.json2. If it fails (Environment Setup)
2. 若执行失败(环境配置)
If you get a , then set up the environment:
ModuleNotFoundError: No module named 'requests'Using uv (Recommended):
bash
uv venv
source .venv/bin/activate
uv pip install -r requirements.txtUsing 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.txtData 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 as the source of truth for all numerical data.
analyze_trending.py基于Python分析结果,AI将提供一份优质趋势报告。以的输出作为所有数值数据的权威来源。
analyze_trending.pyReferenced 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