Split monolithic model file
finish-appmodel-extractionworkflowsetup L3★1
skalthoff/lyrebird ↗What it does
Extract and refactor code into separate files
Best for
Splitting a god-object into extensions while preserving stored properties and passing tests.
Inputs
- · Workflow config
Outputs
- · Structured phase results
Requires
- · Swift compiler
- · File grep/search
Preconditions
- · 2 hard constraints (stored properties unchanged, promotion only when cross-file needed)
- · Must run on shared working tree (no branch switch)
- · Ground-truth facts must be gathered before workflow starts
Failure modes
- · Build fails after refactoring
- · Test suite fails
- · Search/grep matches produce incomplete context
- · Git state mismatch if branch switched mid-run
- · Over-promotion of private members breaks encapsulation
- · Parallel agents produce inconsistent output
Trust signals
- · Adversarial verification phase verifies each finding
- · Parallel agents with deduplication + synthesis