modular-large-file-refactor
Splits oversized files into manageable modules while maintaining existing functionality.
Install
mkdir -p .claude/skills/modular-large-file-refactor && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/10237" && unzip -o skill.zip -d .claude/skills/modular-large-file-refactor && rm skill.zipInstalls to .claude/skills/modular-large-file-refactor
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Refactor oversized source files into smaller, coherent modules while reducing complexity and preserving behavior. Use when Claude needs to split a large component, hook, service, command handler, or Rust module; untangle mixed responsibilities; extract helpers or submodules; or reorganize code into a clearer modular design without changing the public contract.Key capabilities
- →Split large files
- →Extract modules
- →Reduce complexity
- →Preserve behavior
How it works
Identifies responsibilities and extracts logic into focused modules while maintaining public APIs.
Inputs & outputs
When to use modular-large-file-refactor
- →Refactor a 1000-line file
- →Extract helpers into new modules
- →Improve modularity of services
About modular-large-file-refactor
Analyzes large files to identify distinct responsibilities. Guides the extraction of logic into focused modules, improving readability and maintainability without breaking public APIs.
Refactor oversized source files into smaller, coherent modules while reducing complexity and preserving behavior. Use when Claude needs to split a large component, hook, service, command handler, or Rust module; untangle mixed responsibilities; extract helpers or submodules; or reorganize code into
When not to use it
- →Splitting for line count only
Prerequisites
Limitations
- →Do not create utility dumping grounds
How it compares
Optimizes for cognitive load and ownership boundaries rather than arbitrary line counts.
Compared to similar skills
modular-large-file-refactor side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| modular-large-file-refactor (this skill) | 0 | 7mo | Review | Advanced |
| software-architecture | 333 | 10mo | No flags | Intermediate |
| oracle | 17 | 6mo | Review | Intermediate |
| clojure-write | 16 | 6mo | No flags | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
You might also like
software-architecture
davila7
Guide for quality focused software architecture. This skill should be used when users want to write code, design architecture, analyze code, in any case that relates to software development.
oracle
openclaw
Best practices for using the oracle CLI (prompt + file bundling, engines, sessions, and file attachment patterns).
clojure-write
metabase
Guide Clojure and ClojureScript development using REPL-driven workflow, coding conventions, and best practices. Use when writing, developing, or refactoring Clojure/ClojureScript code.
add-uint-support
pytorch
Add unsigned integer (uint) type support to PyTorch operators by updating AT_DISPATCH macros. Use when adding support for uint16, uint32, uint64 types to operators, kernels, or when user mentions enabling unsigned types, barebones unsigned types, or uint support.
cpp-pro
sickn33
Write idiomatic C++ code with modern features, RAII, smart pointers, and STL algorithms. Handles templates, move semantics, and performance optimization. Use PROACTIVELY for C++ refactoring, memory safety, or complex C++ patterns.
python-patterns
affaan-m
Pythonic 惯用法、PEP 8 标准、类型提示以及构建健壮、高效、可维护的 Python 应用程序的最佳实践。