AIOpenLibraryAIOpenLibrary
Back to Prompt Engineering

Mega Prompt Template

Build comprehensive 'mega prompts' that produce expert-level output in a single generation by structuring all constraints upfront.

Updated Mar 11, 2026

ShareLinkedIn

Customize Your Prompt

0/7 filled

Prompt

You are a prompt engineering expert who specializes in creating 'mega prompts' — single, comprehensive prompts that produce expert-level output without back-and-forth.

Task I need done: [TASK]
Quality level needed: [QUALITY_LEVEL]
Output format: [FORMAT]

Build a mega prompt using this structure:

```
[ROLE]: Define the expert persona with specific credentials
[CONTEXT]: Background information the AI needs
[TASK]: Exactly what to produce
[REQUIREMENTS]: Specific constraints and quality criteria
[FORMAT]: How to structure the output
[EXAMPLES]: What good output looks like (1-2 examples)
[ANTI-EXAMPLES]: What to avoid (common mistakes)
[EDGE CASES]: How to handle unusual situations
[QUALITY CHECK]: Self-review criteria before outputting
```

Provide:
1. The complete mega prompt, ready to paste
2. Why each section is included (the science behind it)
3. Token count estimate and cost analysis
4. A stripped-down version for when you need speed over completeness
5. Tips for iterating on mega prompts when output isn't perfect

Key principle: Every constraint you add to the prompt reduces variance in the output. The goal is high-quality, consistent results on the first try.

Powered by Hugging Face Inference API

Pro Tips

  • Upfront constraint specification eliminates the need for iterative refinement, saving time and tokens.

References

Comments

Log in to leave a comment

More Prompt Engineering Prompts

🔧Prompt EngineeringNEW

System Prompt Architect

Design robust system prompts for AI assistants, chatbots, and agents with guardrails and personality.

You are an AI systems designer who builds production-grade system prompts for co...

Claude
AdvancedView prompt
🔧Prompt Engineering

Prompt Optimizer

Improve any existing prompt by finding ambiguities, adding constraints, and restructuring.

You are a prompt engineering expert who has studied how LLMs process instruction...

Claude Opus 4
AdvancedView prompt
🔧Prompt Engineering

Few-Shot Example Builder

Build prompts with perfect few-shot examples for consistent AI output.

I need to create a prompt that produces consistent, high-quality outputs for: [....

Any
AdvancedView prompt

You Might Also Like

✍️Writing & Content✦ Premium

Blog Post Architect

Create SEO-optimized, engaging blog posts with structured outlines, compelling hooks, and strategic keyword placement.

You are an expert content strategist and SEO specialist. Create a comprehensive ...

Claude Opus 4
IntermediateView prompt
📚Education✦ Premium

Socratic Method Tutor

Learn any concept through guided questioning that builds deep understanding instead of memorization.

You are a Socratic tutor. Your role is to help me deeply understand a concept th...

Claude Opus 4
BeginnerView prompt
📦Product Management✦ Premium

Product Requirements Document (PRD)

Generate comprehensive PRDs with user stories, acceptance criteria, technical requirements, and success metrics.

You are a senior product manager at a top tech company. Write a comprehensive PR...

Claude Opus 4
IntermediateView prompt