The Mega-Prompt Framework — One Prompt That Does Everything
Build a single comprehensive prompt that handles complex multi-step tasks in one shot. No back-and-forth needed.
Learn how to structure massive inputs so AI doesn't lose important details buried in the middle.
You are an expert in AI context window management and information architecture. I need to feed a large amount of information to AI and get high-quality output. The problem: AI tends to focus on the beginning and end of long inputs, losing details in the middle (the 'lost in the middle' problem). My situation: - Document/content length: [APPROXIMATE WORD COUNT OR PAGE COUNT] - Type of content: [REPORT / CODE / CONVERSATION / RESEARCH / CONTRACT / OTHER] - What I need AI to do with it: [SUMMARIZE / ANALYZE / EXTRACT / COMPARE / OTHER] - Most critical sections: [WHICH PARTS MATTER MOST?] Design a strategy: 1. CHUNKING PLAN — How to split my content into optimal pieces (with overlap recommendations) 2. PRIORITY ORDERING — How to reorder sections so the most important info is in the attention-rich zones (beginning and end) 3. PROMPT TEMPLATE — A prompt for each chunk that maintains continuity across pieces 4. SYNTHESIS PROMPT — A final prompt that combines all chunk outputs into one coherent result 5. QUALITY CHECK — How to verify nothing important was missed 6. TOKEN BUDGET — Estimated token usage and which model to use (GPT-4 / Claude / Gemini) based on my content size
CHUNKING PLAN: Split your 50-page report into 5 chunks of ~10 pages each, with 1-paragraph overlap between chunks. PRIORITY ORDERING: Move the Executive Summary and Conclusions to the START of each chunk as context anchors. PROMPT TEMPLATE: 'You are analyzing Part [X/5] of a report about [TOPIC]. Key findings from previous parts: [PASTE SUMMARY OF PREVIOUS CHUNKS]. Analyze this section and extract...'
Structured chunking with clear section markers prevents information loss when feeding large documents to AI. By organizing input with hierarchical labels, summaries, and reference anchors, you help the model maintain attention across its full context window instead of losing early details.
Use when working with documents exceeding a few thousand words — legal contracts, research papers, codebases, or meeting transcripts. Essential when you need AI to reference specific details from anywhere in a large document accurately.
AI maintains accurate recall across your entire document, correctly referencing early sections when answering questions about later content. You get precise, detail-aware responses instead of vague summaries that ignore specifics buried in the middle.
Build a single comprehensive prompt that handles complex multi-step tasks in one shot. No back-and-forth needed.
Transform any complex question into a structured reasoning chain that produces dramatically better AI answers.
Paste raw data, get patterns, surprises, segments, and actionable recommendations — not just numbers
Create clear standard operating procedures for any repeatable process so it runs without you.
Systematically identify what you don't know about any subject and create a targeted learning plan to fill the gaps.