My pieces of advice are:
1. Be able to recognize errors and fix them.
2. Be able to put ideas into coding and vice versa.
3. Think about how you want it to look, how it looks currently, how you will make it look like what you want, and the tools at your disposal.
Hope this helped!
The best way to do it is to analyze the code blocks. Start by the smaller ones and understand them. Once you do you'll be able to understand bigger ones, and even bigger ones. To the point you'll become the literal second lukalot. And thats how I was able to improve my code skills.