That is a long answer, and one I am learning about all the time. Genetics help, but there are things needed for any herd. Good adequate shelter with ventilation, room to move, hopefully good browse, and if you are lucky somewhere to rotate. Quality hay including a good legume like alfalfa or lespedeza. Good quality loose minerals !!!!! (I keep a good quality and generic available free choice), kelp and rock/sea salts are great in addition if you can afford it. The girls need baking soda, the boys need ammonium chloride in their feed, and both benefit from apple cider vinegar in their water. I have a custom feed mixed up that includes extra vitamins a yeast called Citristim, minerals, a zinc additive,a extra A D &E vitamins. I increase the fat oil and protein and putting whole roasted soybeans when they're in milk and then I dropped the protein and fat back when they're dry. my vet who raises goats also recommens putting de in the feed Regular grooming feet and lice treatment (I use a pour on once a month down their back and back the other way with a soap bottle like from the kitchen on adults only one direction on kids, but I recently heard of an alternative that I need to study from Southernbychoice on backyardherds). I am hoping to get some big rocks soon for them to climb around on help with their feet. then you really should monitor of course for parasites. My vet does not recommend asset worming schedule but rather attention to each animal and its needs especially with the growing resistance to wormers. I am going to be including sicerea lespedeza in my goat's diet because they have proven it helps prevent worms. Etc. etc. even things like extra copper and multimin 90 excetera
there is a whole nother list of things for kids especially if you're raising them on the bucket and things you can do to help prevent coccidia which just tears them up