prompting cursor and claude code effectively6 / 9
the four-part prompt that actually works
The toy validate function checks that a prompt has at least three
of the four parts before it gets sent to the model. The current
prompt only has two parts and validate rejects it. Add the two
missing keys (constraints and format) so the script prints exactly
ok.
Expected output:
ok
The break is on lines 9, 10 — but read the whole snippet first.
⌘↵ runs the editor.
Booting Python…
Output
[promptdojo:~]$ _