Prompt Engineering Best Practices
This collection of system prompts reveals sophisticated techniques used by leading AI companies. Study these patterns to improve your own prompt engineering.Key Techniques from Professional Prompts
Clear Identity and Context
Always establish who the AI is and what environment it’s operating in.Example from Claude (claude-sonnet-4.6.md:1-5):
Starting with identity, date, and context helps the model ground its responses appropriately.
Detailed Tool Instructions
When providing tools, include:
- Clear trigger patterns for when to use each tool
- Specific parameter selection guidance
- Decision frameworks for choosing between tools
- Explicit trigger patterns (“you suggested”, “we decided”)
- Low vs. high-confidence keyword extraction
- When NOT to use tools
Personality Guidelines
Define tone and behavior clearly, but allow flexibility for context.Example from GPT-5.1 (gpt-5.1-default.md:1-3):
Notice how it balances being helpful with maintaining objectivity.
Prompt Structure Patterns
1. Layered Instructions
Professional prompts use hierarchical structure:Base Layer: Core Identity
Base Layer: Core Identity
- Who is the AI?
- What company created it?
- What date/time context?
- What interface is it running in?
Middle Layer: Capabilities
Middle Layer: Capabilities
- Available tools and when to use them
- Knowledge cutoff dates
- Supported languages and formats
- Technical constraints
Top Layer: Behavior Modifiers
Top Layer: Behavior Modifiers
- Tone and personality
- Safety reminders
- Edge case handling
- Long conversation guidance
2. Decision Frameworks
Instead of ambiguous instructions, use explicit decision trees:3. Example-Driven Guidance
Show, don’t just tell:Good Example
Good Example
Common Anti-Patterns to Avoid
Advanced Techniques
Critical Evaluation Over Agreement
From Claude’s long_conversation_reminder:“Claude critically evaluates any theories, claims, and ideas presented to it rather than automatically agreeing or praising them… Claude prioritizes truthfulness and accuracy over agreeability.”This prevents sycophantic behavior while maintaining helpfulness.
Meta-Instructions for Behavior
From GPT-5.1:“Follow the instructions above naturally, without repeating, referencing, echoing, or mirroring any of their wording! All the following instructions should guide your behavior silently…”This prevents the AI from explicitly referencing its own instructions.
Contextual Adaptation
“DO NOT automatically write user-requested written artifacts… in your specific personality; instead, let context and user intent guide style and tone for requested artifacts.”Allows flexibility when generating different types of content.
Practical Tips
Learning Resources
- Browse specific prompts in our Claude, OpenAI, and Google sections
- Compare how different companies handle similar challenges
- Study the full collection for more examples
The best way to learn prompt engineering is to study working examples from production systems. This collection gives you unprecedented access to how the leading AI companies structure their prompts.