Q.Types of diseases
Some of my plants have been prone to these type of symptoms this year and I would like to know what can cause this type problem so I can prevent it from occurring next year. The symptoms are leaves are getting black spots and then eventually completely dying off however the plant seems to regroup and look healthy for a moment and then it starts all over again mostly my tomatoes and cucumbers and catnip

This leaf spot can be caused by bacteria or fungus issues.
It would help to know the type of plant that you are referencing.
https://www.gardeningknowhow.com/plant-problems/disease/plant-leaf-spots.htm
https://www.gardeningknowhow.com/plant-problems/disease/bacterial-leaf-spot.htm