Collection of prompt engineering challenges to enhance your AI prompting skills
Prompt Challenges is a collection of challenges designed to help you improve your AI prompt engineering skills. Similar to how the Type Challenges project explores the TypeScript type system, Prompt Challenges encourages you to master effective AI prompting techniques through practice.
Challenges are categorized by difficulty levels:
- 🟢 Easy: Entry-level prompt tasks suitable for beginners
- 🟡 Medium: Requires some prompt engineering experience and techniques
- 🔴 Hard: Complex prompt tasks that require deep understanding of AI model behavior
- 🟣 Extreme: Highly challenging tasks requiring advanced prompt engineering skills and innovative thinking
- Text Summarization - Create concise and comprehensive text summaries
- Sentiment Analysis - Accurately identify the sentiment of a text
- Format Conversion - Convert text from one format to another
- Role Playing - Design expert role prompts
- Reverse Thinking - Solve problems through reverse reasoning
- Instruction Following - Ensure the model strictly follows complex instructions
- Chain of Thought - Guide the model through multi-step reasoning
- Prompt Injection Defense - Prevent malicious prompt hijacking
- Counterfactual Reasoning - Reason logically in hypothetical scenarios
- Self-Improving Prompt - Create prompts that can self-optimize
- Adversarial Q&A - Design prompts that can handle adversarial questions
- Zero-Shot Tool Use - Make models learn to use new tools without examples
- Browse the challenge list
- Choose a challenge that interests you
- Read the requirements and write your prompt
- Test your prompt with the appropriate AI model
- Submit your solution to share with the community
- GPT-4.1 Prompting Guide
- Prompt Engineering
- Prompt Engineering Guide
- OpenAI Prompt Engineering Best Practices
- AI Prompting Patterns
- Fork this repository
- Create a new challenge file in the
questions
directory - Follow the format of existing challenges
- Submit a Pull Request
- Find a challenge you want to solve
- Write your prompt solution
- Share your solution in the discussion area of the corresponding challenge
Goal: Write a prompt that enables AI to accurately summarize any long text into 3-5 key points.
Requirements:
- Summaries must contain the main points of the original text
- Each key point must not exceed 15 words
- Be objective and not add information not present in the original text
Prompt Template:
[Your prompt]
Text: {text content}
MIT