ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified developer tools Safety 4/5

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.

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/chenpinji/github-repo-stat
Or

What 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

  1. "How popular is the vllm-project/vllm repository, and how many lines of code does it contain?"
  2. "Get me the star count and total lines of code for the repository facebook/react."
  3. "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

Author@chenpinji
Stars1947
Views1
Updated2026-03-04
View Author Profile
AI Skill Finder

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 skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-chenpinji-github-repo-stat": {
      "enabled": true,
      "auto_update": true
    }
  }
}

Tags(AI)

#github#developer-tools#analytics#git#productivity
Safety Score: 4/5

Flags: network-access, file-read, file-write, code-execution, external-api