LogoClawIndex
CasesSkillsAbout
LogoClawIndex

modular-large-file-refactor - Refactor large source files into coherent modules

Refactors oversized source files into smaller modules while reducing complexity and preserving behavior without changing public contracts.

Tags

Updated: 2026-09-16

Capabilities

Typical Inputs

Typical Outputs

What this skill does

  • Find oversized repository files
  • Classify code block responsibilities
  • Extract types constants and helpers
  • Isolate stateful logic into hooks
  • Simplify file entrypoint facade

Inputs

  • Oversized source files
  • scripts/find_large_files.sh script
  • references/splitting-patterns.md document

Outputs

  • Extracted module files
  • Refactored entrypoint facade file
  • Refactor summary description

Requirements

  • Bash runtime environment
  • scripts/find_large_files.sh script

Source

  • Spec: SKILL.md

ClawIndex

OpenClaw Skills & Use Case Index

ClawIndex is an ecosystem-driven index of OpenClaw skills and real-world use cases.

Index

Skills·
Cases

Meta

About·
Disclaimer·
Email·
GitHub
© 2026 ClawIndex All Rights Reserved.
refactoring
modularization
typescript
react
rust
Find oversized repository files
Classify code block responsibilities
Extract types constants and helpers
Isolate stateful logic into hooks
Oversized source files
scripts/find_large_files.sh script
references/splitting-patterns.md document
Extracted module files
Refactored entrypoint facade file
Refactor summary description