im actually surprised this isint in the game already but its really simple have a project for any planet with an attached shipyard that would send all unused production to the shipyard
it would act the same as setting the social/military slider to 100% military but also the same as a project. meaning i dont have to come back to this planet every time i research a new tech.
so if i set my M/S slider to 50/50 and then choose shipbuilding it would send all production to the shipyard until an upgrade was available and then it would drop back to 50/50