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
refactoringmodularizationtypescriptreactrust

Capabilities

Find oversized repository filesClassify code block responsibilitiesExtract types constants and helpersIsolate stateful logic into hooks

Typical Inputs

Oversized source filesscripts/find_large_files.sh scriptreferences/splitting-patterns.md document

Typical Outputs

Extracted module filesRefactored entrypoint facade fileRefactor summary description

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.