github-repo-stats
Skill by chenpinji
Why use this skill?
Analyze GitHub project popularity and codebase size. Automatically fetch stars and lines of code using the github-repo-stats skill for OpenClaw.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/chenpinji/github-repo-statWhat This Skill Does
The github-repo-stats skill is an essential tool for developers and project managers aiming to gather quick, data-driven insights from public GitHub repositories. Developed by chenpinji, this skill automates the retrieval of key project health metrics, specifically focusing on social proof and codebase scale. By leveraging the GitHub REST API, the skill fetches real-time star counts, indicating the popularity and community interest in a project. Furthermore, it provides technical depth by calculating total lines of code, offering a quantifiable measure of project complexity through the integration of the cloc (Count Lines of Code) utility. This combined approach allows users to quickly benchmark libraries, frameworks, or open-source projects without leaving their AI agent environment.
Installation
To integrate this skill into your OpenClaw environment, execute the following command in your terminal:
clawhub install openclaw/skills/skills/chenpinji/github-repo-stat
Ensure that the environment has cloc installed (via sudo apt install cloc) to enable the full functionality of the lines-of-code calculation feature.
Use Cases
This skill is highly valuable for evaluating technical debt, comparing libraries before integration, or conducting competitive research. Developers can use it to determine if a project is maintained or to see how large a dependency is before adding it to a project. Project managers may use it to assess community engagement levels through star velocity and overall project magnitude.
Example Prompts
- "How popular is the vllm-project/vllm repository, and how many lines of code does it contain?"
- "Get me the star count and total lines of code for the repository facebook/react."
- "Analyze the size and community interest of the repository 'microsoft/vscode'."
Tips & Limitations
Note that GitHub API requests are subject to rate limits. While public repos do not require an authentication token for basic metadata like star counts, high-frequency querying may trigger temporary blocks. The line-counting feature requires cloning the repository to a temporary directory; therefore, ensure sufficient disk space and network bandwidth are available for large repositories. If the repository is exceptionally large, the cloc process may take longer to execute. Always verify the results if a repository has complex submodules or generated code, as those may impact the total line count reflected in the statistics.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-chenpinji-github-repo-stat": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: network-access, file-read, file-write, code-execution, external-api
Related Skills
github-repo-stats
Skill by chenpinji
github-repo-stats
Query a GitHub repository's star count and lines of code. Use when the user asks for repo stars, stargazers, LOC, code lines, or repository statistics for a given GitHub repo.
github-repo-stats
Skill by chenpinji
github-repo-stats
Skill by chenpinji