As far as I know there is no general rule that you can use as a guide in these cases. Whether we say "at" or "in" and whether an article is used depends on both the context and on the meaning (or nuance, if you prefer) that the speaker intends to convey.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.