Framework Deep Dive

The COSTAR Framework Guide: How to Engineer High-Precision Prompts

Stop wrestling with shallow or irrelevant AI responses. Master the 6 core pillars of the scientific COSTAR framework.

By MoTekLab Research•6 min read•Updated v2.1.6

Why Prompts Fail Without Structure

Large Language Models (like GPT-4o, Claude 3.5, and Gemini 1.5) are probabilistic reasoners. When you feed them a brief, ambiguous request like "write a marketing plan", the model has to guess your business model, target audience, budget, and desired tone. It invariably picks the most generic average response possible.

LetterElementCore Question It Answers
CContext (السياق)What is the background situation & setting?
OObjective (الهدف)What exact task or goal must be achieved?
SStyle (الأسلوب)How should information be structured? (Table, bullets, report)
TTone (النبرة)What voice and attitude? (Professional, witty, warm)
AAudience (الجمهور)Who will consume this output?
RResponse (المخرج النهائي)What constraints, word limits, or rules apply?
Practical Master Example

Marketing Campaign Launch Prompt

Context:
We are a family-style Mediterranean restaurant in Cairo. We launched our second branch last month and want to increase weekend dinner reservations.

Objective:
Create 3 seasonal social media campaign concepts designed to increase advance reservations by 25%.

Style:
Organized comparison table containing: (Campaign Name, Target Channel, Core Hook, and Estimated Ad Budget).

Tone:
Warm, hospitable, authentic, and family-oriented.

Audience:
Families and couples aged 28-50 residing in the metropolitan area.

Response:
A structured table followed by a 4-step weekly launch checklist. Avoid jargon.
Compatible with: ChatGPT, Claude, Gemini, GroqOpen in Fahhim Workshop

How Fahhim Automates This for You

Typing out every framework attribute manually becomes tedious. Fahhim is built specifically to streamline this process: you choose your framework (COSTAR, ICDF, MICRO, RCR-EOC), fill in the guided prompts in English, Classical Arabic, or Egyptian slang, and Fahhim compiles a production-grade prompt ready to paste or share in 1 second.

Build your next prompt with Fahhim

100% Free • Private & Local-First • No Sign-up Required

المرجع العربي الكامل لإطار COSTAR في هندسة الأوامر (Prompt Engineering)

يمثل إطار COSTAR معياراً عملياً لتحويل أي طلب غامض إلى أمر برمجي دقيق يفهمه نموذج الذكاء الاصطناعي من المرة الأولى دون الحاجة لإعادة المحاولة عدة مرات. تتكون الكلمة من ستة عناصر مترابطة تعمل معاً لضبط السياق وجودة الإجابة:

  • C - Context (السياق): تعريف خلفية المشروع والمنتج والظروف المحيطة بالمهمة بدقة.
  • O - Objective (الهدف): تحديد النتيجة النهائية المطلوبة من النموذج في جملة واضحة ومحددة.
  • S - Style (الأسلوب): تحديد أسلوب الكتابة مثل أسلوب مهندس برمجيات خبير أو كاتب إعلانات مباشر.
  • T - Tone (النبرة): ضبط نبرة الصوت بين الرسمية والأكاديمية والودية أو اللهجة المصرية العامية.
  • A - Audience (الجمهور): وصف الفئة المستهدفة ومستوى خبرتها لتحسين اختيار المفردات والأمثلة.
  • R - Response (شكل المخرجات): فرض تنسيق محدد مثل جدول Markdown أو كود TypeScript أو خطوات مرقمة.
مثال تطبيقي جاهز: "السياق: نطلق دورة تدريبية أونلاين لتعليم تحليل البيانات للمبتدئين في مصر. الهدف: اكتب ثلاث رسائل تسويقية قصيرة للإعلان على فيسبوك. الأسلوب: مقنع ومباشر يركز على حل مشكلة البحث عن عمل. النبرة: عامية مصرية احترافية خالية من المبالغة. الجمهور: خريجو الجامعات الجدد. المخرجات: جدول يوضح العنوان والنص الأساسي والدعوة لاتخاذ إجراء لكل إعلان."

انتقل إلى دليل صياغة البرومبت بالعامية المصرية أو مكتبة برومبتات التسويق لتجربة قوالب COSTAR مباشرة.