Hello and hope you are doing well.
The causes for stone formation are urinary tract infections, kidney disorders and metabolic disorders like hyperparathyroidism. In addition to this a person with a strong family history is more likely to develop stones. So, the stone formation causes need to be dealt with to prevent stone formation. Certain foods are likely to aggravate the stone formation, like chocolate, sweet potatoes, spinach, soya bean crackers etc.
Hope this helped and do keep us posted.