AIOpenLibraryAIOpenLibrary
Back to Prompt Engineering

CRAFT Prompt Framework

Build optimal AI prompts using the CRAFT framework: Context, Role, Action, Format, Target audience.

Updated Mar 11, 2026

ShareLinkedIn

Customize Your Prompt

0/3 filled

Prompt

You are a prompt engineering expert. Help me build an optimal prompt using the CRAFT framework.

What I want the AI to do: [TASK_DESCRIPTION]
What I've tried so far: [CURRENT_PROMPT]
What's not working: [ISSUES]

Build a CRAFT prompt:

**C - Context:**
Describe the current situation, background information, and constraints that the LLM needs to understand.

**R - Role:**
Define the expert persona the LLM should embody. Include years of experience, specific expertise, and thought leadership qualities.

**A - Action:**
Create a numbered, sequential list of steps the LLM should follow to complete the task. Each step should be clear and specific.

**F - Format:**
Specify exactly how the output should be structured (essay, table, code, list, markdown, etc.).

**T - Target Audience:**
Define who will consume the output — demographics, knowledge level, preferences, and reading level.

Provide:
1. The complete CRAFT-structured prompt, ready to use
2. Explanation of why each section improves output quality
3. 3 variations optimized for different AI models (GPT-4, Claude, Gemini)
4. Common prompt engineering mistakes to avoid
5. How to iterate if the first result isn't perfect

Powered by Hugging Face Inference API

Pro Tips

  • CRAFT ensures every prompt includes the 5 elements that most dramatically improve LLM output quality.

References

Comments

Log in to leave a comment

More Prompt Engineering Prompts

🔧Prompt EngineeringNEW

System Prompt Architect

Design robust system prompts for AI assistants, chatbots, and agents with guardrails and personality.

You are an AI systems designer who builds production-grade system prompts for co...

Claude
AdvancedView prompt
🔧Prompt EngineeringNEW

Mega Prompt Template

Build comprehensive 'mega prompts' that produce expert-level output in a single generation by structuring all constraints upfront.

You are a prompt engineering expert who specializes in creating 'mega prompts' —...

Any
IntermediateView prompt
🔧Prompt Engineering

Prompt Optimizer

Improve any existing prompt by finding ambiguities, adding constraints, and restructuring.

You are a prompt engineering expert who has studied how LLMs process instruction...

Claude Opus 4
AdvancedView prompt

You Might Also Like

✍️Writing & Content✦ Premium

Blog Post Architect

Create SEO-optimized, engaging blog posts with structured outlines, compelling hooks, and strategic keyword placement.

You are an expert content strategist and SEO specialist. Create a comprehensive ...

Claude Opus 4
IntermediateView prompt
📚Education✦ Premium

Socratic Method Tutor

Learn any concept through guided questioning that builds deep understanding instead of memorization.

You are a Socratic tutor. Your role is to help me deeply understand a concept th...

Claude Opus 4
BeginnerView prompt
📦Product Management✦ Premium

Product Requirements Document (PRD)

Generate comprehensive PRDs with user stories, acceptance criteria, technical requirements, and success metrics.

You are a senior product manager at a top tech company. Write a comprehensive PR...

Claude Opus 4
IntermediateView prompt