code-metrics

Community

Quantify and improve code quality.

AuthorMekann2904
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill addresses the challenge of objectively assessing and improving the quality of software code by providing quantitative metrics for complexity, cohesion, and test coverage.

Core Features & Use Cases

  • Complexity Analysis: Measures Cyclomatic and Cognitive Complexity to identify difficult-to-understand code sections.
  • Cohesion & Coupling: Analyzes fan-in/fan-out to understand dependencies and module cohesion.
  • Test Coverage: Reports on the percentage of code exercised by tests.
  • Code Duplication Detection: Identifies copy-pasted code segments.
  • Maintainability Index: Provides an overall score for code maintainability.
  • Use Case: A development team can use this skill to identify the riskiest modules in their codebase, prioritize refactoring efforts, and ensure new code meets quality standards before merging.

Quick Start

Analyze the code quality of the 'src/' directory using the code-metrics skill.

Dependency Matrix

Required Modules

eslintradonpmdjscpdcoverage.pyjq

Components

scriptsreferences

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: code-metrics
Download link: https://github.com/Mekann2904/mekann/archive/main.zip#code-metrics

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.