Learn 🧠 All Concepts (20) 🤖 What is an LLM? 📚 RAG Explained ⚡ AI Agents 💻 Run AI Locally 🇮🇳 AI in India 📖 Learn Tracks 🔧 DevOps Track ⚙️ AI Ops Track 🗺️ AI Engineer Roadmap
Tools 🔧 AI Tools Directory 🔓 Open Source AI ⭐ Top GitHub Repos ✦ Claude Skill Repos 🚀 Ready-to-Deploy Projects
Build 🏗️ Build Hub 🎯 Master Prompts 🧩 RAG Agents 🚀 App Megaprompts
Workflows ⚡ All Workflows (22) 🎥 Text to Video 🎞️ Image to Video 🔊 Text to Speech ♻️ Automation
Resources 🧪 Colab Notebooks ⚙️ n8n Workflows 📈 Algo Trading 💰 Passive Income
🗂️ Browse All Topics About AItheGuru
← All prompts // prompt framework

Output Anchoring

Give the AI an example of your ideal output before making the request. It mirrors structure, tone, and depth of your anchor.

Best for: Consistent formatting across many outputs ClaudeChatGPTGeminiAny LLM

The template

Copy this template and fill in the [BRACKETS] with your specifics.

Here is an example of EXACTLY the output I want: --- EXAMPLE START --- [PASTE YOUR IDEAL EXAMPLE] --- EXAMPLE END --- Now do the same for: [YOUR ACTUAL REQUEST] Match the: tone, length, structure, level of specificity, and format.

Other frameworks

🎯

RCTF Framework

Role + Context + Task + Format. The foundation of every good prompt.

🧠

Chain of Thought

Force the model to think step by step before giving an answer.

📋

Few-Shot Prompting

Give 2-3 examples of input → output before your actual request.

📌

XML Tags (Claude-specific)

Claude processes XML tags with higher accuracy. Use tags to separate concerns.

Self-Consistency Check

Ask the AI to verify its own output before delivering it.

🚫

Negative Prompting

Explicitly state what NOT to do — often more effective than positive instructions.

🎯

RGB — Role, Goal, Format

Define the AI role, state the goal, specify the output format. Covers 80% of everyday prompting needs in under 30 seconds.

🔬

CRISPE Framework

Capacity, Role, Insight, Statement, Personality, Experiment — for nuanced expert-level responses.

STAR Prompting

Structure your prompt like a behavioural interview answer. Forces specificity about context, need, and desired outcome.

🧅

PEEL — Point, Evidence, Explain, Link

Makes AI give structured analytical responses: state a point, support with evidence, explain reasoning, link back to question.

👥

Expert Panel Prompting

Ask the AI to simulate a panel of experts with different viewpoints. Forces balanced, multi-perspective analysis.

🚧

Constraint Prompting

Tell AI what NOT to do and what hard limits to respect. Constraints fix most quality problems faster than adding more context.

🏛️

Socratic Prompting

Instead of asking for an answer, ask AI to ask you questions that reveal gaps in your thinking before giving advice.

🔄

Iterative Refinement Protocol

Three-pass system: generate, self-critique, refine. The AI critiques its own output then improves it. Dramatically better results.

🎭

Persona Injection

Describe a persona in detail: beliefs, communication style, vocabulary, what they avoid. AI embodies that persona consistently.

🧩

Task Decomposition Prompting

Ask AI to break complex tasks into steps, confirm the plan with you, then execute step-by-step. Prevents errors on long tasks.

🪜

Prompt Ladder

A prompting methodology: start 1-sentence prompt, layer in role, context, format, constraints until quality is right.