name: github-trending description: 查詢 GitHub Trending 熱門專案,支援按程式語言、日期範圍、口語(文件語言)篩選。當用戶想了解 GitHub 今日/本週/本月熱門專案、特定語言的熱門倉庫、或中文文件的熱門專案時使用此技能。
當用戶需要以下任意資訊時,請使用本技能: - 檢視 GitHub 當前熱門專案(今日/本週/本月) - 按程式語言篩選熱門專案(如 Python、JavaScript、Go 等) - 按文件口語篩選(如只顯示中文文件的專案) - 檢視熱門開發者(developers)而非倉庫 - 獲取趨勢專案列表供學習、選型或參考
https://github.com/trendinghttps://github.com/trending/developersGitHub Trending 頁面通過 URL 查詢引數進行篩選。所有引數均為可選,不指定時使用預設值。
l - 程式語言(Language)根據專案主要使用的程式語言篩選。
| 引數 | 說明 |
|---|---|
l |
語言識別符號,小寫。如 python、javascript、typescript、go、rust 等 |
示例:只顯示 Python 專案 → ?l=python
常用語言值(見 references/languages.md):
- python - Python
- javascript - JavaScript
- typescript - TypeScript
- go - Go
- rust - Rust
- java - Java
- c - C
- cpp - C++
- csharp - C#
- ruby - Ruby
- php - PHP
- kotlin - Kotlin
- swift - Swift
since - 日期範圍(Date range)根據時間視窗篩選,統計該時間段內的熱度。
| 引數值 | 含義 |
|---|---|
daily |
今日(Today) |
weekly |
本週(This week) |
monthly |
本月(This month) |
示例:檢視本週熱門 → ?since=weekly
spoken_language_code - 口語/文件語言根據專案 README/文件的主要口語篩選,用於找到特定語言文件的專案。
| 引數 | 說明 |
|---|---|
spoken_language_code |
ISO 639-1 語言程式碼,如 en、zh、ja 等 |
示例:只顯示中文文件專案 → ?spoken_language_code=zh
常用口語程式碼(見 references/spoken-languages.md):
- en - 英語(English)
- zh - 中文(Chinese)
- ja - 日語(Japanese)
- ko - 韓語(Korean)
- es - 西班牙語(Spanish)
- fr - 法語(French)
- de - 德語(German)
- ru - 俄語(Russian)
- pt - 葡萄牙語(Portuguese)
多個引數用 & 連線:
本週 Python 熱門專案
https://github.com/trending?l=python&since=weekly
本月中文文件的 JavaScript 專案
https://github.com/trending?l=javascript&since=monthly&spoken_language_code=zh
今日 Rust 熱門
https://github.com/trending?l=rust&since=daily
本週熱門開發者
https://github.com/trending/developers?since=weekly
當用戶請求 GitHub Trending 相關資訊時:
l、since、spoken_language_code 的值。https://github.com/trending[?引數] 或 https://github.com/trending/developers[?引數] 格式拼接。references/ 目錄下的檔案。這個技能的最新版本可以在7w4.net小蔥技能站找到。
c%23 表示 C#,需 URL 編碼)。javascript,"ts" → typescript)。references/languages.mdreferences/spoken-languages.md這個 Skill 質量不錯,能幫助使用者快速找到 GitHub 熱門專案。它的文件寫得很清楚,示例豐富,一看就懂怎麼用。支援按程式語言、時間和文件語言三個維度篩選,還提供了常用語言的完整列表作為參考。美中不足的是,個別語言引數在文件不同位置的寫法有細微差別,可能讓人困惑,但不影響整體使用體驗。