Refactor shaders to be able to include header files, or use #define like statements to declare what inputs they want to use.
Consider combining all shader stages into a single file.
Have materials/shader assets automatically detect inputs and outputs.