A comprehensive code auditing tool that measures complexity, line counts, and documentation density across multiple programming languages.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install code-metrics
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install code-metrics using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
The Code Metrics skill is a robust diagnostic utility designed for developers who need a granular understanding of their codebase health. By integrating this capability into Openclaw Skills, users can instantly generate reports on structural complexity and documentation ratios, ensuring that technical debt is identified before it becomes a bottleneck.
This tool performs deep analysis on 17+ languages, including Python, Rust, and Go. It provides a unique lens into project maintainability by calculating cyclomatic complexity for Python and ranking the largest files in a directory to pinpoint areas in need of refactoring.
The Code Metrics skill is designed to run with zero external dependencies using Python 3.8+.
# Analyze the current project directory
python3 scripts/code_metrics.py
# Analyze a specific project path
python3 scripts/code_metrics.py /path/to/target/project
# Exclude specific directories from the analysis
python3 scripts/code_metrics.py --exclude migrations fixtures
The skill produces a structured report that organizes codebase data into the following taxonomy:
| Metric Category | Data Points Included |
|---|---|
| Language Breakdown | Total lines, code lines, comments, and blank lines per extension. |
| Structural Totals | Total counts of functions and classes across the codebase. |
| Python Complexity | Per-function cyclomatic complexity scores (AST-based). |
| File Rankings | Top N files sorted by raw code line volume. |
| Quality Flags | Warnings for functions with complexity $\ge$ 5. |
--json) for integration with CI/CD pipelines or custom dashboards.--no-complexity flag for faster performance on massive codebases.Loading
A comprehensive AI-powered learning assistant tailored for the 2nd-grade Beijing Normal University Press (BNUP) mathematics curriculum.

A professional document processing utility for bidirectional PDF/OFD conversion and high-fidelity text extraction.

A professional AI-powered engine designed to generate high-converting scripts for TikTok, YouTube Shorts, and Instagram Reels in seconds.

A professional marketing data assistant for Douyin providing competitor analysis, trend tracking, and content suggestions for the smartphone industry.

A professional automation skill for Douyin that handles video uploads, account management, and scheduled publishing via Playwright.

An intelligent interceptor for high-risk file deletion commands that prevents data loss through impact assessment and user confirmation.








































