The six-knob prompt for shipping code — step 8 of 9
A teammate just dropped this in your DMs:
"hey can you write me a delete endpoint for our fastapi route file? use the connection pool we already have. just send me the diff to apply, don't write the migration."
The vague version blows your context window and ships the wrong code. Rewrite it using the four core knobs (context, goal/task, constraints, format) from the six-knob scaffold the curriculum just taught you.
build_prompt is already defined for you. Don't change it. Your
job is to extract the four pieces from the message above and call it
with the right arguments.
The expected output:
context: fastapi route file
goal: add delete handler
constraints: use existing pool, no migration
format: diff only
A teammate just dropped this in your DMs:
"hey can you write me a delete endpoint for our fastapi route file? use the connection pool we already have. just send me the diff to apply, don't write the migration."
The vague version blows your context window and ships the wrong code. Rewrite it using the four core knobs (context, goal/task, constraints, format) from the six-knob scaffold the curriculum just taught you.
build_prompt is already defined for you. Don't change it. Your
job is to extract the four pieces from the message above and call it
with the right arguments.
The expected output:
context: fastapi route file
goal: add delete handler
constraints: use existing pool, no migration
format: diff only
this step needs the editor
on desktop today; in the app (coming soon). save your spot and we'll bring you back here when you're ready.