Writing the First Prompt
Writing the first version of a project prompt applies everything you have learned across the course. This topic provides a step-by-step approach to writing a solid first draft.
10 min•By Priygop Team•Updated 2026
First Prompt Writing Process
First Prompt Writing Process
# Step-by-step first prompt writing process
def write_first_prompt(task_definition):
"""
Apply the full prompt engineering framework to
write a strong first draft for any project task.
"""
# STEP 1: Define the task clearly
role = "You are [RELEVANT EXPERT FOR THIS TASK]."
task = "Your task: [CLEAR ACTION VERB + SPECIFIC OUTPUT]."
# STEP 2: Add context
context = """
Context: [BACKGROUND INFORMATION].
The audience is: [SPECIFIC AUDIENCE].
This will be used for: [PURPOSE].
"""
# STEP 3: Give an example if useful
example = """
Example of the style/format I want:
[ONE CLEAR EXAMPLE IF APPLICABLE]
"""
# STEP 4: Add requirements
requirements = """
Requirements:
- Length: [SPECIFIC LENGTH]
- Tone: [SPECIFIC TONE]
- Format: [SPECIFIC FORMAT]
- Avoid: [ANY CONSTRAINTS]
"""
# STEP 5: Specify the output format
output_format = "Output format: [TABLE / LIST / PARAGRAPHS / JSON]"
# STEP 6: Add self-review
self_review = """
Self-check before finalizing:
1. Is the [KEY CRITERION 1] met?
2. Is the [KEY CRITERION 2] met?
Revise if not.
"""
# Assemble the prompt:
first_draft = f"{role}\n{task}\n{context}\n{requirements}\n{output_format}\n{self_review}"
return first_draft
print("Start with the task and context. Add the rest as needed.")
print("The first draft does not need to be perfect. It needs to be testable.")Diagram
Loading diagram…
Deep Learning ⊂ Machine Learning ⊂ Artificial Intelligence
Key Takeaways
- Use the Role, Task, Context, Requirements, Output Format, Self-Review structure
- Not every element is needed for every prompt; include what is relevant
- The first draft should be testable, not perfect
- Write the task instruction first, then add context and constraints
- A structured first draft is easier to improve than an unstructured one
Key Takeaways
- Writing the first version of a project prompt applies everything you have learned across the course.
- Use the Role, Task, Context, Requirements, Output Format, Self-Review structure
- Not every element is needed for every prompt; include what is relevant
- The first draft should be testable, not perfect