github-repo-stats
Skill by chenpinji
Why use this skill?
Analyze GitHub repository popularity and codebase scale effortlessly. Get real-time star counts and accurate source code line statistics with OpenClaw.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/chenpinji/ghgghgWhat This Skill Does
The github-repo-stats skill is an automated tool designed for developers and researchers to quickly extract key metrics from any public GitHub repository. By leveraging the GitHub REST API, the skill retrieves real-time star counts, reflecting the popularity and community interest in a project. For a deeper technical audit, the skill integrates with system-level utilities like 'cloc' to perform a local clone of the repository and calculate an accurate total line count of the source code. This combination of API-driven data and local heuristic analysis provides a comprehensive overview of a repository's maturity and scale.
Installation
To integrate this skill into your OpenClaw environment, execute the following command in your terminal:
clawhub install openclaw/skills/skills/chenpinji/ghgghg
Ensure that the 'cloc' utility is installed on your system path (e.g., via sudo apt install cloc) to enable the full functionality of the source code line counting feature.
Use Cases
This skill is ideal for:
- Technical Due Diligence: Evaluating the size and popularity of open-source libraries before integrating them into a project.
- Research and Analytics: Gathering quantitative data on software ecosystems or comparing multiple repositories for a tech stack evaluation.
- Reporting: Generating quick summaries of project growth or codebase size for stakeholders or documentation purposes.
Example Prompts
- "How popular is the vllm-project/vllm repository, and how many lines of code does it contain?"
- "Can you check the current star count for huggingface/transformers and perform a codebase analysis?"
- "Provide statistics for the repository facebook/react, specifically focusing on star count and total code lines."
Tips & Limitations
- Network Constraints: The skill relies on public GitHub APIs. While star counts rarely hit limits, frequent code analysis via cloning may be subject to GitHub's rate limits or local disk space availability.
- Performance: Line counting involves cloning the repository, which may take time depending on the size of the repository and your network speed. Always ensure your environment has sufficient temporary storage for the clone process.
- Accuracy: The 'cloc' tool provides a robust estimate based on file extensions. Note that some build artifacts or documentation files may be included or excluded based on standard 'cloc' configurations. If cloning fails, the skill is designed to fall back to providing the star count via the API, ensuring you still receive the most critical information.
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-ghgghg": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: network-access, file-write, file-read, external-api, code-execution
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