spaghetti-code
CommunityIdentify and refactor messy, hard-to-maintain code structures.
Authorjcoutsousa
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill detects structural issues like overly long functions, deep nesting, and mixed concerns in codebases, helping developers improve code readability and maintainability.
Core Features & Use Cases
- Detect Long Functions: Finds functions exceeding 50 lines across multiple languages such as Dart, Python, Go, Rust, and web frameworks, then suggests refactoring strategies.
- Analyze Widget Build Methods: Identifies overly lengthy build methods in Flutter or similar frameworks and recommends extracting smaller components.
- Identify Deep Nesting and Coupling: Finds excessive nesting levels and tight dependencies, proposing early returns, modularization, and dependency injection.
- Detect God Classes and Excessive Coupling: Flags classes with too many responsibilities or tightly coupled modules for splitting or decoupling.
- Flag Complex Match Chains and Large Impl Blocks: Suggests extraction of functions or splitting large classes for clarity.
- Cross-language Support: Applies analysis rules to Dart, Python, Go, Rust, and JavaScript/TypeScript, highlighting language-specific refactoring tips.
Quick Start
Detect issues in your codebase using this skill to automatically identify long functions, deep nesting, and large classes requiring refactoring, improving maintainability and clarity.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 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: spaghetti-code Download link: https://github.com/jcoutsousa/mobile-monorepo-template/archive/main.zip#spaghetti-code Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.