Claude Code does what you ask, so the quality of the result tracks the quality of the ask. A vague prompt makes Claude guess; a specific one lets it work.
Compare these two:
Fix the script.
In /root/deploy.sh, the rsync command drops the trailing slash on $SRC so it
copies the folder instead of its contents. Fix that line and leave the rest
unchanged.
The second one tells Claude the file, the problem, and the boundary. There is nothing to guess, so the change is small and correct.
A few habits do most of the work:
list_users in the same file"
is worth a paragraph of description.The first response is a draft, not a verdict. Read it, run it, and reply with
what was off. "Close, but it should read the path from $1 instead of
hardcoding it" moves you forward faster than starting over. Working with the
agent is a short back-and-forth, not a single perfect prompt.
Next, how to handle tasks too big for one instruction.
Your lab setup
This VM comes with Claude Code preinstalled and signed in - just run claude to start.