Skip to content

Instantly share code, notes, and snippets.

@ih0r-d
Last active April 17, 2025 10:53
Show Gist options
  • Save ih0r-d/f976df219d40573302a8b346e8609a02 to your computer and use it in GitHub Desktop.
Save ih0r-d/f976df219d40573302a8b346e8609a02 to your computer and use it in GitHub Desktop.
ChatGPT Prompt Frameworks

Advanced ChatGPT Prompt Frameworks

License: MIT ChatGPT GitHub

Table of Contents

Introduction

This gist offers a curated collection of advanced prompt frameworks, meticulously designed to optimize the performance of ChatGPT across a wide array of tasks. These frameworks are engineered to structure prompts effectively, ensuring that the AI generates responses that are not only clear and comprehensive but also contextually relevant and technically accurate.

Key Features

1. Modular Design

The prompt frameworks are built with a modular architecture, allowing users to easily customize and extend them for specific use cases. Each module addresses different aspects of prompt construction, including context setting, query refinement, and response validation.

2. Context-Aware Structuring

By integrating advanced natural language processing techniques, the frameworks ensure that prompts are contextually aware. This helps in maintaining the continuity of conversations and generating responses that are highly relevant to the preceding context.

3. Query Refinement Algorithms

The frameworks include sophisticated algorithms for refining user queries. These algorithms enhance the clarity and specificity of prompts, reducing ambiguity and improving the precision of the AI’s responses.

4. Comprehensive Response Generation

Leveraging state-of-the-art language models, the frameworks facilitate the generation of detailed and comprehensive responses. This includes support for multi-turn dialogues, complex question answering, and in-depth content creation.

5. Built-In Validation Mechanisms

To ensure the reliability of the AI’s outputs, the frameworks incorporate built-in validation mechanisms. These mechanisms assess the accuracy and relevance of responses, providing feedback for continuous improvement of the prompt structures.

Application of prompts

1. Customer Support

Enhance automated customer support systems by structuring prompts that guide the AI to provide accurate and helpful responses, reducing the need for human intervention.

2. Educational Tools

Develop educational applications that utilize well-structured prompts to generate informative and engaging content, aiding in teaching and learning processes.

3. Content Creation

Facilitate content creation for blogs, articles, and social media by using frameworks that prompt the AI to generate coherent and contextual rich text.

4. Research Assistance

Assist researchers by structuring prompts that help the AI deliver detailed and precise information, supporting various stages of the research process.

5. Interactive Storytelling

Create interactive storytelling experiences by using prompts that guide the AI in generating compelling narratives with consistent character development and plot progression.

Prompt Frameworks

R-T-F

  • Role: Specify the role you want the AI to assume.
  • Task: Define the task you want the AI to perform.
  • Format: Indicate the format in which you want the output.
  • Example:
Act as a software architect. 
Design a scalable microservices architecture for an e-commerce platform. 
Create a diagram outlining the services, data flow, and interactions between components.

S-O-L-V-E

  • Situation: Define the context or situation.
  • Objective: Specify the goals.
  • Limitations: Define any limitations or constraints.
  • Vision: Outline the vision or goal.
  • Execution: Plan the steps for execution.
  • Example:
You are managing a project to redesign the architecture of a legacy system with tight deadlines and limited resources.
Deliver a new software architecture.
Limited resources and tight deadlines.
Create a modern, scalable architecture.
Propose a step-by-step execution plan to transition from the old system to the new architecture.

T-A-G

  • Task: Define the task at hand.
  • Action: State the action needed.
  • Goal: Clarify the goal to be achieved.
  • Example:
Improve the performance of a monolithic application.
Conduct a performance analysis, identify bottlenecks and propose a plan to refactor the application into a microservices architecture.
Achieve better scalability and maintainability.

D-R-E-A-M

  • Define: Define the problem or context.
  • Research: State the research needed.
  • Execute: How to execute the plan.
  • Analyze: How to analyze the results.
  • Measure: Define how to measure the outcomes.
  • Example:
Challenges in scaling a monolithic application.
Potential solutions such as microservices, serverless architecture, and containerization.
Implement a pilot project for one of these solutions.
Performance improvements.
Impact on scalability.

B-A-B

  • Before: Explain the current situation or problem.
  • Action: State the desired outcome or action.
  • Bridge: Ask to bridge the current state to the desired state.
  • Example:
Current monolithic application struggles with scalability issues.
Migrate to a microservices architecture.
Develop a detailed migration plan including steps to ensure data integrity, minimize downtime, and achieve a smooth transition.

P-A-C-T

  • Problem: Define the problem.
  • Approach: Describe the approach.
  • Compromise: Write about potential compromises.
  • Test: Define the test or measurement.
  • Example:
High cost of maintaining a monolithic application.
Migrate to a cloud-native microservices architecture.
Initial migration costs and training requirements.
How to test the new architecture’s effectiveness.

C-A-R-E

  • Context: Give the context.
  • Action: Describe the action needed.
  • Result: Clarify the expected result.
  • Example: Provide an example for clarity.
  • Example:
Launching a new feature that requires a highly available and scalable architecture.
Design a microservices architecture to support this feature.
Architecture can handle a sudden increase in user traffic.
Provide an example of how this architecture can handle a sudden increase in user traffic

F-O-C-U-S

  • Frame: Define the frame or context.
  • Outline: State the outline of steps.
  • Conduct: How to conduct the plan.
  • Understand: How to understand or analyze feedback.
  • Summarize: Summarize the findings.
  • Example:
Requirements for a scalable and fault-tolerant architecture for a financial application.
Steps to design this architecture.
Design process.
Feedback from stakeholders.
Final architecture design and its benefits.

R-I-S-E

  • Role: Specify the role.
  • Input: Describe the input needed.
  • Steps: Could you ask for steps to follow?
  • Expectation: Describe the expectation.
  • Example:
Software architect.
Requirements for a new microservices-based application.
Develop a detailed architecture plan.
Ensure the system is scalable and maintainable.

M-I-N-D-S

  • Map: Define the map or context.
  • Investigate: What to investigate.
  • Navigate: How to navigate through challenges.
  • Develop: How to develop a plan.
  • Sustain: Plan for sustaining efforts.
  • Example:
Current architecture of a legacy application.
Potential challenges in migrating to a microservices architecture.
Propose solutions for these challenges.
Detailed migration plan.
Plan for sustaining the new architecture and ensuring it can handle future requirements.

Examples

Here are some repositories with example prompts and use cases:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment