code-stats
Visualizes repository complexity by counting files, lines of code, and grouping by extension. Use to assess project size or growth.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/autogame-17/code-statsWhat 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
- "Analyze the current project folder and give me a breakdown of the code statistics."
- "How many lines of code are in the /src directory and what languages are primarily used there?"
- "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
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-autogame-17-code-stats": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-read
Related Skills
capability-evolver
A self-evolution engine for AI agents. Analyzes runtime history to identify improvements and applies protocol-constrained evolution.
feishu-voice-assistant
Sends voice messages (audio) to Feishu chats using Duby TTS.
security-sentinel
Scan the workspace for security vulnerabilities, exposed secrets, and misconfigurations.
prompt-optimizer
Evaluate, optimize, and enhance prompts using 58 proven prompting techniques. Use when user asks to improve, optimize, or analyze a prompt; when a prompt needs better clarity, specificity, or structure; or when generating prompt variations for different use cases. Covers quality assessment, targeted improvements, and automatic optimization across techniques like CoT, few-shot learning, role-play, and 50+ more.
Feishu Broadcast
Skill by autogame-17