detect-complexity

Community

Spot complex code, keep it maintainable.

Authorfoolishimp
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Overly complex code is a major source of bugs, difficult to test, and expensive to maintain, violating the "Modular & Maintainable" principle. This skill identifies such areas.

Core Features & Use Cases

  • Complexity Analysis: Scans codebase for high cyclomatic complexity, excessively long functions, and deep nesting.
  • Detailed Reporting: Provides a structured report of violations with line numbers, severity, and specific issues.
  • Refactoring Suggestions: Offers concrete, actionable recommendations to simplify identified complex code.
  • Use Case: Run this skill on a new feature branch to identify any functions exceeding a cyclomatic complexity of 10 or having more than 50 lines of code, guiding refactoring efforts before merging.

Quick Start

Detect complexity violations in the current codebase, focusing on functions with cyclomatic complexity above 10.

Dependency Matrix

Required Modules

radonpytest

Components

Standard package

💻 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: detect-complexity
Download link: https://github.com/foolishimp/ai_sdlc_method/archive/main.zip#detect-complexity

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.