How to Write a System Prompt (With Examples)
Custom instructions and system prompts explained with templates you can reuse.
A system prompt sets who the AI is and how it answers in every message. Write it once, reuse it forever.
The structure
Role, audience, rules, output format, and what to do when information is missing.
Template
You are a [role] helping [audience]. Always: [rules]. Never: [limits]. Answer in [format]. If unsure, ask one clarifying question.
Test it
Run 5 typical requests and 2 edge cases. Tighten any rule the AI ignores.
Keep going: Claude prompts · Prompt optimizer.
Keep Reading
Claude vs ChatGPT: Why Your Prompts Need to Be Different for Each
Same prompt, wildly different results. Here's how to optimize for each model's unique strengths.
The Complete Prompt Engineering Guide for 2026
Everything that changed in prompting after GPT-5, Claude 4, and Gemini 3. The patterns that still work, and the ones that don't.
How to Write AI Prompts for Developers (Code That Compiles)
Stop pasting Stack Overflow. Use these prompt patterns to ship features 4x faster with fewer hallucinations.
Best AI Prompts for Data Analysts (SQL, Python, Dashboards)
Schema-aware SQL generation, exploratory analysis prompts, and exec-summary writers.