modular-refactoring-pattern

Community

Keep code under 300 LOC with modular refactoring.

Authorj0KZ
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill promotes a modular architecture approach to keep individual files under 300 LOC by extracting constants, helpers, and utilities.

Core Features & Use Cases

  • File size and complexity guidance to trigger extraction
  • Extraction patterns for constants, helpers, and utilities
  • Step-by-step refactoring workflow with minimal disruption
  • Real-world guardrails to prevent duplication

Quick Start

Identify long files, create a constants/ and helpers/ structure, move magic numbers and complex logic into extracted modules.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: modular-refactoring-pattern
Download link: https://github.com/j0KZ/mcp-agents/archive/main.zip#modular-refactoring-pattern

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository