Size Check & Code Slimmer

•
772
•

Optimizes code maintainability by scanning for excessive file lengths, redundant logic, and over-abstracted patterns.

Size Check is a comprehensive code quality utility designed to keep projects lean and maintainable. It automatically monitors file line counts across multiple languages—including Java, Python, and Vue—identifying redundant logic or over-engineered abstractions while suggesting intelligent refactoring strategies. By enforcing a strict 'refactor-safety' protocol, the skill ensures that splitting oversized files or extracting CSS into stylesheets never breaks existing functionality or exports, making it an essential tool for developers managing growing codebases and technical debt.

主要功能

01Automated line count scanning with language-specific thresholds (e.g., 200 lines for Vue/TSX).
02Refactor-safety protocol to ensure data structure and interface consistency after splitting.
03Identification of redundant code, over-abstraction, and unused imports for immediate cleanup.
04Project-wide auditing with detailed reports and actionable split/refactor suggestions.
05Intelligent CSS extraction for long inline styles and non-scoped global styles.
06772 GitHub stars

使用场景

01Enforcing architectural standards by automatically flagging files that exceed team-defined size limits.
02Breaking down 'God objects' or bloated components in React and Vue projects into manageable sub-modules.
03Auditing a legacy codebase to identify and remove dead code and redundant logic branches.