What problem does it solve?
This Skill addresses common code organization issues such as overly complex functions, excessively long files, deep directory nesting, and problematic barrel file exports, leading to more maintainable and understandable codebases.
Core Features & Use Cases
- Complexity Reduction: Identifies and provides strategies to refactor functions with high cyclomatic complexity.
- File Size Management: Offers methods to split large files into smaller, more focused modules.
- Directory Structure Improvement: Guides on flattening deep directory structures for better navigation.
- Barrel File Optimization: Helps in managing and testing barrel file exports effectively.
- Use Case: When a codebase becomes difficult to navigate and debug due to tangled logic and sprawling files, this Skill provides actionable steps to untangle it.
Quick Start
Use the code-organization skill to analyze the current state of the project's directory structure and identify any issues with file size or nesting depth.