Stack Overflow's version of How to Answer doesn't mention the word "code" once. I'd love to see an excerpt about code-only answers somewhere in there.
I don't know exactly what would belong, so this is mostly boilerplate, but something like this might be fine:
Add more than just code
Code is an essential part of many good answers, but it's not the only essential part. When possible, please pair your code with a detailed explanation, including (but not limited to) what you changed and why you changed it.
/help/gen-ai-policy
, but I wasn't totally sure.