One nice thing about the Angular ecosystem is the concept of schematics. It is common and even expected whenever a high-quality library introduces breaking changes, that they include a script that can be run to migrate users to the new version with minimal interaction. The same tools can also be used when installing a library for the first time to scaffold out any boilerplate that is required to get started with the library.
I am interested if anyone has thought about bringing this concept to the Swift ecosystem. I know that Xcode includes some migrations tools - for example, this guide outlines how Xcode can be used to migrate to Swift 4.2. However, as far as I know, this tool is private to Xcode, and cannot be used by developers on other platforms. There also aren't tools available for library developers to do something similar.
I don't know if this kind of tool would be a good fit to include in some existing project, or if it would be its own thing. I think any solution would likely take advantage of SwiftSyntax.