Optimizes source code by removing dead code, consolidating duplicates, and organizing imports to improve maintainability and performance.
The Calab Refactor skill is a specialized component of the Code Assurance Layer for AI Building (calab-plugin) designed to systematically reduce technical debt. It utilizes specialized agents to analyze codebases for unreachable functions, redundant logic patterns, and cluttered import statements. By automating the cleanup process and providing structured refactoring reports, it ensures that your project remains clean, efficient, and aligned with industry best practices without requiring manual code reviews for every minor optimization.
主な機能
01Duplicate logic identification and extraction (DRY optimization)
02Pre-commit code quality validation via automated hooks
03Automated dead code detection and removal
04Intelligent import organization and cleanup
051 GitHub stars
06Comprehensive refactoring reports with diff summaries
ユースケース
01Streamlining developer workflows by automating routine cleanup and formatting tasks before code reviews.
02Legacy codebase modernization by purging unused variables and unreachable code paths.
03Reducing code smells by identifying and consolidating logic repeated across multiple files.