Swift Package plugins for snippets

This tweet is being shared around which shows a code snippet expending based on the currently defined properties of a Codable type. I've only created static code snippets with placeholders. There are limited docs so I have mostly figured it out by trial and error.

I've shared code snippets via GitHub with a script which copies the files in place so that Xcode can use them. Now what would make more sense would be to bring in collections of snippets via Swift Packages. Static snippets with placeholders would be useful. Allowing for accessing the current context of that type like this Codable example would give the Swift community a powerful tool to enhance what we can do with Xcode.

I created XcodeCodeSnippets over 10 years ago for Objective-C. It includes a script to manage these snippets. Adding snippets is done for the local installation so all Xcode projects would be affected. Having snippets collections defined for a package with SPM could limit the scope to just the packages where those snippets are appropriate. Xcode could also bring in snippet collections for all projects/packages for general use snippets.

Should this become a more formal proposal?