GitHub 趋势
社区按语言列出 GitHub 上当前的趋势仓库。
安装
Save as `gh-trending.js`.
源代码
JavaScriptTutorial.terminal
// gh-trending.js
// Uses a public unofficial API for trending repos
module.exports = async function(context) {
const lang = context.args[0] || 'javascript';
const url = `https://api.gitterapp.com/repositories?language=${lang}&since=daily`;
const res = await fetch(url);
const data = await res.json();
return data.slice(0, 5).map(repo => ({
name: repo.author + "/" + repo.name,
stars: repo.stars,
desc: repo.description,
url: repo.url
}));
};
实时预览
● 实时演示Agent 会话
如何使用
- 确保已安装必要的依赖项(如果有)。
- 将文件放入您的 OpenClaw skills 文件夹(例如 ~/.openclaw/skills/)。
- 重启您的 Agent 或重新加载配置。
- 使用文件名(不带扩展名)作为工具名称调用它,或者如果描述清晰,可以通过自然语言调用。