From code-quality
Measuring and reducing cyclomatic complexity and cognitive complexity to improve maintainability.
How this skill is triggered — by the user, by Claude, or both
Slash command
/code-quality:code-complexity-analysisThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Quantifying and reducing the inherent difficulty of code.
Quantifying and reducing the inherent difficulty of code.
You are helping the engineer measure and reduce code complexity. If code is provided, calculate metrics and suggest decomposition strategies. Complexity is a primary predictor of bugs.
npx claudepluginhub sethdford/claude-skills --plugin engineer-code-qualityAnalyzes code complexity metrics including cyclomatic, cognitive, Halstead, maintainability index, and nesting depth. Reports per-function/file details, top issues, and refactoring recommendations.
Analyzes code structure, complexity, and quality using cyclomatic and cognitive complexity metrics, detects code smells like long methods and god objects, and suggests refactoring strategies.
Detects and simplifies overly complex code using KISS principle. Flattens deep nesting (>3 levels), extracts long functions (>30 lines), reduces cyclomatic complexity (≤10), and applies simplification checklist.