Skip to content

shossain786/prompt_engineering

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Prompt Engineering Cheatsheets & Frameworks

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.


Learning Path

Beginner → RTF → CLEAR → Zero/Few-Shot
Intermediate → CO-STAR → RISEN → Cheat Sheet
Advanced → Advanced Techniques → Use Case Guide

Documents

Core Frameworks

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 |

Prompting Techniques

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

Reference Guides

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

Quick Start by Goal

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

Frameworks at a Glance

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

Purpose

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

Getting Started

git clone https://github.com/PanjatanCoders/prompt_engineering.git

Open the markdown files in any viewer (GitHub, VS Code, Obsidian, Typora).

Recommended reading order:

  1. RTF_Framework.md — Start here if you're new
  2. Zero_One_NShot_Prompt.md — Understand example-based prompting
  3. CLEAR_Framework.md — Level up your structure
  4. CO-STAR_Framework.md — For writing and communication
  5. RISEN_Framework.md — For complex tasks
  6. Advanced_Prompting_Techniques.md — Master level
  7. cheat_sheet_prompt_engineering.md — Keep as reference

Recommended External Resources

GitHub Repositories

Courses & Tutorials

Official Docs

Full list: prompt_eng_repos.md


Contributing

Have a prompt pattern or use case to share? Contributions are welcome! Feel free to open a pull request or suggest improvements.


License

This project is licensed under the Apache 2.0 License.

About

This collection is designed to help developers, educators, and AI enthusiasts understand and apply effective prompt engineering techniques for large language models (LLMs) like GPT

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors