463 B
463 B
Skill: refactor-guide
Principle
Refactor by extracting stable, framework-agnostic logic into packages/sdk, then build UI shells in packages/editor.
Steps
- Identify domain concepts (widgets, data sources, canvas, layout).
- Define types and pure operations in
sdk/core. - Implement adapters behind interfaces (storage, network) in
sdk/runtime. - In editor, consume only SDK public APIs.
- Add tests to SDK for every extracted behavior.