Black-Belt PromptingModule 1

1.1The CO-STAR Framework

25 min 2 code blocks Practice Lab Homework Quiz (5Q)

The CO-STAR Framework: Structural Integrity in Prompting

The CO-STAR framework is the industry standard for architecting professional-grade instructions. It ensures that no critical context-variable is omitted, leading to deterministic and scalable outputs.

🏗️ The CO-STAR Decomposition

InitialComponentDescription
CContextThe background information/system state.
OObjectiveThe specific, atomic task to be performed.
SStyleThe writing style or professional persona.
TToneThe emotional resonance of the output.
AAudienceThe specific demographic reading the output.
RResponseThe technical format (JSON, MD, Table).
Technical Snippet

Technical Snippet: The CO-STAR Template

yaml
Context: I am an Institutional Principal auditing a PKR 100M+ revenue brand.
Objective: Analyze the provided 'Abandoned Cart' email for psychological triggers.
Style: Senior CRM Specialist, data-first, punchy.
Tone: Direct, authoritative, diagnostic.
Audience: The brand's CEO who values ROI over fluff.
Response: A 3-point bulleted list of "Leaks" and a 1-sentence "Quick Win" fix.
Practice Lab

Practice Lab: Refactoring Legacy Prompts

Take a "Legacy" (Standard) prompt: "Write a pitch for an SEO service."

Refactor it using CO-STAR:

  1. Context: You are a Boutique SEO Agency owner.
  2. Objective: Draft a 3-sentence email pitch focused on "Revenue Gap" discovery.
  3. Style: Minimalist, high-status.
  4. Tone: Helpful but busy.
  5. Audience: A founder of a Shopify store with 10k+ SKU.
  6. Response: Email format with a clear binary CTA.

Analysis: Observe how the refactored output removes the "begging" vibe of standard pitches and replaces it with "Institutional Authority."

📺 Recommended Videos & Resources

  • [CO-STAR Prompting Framework — Quick Reference] — One-line breakdown of all 6 components with real examples.

    • Type: Free Resource / Documentation
    • Search YouTube for: "CO-STAR prompting framework tutorial" or visit industry blogs on prompt engineering
  • [Anthropic's Prompt Engineering Guide] — Official guide on structuring prompts for Claude, covers context setting.

    • Type: Documentation
    • Link description: anthropic.com/research/prompt-engineering
  • [Advanced Prompting Techniques — Lilian Weng] — Deep dive into architectural patterns for LLM prompts.

    • Type: Article / Research
    • Search for: "Lilian Weng prompt engineering" on her Waymark blog
  • [Pakistani AI Community — Prompt Engineering Masterclass] — Local examples using PKR pricing and Karachi business scenarios.

    • Type: YouTube / Community Workshop
    • Search for: "AI Cafe Pakistan prompt engineering" or similar local AI communities

🎯 Mini-Challenge

5-Minute Task: Refactor a basic request into CO-STAR format.

Take this weak prompt:

"Write an email to a business owner about our SEO service."

Expand it using CO-STAR:

  • Context: You are a boutique agency owner in Karachi with 50+ happy clients.
  • Objective: Generate a cold email specifically mentioning slow LCP on their website.
  • Style: Minimalist, high-status.
  • Tone: Helpful but not begging.
  • Audience: E-commerce founder with 10k+ SKU.
  • Response: Plain text email, 3 paragraphs, binary CTA.

Challenge: Run both versions through Claude or Gemini and screenshot the difference in tone/authority.

🖼️ Visual Reference

code
📊 [CO-STAR Framework Flow]
┌──────────────────────────────────────────────┐
│  INPUT: Weak/Generic Request                 │
└────────────────┬─────────────────────────────┘
                 │
         ┌───────▼──────────┐
         │ ADD CO-STAR      │
         │ Components       │
         │                  │
         │ C: Context       │
         │ O: Objective     │
         │ S: Style         │
         │ T: Tone          │
         │ A: Audience      │
         │ R: Response      │
         └───────┬──────────┘
                 │
┌────────────────▼──────────────────────────────┐
│ OUTPUT: Deterministic, High-Quality Response  │
│         (Institutional Authority)              │
└──────────────────────────────────────────────┘
Homework

Homework: The Multi-Variable Command

Construct a CO-STAR prompt for a Content Repurposing task. It must take a 1,000-word article and generate a 10-slide Instagram Carousel outline. Each slide must have a "Visual Prompt" and "Caption" field.

Lesson Summary

Includes hands-on practice labHomework assignment included2 runnable code examples5-question knowledge check below

Quiz: The CO-STAR Framework: Structural Integrity in Prompting

5 questions to test your understanding. Score 60% or higher to pass.