I might start with reading a few articles/posts by people like Kenji, Greenspan, et al.
So, something along these lines...https://www.seriouseats.com/recipes/2013/12/the-food-lab-best-chocolate-chip-cookie-recipe.html
Or this, from NPR...Cookie-Baking Chemistry: How To Engineer Your Perfect Sweet Treat
Or some Cook's Illustrated stuff...but I don't think they let you read much for free.
Often in an article, the writer points you to a good book.
And there's always the library to investigate when you have suggestions.
I have a soft spot for Nick Malgieri, so...(eG-friendly Amazon.com link)