A complete reference for prompt engineering — from absolute beginner to advanced. Learn how to communicate effectively with AI models like ChatGPT, Claude, Gemini, and more.
Beginner → RTF → CLEAR → Zero/Few-Shot
Intermediate → CO-STAR → RISEN → Cheat Sheet
Advanced → Advanced Techniques → Use Case Guide
| File | Description | Level |
|---|---|---|
| RTF_Framework.md | Role, Task, Format — The simplest starting point. 3 components, immediate results. | Beginner |
| CLEAR_Framework.md | Context, Language, Explicitness, Action, Role — Balanced, general-purpose framework. | Intermediate |
| CO-STAR_Framework.md | Context, Objective, Style, Tone, Audience, Response — Best for writing and communication tasks. | Intermediate |
| RISEN_Framework.md | Role, Instructions, Steps, End Goal, Narrowing — For complex, multi-step professional tasks. | Advanced |
| CREATE_Framework.md | Character, Request, Examples, Adjustment, Type, Extras — Best when examples and output consistency matter. | Intermediate |
| POSTER_Framework.md | Purpose, Objects, Style, Typography, Environment, Ratio — For AI image generation (infographics, thumbnails, posters, mockups). | Intermediate | | SHOT_Framework.md | Scene, How It Moves, Overall Aesthetic, Time & Tone — For AI video generation (Runway, Sora, Pika, Kling). | Intermediate | | SLIDE_Framework.md | Story Arc, Layout, Information, Design, Emphasis — For AI-powered presentation generation (Gamma, Canva, PowerPoint Copilot). | Intermediate | | DOCS_Framework.md | Document Type, Objective, Content Architecture, Style — For generating reports, proposals, SOPs, guides, and PDFs. | Intermediate |
| File | Description | Level |
|---|---|---|
| Zero_One_NShot_Prompt.md | Zero-shot, one-shot, few-shot, and N-shot prompting with practical examples at each level. | Beginner–Advanced |
| Advanced_Prompting_Techniques.md | Chain-of-Thought, Tree of Thought, Self-Consistency, ReACT, Prompt Chaining, Meta-Prompting, and more. | Advanced |
| File | Description | Level |
|---|---|---|
| cheat_sheet_prompt_engineering.md | Complete cheat sheet of all techniques, frameworks, components, and anti-patterns. | All Levels |
| Prompt_Use_Cases.md | Framework decision guide by domain — software dev, writing, business, data, education. | All Levels |
| cheatsheet_qa_logistics.md | Specialized guide for QA engineers in container shipment logistics. | Domain-specific |
| prompt_eng_repos.md | Curated external resources, repositories, courses, and tools. | Reference |
| I want to... | Start here |
|---|---|
| Write my first effective prompt | RTF_Framework.md |
| Get better, more consistent results | CLEAR_Framework.md |
| Write for a specific audience or tone | CO-STAR_Framework.md |
| Handle a complex, multi-step task | RISEN_Framework.md |
| Understand zero-shot vs few-shot | Zero_One_NShot_Prompt.md |
| Improve AI reasoning accuracy | Advanced_Prompting_Techniques.md |
| Choose the right framework | Prompt_Use_Cases.md |
| Get a quick reference card | cheat_sheet_prompt_engineering.md |
| Framework | Components | Best For |
|---|---|---|
| RTF | Role · Task · Format | Quick everyday prompts |
| CLEAR | Context · Language · Explicitness · Action · Role | General-purpose, technical tasks |
| CO-STAR | Context · Objective · Style · Tone · Audience · Response | Writing, emails, marketing, social media |
| RISEN | Role · Instructions · Steps · End Goal · Narrowing | Complex professional tasks, reusable templates |
| CREATE | Character · Request · Examples · Adjustment · Type · Extras | Content creation, structured output with examples |
| RICCE | Role · Instruction · Context · Constraints · Examples | Structured content with examples |
| Chain-of-Thought | Reasoning → Answer | Logic, math, debugging |
| ReACT | Reason → Act → Observe | Agent workflows, retrieval |
| DELTA | Direction · Examples · Limits · Tone · Action | Creative and marketing outputs |
| Prompt Sandwich | Instruction + Content + Reminder | Reinforcing format in long prompts |
This repository serves as a practical, hands-on reference for:
- Learning prompt engineering from scratch
- Improving existing prompts for more consistent results
- Choosing the right framework for any task
- Building reusable prompt templates for teams
- Leveling up from basic to advanced AI communication
git clone https://github.com/PanjatanCoders/prompt_engineering.gitOpen the markdown files in any viewer (GitHub, VS Code, Obsidian, Typora).
Recommended reading order:
- RTF_Framework.md — Start here if you're new
- Zero_One_NShot_Prompt.md — Understand example-based prompting
- CLEAR_Framework.md — Level up your structure
- CO-STAR_Framework.md — For writing and communication
- RISEN_Framework.md — For complex tasks
- Advanced_Prompting_Techniques.md — Master level
- cheat_sheet_prompt_engineering.md — Keep as reference
- dair-ai/Prompt-Engineering-Guide — Comprehensive guide with papers, guides, and notebooks
- microsoft/generative-ai-for-beginners — 21-lesson beginner course
- f/awesome-chatgpt-prompts — Creative and practical ChatGPT prompts
- awesomelistsio/awesome-prompt-engineering — Curated list of tools
Full list: prompt_eng_repos.md
Have a prompt pattern or use case to share? Contributions are welcome! Feel free to open a pull request or suggest improvements.
This project is licensed under the Apache 2.0 License.