Mega Prompt
---
title: Mega Prompt Framework
category: frameworks
tags: [mega-prompt, system-prompt, comprehensive, structured]
difficulty: advanced
models: [claude, gpt-4, gemini, mistral]
---
# Mega Prompt Framework
Build comprehensive, multi-section system prompts that give LLMs complete
context, constraints, and behavioral guidelines in a single structured prompt.
## When to Use
- Designing system prompts for production AI applications
- Building complex chatbot or agent personas
- Creating reusable prompt templates for teams
- Any task requiring precise, repeatable LLM behavior
- Reducing prompt iteration cycles by front-loading requirements
## The Technique
A mega prompt consolidates role, context, task instructions, output format,
constraints, and examples into one structured document. Each section eliminates
a category of failure. The key insight is that LLMs follow instructions more
reliably when every expectation is explicit and organized.
## Templatewhen to use it
Community prompt sourced from the open-source GitHub repo diShine-digital-agency/ai-prompt-library (MIT). A "Mega Prompt" style prompt — adapt the placeholders and specifics to your task. Imported as-is and not independently retested here, so check the output before relying on it.
tags
roleplaycommunitygeneral
source
diShine-digital-agency/ai-prompt-library · MIT