Prompt Patterns

A collection of reusable prompt structures to get better results from language models.

Prompt Tester
Test your prompts directly with the Gemini API.
Prompt Optimizer
Refine your prompt to reduce ambiguity and improve clarity.
Persona Pattern
Instruct the AI to act as a specific persona (e.g., 'Act as a world-class software engineer'). This sets the tone and expertise level of the response.

Example

'Act as a travel guide for Paris...'
role-playing
beginner
Recipe Pattern
Provide a structured format for the output. For example, ask for a list of ingredients, steps, and a conclusion.

Example

'Provide a recipe for a chocolate cake with the following sections: Ingredients, Instructions, Pro Tips.'
structured-output
intermediate
Chain-of-Thought Pattern
Pro
Ask the model to 'think step by step' to break down complex problems into smaller, more manageable parts. This often leads to more accurate reasoning.

Example

'If a train leaves station A at 3 PM... Solve this problem by thinking step by step.'
reasoning
advanced