Deep dive · Jump here anytime when you want more on this idea
Write the comment first; let the AI write the code
After this, you'll be able to use Cursor (a free code editor with AI built in) or VS Code with GitHub Copilot to produce a working block of code from a plain-English description, without needing to know any syntax first.
Before you start
Complete Chat Fluency first; this lesson builds on writing specific, context-rich requests that AI can act on.
The idea
You've avoided writing code because you don't know the syntax. That's not a gap you need to close first. Cursor, GitHub Copilot, and similar editors predict the next line of code the same way they predict text: based on the surrounding code in your file. This means you can describe what you want in plain English as a comment, and the tool translates that description into code. No syntax memorization required.
Here is the before and after: without AI completion, you would search online for the syntax, click through several links, copy a snippet, and edit it to match your variable names; the whole process takes 10 to 15 minutes. With AI completion in Cursor, you type a comment like '# Read the CSV at filepath and return a list of rows as dictionaries' and press Tab. The editor predicts the code using your file as context. Always review what it generates before accepting.
Now try it. Open Cursor or VS Code with Copilot, create a new file, and write a comment describing one small thing you want the code to do. Tab accepts the suggestion; Escape rejects it. The exercise below uses Claude's chat as a second path when you want a complete block without opening an editor. Both paths require the same skill: describing what you want precisely enough that the AI can write it.
Try it (10 min)
Watch out for
Paste this into Claude
I want to practice writing the precise comment that makes AI code completion work. My task is [describe what you want to automate: what it does, what goes in, what comes out; be specific]. Write me three things: first, the one-line comment for this function in the format '# [verb] [what it does] from [input] and return [output]'; second, the function signature on the next line; third, the complete function body. Show all three so I understand what a precise comment generates. Then tell me: was my description specific enough to write the comment without guessing, or did you have to fill in details I left out?
What good looks like
When this breaks
You can now
Open Cursor or VS Code with Copilot, paste your comment as a # line in a new file, and press Tab. If the generated code matches what Claude wrote in the chat exercise, your comment is precise enough. If they diverge, your comment was ambiguous. Tighten the input and output names and try again.
Key takeaways
Writing a precise comment is the real skill. AI completion translates your description into working code. The better your description, the better the code.