The Prompt Library is an innovative tool offering a curated collection of free text, image, and video prompts across various domains. Designed for seamless execution on generative AI platforms like ChatGPT, Bard, Claude, and others, it’s a go-to resource for enhancing AI interactions and creativity.
Prompt Name | Prompt | Type | Category | Actions |
---|---|---|---|---|
Unit Test Writing for Function | Act as an expert programmer in [PROGRAMMING LANGUAGE]. Write unit tests for the function [FUNCTION NAME]? [INSERT INSTRUCTIONS, IF ANY] [INSERT CODE] | Text | Unit Testing, Quality Assurance, Programming | |
Code Translation Between Languages | Act as an expert programmer in [PROGRAMMING LANGUAGE]. Translate the following code in [PROGRAMMING LANGUAGE] to [ANOTHER PROGRAMMING LANGUAGE]. [INSERT CODE] | Text | Code Translation, Language Proficiency, Programming | |
Code Simplification Task | Act as an expert programmer in [PROGRAMMING LANGUAGE]. Simplify the following code while ensuring that it is [EFFICIENT / READABLE]? [INSERT CODE] | Text | Code Refactoring, Efficiency, Programming | |
Code Optimization Request | Act as a code optimizer in [PROGRAMMING LANGUAGE]. [DESCRIBE PROBLEM WITH THE CODE]. Can you make the code [CLEANER/RUN FASTER/MORE READABLE]? [INSERT CODE] | Text | Code Optimization, Performance, Readability | |
Function Explanation in Programming | Act as an Expert Coder in [PROGRAMMING LANGUAGE]. I don't understand this function. Can you please explain what it does, and provide an example? [INSERT FUNCTION] | Text | Code Explanation, Education, Programming | |
Programming Language Error Analysis | Act as a [PROGRAMMING LANGUAGE] programmer. Here is a piece of [PROGRAMMING LANGUAGE] code representing [PROBLEM STATEMENT][INSERT CODE SNIPPET] I am getting the following error [INSERT ERROR]. What is the reason for the bug? | Text | Programming, Debugging, Error Analysis | |
Draft Legal Documents | I need to draft a terms of service document for my new e-commerce website. Can you help me create a draft that covers all necessary legal points in clear language? | Text | Legal |