code-shorters

Detect, classify, and refactor long code files across multiple languages.

Updated Jan 29, 2026
One-click install
npx skills add https://github.com/Develata/Deve-Skills --skill code-shorters
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-shorters
Source: https://github.com/Develata/Deve-Skills/tree/main/My-Skills/code-shorters
Command: npx skills add https://github.com/Develata/Deve-Skills --skill code-shorters

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

Large, monolithic code files across Rust, Python, C++, JavaScript, and Markdown can be hard to maintain, measure, and refactor; code-shorters automates modularization and restructuring to improve readability and maintainability.

Core Features & Use Cases

  • Scans repositories to count lines (including comments), detects language by extension and content, and classifies files into warning (130-249 lines) or critical (≥250 lines) categories.
  • Validates Git environment before performing changes, then sequentially triggers language-specific sub-skills to refactor files while preserving behavior.
  • Generates a prioritized plan and visualization reports, and can batch-refactor multiple files across languages in one pass.

Quick Start

Run the main dispatcher to analyze a repository and automatically refactor long files by delegating to language-specific sub-skills.

Frequently Asked Questions about code-shorters

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate code modularization for large monolithic files in my repository?

Automate code modularization by scanning your repository to detect long files, classify them by line count, and delegate refactoring to language-specific sub-skills. This process preserves behavior while splitting monolithic code into manageable modules across Rust, Python, C++, JS, and MD.

What is the best way to identify and prioritize which long files need refactoring?

Identify long files by counting lines including comments, detecting language by extension, and classifying them into warning (130-249 lines) or critical (250+ lines) categories. Optional lint-based complexity analysis results drive prioritized scheduling for batch processing.

Can I batch-refactor long files across multiple programming languages in one pass?

Yes, you can batch-refactor long files across multiple languages in one pass. The dispatcher sequentially triggers language-specific sub-skills to refactor Rust, Python, C++, JavaScript, and Markdown files while preserving behavior and generating a prioritized plan.

Does code modularization work with my existing Git repository and maintain integrity?

Code modularization requires a local Git repository and validates the Git environment before performing changes. It ensures Git integrity checks are applied during sequential refactoring, preserving behavior while restructuring files.

What reports or visualizations are generated during automated code refactoring?

Automated code refactoring generates a prioritized plan and visualization reports. These outputs map the classified warning and critical files, providing a clear overview of batch refactoring tasks across the detected languages.

When should I not use automated code modularization at scale?

Avoid automated code modularization when your project lacks a local Git repository, contains unsupported file extensions, or requires manual architectural decisions beyond splitting files based on line count thresholds and optional complexity analysis.