Agent skill · data analytics · aj-geddes

code-metrics-analysis

Analyze code complexity, cyclomatic complexity, maintainability index, and code churn using metrics tools. Use when assessing code quality, identifying refactoring candidates, or monitoring technical debt.

Why this skill is useful

Provides specific implementations and tools for analyzing code metrics that the AI wouldn't reliably generate on its own.

What it needs

Requires eslint, radon, typescript installed locally. About 1k tokens when loaded. Last updated 2026-03-04. 307 stars on the source repository.

What this skill does

Code Metrics Analysis Table of Contents Overview When to Use Quick Start Reference Guides Best Practices Overview Measure and analyze code quality metrics to identify complexity, maintainability issues, and areas for improvement. When to Use Code quality assessment Identifying refactoring candidates Technical debt monitoring Code review automation CI/CD quality gates Team performance tracking Legacy code analysis Quick Start Minimal working example: Reference Guides Detailed implementations in the references/ directory: Guide Contents --- --- TypeScript Complexity Analyzer TypeScript Complexity Analyzer Python Code Metrics (using radon) Python Code Metrics (using radon) ESLint Plugin for Complexity ESLint Plugin for Complexity CI/CD Quality Gates CI/CD Quality Gates Best Practices ✅ DO Monitor metrics over time Set reasonable thresholds Focus on trends, not absolute numbers Automate metric collection Use metrics to guide refactoring Combine multiple metrics Include metrics in code reviews ❌ DON'T Use metrics as sole quality indicator Set unrealistic thresholds Ignore context and domain Punish developers for metrics Focus only on one metric Skip documentation

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills aj-geddes/code-metrics-analysis

View the source on GitHub

Browse the @skills marketplace