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

code-stats

Visualizes repository complexity by counting files, lines of code, and grouping by extension. Use to assess project size or growth.

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/autogame-17/code-stats
Or

What This Skill Does

The code-stats skill is an essential diagnostic utility for developers working within the OpenClaw environment. At its core, this tool performs a recursive scan of your specified directory to calculate comprehensive development metrics. By parsing the file structure and reading content, it provides an accurate count of total files, an approximation of total lines of code (LOC), and a detailed breakdown of your project structure organized by file extension. This visibility is crucial for maintaining project health and understanding the scale of the codebase you are currently managing.

Installation

To integrate this utility into your development agent, run the following command in your terminal:

clawhub install openclaw/skills/skills/autogame-17/code-stats

Once installed, the agent will have the internal capability to run the analysis script whenever prompted. Ensure that your agent has the appropriate read permissions for the repository directories you intend to audit.

Use Cases

  • Project Onboarding: Quickly understand the size and language composition of an unfamiliar repository.
  • Refactoring Progress: Measure the reduction of lines of code or the removal of legacy file types during clean-up efforts.
  • Technical Debt Assessment: Identify if a project has an overwhelming number of specific extensions or an unexpectedly high line count, which often correlates with complexity and maintenance overhead.
  • Reporting: Generate quick snapshots for project managers or stakeholders regarding the scope and growth of a software development project.

Example Prompts

  1. "Analyze the current project folder and give me a breakdown of the code statistics."
  2. "How many lines of code are in the /src directory and what languages are primarily used there?"
  3. "Compare the total file count of this repository to our standard project size guidelines."

Tips & Limitations

  • Efficiency: The tool works best on standard source code directories. For extremely large monorepos, performance may vary depending on the depth of the directory tree.
  • Exclusions: Be mindful that this tool counts all files it discovers; if you have large node_modules or build directories, the line count will be skewed higher. We recommend using ignore files or specifying exact sub-directories to get cleaner data.
  • Accuracy: The line count is an approximation designed to give you a high-level overview rather than a line-by-line compiler-grade audit.

Metadata

Stars4146
Views9
Updated2026-04-16
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-autogame-17-code-stats": {
      "enabled": true,
      "auto_update": true
    }
  }
}

Tags(AI)

#metrics#developer#analysis#productivity#codebase
Safety Score: 5/5

Flags: file-read