AI Agent System Prompts

A comprehensive, curated collection of production-grade system prompts with analysis and tools

25+
Real-World Prompts
8
Pattern Categories
10+
AI Frameworks

Anatomy of a Great System Prompt

Essential Components

1. Role Definition
Assign a specific role or persona that focuses the AI's behavior and sets appropriate tone. Even a single sentence makes a significant difference.
2. Task Context
Clearly define what the AI should accomplish, including the goal, constraints, and success criteria. Explicit is better than implicit.
3. Instructions & Rules
Provide detailed rules for interaction, output format, and behavior constraints. Use structured formats (XML tags, numbered lists) for clarity.
4. Examples (Few-Shot)
Include 3-5 diverse, relevant examples showing exactly what you want. More examples improve performance on complex tasks.
5. Output Format
Specify exact output structure, format, and style. Be specific about tone, structure, and any special formatting requirements.
6. Tool Definitions
If using tool/function calling, provide clear descriptions of available tools, when to use them, and expected parameters.

Common Mistakes & Anti-Patterns

Vague Instructions
❌ Avoid: "Be helpful" or "Do the right thing". βœ… Instead: Use specific, measurable instructions with examples.
Contradictory Rules
❌ Don't include conflicting constraints. βœ… Prioritize and clearly rank rules if they might conflict.
Assuming Context
❌ Don't assume the AI knows your domain. βœ… Provide necessary background and context explicitly.
Unstructured Prompts
❌ Avoid prose-heavy, hard-to-parse instructions. βœ… Use structured formats (XML, markdown, clear sections).
No Example Output
❌ Don't skip examples. βœ… Always provide concrete examples of desired output.
Oversimplification
❌ Don't oversimplify complex tasks. βœ… Break tasks into steps with clear acceptance criteria.

Best Practices Checklist

  • βœ“ Role is clear and specific (not generic like "helpful assistant")
  • βœ“ Task/goal is explicitly defined with success criteria
  • βœ“ All constraints and limitations are listed
  • βœ“ Output format is precisely specified (structure, style, length)
  • βœ“ Examples demonstrate exact desired behavior (3-5 minimum)
  • βœ“ Complex instructions are structured (numbered, XML tags, tables)
  • βœ“ Tool definitions include purpose, parameters, and when to use
  • βœ“ Priorities are clear if multiple constraints exist
  • βœ“ Edge cases and error handling are mentioned
  • βœ“ Tone/voice guidelines are explicit
  • βœ“ Prompt is tested with sample inputs before deployment
  • βœ“ Version control applied (date, version number, changelog)

Prompt Patterns Explained

ReAct Pattern
Reasoning + Acting: Agent generates verbal reasoning (Thought), takes actions (Action), observes results (Observation), then iterates. Perfect for complex reasoning with external tools. Works well with search, math, and multi-step problems.
Chain-of-Thought
Step-by-Step Reasoning: Agent breaks problems into intermediate steps showing work. Zero-shot variant just adds "think step by step". Few-shot includes examples. Best for logic, math, and reasoning tasks.
Function Calling
Tool Integration: AI decides which tools/functions to call and with what parameters. System prompt defines available tools, parameters, and decision-making logic. Essential for agents that interact with APIs and systems.
Multi-Agent
Specialized Roles: Different agents with specific roles collaborate (e.g., researcher + writer + editor). Each has a specialized prompt. Uses structured communication through documents or messages.
RAG Pattern
Retrieval Augmented Generation: Agent retrieves relevant documents/context before answering. System prompt guides what to search for and how to synthesize results. Critical for knowledge-grounded responses.
Few-Shot Prompting
Learning by Example: Include 3-5 input/output examples in the prompt. Model learns the pattern and applies to new inputs. More examples = better performance on complex tasks.

Build Your Own System Prompt

Generated Prompt (Copy Below)
Your generated prompt will appear here...

Compare Prompts Side-by-Side

Select first prompt to compare
Select a prompt to view details...
Select second prompt to compare
Select a prompt to view details...
Copied to clipboard!