Back to course
Free Previewbeginner13 min
What Makes a Good Prompt
Use the CREO framework to write prompts that consistently produce high-quality AI output.
## What Makes a Good Prompt
Prompting is a skill. Vague inputs produce vague outputs. Specific, structured prompts unlock the full capability of any LLM.
### The CREO Framework
- **C**ontext — Who are you? What system are you working with?
- **R**ole — Tell the AI what role to play ("You are a senior TypeScript engineer...")
- **E**xample — Show it what good output looks like.
- **O**utput format — Specify exactly what you want back (JSON, markdown, code block, bullet list).
### Bad vs Good Prompt
**Bad:** "Write me a function to parse dates."
**Good:** "You are a senior TypeScript engineer. Write a function `parseISODate(input: string): Date | null` that parses ISO 8601 date strings and returns null for invalid input. Include JSDoc. TypeScript strict mode."