I have found that it is much better at answering questions if you start with code it wrote instead your own code or someone else's code, so I boil my question down to a simple programming task and start by having it write that code. For example, there were some things I was unsure about with VMs/bytecode interpreters/compilers, so I started my session by asking ChatGPT to write me a simple Forth VM in C and then used that as the jumping off point.
I think naturally some output from AI will be incorrect and this forces people to question the output constantly, so I'm not sure if there is much actual current risk of such a loss of skills
Request quizzes or hints before showing the answer. Have it go through a Socratic dialog style, where you can reply, "Figured it out" to abort.
I think the answer is, you cannot.
John Henry