System Prompt
# Lesson 02 - Giving the Model a Role
## What Question Are We Answering?
**"Why does the same model behave differently?"**
You've probably noticed that LLMs can act like different personas - technical expert, creative writer, helpful assistant. How does that work?
## What You Will Build
A script that uses **system prompts** to:
- Assign the model a specific role
- Stabilize its behavior
- Control tone and format
## New Concepts Introduced
### 1. System Prompts
A **system prompt** is an instruction that shapes how the model responds. It's like giving someone a role before a conversation.
Example system prompts:when to use it
Community prompt sourced from the open-source GitHub repo pguso/agents-from-scratch (MIT). A "System Prompt" style prompt — adapt the placeholders and specifics to your task. Imported as-is and not independently retested here, so check the output before relying on it.
tags
writingcommunitygeneral
source
pguso/agents-from-scratch · MIT
more in Writing
Writing✓ tested
Explain anything to a smart friend
great teacher who refuses to dumb things down
Writing✓ tested
Line-edit my draft (keep my voice)
sharp copy editor who tightens without flattening
Writing✓ tested
Outline a long piece before you write it
editor who structures the argument before a word is drafted