Swift Build Ecosystem (Compile Time Code Execution, Build Management)

Have you seen the draft proposal for extensible build tools? What you're suggesting seems like it could be solved by a combination of that proposal + maybe some add-on workflow features to help run specific tools (like linters) when you want to that aren't a core part of building your actual product.