An underrated way to improve your prompt engineering skills, particularly when it comes to code generation, is to open a new thread, paste the code from the previous thread, and ask ChatGPT to explain the code to you.