code-complexity-analyzer

Solid

Analyze code complexity metrics including cyclomatic complexity, code smells, and technical debt

AI & Automation 814 stars 53 forks Updated today MIT

Install

View on GitHub

Quality Score: 95/100

Stars 20%
97
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Code Complexity Analyzer Skill ## Overview Analyzes code complexity metrics including cyclomatic complexity, cognitive complexity, code smells, duplicate code detection, and technical debt scoring. ## Capabilities - Calculate cyclomatic complexity - Calculate cognitive complexity - Identify code smells - Dependency analysis - Duplicate code detection - Technical debt scoring - Maintainability index calculation - Lines of code metrics ## Target Processes - refactoring-plan - performance-optimization - system-design-review ## Input Schema ```json { "type": "object", "required": ["paths"], "properties": { "paths": { "type": "array", "items": { "type": "string" }, "description": "Paths to analyze (supports glob patterns)" }, "metrics": { "type": "array", "items": { "type": "string", "enum": ["cyclomatic", "cognitive", "loc", "dependencies", "duplicates", "maintainability"] }, "default": ["cyclomatic", "cognitive", "loc"] }, "thresholds": { "type": "object", "properties": { "cyclomatic": { "type": "number", "default": 10 }, "cognitive": { "type": "number", "default": 15 }, "duplicateLines": { "type": "number", "default": 6 } } }, "languages": { "type": "array", "items": { "type": "string" }, "description": "Languages to analyze" } } } ``` ## Output Schema ```json { "type": "object", "properties": { "files"...

Details

Author
a5c-ai
Repository
a5c-ai/babysitter
Created
4 months ago
Last Updated
today
Language
JavaScript
License
MIT

Related Skills