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 |
---|---|---|---|---|
Generate boilerplate code | Generate boilerplate code for an app that [EXPLAIN WHAT YOU NEED THIS APP TO DO]. Please use [EXPLAIN WHAT LANGUAGES AND FRAMEWORKS SHOULD BE USED]. | Text | Software engineering, Boilerplate code, Coding | |
Convert file formats (eg: XML to JSON) | Convert the following [CURRENT FILE FORMAT] file into [NEW FILE FORMAT] format. The response should be enclosed in a code block. [ORIGINAL FILE TO BE CONVERTED] | Text | Software engineering, File conversion | |
Write test cases | Write unit tests for [CASES TO BE TESTED] on the below code snippet. You should follow [UNIT TESTING GUIDELINES TO FOLLOW]. Your tests should be written in [LANGUAGE AND FRAMEWORK TO BE USED]. [CODE YOU WANT TO WRITE TEST CASES FOR] | Text | Software engineering, Test cases, QA | |
Generate documentation | Generate documentation for the code below. You should [LIST ALL YOUR GUIDELINES FOR WHAT THE DOCUMENTATION SHOULD INCLUDE]. [CODE YOU WANT TO GENERATE DOCUMENTATION FOR] | Text | Software engineering, Code documentation | |
Code review | I'm opening a Pull Request with the code below. Write a code review for it, focusing on [WHAT THE CODE REVIEW SHOULD FOCUS ON]. [CODE YOU WANT TO BE REVIEWED] | Text | Software engineering, Code review | |
Pick names for variables and functions | Please suggest relevant names for my variables and functions in the below code, and rewrite the whole code snippet using your suggestions. The response should be enclosed in a code block. [CODE WITH VARIABLES/FUNCTIONS TO BE RENAMED]. | Text | Software engineering, Naming | |
Find bugs in code | Please find the bug in the code below. This is what it should be doing: [REQUIREMENTS TO BE FULFILLED] Code: [CODE WHERE YOU WANT TO FIND BUGS] | Text | Software engineering, Bug fixing | |
Explain code | Explain the code below. Make sure to include explanations to each line, each function, and to the overall code snippet. [CODE YOU WANT TO BE EXPLAINED] | Text | Software engineering, Coding | |
Refactor code | Rewrite the following code using [LANGUAGE, FRAMEWORK, AND ANY OTHER PREFERENCES FOR THE REFACTORED CODE]. [CODE YOU WANT TO BE REFACTORED] | Text | Software engineering, Code refactoring | |
Comment code | Comment the code below. Make sure your comments are clear and follow [YOUR PREFERRED CODE COMMENTING STANDARDS]. Your response should be displayed inside a code block. [CODE YOU WANT TO BE COMMENTED] | Text | Software engineering, Code commenting | |
Train Time Series | Act as a data scientist and code for me. I have a time series dataset [describe dataset]. Build a machine learning model that predicts [target variable]. Use [time range] as train and [time range] as validation. | Text | Time Series Analysis, Machine Learning, Python | |
Explore Data | Act as a data scientist and code for me. I have a dataset of [describe dataset]. Write code for data visualisation and exploration. | Text | Data Visualization, Data Exploration, Python | |
Get Feature Importance | Act as a data scientist and explain the model’s results. I have trained a decision tree model and I would like to find the most important features. Write the code. | Text | Feature Importance, Python, Machine Learning | |
Automatic Machine Learning | Act as an automatic machine learning (AutoML) bot using TPOT for me. I am working on a model that predicts [...]. Write python code to find the best classification model with the highest AUC score on the test set. | Text | AutoML, TPOT, Machine Learning, Python | |
Tune Hyperparameter | Act as a data scientist and code for me. I have trained a [model name]. Write the code to tune the hyperparameters. | Text | Hyperparameter Tuning, Machine Learning, Python |