Other than just looking at other recipes and copying them.
As a cook, I look at recipes as suggestions. I pull from this and that recipe for ideas, then wing-it based upon taste and experience.
I'm not much of a baker. Cakes and such. You really have to copy the recipes. There's a lot of chemistry going on, and it's unwise to wing-it.
The exception being bread. Yeast bread can fail if you simply follow the recipe. Humidity, flour density, temperature, and other factors can affect the dough. I honestly don't know how much flour I use when I make bread. I measure all the other ingredients, but not the flour. I do it by feel. Literally.
With beer, I started off by following recipes. As I tried different styles, I got a feel for how the ingredients interact.
Mostly now I wing-it. If I want to try making something new, I'll google up a dozen recipes and compare and contrast. Then I'll create something that draws upon what I know I like and ignores what I know I don't like.