Almond flour is moister than wheat flour and doesn't bind the same way that wheat does. So in many instances, a 1:1 swap doesn't work. You may need to add a little extra almond flour and/or a binding agent, depending on the other ingredients already included in the cookies.