code-metrics

Analyze Python repositories to produce maintainability, complexity, and test-coverage metrics.

Updated Feb 11, 2026
One-click install
npx skills add https://github.com/RecursiveIntell/ClawGuard --skill code-metrics
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-metrics
Source: https://github.com/RecursiveIntell/ClawGuard/tree/main/tests/fixtures/supply_chain_timebomb
Command: npx skills add https://github.com/RecursiveIntell/ClawGuard --skill code-metrics

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Code quality assessment often requires manual, inconsistent reviews across codebases. This skill provides automated metrics and a clear report to standardize code quality evaluation.

Core Features & Use Cases

  • Cyclomatic complexity analysis to identify hotspots and optimize paths
  • Maintainability index calculation to guide refactoring decisions
  • Lines of code statistics and test coverage integration for project health
  • Use Case: teams can generate CI-ready reports showing quality trends across modules

Quick Start

Run the code-metrics tool on a repository to generate a full metrics report.

Frequently Asked Questions about code-metrics

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I measure code maintainability and complexity across a multi-file repository?

To measure code maintainability and complexity across a multi-file repository, you can run automated static analysis to calculate cyclomatic complexity, lines of code statistics, and the maintainability index, producing a clear metrics report for your project.

How do I generate CI-ready code quality reports for my Python project?

You can generate CI-ready code quality reports by running static analysis within your CI pipeline, which evaluates your Python project environment to quantify code quality issues and output maintainability and test-coverage insights.

What is cyclomatic complexity analysis used for in code quality evaluation?

Cyclomatic complexity analysis in code quality evaluation identifies hotspots in your software project to help optimize paths and guide refactoring decisions, standardizing the assessment of code maintainability.

Do I need Python 3 to run static analysis and calculate project health metrics?

Yes, you need Python 3 to run static analysis and calculate project health metrics, as the analysis requires pluggable modules to load and run within your specific project environment.

How do I integrate test coverage data with lines of code statistics for a project health report?

You integrate test coverage with lines of code statistics by applying static analysis to your repository, which combines the data to produce maintainability insights and standardized project health metrics.

What's the best way to standardize code quality evaluation without manual reviews?

The best way to standardize code quality evaluation without manual reviews is applying automated static analysis to your codebase, which consistently quantifies code quality issues and generates clear metrics reports.