OpenClawSkills
GitHub

GitHub Trending

Community

List currently trending repositories on GitHub by language.

Installation

Save as `gh-trending.js`.

Source Code

JavaScript
Tutorial.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
    }));
};

Live Preview

● Live Demo
Agent Session
Starting session...

How to use

  • Ensure you have the necessary dependencies installed (if any).
  • Place the file in your OpenClaw skills folder (e.g., ~/.openclaw/skills/).
  • Restart your agent or reload configuration.
  • Invoke it using the filename (without extension) as the tool name, or through natural language if the description is clear.