You've learned about the key sections of a powerful system prompt: ASK, CONTEXT, CONSTRAINTS, FORMAT, and EXAMPLE. Now let's practice identifying where different instructions belong.
Engagement Message
Getting this right is the key to building a reliable AI assistant for software development. Ready to start building?
Type
Multiple Choice
Practice Question
You're building a custom AI to help with code reviews. Which section of the system prompt should contain the instruction: "You are an expert software engineer specializing in Python and JavaScript code quality"?
A. ASK B. CONTEXT C. CONSTRAINTS D. FORMAT
Suggested Answers
- A
- B - Correct
- C
- D
Type
Sort Into Boxes
Practice Question
Sort these instructions into the correct system prompt sections.
Labels
- First Box Label: CONSTRAINTS
- Second Box Label: FORMAT
First Box Items
- No code execution
- Avoid deprecated APIs
- Max 300 characters
Second Box Items
- Use markdown blocks
- Include line numbers
- Start with severity
Type
Fill In The Blanks
Markdown With Blanks
Fill in the blanks with the correct system prompt section names.
The [[blank:ASK]] section tells the AI its main job. The [[blank:CONSTRAINTS]] section sets the rules and boundaries. The [[blank:EXAMPLE]] section shows the AI what a good response looks like.
