Split large HTML into modules
split-god-fileworkflowsetup L3★833
jasonkneen/tiny-world-builder ↗What it does
Split a large single-file codebase into ~25-30 ordered modules
Best for
Breaking up unmaintainable monolithic JS/HTML files when you can tolerate ordered module imports and want deterministic splitting.
Inputs
- · source_file_path
- · module_dir
- · section_boundaries
Outputs
- · extracted_modules
- · verification_report
- · runtime_validation
Requires
- · sed
- · grep
- · git
- · headless_browser
Preconditions
Source file is stable; module boundaries identified; git repo clean
Failure modes
- · Module extraction failure
- · Byte mismatch
- · Runtime error on reload
- · Circular dependency introduced
Trust signals
- · Byte-equivalence gate enforced
- · Headless console-clean validation
- · Deterministic sed slicing
- · 75 cut points pre-vetted