The decompose-file skill helps developers manage technical debt by breaking down monolithic source files that exceed 'agent-friendly' size thresholds. It intelligently parses file structures across multiple languages including TypeScript, Python, Go, Rust, and Java to map internal dependencies and prevent circular imports. Beyond just planning, the skill can automate the entire refactoring process—creating new files, updating cross-project imports, maintaining backward compatibility via re-exports, and running tests to ensure system integrity. This is particularly useful for optimizing codebases for AI-augmented development, where smaller, focused files lead to better agent performance and fewer errors.
주요 기능
01Multi-language AST parsing for accurate decomposition planning
02146 GitHub stars
03Full codebase import rewiring for seamless refactoring execution
04Intelligent dependency mapping to prevent circular import risks
05Integrated test verification to ensure zero-breakage updates
06Automated structural analysis and logical grouping of source code
사용 사례
01Breaking down monolithic service files identified by codebase health audits
02Optimizing files for AI agent context windows by reducing line counts
03Modularizing legacy code to improve readability and maintainability