To adapt cookie recipes for gluten-free diets, replace wheat flour with gluten-free alternatives such as almond flour, rice flour, or a gluten-free flour blend. It's also important to ensure that other ingredients, such as flavorings and mix-ins, are gluten-free as well.