Mithilesh kumar commited on
Commit ·
af66d50
0
Parent(s):
feat: professional prompt engineering pack v2.0 release
Browse files- .gitattributes +1 -0
- CONTRIBUTING.md +51 -0
- LICENSE +21 -0
- README.md +103 -0
- datasets/dataset.json +74 -0
- datasets/prompts.jsonl +18 -0
- generate_pack.py +206 -0
- images/art_feature.png +3 -0
- images/coding_feature.png +3 -0
- images/cover_banner.png +3 -0
- prompts/ai-art/README.md +74 -0
- prompts/business/README.md +32 -0
- prompts/career/README.md +21 -0
- prompts/coding/README.md +164 -0
- prompts/health/README.md +22 -0
- prompts/learning/README.md +25 -0
- prompts/marketing/README.md +64 -0
- prompts/productivity/README.md +28 -0
- prompts/prompt-engineering/README.md +129 -0
- prompts/real-world-use-cases/README.md +54 -0
.gitattributes
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
*.png filter=lfs diff=lfs merge=lfs -text
|
CONTRIBUTING.md
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Contributing to the Ultimate Prompt Engineering Pack
|
| 2 |
+
|
| 3 |
+
First off, thank you so much for wanting to contribute! 🎉
|
| 4 |
+
|
| 5 |
+
I started this project because I wanted a reliable, high-quality place to find prompts that actually work. With your help, we can make this the best open-source dataset out there for fine-tuning models and supercharging our daily workflows.
|
| 6 |
+
|
| 7 |
+
## 📌 What Makes a Good Prompt? (Our Quality Standards)
|
| 8 |
+
|
| 9 |
+
I want to keep the quality bar pretty high. Before submitting a prompt, please make sure it hits these points:
|
| 10 |
+
|
| 11 |
+
1. **It solves a real problem**: We don't need another "write a poem about a cat" prompt. We need prompts that save time, write better code, or generate stunning assets.
|
| 12 |
+
2. **It uses real techniques**: Did you use Few-Shot? Role-playing? Chain of Thought? Let's see those advanced techniques in action.
|
| 13 |
+
3. **It's easy to use**: Use clear, uppercase brackets for the stuff people need to swap out (e.g., `[INSERT YOUR TOPIC HERE]`).
|
| 14 |
+
4. **It's unique**: Give the existing categories a quick glance to make sure we don't already have something too similar.
|
| 15 |
+
|
| 16 |
+
## 📝 How to Format Your Submission
|
| 17 |
+
|
| 18 |
+
When you're adding a new prompt, please format it like this in the JSON structure:
|
| 19 |
+
|
| 20 |
+
```json
|
| 21 |
+
{
|
| 22 |
+
"id": "category-uniqueid",
|
| 23 |
+
"category": "marketing",
|
| 24 |
+
"title": "Clear Title of Prompt",
|
| 25 |
+
"instruction": "The actual prompt text with [VARIABLES].",
|
| 26 |
+
"template": "Variable 1: [VARIABLE 1]\nVariable 2: [VARIABLE 2]",
|
| 27 |
+
"difficulty": "Beginner | Intermediate | Advanced | Expert",
|
| 28 |
+
"best_model": "e.g., GPT-4o, Claude 3.5 Sonnet, Midjourney v6",
|
| 29 |
+
"use_case": "Brief description of when to use this",
|
| 30 |
+
"tags": ["tag1", "tag2", "tag3"]
|
| 31 |
+
}
|
| 32 |
+
```
|
| 33 |
+
|
| 34 |
+
## 📂 Category Quick Rules
|
| 35 |
+
|
| 36 |
+
Just some general vibes for the different categories:
|
| 37 |
+
* **Coding & Dev**: Make sure it follows good software engineering practices. No spaghetti code prompts!
|
| 38 |
+
* **Prompt Engineering**: This is for the meta stuff—ToT, ReAct, agent loops. Show off how to steer the LLM.
|
| 39 |
+
* **AI Art**: Always include the aspect ratios (`--ar`), camera parameters, or stylization weights if it's Midjourney.
|
| 40 |
+
* **Real-World Use Cases**: Think SaaS, automation, enterprise workflows, etc.
|
| 41 |
+
|
| 42 |
+
## 🛠️ Step-by-Step Contribution Guide
|
| 43 |
+
|
| 44 |
+
1. **Fork the Repo** (whether you're on Hugging Face or GitHub).
|
| 45 |
+
2. **Add your prompt** to the `generate_pack.py` script. This script is our "source of truth".
|
| 46 |
+
3. **Run the script** (`python generate_pack.py`). This will magically update all the Markdown files and the JSON/JSONL datasets for you!
|
| 47 |
+
4. **Submit a Pull Request**. Just write a quick sentence or two about what your prompt does and maybe share a cool output it generated.
|
| 48 |
+
|
| 49 |
+
By contributing, you agree that your awesome prompts will be licensed under the MIT License and included in this public dataset for everyone to use and learn from.
|
| 50 |
+
|
| 51 |
+
Thanks again for helping out! Let's build something awesome.
|
LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
MIT License
|
| 2 |
+
|
| 3 |
+
Copyright (c) 2026 Mithilesh
|
| 4 |
+
|
| 5 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 6 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 7 |
+
in the Software without restriction, including without limitation the rights
|
| 8 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 9 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 10 |
+
furnished to do so, subject to the following conditions:
|
| 11 |
+
|
| 12 |
+
The above copyright notice and this permission notice shall be included in all
|
| 13 |
+
copies or substantial portions of the Software.
|
| 14 |
+
|
| 15 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 16 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 17 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 18 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 19 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 20 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 21 |
+
SOFTWARE.
|
README.md
ADDED
|
@@ -0,0 +1,103 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# 🚀 The Ultimate Prompt Engineering Pack (v2.0)
|
| 2 |
+
|
| 3 |
+

|
| 4 |
+
|
| 5 |
+
[](https://huggingface.co/datasets/CodeWithMith/ultimate-prompt-engineering-pack)
|
| 6 |
+
[](https://opensource.org/licenses/MIT)
|
| 7 |
+
|
| 8 |
+
Hey everyone! 👋 Welcome to the **Ultimate Prompt Engineering Pack**.
|
| 9 |
+
|
| 10 |
+
I built this because I honestly got tired of seeing the same basic "write me a blog post" prompts being shared everywhere. I wanted to put together a single, open-source collection of truly high-performance prompts—the kind that use actual prompt engineering techniques (like Chain of Thought, ReAct, and Few-Shot) to get the absolute best results out of tools like ChatGPT, Claude, and Midjourney.
|
| 11 |
+
|
| 12 |
+
Whether you're a developer trying to refactor messy code, a founder writing pitch decks, or just someone having fun with AI art, you'll find something useful here.
|
| 13 |
+
|
| 14 |
+
## 📑 Table of Contents
|
| 15 |
+
1. [What's Inside?](#-whats-inside)
|
| 16 |
+
2. [Folder Layout](#-folder-layout)
|
| 17 |
+
3. [How to Use This](#-how-to-use-this)
|
| 18 |
+
4. [For the Devs: Training-Ready Datasets](#-for-the-devs-training-ready-datasets)
|
| 19 |
+
5. [Supported Models](#-supported-models)
|
| 20 |
+
6. [What's Next?](#-whats-next)
|
| 21 |
+
7. [Contributing](#-contributing)
|
| 22 |
+
|
| 23 |
+
## 🌟 What's Inside?
|
| 24 |
+
|
| 25 |
+
I've broken the prompts down into a bunch of practical categories:
|
| 26 |
+
- **💻 Coding & Dev**: Code refactoring, bug hunting, generating unit tests.
|
| 27 |
+
- **🧠 Prompt Engineering**: Advanced stuff like CoT, ToT, Self-Critique, and ReAct agent loops.
|
| 28 |
+
- **📚 Learning**: The Feynman Technique and deep-dive conceptual learning.
|
| 29 |
+
- **✍️ Content Writing**: Viral threads and SEO-optimized blogs.
|
| 30 |
+
- **🎨 AI Art**: Crazy detailed Midjourney, DALL-E, and Flux templates.
|
| 31 |
+
- **🚀 Business & Marketing**: SWOT analysis, PAS frameworks, customer personas.
|
| 32 |
+
- **🤖 Real-World Use Cases**: SaaS support agents and automation logic.
|
| 33 |
+
- **💼 Career & Health**: Resume optimization and customized macro plans.
|
| 34 |
+
|
| 35 |
+
Every prompt comes with difficulty levels, the best model to use, and easy copy-paste templates!
|
| 36 |
+
|
| 37 |
+
## 📁 Folder Layout
|
| 38 |
+
|
| 39 |
+
If you're cloning this repo, here's how I set it up:
|
| 40 |
+
|
| 41 |
+
```txt
|
| 42 |
+
/prompts
|
| 43 |
+
/coding
|
| 44 |
+
/business
|
| 45 |
+
/marketing
|
| 46 |
+
/ai-art
|
| 47 |
+
/career
|
| 48 |
+
... (and more)
|
| 49 |
+
/datasets
|
| 50 |
+
dataset.json <-- Grab this for LoRA/Fine-tuning!
|
| 51 |
+
prompts.jsonl <-- Best for automated pipelines.
|
| 52 |
+
/images
|
| 53 |
+
preview.png
|
| 54 |
+
README.md
|
| 55 |
+
CONTRIBUTING.md
|
| 56 |
+
LICENSE
|
| 57 |
+
```
|
| 58 |
+
|
| 59 |
+
## 🛠️ How to Use This
|
| 60 |
+
|
| 61 |
+
### Just want to copy/paste?
|
| 62 |
+
1. Jump into the `prompts/` folder and pick whatever category you're working on.
|
| 63 |
+
2. Open the `README.md` inside that folder.
|
| 64 |
+
3. Grab the **Prompt** text.
|
| 65 |
+
4. Swap out the `[BRACKETED_PLACEHOLDERS]` with your actual details.
|
| 66 |
+
5. Drop it into your favorite AI and watch it work.
|
| 67 |
+
|
| 68 |
+
*Example:*
|
| 69 |
+
**Prompt:** Explain Quantum Computing as if I am a 10-year-old...
|
| 70 |
+
**AI Output:** Imagine you have a magical coin. A normal coin is either heads or tails. But this magic coin, while it's spinning in the air, is kind of heads AND tails at the same time...
|
| 71 |
+
|
| 72 |
+
## 📊 For the Devs: Training-Ready Datasets
|
| 73 |
+
|
| 74 |
+
If you're looking to train your own models, I've got you covered. Check out the `datasets/` folder.
|
| 75 |
+
I've formatted all of these prompts and high-quality mock outputs into `dataset.json` (array format) and `prompts.jsonl` (JSON Lines format).
|
| 76 |
+
|
| 77 |
+
They are clean, structured, and completely ready to be dropped into a LoRA fine-tuning pipeline.
|
| 78 |
+
|
| 79 |
+
## 🤖 Supported Models
|
| 80 |
+
|
| 81 |
+
I've tested these prompts pretty heavily across the big players:
|
| 82 |
+
* **Text/Code:** ChatGPT (GPT-4o), Claude 3.5 Sonnet / Opus, Gemini 1.5 Pro
|
| 83 |
+
* **Images:** Midjourney v6, DALL·E 3, Stable Diffusion (SDXL), Flux
|
| 84 |
+
|
| 85 |
+
## 🔮 What's Next?
|
| 86 |
+
|
| 87 |
+
I have some big plans for this pack:
|
| 88 |
+
* Scaling up to **500+ premium prompts**.
|
| 89 |
+
* Building a **custom fine-tuned model** specifically for prompt generation.
|
| 90 |
+
* Releasing a **Hugging Face Space App** to generate these on the fly.
|
| 91 |
+
* Creating an API service.
|
| 92 |
+
|
| 93 |
+
## 🤝 Contributing
|
| 94 |
+
|
| 95 |
+
This is a community effort! If you've got a killer prompt that always works for you, I'd love to see it.
|
| 96 |
+
Check out [CONTRIBUTING.md](CONTRIBUTING.md) to see how you can add it to the pack.
|
| 97 |
+
|
| 98 |
+
## 📜 License
|
| 99 |
+
|
| 100 |
+
MIT License - go crazy with it! See the LICENSE file for details.
|
| 101 |
+
|
| 102 |
+
---
|
| 103 |
+
*Created with ❤️ by Mithilesh Kumar | v2.0*
|
datasets/dataset.json
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"instruction": "Act as a Senior Software Engineer. Refactor the following code for better readability, performance, and adherence to DRY principles. Explain the time and space complexity optimizations.\n\n```python\n[CODE_SNIPPET]\n```",
|
| 4 |
+
"output": "Here is the refactored code using a list comprehension, which is more Pythonic and slightly faster:\n\n```python\ndef calc(n):\n return [i for i in range(n) if i % 2 == 0]\n```\n\n**Time Complexity**: O(N) - We still iterate through `n` elements once.\n**Space Complexity**: O(N) - The resulting list contains N/2 elements."
|
| 5 |
+
},
|
| 6 |
+
{
|
| 7 |
+
"instruction": "Act as a Lead Security Engineer. Analyze this code for potential vulnerabilities (SQL Injection, XSS, CSRF, etc.). Provide a detailed report and a secure version of the code.\n\n```javascript\n[CODE_SNIPPET]\n```",
|
| 8 |
+
"output": "**Vulnerability Found: SQL Injection (SQLi)**\n\nThe code directly concatenates user input (`req.query.id`) into the SQL query string. An attacker could pass `1 OR 1=1` to expose all users.\n\n**Secure Code (Using Parameterized Queries):**\n```javascript\napp.get('/user', (req, res) => {\n db.query('SELECT * FROM users WHERE id = ?', [req.query.id], (error, results) => {\n // handle results\n });\n});\n```"
|
| 9 |
+
},
|
| 10 |
+
{
|
| 11 |
+
"instruction": "Write comprehensive unit tests for the following function using [TESTING_FRAMEWORK]. Include happy paths, edge cases, and expected exceptions. Ensure maximum coverage.\n\n```\n[CODE_SNIPPET]\n```",
|
| 12 |
+
"output": "```python\nimport pytest\nfrom my_module import divide\n\ndef test_divide_happy_path():\n assert divide(10, 2) == 5.0\n\ndef test_divide_negative_numbers():\n assert divide(-10, 2) == -5.0\n assert divide(-10, -2) == 5.0\n\ndef test_divide_by_zero():\n with pytest.raises(ZeroDivisionError):\n divide(10, 0)\n```"
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"instruction": "Act as a Database Architect. Design a relational database schema for a [APP_DESCRIPTION]. Provide the SQL `CREATE TABLE` statements, identify Primary and Foreign Keys, and suggest appropriate indexes for performance.",
|
| 16 |
+
"output": "Here is the schema for the e-commerce platform:\n\n```sql\nCREATE TABLE Users (\n id UUID PRIMARY KEY,\n email VARCHAR(255) UNIQUE NOT NULL,\n created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP\n);\n\nCREATE TABLE Products (\n id UUID PRIMARY KEY,\n name VARCHAR(255) NOT NULL,\n price DECIMAL(10, 2) NOT NULL\n);\n\n-- Recommended Indexes\nCREATE INDEX idx_users_email ON Users(email);\n```"
|
| 17 |
+
},
|
| 18 |
+
{
|
| 19 |
+
"instruction": "Solve the following problem. Before giving the final answer, show your step-by-step reasoning process. Think out loud, explain each deduction, and break down your logical steps clearly. Problem: [PROBLEM]",
|
| 20 |
+
"output": "Let's break this down step-by-step:\n1. John starts with 5 apples.\n2. He buys 3 more. 5 + 3 = 8 apples total.\n3. He gives half of his total to Mary. Half of 8 is 4.\n4. Therefore, John keeps 8 - 4 = 4 apples.\n\n**Final Answer:** John has 4 apples left."
|
| 21 |
+
},
|
| 22 |
+
{
|
| 23 |
+
"instruction": "You are an expert AI Architect. Your task is to write a highly detailed 'System Prompt' that configures an AI to act as a [ROLE]. Include their persona, rules, constraints, and output formatting instructions.",
|
| 24 |
+
"output": "```text\n**Role**: You are Lexi, a Senior Legal Tech Assistant.\n**Persona**: Professional, precise, and highly analytical.\n**Rules**:\n1. NEVER provide definitive legal advice (always include a disclaimer).\n2. Cite relevant case law jurisdiction when asked.\n3. Keep responses under 3 paragraphs unless summarizing a document.\n**Output Format**: Use markdown headers for 'Summary', 'Key Clauses', and 'Risk Analysis'.\n```"
|
| 25 |
+
},
|
| 26 |
+
{
|
| 27 |
+
"instruction": "Generate a solution for [TASK]. Once generated, critique your own work by identifying at least 3 potential flaws, biases, or weaknesses. Finally, provide a revised version that addresses these criticisms.",
|
| 28 |
+
"output": "**Initial Draft**: Hi, we are a marketing agency. We can boost your sales. Call us!\n\n**Critique**:\n1. Too generic, lacks personalization.\n2. No clear value proposition or social proof.\n3. The Call to Action is too aggressive.\n\n**Revised Draft**: Hi [Name], noticed [Company] is launching a new product. We helped [Competitor/Similar Co] increase conversions by 20% using targeted ads. Open to a 5-min chat next Tuesday?"
|
| 29 |
+
},
|
| 30 |
+
{
|
| 31 |
+
"instruction": "Answer the following question using the ReAct framework. Use the format:\nThought: [Your reasoning]\nAction: [The tool or action to take, e.g., Search(query)]\nObservation: [The result of the action]\n... (Repeat until you have the answer)\nThought: I now know the answer.\nFinal Answer: [Answer]\nQuestion: [QUESTION]",
|
| 32 |
+
"output": "Thought: I need to find out who the current CEO of Microsoft is.\nAction: Search(Microsoft current CEO)\nObservation: Satya Nadella is the CEO of Microsoft.\nThought: Now I need to find Satya Nadella's age.\nAction: Search(Satya Nadella age)\nObservation: Satya Nadella was born on August 19, 1967 (age 56 years).\nThought: I now know the answer.\nFinal Answer: The current CEO of Microsoft is Satya Nadella, and he is 56 years old."
|
| 33 |
+
},
|
| 34 |
+
{
|
| 35 |
+
"instruction": "A hyper-realistic cinematic portrait of [SUBJECT], detailed skin texture, dramatic rim lighting, shot on 85mm lens, f/1.8, bokeh background, 8k resolution, highly detailed, masterpiece --ar 16:9 --style raw --v 6.0",
|
| 36 |
+
"output": "[Midjourney generates a stunning, photorealistic 8k image of an elderly cyberpunk mechanic. The depth of field is incredibly shallow, completely blurring the neon city background.]"
|
| 37 |
+
},
|
| 38 |
+
{
|
| 39 |
+
"instruction": "Minimalist vector logo for a [COMPANY_TYPE] named '[COMPANY_NAME]', featuring a [SUBJECT], flat colors, clean lines, white background, corporate identity, dribbble style --no text, realistic details --ar 1:1",
|
| 40 |
+
"output": "[Flux returns a super clean, flat-color vector logo of a cloud and gear interlocking. The white background makes it look perfectly corporate and ready for a pitch deck.]"
|
| 41 |
+
},
|
| 42 |
+
{
|
| 43 |
+
"instruction": "An adorable isometric 3D render of a [ROOM_TYPE], [COLOR_PALETTE] color palette, soft clay render style, tilt-shift, bright ambient occlusion, blender, octane render, trending on artstation --ar 4:5",
|
| 44 |
+
"output": "[DALL-E 3 generates an absolutely adorable, pastel-colored 3D isometric bedroom layout. The lighting feels like a soft clay render, exactly as asked!]"
|
| 45 |
+
},
|
| 46 |
+
{
|
| 47 |
+
"instruction": "Write a compelling 1-page Executive Summary for a business plan. The company is [COMPANY_NAME], providing [PRODUCT/SERVICE] to [TARGET_MARKET]. Highlight the problem, solution, monetization strategy, and a 3-year vision.",
|
| 48 |
+
"output": "**Executive Summary: EcoDrive**\n\n**The Problem**: Urban EV owners lack accessible charging infrastructure at home.\n**The Solution**: EcoDrive installs and manages scalable EV charging hubs in apartment parking garages.\n**Monetization**: Subscription model for residents + revenue share with building management.\n**3-Year Vision**: Expand to 500+ buildings across 3 major metropolitan areas."
|
| 49 |
+
},
|
| 50 |
+
{
|
| 51 |
+
"instruction": "Write a high-converting email campaign for [PRODUCT] using the AIDA framework:\n- **Attention**: Catchy hook.\n- **Interest**: Fascinating facts/benefits.\n- **Desire**: Emotional appeal and FOMO.\n- **Action**: A clear, low-friction CTA.",
|
| 52 |
+
"output": "**Subject:** Silence the chaos. Focus on what matters.\n\n**Attention**: Barking dogs? Lawn mowers? Kids playing? Remote work is loud.\n**Interest**: Meet the Zenith Headset. It uses an onboard AI chip to filter out 99.8% of background noise before it ever reaches your microphone.\n**Desire**: Imagine presenting to the CEO with crystal-clear audio, completely stress-free. No more apologizing for the noise.\n**Action**: [Pre-order today] and get 20% off for the next 24 hours."
|
| 53 |
+
},
|
| 54 |
+
{
|
| 55 |
+
"instruction": "Create a comprehensive SEO-optimized outline for a blog post titled '[TITLE]'. Include a meta description, an H1, multiple H2s and H3s, and indicate where to naturally inject these keywords: [KEYWORDS].",
|
| 56 |
+
"output": "**Meta Description**: Master the art of communicating with AI. Learn the best ChatGPT tips, LLM frameworks, and prompt engineering techniques to 10x your productivity.\n\n**H1**: The Ultimate Guide to Prompt Engineering\n- **H2**: What is an LLM? (Keyword: LLM, machine learning)\n- **H2**: Core AI Prompts and Structures (Keyword: AI prompts)\n - **H3**: Zero-Shot vs Few-Shot\n- **H2**: Top 5 ChatGPT Tips for Beginners (Keyword: ChatGPT tips)"
|
| 57 |
+
},
|
| 58 |
+
{
|
| 59 |
+
"instruction": "You are a customer support triage agent for a SaaS. Read the following user ticket: [TICKET]. \nCategorize it (Bug, Feature Request, Billing, Question), determine the priority (Low, Med, High), and draft a short, empathetic reply. Return ONLY a valid JSON object.",
|
| 60 |
+
"output": "{\n \"category\": \"Billing\",\n \"priority\": \"High\",\n \"draft_reply\": \"Hi there, I am so sorry to hear you were charged twice! I've escalated this to our billing team immediately to process a refund for the duplicate charge. You should see it resolved in 1-2 business days.\"\n}"
|
| 61 |
+
},
|
| 62 |
+
{
|
| 63 |
+
"instruction": "Extract the contact information (Name, Company, Email, Phone, Role) from this email signature and format it into a CSV row. Email signature: [SIGNATURE]",
|
| 64 |
+
"output": "Name,Company,Email,Phone,Role\nSarah Jenkins,TechCorp,s.jenkins@techcorp.com,(555) 123-4567,VP of Sales"
|
| 65 |
+
},
|
| 66 |
+
{
|
| 67 |
+
"instruction": "I have the following to-do list: [TASKS]. Categorize them using the Eisenhower Matrix (Urgent & Important, Important not Urgent, Urgent not Important, Neither). Suggest a plan of action.",
|
| 68 |
+
"output": "**Urgent & Important (Do Now)**: 1. Fix critical server bug.\n**Important, Not Urgent (Schedule)**: 3. Read a book on leadership.\n**Urgent, Not Important (Delegate/Batch)**: 2. Buy groceries.\n**Neither (Delete/Minimize)**: 4. Reply to casual Slack messages."
|
| 69 |
+
},
|
| 70 |
+
{
|
| 71 |
+
"instruction": "Act as a Socratic tutor. I want to learn about [TOPIC]. DO NOT give me the direct answers. Instead, ask me probing questions one at a time to help me arrive at the conclusions myself. Start with your first question.",
|
| 72 |
+
"output": "Welcome! I'd love to help you explore how the stock market works. Let's start with a foundational idea: If you own a small lemonade stand and want to expand it into a big store, but you don't have enough money, how might you get the funds to do so?"
|
| 73 |
+
}
|
| 74 |
+
]
|
datasets/prompts.jsonl
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"instruction": "Act as a Senior Software Engineer. Refactor the following code for better readability, performance, and adherence to DRY principles. Explain the time and space complexity optimizations.\n\n```python\n[CODE_SNIPPET]\n```", "output": "Here is the refactored code using a list comprehension, which is more Pythonic and slightly faster:\n\n```python\ndef calc(n):\n return [i for i in range(n) if i % 2 == 0]\n```\n\n**Time Complexity**: O(N) - We still iterate through `n` elements once.\n**Space Complexity**: O(N) - The resulting list contains N/2 elements."}
|
| 2 |
+
{"instruction": "Act as a Lead Security Engineer. Analyze this code for potential vulnerabilities (SQL Injection, XSS, CSRF, etc.). Provide a detailed report and a secure version of the code.\n\n```javascript\n[CODE_SNIPPET]\n```", "output": "**Vulnerability Found: SQL Injection (SQLi)**\n\nThe code directly concatenates user input (`req.query.id`) into the SQL query string. An attacker could pass `1 OR 1=1` to expose all users.\n\n**Secure Code (Using Parameterized Queries):**\n```javascript\napp.get('/user', (req, res) => {\n db.query('SELECT * FROM users WHERE id = ?', [req.query.id], (error, results) => {\n // handle results\n });\n});\n```"}
|
| 3 |
+
{"instruction": "Write comprehensive unit tests for the following function using [TESTING_FRAMEWORK]. Include happy paths, edge cases, and expected exceptions. Ensure maximum coverage.\n\n```\n[CODE_SNIPPET]\n```", "output": "```python\nimport pytest\nfrom my_module import divide\n\ndef test_divide_happy_path():\n assert divide(10, 2) == 5.0\n\ndef test_divide_negative_numbers():\n assert divide(-10, 2) == -5.0\n assert divide(-10, -2) == 5.0\n\ndef test_divide_by_zero():\n with pytest.raises(ZeroDivisionError):\n divide(10, 0)\n```"}
|
| 4 |
+
{"instruction": "Act as a Database Architect. Design a relational database schema for a [APP_DESCRIPTION]. Provide the SQL `CREATE TABLE` statements, identify Primary and Foreign Keys, and suggest appropriate indexes for performance.", "output": "Here is the schema for the e-commerce platform:\n\n```sql\nCREATE TABLE Users (\n id UUID PRIMARY KEY,\n email VARCHAR(255) UNIQUE NOT NULL,\n created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP\n);\n\nCREATE TABLE Products (\n id UUID PRIMARY KEY,\n name VARCHAR(255) NOT NULL,\n price DECIMAL(10, 2) NOT NULL\n);\n\n-- Recommended Indexes\nCREATE INDEX idx_users_email ON Users(email);\n```"}
|
| 5 |
+
{"instruction": "Solve the following problem. Before giving the final answer, show your step-by-step reasoning process. Think out loud, explain each deduction, and break down your logical steps clearly. Problem: [PROBLEM]", "output": "Let's break this down step-by-step:\n1. John starts with 5 apples.\n2. He buys 3 more. 5 + 3 = 8 apples total.\n3. He gives half of his total to Mary. Half of 8 is 4.\n4. Therefore, John keeps 8 - 4 = 4 apples.\n\n**Final Answer:** John has 4 apples left."}
|
| 6 |
+
{"instruction": "You are an expert AI Architect. Your task is to write a highly detailed 'System Prompt' that configures an AI to act as a [ROLE]. Include their persona, rules, constraints, and output formatting instructions.", "output": "```text\n**Role**: You are Lexi, a Senior Legal Tech Assistant.\n**Persona**: Professional, precise, and highly analytical.\n**Rules**:\n1. NEVER provide definitive legal advice (always include a disclaimer).\n2. Cite relevant case law jurisdiction when asked.\n3. Keep responses under 3 paragraphs unless summarizing a document.\n**Output Format**: Use markdown headers for 'Summary', 'Key Clauses', and 'Risk Analysis'.\n```"}
|
| 7 |
+
{"instruction": "Generate a solution for [TASK]. Once generated, critique your own work by identifying at least 3 potential flaws, biases, or weaknesses. Finally, provide a revised version that addresses these criticisms.", "output": "**Initial Draft**: Hi, we are a marketing agency. We can boost your sales. Call us!\n\n**Critique**:\n1. Too generic, lacks personalization.\n2. No clear value proposition or social proof.\n3. The Call to Action is too aggressive.\n\n**Revised Draft**: Hi [Name], noticed [Company] is launching a new product. We helped [Competitor/Similar Co] increase conversions by 20% using targeted ads. Open to a 5-min chat next Tuesday?"}
|
| 8 |
+
{"instruction": "Answer the following question using the ReAct framework. Use the format:\nThought: [Your reasoning]\nAction: [The tool or action to take, e.g., Search(query)]\nObservation: [The result of the action]\n... (Repeat until you have the answer)\nThought: I now know the answer.\nFinal Answer: [Answer]\nQuestion: [QUESTION]", "output": "Thought: I need to find out who the current CEO of Microsoft is.\nAction: Search(Microsoft current CEO)\nObservation: Satya Nadella is the CEO of Microsoft.\nThought: Now I need to find Satya Nadella's age.\nAction: Search(Satya Nadella age)\nObservation: Satya Nadella was born on August 19, 1967 (age 56 years).\nThought: I now know the answer.\nFinal Answer: The current CEO of Microsoft is Satya Nadella, and he is 56 years old."}
|
| 9 |
+
{"instruction": "A hyper-realistic cinematic portrait of [SUBJECT], detailed skin texture, dramatic rim lighting, shot on 85mm lens, f/1.8, bokeh background, 8k resolution, highly detailed, masterpiece --ar 16:9 --style raw --v 6.0", "output": "[Midjourney generates a stunning, photorealistic 8k image of an elderly cyberpunk mechanic. The depth of field is incredibly shallow, completely blurring the neon city background.]"}
|
| 10 |
+
{"instruction": "Minimalist vector logo for a [COMPANY_TYPE] named '[COMPANY_NAME]', featuring a [SUBJECT], flat colors, clean lines, white background, corporate identity, dribbble style --no text, realistic details --ar 1:1", "output": "[Flux returns a super clean, flat-color vector logo of a cloud and gear interlocking. The white background makes it look perfectly corporate and ready for a pitch deck.]"}
|
| 11 |
+
{"instruction": "An adorable isometric 3D render of a [ROOM_TYPE], [COLOR_PALETTE] color palette, soft clay render style, tilt-shift, bright ambient occlusion, blender, octane render, trending on artstation --ar 4:5", "output": "[DALL-E 3 generates an absolutely adorable, pastel-colored 3D isometric bedroom layout. The lighting feels like a soft clay render, exactly as asked!]"}
|
| 12 |
+
{"instruction": "Write a compelling 1-page Executive Summary for a business plan. The company is [COMPANY_NAME], providing [PRODUCT/SERVICE] to [TARGET_MARKET]. Highlight the problem, solution, monetization strategy, and a 3-year vision.", "output": "**Executive Summary: EcoDrive**\n\n**The Problem**: Urban EV owners lack accessible charging infrastructure at home.\n**The Solution**: EcoDrive installs and manages scalable EV charging hubs in apartment parking garages.\n**Monetization**: Subscription model for residents + revenue share with building management.\n**3-Year Vision**: Expand to 500+ buildings across 3 major metropolitan areas."}
|
| 13 |
+
{"instruction": "Write a high-converting email campaign for [PRODUCT] using the AIDA framework:\n- **Attention**: Catchy hook.\n- **Interest**: Fascinating facts/benefits.\n- **Desire**: Emotional appeal and FOMO.\n- **Action**: A clear, low-friction CTA.", "output": "**Subject:** Silence the chaos. Focus on what matters.\n\n**Attention**: Barking dogs? Lawn mowers? Kids playing? Remote work is loud.\n**Interest**: Meet the Zenith Headset. It uses an onboard AI chip to filter out 99.8% of background noise before it ever reaches your microphone.\n**Desire**: Imagine presenting to the CEO with crystal-clear audio, completely stress-free. No more apologizing for the noise.\n**Action**: [Pre-order today] and get 20% off for the next 24 hours."}
|
| 14 |
+
{"instruction": "Create a comprehensive SEO-optimized outline for a blog post titled '[TITLE]'. Include a meta description, an H1, multiple H2s and H3s, and indicate where to naturally inject these keywords: [KEYWORDS].", "output": "**Meta Description**: Master the art of communicating with AI. Learn the best ChatGPT tips, LLM frameworks, and prompt engineering techniques to 10x your productivity.\n\n**H1**: The Ultimate Guide to Prompt Engineering\n- **H2**: What is an LLM? (Keyword: LLM, machine learning)\n- **H2**: Core AI Prompts and Structures (Keyword: AI prompts)\n - **H3**: Zero-Shot vs Few-Shot\n- **H2**: Top 5 ChatGPT Tips for Beginners (Keyword: ChatGPT tips)"}
|
| 15 |
+
{"instruction": "You are a customer support triage agent for a SaaS. Read the following user ticket: [TICKET]. \nCategorize it (Bug, Feature Request, Billing, Question), determine the priority (Low, Med, High), and draft a short, empathetic reply. Return ONLY a valid JSON object.", "output": "{\n \"category\": \"Billing\",\n \"priority\": \"High\",\n \"draft_reply\": \"Hi there, I am so sorry to hear you were charged twice! I've escalated this to our billing team immediately to process a refund for the duplicate charge. You should see it resolved in 1-2 business days.\"\n}"}
|
| 16 |
+
{"instruction": "Extract the contact information (Name, Company, Email, Phone, Role) from this email signature and format it into a CSV row. Email signature: [SIGNATURE]", "output": "Name,Company,Email,Phone,Role\nSarah Jenkins,TechCorp,s.jenkins@techcorp.com,(555) 123-4567,VP of Sales"}
|
| 17 |
+
{"instruction": "I have the following to-do list: [TASKS]. Categorize them using the Eisenhower Matrix (Urgent & Important, Important not Urgent, Urgent not Important, Neither). Suggest a plan of action.", "output": "**Urgent & Important (Do Now)**: 1. Fix critical server bug.\n**Important, Not Urgent (Schedule)**: 3. Read a book on leadership.\n**Urgent, Not Important (Delegate/Batch)**: 2. Buy groceries.\n**Neither (Delete/Minimize)**: 4. Reply to casual Slack messages."}
|
| 18 |
+
{"instruction": "Act as a Socratic tutor. I want to learn about [TOPIC]. DO NOT give me the direct answers. Instead, ask me probing questions one at a time to help me arrive at the conclusions myself. Start with your first question.", "output": "Welcome! I'd love to help you explore how the stock market works. Let's start with a foundational idea: If you own a small lemonade stand and want to expand it into a big store, but you don't have enough money, how might you get the funds to do so?"}
|
generate_pack.py
ADDED
|
@@ -0,0 +1,206 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import os
|
| 2 |
+
import json
|
| 3 |
+
|
| 4 |
+
prompts_data = [
|
| 5 |
+
# --- Coding ---
|
| 6 |
+
{
|
| 7 |
+
"id": "coding-1", "category": "coding", "title": "Code Refactoring & Optimization",
|
| 8 |
+
"instruction": "Act as a Senior Software Engineer. Refactor the following code for better readability, performance, and adherence to DRY principles. Explain the time and space complexity optimizations.\n\n```python\n[CODE_SNIPPET]\n```",
|
| 9 |
+
"template": "CODE_SNIPPET: def calc(n):\n r=[]\n for i in range(n):\n if i%2==0:\n r.append(i)\n return r",
|
| 10 |
+
"difficulty": "Intermediate", "best_model": "Claude 3.5 Sonnet / GPT-4o", "use_case": "Improving existing code quality",
|
| 11 |
+
"tags": ["coding", "refactoring", "optimization", "clean-code"],
|
| 12 |
+
"output_mock": "Here is the refactored code using a list comprehension, which is more Pythonic and slightly faster:\n\n```python\ndef calc(n):\n return [i for i in range(n) if i % 2 == 0]\n```\n\n**Time Complexity**: O(N) - We still iterate through `n` elements once.\n**Space Complexity**: O(N) - The resulting list contains N/2 elements."
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"id": "coding-2", "category": "coding", "title": "Security Vulnerability Scanner",
|
| 16 |
+
"instruction": "Act as a Lead Security Engineer. Analyze this code for potential vulnerabilities (SQL Injection, XSS, CSRF, etc.). Provide a detailed report and a secure version of the code.\n\n```javascript\n[CODE_SNIPPET]\n```",
|
| 17 |
+
"template": "CODE_SNIPPET: app.get('/user', (req, res) => {\n db.query(`SELECT * FROM users WHERE id = ${req.query.id}`);\n});",
|
| 18 |
+
"difficulty": "Advanced", "best_model": "GPT-4o", "use_case": "Security and bug fixing",
|
| 19 |
+
"tags": ["coding", "security", "qa", "vulnerabilities"],
|
| 20 |
+
"output_mock": "**Vulnerability Found: SQL Injection (SQLi)**\n\nThe code directly concatenates user input (`req.query.id`) into the SQL query string. An attacker could pass `1 OR 1=1` to expose all users.\n\n**Secure Code (Using Parameterized Queries):**\n```javascript\napp.get('/user', (req, res) => {\n db.query('SELECT * FROM users WHERE id = ?', [req.query.id], (error, results) => {\n // handle results\n });\n});\n```"
|
| 21 |
+
},
|
| 22 |
+
{
|
| 23 |
+
"id": "coding-3", "category": "coding", "title": "Comprehensive Unit Test Generator",
|
| 24 |
+
"instruction": "Write comprehensive unit tests for the following function using [TESTING_FRAMEWORK]. Include happy paths, edge cases, and expected exceptions. Ensure maximum coverage.\n\n```\n[CODE_SNIPPET]\n```",
|
| 25 |
+
"template": "TESTING_FRAMEWORK: pytest\nCODE_SNIPPET: def divide(a, b): return a / b",
|
| 26 |
+
"difficulty": "Intermediate", "best_model": "Claude 3.5 Sonnet", "use_case": "Test-driven development",
|
| 27 |
+
"tags": ["coding", "testing", "tdd", "unit-tests"],
|
| 28 |
+
"output_mock": "```python\nimport pytest\nfrom my_module import divide\n\ndef test_divide_happy_path():\n assert divide(10, 2) == 5.0\n\ndef test_divide_negative_numbers():\n assert divide(-10, 2) == -5.0\n assert divide(-10, -2) == 5.0\n\ndef test_divide_by_zero():\n with pytest.raises(ZeroDivisionError):\n divide(10, 0)\n```"
|
| 29 |
+
},
|
| 30 |
+
{
|
| 31 |
+
"id": "coding-4", "category": "coding", "title": "Database Schema Architect",
|
| 32 |
+
"instruction": "Act as a Database Architect. Design a relational database schema for a [APP_DESCRIPTION]. Provide the SQL `CREATE TABLE` statements, identify Primary and Foreign Keys, and suggest appropriate indexes for performance.",
|
| 33 |
+
"template": "APP_DESCRIPTION: E-commerce platform handling users, products, orders, and reviews.",
|
| 34 |
+
"difficulty": "Advanced", "best_model": "GPT-4o", "use_case": "System Design",
|
| 35 |
+
"tags": ["coding", "database", "sql", "architecture"],
|
| 36 |
+
"output_mock": "Here is the schema for the e-commerce platform:\n\n```sql\nCREATE TABLE Users (\n id UUID PRIMARY KEY,\n email VARCHAR(255) UNIQUE NOT NULL,\n created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP\n);\n\nCREATE TABLE Products (\n id UUID PRIMARY KEY,\n name VARCHAR(255) NOT NULL,\n price DECIMAL(10, 2) NOT NULL\n);\n\n-- Recommended Indexes\nCREATE INDEX idx_users_email ON Users(email);\n```"
|
| 37 |
+
},
|
| 38 |
+
|
| 39 |
+
# --- Prompt Engineering ---
|
| 40 |
+
{
|
| 41 |
+
"id": "pe-1", "category": "prompt-engineering", "title": "Chain of Thought (CoT) Reasoning",
|
| 42 |
+
"instruction": "Solve the following problem. Before giving the final answer, show your step-by-step reasoning process. Think out loud, explain each deduction, and break down your logical steps clearly. Problem: [PROBLEM]",
|
| 43 |
+
"template": "PROBLEM: If John has 5 apples and buys 3 more, then gives half his total to Mary, how many does he have?",
|
| 44 |
+
"difficulty": "Advanced", "best_model": "Claude 3.5 Sonnet / GPT-4o", "use_case": "Complex problem solving",
|
| 45 |
+
"tags": ["prompt-engineering", "cot", "reasoning"],
|
| 46 |
+
"output_mock": "Let's break this down step-by-step:\n1. John starts with 5 apples.\n2. He buys 3 more. 5 + 3 = 8 apples total.\n3. He gives half of his total to Mary. Half of 8 is 4.\n4. Therefore, John keeps 8 - 4 = 4 apples.\n\n**Final Answer:** John has 4 apples left."
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"id": "pe-2", "category": "prompt-engineering", "title": "System Prompt Creator",
|
| 50 |
+
"instruction": "You are an expert AI Architect. Your task is to write a highly detailed 'System Prompt' that configures an AI to act as a [ROLE]. Include their persona, rules, constraints, and output formatting instructions.",
|
| 51 |
+
"template": "ROLE: Senior Legal Tech Assistant",
|
| 52 |
+
"difficulty": "Expert", "best_model": "Claude 3 Opus", "use_case": "Creating AI Agents",
|
| 53 |
+
"tags": ["prompt-engineering", "system-prompt", "agents"],
|
| 54 |
+
"output_mock": "```text\n**Role**: You are Lexi, a Senior Legal Tech Assistant.\n**Persona**: Professional, precise, and highly analytical.\n**Rules**:\n1. NEVER provide definitive legal advice (always include a disclaimer).\n2. Cite relevant case law jurisdiction when asked.\n3. Keep responses under 3 paragraphs unless summarizing a document.\n**Output Format**: Use markdown headers for 'Summary', 'Key Clauses', and 'Risk Analysis'.\n```"
|
| 55 |
+
},
|
| 56 |
+
{
|
| 57 |
+
"id": "pe-3", "category": "prompt-engineering", "title": "Self-Critique & Refinement (Reflection)",
|
| 58 |
+
"instruction": "Generate a solution for [TASK]. Once generated, critique your own work by identifying at least 3 potential flaws, biases, or weaknesses. Finally, provide a revised version that addresses these criticisms.",
|
| 59 |
+
"template": "TASK: Write a short cold email for a marketing agency.",
|
| 60 |
+
"difficulty": "Advanced", "best_model": "Claude 3.5 Sonnet", "use_case": "High-quality content generation",
|
| 61 |
+
"tags": ["prompt-engineering", "reflection", "self-critique"],
|
| 62 |
+
"output_mock": "**Initial Draft**: Hi, we are a marketing agency. We can boost your sales. Call us!\n\n**Critique**:\n1. Too generic, lacks personalization.\n2. No clear value proposition or social proof.\n3. The Call to Action is too aggressive.\n\n**Revised Draft**: Hi [Name], noticed [Company] is launching a new product. We helped [Competitor/Similar Co] increase conversions by 20% using targeted ads. Open to a 5-min chat next Tuesday?"
|
| 63 |
+
},
|
| 64 |
+
{
|
| 65 |
+
"id": "pe-4", "category": "prompt-engineering", "title": "ReAct (Reasoning and Acting)",
|
| 66 |
+
"instruction": "Answer the following question using the ReAct framework. Use the format:\nThought: [Your reasoning]\nAction: [The tool or action to take, e.g., Search(query)]\nObservation: [The result of the action]\n... (Repeat until you have the answer)\nThought: I now know the answer.\nFinal Answer: [Answer]\nQuestion: [QUESTION]",
|
| 67 |
+
"template": "QUESTION: Who is the current CEO of Microsoft and how old is he?",
|
| 68 |
+
"difficulty": "Expert", "best_model": "GPT-4o", "use_case": "Agentic workflows",
|
| 69 |
+
"tags": ["prompt-engineering", "react", "agents", "logic"],
|
| 70 |
+
"output_mock": "Thought: I need to find out who the current CEO of Microsoft is.\nAction: Search(Microsoft current CEO)\nObservation: Satya Nadella is the CEO of Microsoft.\nThought: Now I need to find Satya Nadella's age.\nAction: Search(Satya Nadella age)\nObservation: Satya Nadella was born on August 19, 1967 (age 56 years).\nThought: I now know the answer.\nFinal Answer: The current CEO of Microsoft is Satya Nadella, and he is 56 years old."
|
| 71 |
+
},
|
| 72 |
+
|
| 73 |
+
# --- AI Art ---
|
| 74 |
+
{
|
| 75 |
+
"id": "art-1", "category": "ai-art", "title": "High-Fidelity Cinematic Portrait",
|
| 76 |
+
"instruction": "A hyper-realistic cinematic portrait of [SUBJECT], detailed skin texture, dramatic rim lighting, shot on 85mm lens, f/1.8, bokeh background, 8k resolution, highly detailed, masterpiece --ar 16:9 --style raw --v 6.0",
|
| 77 |
+
"template": "SUBJECT: An elderly cyberpunk mechanic with glowing neon eyes",
|
| 78 |
+
"difficulty": "Intermediate", "best_model": "Midjourney v6", "use_case": "Character generation",
|
| 79 |
+
"tags": ["ai-art", "midjourney", "portrait", "cinematic"],
|
| 80 |
+
"output_mock": "[Midjourney generates a stunning, photorealistic 8k image of an elderly cyberpunk mechanic. The depth of field is incredibly shallow, completely blurring the neon city background.]"
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"id": "art-2", "category": "ai-art", "title": "Vector Logo Design Template",
|
| 84 |
+
"instruction": "Minimalist vector logo for a [COMPANY_TYPE] named '[COMPANY_NAME]', featuring a [SUBJECT], flat colors, clean lines, white background, corporate identity, dribbble style --no text, realistic details --ar 1:1",
|
| 85 |
+
"template": "COMPANY_TYPE: Tech Startup\nCOMPANY_NAME: CloudSync\nSUBJECT: abstract cloud interlocked with a gear",
|
| 86 |
+
"difficulty": "Beginner", "best_model": "Midjourney / Flux", "use_case": "Branding",
|
| 87 |
+
"tags": ["ai-art", "logo", "vector", "branding"],
|
| 88 |
+
"output_mock": "[Flux returns a super clean, flat-color vector logo of a cloud and gear interlocking. The white background makes it look perfectly corporate and ready for a pitch deck.]"
|
| 89 |
+
},
|
| 90 |
+
{
|
| 91 |
+
"id": "art-3", "category": "ai-art", "title": "Isometric 3D Room",
|
| 92 |
+
"instruction": "An adorable isometric 3D render of a [ROOM_TYPE], [COLOR_PALETTE] color palette, soft clay render style, tilt-shift, bright ambient occlusion, blender, octane render, trending on artstation --ar 4:5",
|
| 93 |
+
"template": "ROOM_TYPE: cozy indie game developer bedroom with dual monitors and posters\nCOLOR_PALETTE: pastel purple and warm yellow",
|
| 94 |
+
"difficulty": "Intermediate", "best_model": "Midjourney / DALL-E 3", "use_case": "Concept Art",
|
| 95 |
+
"tags": ["ai-art", "isometric", "3d", "concept"],
|
| 96 |
+
"output_mock": "[DALL-E 3 generates an absolutely adorable, pastel-colored 3D isometric bedroom layout. The lighting feels like a soft clay render, exactly as asked!]"
|
| 97 |
+
},
|
| 98 |
+
|
| 99 |
+
# --- Business & Marketing ---
|
| 100 |
+
{
|
| 101 |
+
"id": "biz-1", "category": "business", "title": "Executive Summary Generator",
|
| 102 |
+
"instruction": "Write a compelling 1-page Executive Summary for a business plan. The company is [COMPANY_NAME], providing [PRODUCT/SERVICE] to [TARGET_MARKET]. Highlight the problem, solution, monetization strategy, and a 3-year vision.",
|
| 103 |
+
"template": "COMPANY_NAME: EcoDrive\nPRODUCT: Electric vehicle charging network\nTARGET_MARKET: Urban apartment complexes",
|
| 104 |
+
"difficulty": "Beginner", "best_model": "Claude 3.5 Sonnet", "use_case": "Pitch Decks",
|
| 105 |
+
"tags": ["business", "executive-summary", "strategy"],
|
| 106 |
+
"output_mock": "**Executive Summary: EcoDrive**\n\n**The Problem**: Urban EV owners lack accessible charging infrastructure at home.\n**The Solution**: EcoDrive installs and manages scalable EV charging hubs in apartment parking garages.\n**Monetization**: Subscription model for residents + revenue share with building management.\n**3-Year Vision**: Expand to 500+ buildings across 3 major metropolitan areas."
|
| 107 |
+
},
|
| 108 |
+
{
|
| 109 |
+
"id": "marketing-1", "category": "marketing", "title": "The AIDA Copywriting Framework",
|
| 110 |
+
"instruction": "Write a high-converting email campaign for [PRODUCT] using the AIDA framework:\n- **Attention**: Catchy hook.\n- **Interest**: Fascinating facts/benefits.\n- **Desire**: Emotional appeal and FOMO.\n- **Action**: A clear, low-friction CTA.",
|
| 111 |
+
"template": "PRODUCT: A new AI-powered noise-canceling headset for remote workers.",
|
| 112 |
+
"difficulty": "Intermediate", "best_model": "GPT-4o", "use_case": "Email Marketing",
|
| 113 |
+
"tags": ["marketing", "copywriting", "aida", "email"],
|
| 114 |
+
"output_mock": "**Subject:** Silence the chaos. Focus on what matters.\n\n**Attention**: Barking dogs? Lawn mowers? Kids playing? Remote work is loud.\n**Interest**: Meet the Zenith Headset. It uses an onboard AI chip to filter out 99.8% of background noise before it ever reaches your microphone.\n**Desire**: Imagine presenting to the CEO with crystal-clear audio, completely stress-free. No more apologizing for the noise.\n**Action**: [Pre-order today] and get 20% off for the next 24 hours."
|
| 115 |
+
},
|
| 116 |
+
{
|
| 117 |
+
"id": "marketing-2", "category": "marketing", "title": "SEO Blog Post Structure",
|
| 118 |
+
"instruction": "Create a comprehensive SEO-optimized outline for a blog post titled '[TITLE]'. Include a meta description, an H1, multiple H2s and H3s, and indicate where to naturally inject these keywords: [KEYWORDS].",
|
| 119 |
+
"template": "TITLE: The Ultimate Guide to Prompt Engineering\nKEYWORDS: LLM, AI prompts, ChatGPT tips, machine learning",
|
| 120 |
+
"difficulty": "Beginner", "best_model": "Claude 3.5 Sonnet", "use_case": "Content SEO",
|
| 121 |
+
"tags": ["marketing", "seo", "blogging", "content"],
|
| 122 |
+
"output_mock": "**Meta Description**: Master the art of communicating with AI. Learn the best ChatGPT tips, LLM frameworks, and prompt engineering techniques to 10x your productivity.\n\n**H1**: The Ultimate Guide to Prompt Engineering\n- **H2**: What is an LLM? (Keyword: LLM, machine learning)\n- **H2**: Core AI Prompts and Structures (Keyword: AI prompts)\n - **H3**: Zero-Shot vs Few-Shot\n- **H2**: Top 5 ChatGPT Tips for Beginners (Keyword: ChatGPT tips)"
|
| 123 |
+
},
|
| 124 |
+
|
| 125 |
+
# --- Real-World AI Use Cases ---
|
| 126 |
+
{
|
| 127 |
+
"id": "usecase-1", "category": "real-world-use-cases", "title": "SaaS Customer Support Agent (JSON Output)",
|
| 128 |
+
"instruction": "You are a customer support triage agent for a SaaS. Read the following user ticket: [TICKET]. \nCategorize it (Bug, Feature Request, Billing, Question), determine the priority (Low, Med, High), and draft a short, empathetic reply. Return ONLY a valid JSON object.",
|
| 129 |
+
"template": "TICKET: I've been charged twice this month for my pro subscription! Help!!",
|
| 130 |
+
"difficulty": "Advanced", "best_model": "GPT-4o", "use_case": "Automated Ticket Triage",
|
| 131 |
+
"tags": ["use-cases", "saas", "automation", "json"],
|
| 132 |
+
"output_mock": "{\n \"category\": \"Billing\",\n \"priority\": \"High\",\n \"draft_reply\": \"Hi there, I am so sorry to hear you were charged twice! I've escalated this to our billing team immediately to process a refund for the duplicate charge. You should see it resolved in 1-2 business days.\"\n}"
|
| 133 |
+
},
|
| 134 |
+
{
|
| 135 |
+
"id": "usecase-2", "category": "real-world-use-cases", "title": "Automated CRM Data Extraction",
|
| 136 |
+
"instruction": "Extract the contact information (Name, Company, Email, Phone, Role) from this email signature and format it into a CSV row. Email signature: [SIGNATURE]",
|
| 137 |
+
"template": "SIGNATURE: Best, Sarah Jenkins | VP of Sales at TechCorp | s.jenkins@techcorp.com | (555) 123-4567",
|
| 138 |
+
"difficulty": "Beginner", "best_model": "Gemini 1.5 Pro", "use_case": "Data Entry Automation",
|
| 139 |
+
"tags": ["use-cases", "crm", "data-extraction", "automation"],
|
| 140 |
+
"output_mock": "Name,Company,Email,Phone,Role\nSarah Jenkins,TechCorp,s.jenkins@techcorp.com,(555) 123-4567,VP of Sales"
|
| 141 |
+
},
|
| 142 |
+
|
| 143 |
+
# --- Productivity & Learning ---
|
| 144 |
+
{
|
| 145 |
+
"id": "prod-1", "category": "productivity", "title": "Eisenhower Matrix Prioritization",
|
| 146 |
+
"instruction": "I have the following to-do list: [TASKS]. Categorize them using the Eisenhower Matrix (Urgent & Important, Important not Urgent, Urgent not Important, Neither). Suggest a plan of action.",
|
| 147 |
+
"template": "TASKS: 1. Fix critical server bug. 2. Buy groceries. 3. Read a book on leadership. 4. Reply to casual Slack messages.",
|
| 148 |
+
"difficulty": "Beginner", "best_model": "Claude 3.5 Sonnet", "use_case": "Time Management",
|
| 149 |
+
"tags": ["productivity", "matrix", "time-management"],
|
| 150 |
+
"output_mock": "**Urgent & Important (Do Now)**: 1. Fix critical server bug.\n**Important, Not Urgent (Schedule)**: 3. Read a book on leadership.\n**Urgent, Not Important (Delegate/Batch)**: 2. Buy groceries.\n**Neither (Delete/Minimize)**: 4. Reply to casual Slack messages."
|
| 151 |
+
},
|
| 152 |
+
{
|
| 153 |
+
"id": "learning-1", "category": "learning", "title": "Socratic Method Tutor",
|
| 154 |
+
"instruction": "Act as a Socratic tutor. I want to learn about [TOPIC]. DO NOT give me the direct answers. Instead, ask me probing questions one at a time to help me arrive at the conclusions myself. Start with your first question.",
|
| 155 |
+
"template": "TOPIC: How the stock market works",
|
| 156 |
+
"difficulty": "Advanced", "best_model": "GPT-4o", "use_case": "Deep Learning",
|
| 157 |
+
"tags": ["learning", "socratic", "education", "tutor"],
|
| 158 |
+
"output_mock": "Welcome! I'd love to help you explore how the stock market works. Let's start with a foundational idea: If you own a small lemonade stand and want to expand it into a big store, but you don't have enough money, how might you get the funds to do so?"
|
| 159 |
+
}
|
| 160 |
+
]
|
| 161 |
+
|
| 162 |
+
def generate_files():
|
| 163 |
+
directories = [
|
| 164 |
+
"prompts", "prompts/coding", "prompts/ai-art", "prompts/business",
|
| 165 |
+
"prompts/marketing", "prompts/productivity", "prompts/learning",
|
| 166 |
+
"prompts/content-writing", "prompts/health", "prompts/career",
|
| 167 |
+
"prompts/prompt-engineering", "prompts/real-world-use-cases",
|
| 168 |
+
"datasets", "images"
|
| 169 |
+
]
|
| 170 |
+
for d in directories:
|
| 171 |
+
os.makedirs(d, exist_ok=True)
|
| 172 |
+
|
| 173 |
+
# 1. Dataset JSON
|
| 174 |
+
dataset_json = [{"instruction": p["instruction"], "output": p["output_mock"]} for p in prompts_data]
|
| 175 |
+
with open("datasets/dataset.json", "w", encoding="utf-8") as f:
|
| 176 |
+
json.dump(dataset_json, f, indent=2)
|
| 177 |
+
|
| 178 |
+
# 2. Dataset JSONL
|
| 179 |
+
with open("datasets/prompts.jsonl", "w", encoding="utf-8") as f:
|
| 180 |
+
for p in dataset_json:
|
| 181 |
+
f.write(json.dumps(p) + "\n")
|
| 182 |
+
|
| 183 |
+
# 3. Categorized MDs
|
| 184 |
+
from collections import defaultdict
|
| 185 |
+
category_prompts = defaultdict(list)
|
| 186 |
+
for p in prompts_data:
|
| 187 |
+
category_prompts[p["category"]].append(p)
|
| 188 |
+
|
| 189 |
+
for category, prompts in category_prompts.items():
|
| 190 |
+
md_path = f"prompts/{category}/README.md"
|
| 191 |
+
with open(md_path, "w", encoding="utf-8") as f:
|
| 192 |
+
f.write(f"# {category.replace('-', ' ').title()} Prompts\n\n")
|
| 193 |
+
for p in prompts:
|
| 194 |
+
f.write(f"## {p['title']}\n\n")
|
| 195 |
+
f.write(f"**Difficulty:** {p['difficulty']} | **Best Model:** {p['best_model']} | **Use Case:** {p['use_case']}\n\n")
|
| 196 |
+
f.write(f"**Tags:** {', '.join(p['tags'])}\n\n")
|
| 197 |
+
f.write(f"### Prompt:\n```text\n{p['instruction']}\n```\n\n")
|
| 198 |
+
if p["template"]:
|
| 199 |
+
f.write(f"### Variables/Template Example:\n```text\n{p['template']}\n```\n\n")
|
| 200 |
+
f.write(f"### Example Output:\n```text\n{p['output_mock']}\n```\n\n")
|
| 201 |
+
f.write("---\n\n")
|
| 202 |
+
|
| 203 |
+
print(f"Awesome! Just generated {len(prompts_data)} training-ready prompts and built the dataset.")
|
| 204 |
+
|
| 205 |
+
if __name__ == "__main__":
|
| 206 |
+
generate_files()
|
images/art_feature.png
ADDED
|
Git LFS Details
|
images/coding_feature.png
ADDED
|
Git LFS Details
|
images/cover_banner.png
ADDED
|
Git LFS Details
|
prompts/ai-art/README.md
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Ai Art Prompts
|
| 2 |
+
|
| 3 |
+
## High-Fidelity Cinematic Portrait
|
| 4 |
+
|
| 5 |
+
**Difficulty:** Intermediate | **Best Model:** Midjourney v6 | **Use Case:** Character generation
|
| 6 |
+
|
| 7 |
+
**Tags:** ai-art, midjourney, portrait, cinematic
|
| 8 |
+
|
| 9 |
+
### Prompt:
|
| 10 |
+
```text
|
| 11 |
+
A hyper-realistic cinematic portrait of [SUBJECT], detailed skin texture, dramatic rim lighting, shot on 85mm lens, f/1.8, bokeh background, 8k resolution, highly detailed, masterpiece --ar 16:9 --style raw --v 6.0
|
| 12 |
+
```
|
| 13 |
+
|
| 14 |
+
### Variables/Template Example:
|
| 15 |
+
```text
|
| 16 |
+
SUBJECT: An elderly cyberpunk mechanic with glowing neon eyes
|
| 17 |
+
```
|
| 18 |
+
|
| 19 |
+
### Example Output:
|
| 20 |
+
```text
|
| 21 |
+
[Midjourney generates a stunning, photorealistic 8k image of an elderly cyberpunk mechanic. The depth of field is incredibly shallow, completely blurring the neon city background.]
|
| 22 |
+
```
|
| 23 |
+
|
| 24 |
+
---
|
| 25 |
+
|
| 26 |
+
## Vector Logo Design Template
|
| 27 |
+
|
| 28 |
+
**Difficulty:** Beginner | **Best Model:** Midjourney / Flux | **Use Case:** Branding
|
| 29 |
+
|
| 30 |
+
**Tags:** ai-art, logo, vector, branding
|
| 31 |
+
|
| 32 |
+
### Prompt:
|
| 33 |
+
```text
|
| 34 |
+
Minimalist vector logo for a [COMPANY_TYPE] named '[COMPANY_NAME]', featuring a [SUBJECT], flat colors, clean lines, white background, corporate identity, dribbble style --no text, realistic details --ar 1:1
|
| 35 |
+
```
|
| 36 |
+
|
| 37 |
+
### Variables/Template Example:
|
| 38 |
+
```text
|
| 39 |
+
COMPANY_TYPE: Tech Startup
|
| 40 |
+
COMPANY_NAME: CloudSync
|
| 41 |
+
SUBJECT: abstract cloud interlocked with a gear
|
| 42 |
+
```
|
| 43 |
+
|
| 44 |
+
### Example Output:
|
| 45 |
+
```text
|
| 46 |
+
[Flux returns a super clean, flat-color vector logo of a cloud and gear interlocking. The white background makes it look perfectly corporate and ready for a pitch deck.]
|
| 47 |
+
```
|
| 48 |
+
|
| 49 |
+
---
|
| 50 |
+
|
| 51 |
+
## Isometric 3D Room
|
| 52 |
+
|
| 53 |
+
**Difficulty:** Intermediate | **Best Model:** Midjourney / DALL-E 3 | **Use Case:** Concept Art
|
| 54 |
+
|
| 55 |
+
**Tags:** ai-art, isometric, 3d, concept
|
| 56 |
+
|
| 57 |
+
### Prompt:
|
| 58 |
+
```text
|
| 59 |
+
An adorable isometric 3D render of a [ROOM_TYPE], [COLOR_PALETTE] color palette, soft clay render style, tilt-shift, bright ambient occlusion, blender, octane render, trending on artstation --ar 4:5
|
| 60 |
+
```
|
| 61 |
+
|
| 62 |
+
### Variables/Template Example:
|
| 63 |
+
```text
|
| 64 |
+
ROOM_TYPE: cozy indie game developer bedroom with dual monitors and posters
|
| 65 |
+
COLOR_PALETTE: pastel purple and warm yellow
|
| 66 |
+
```
|
| 67 |
+
|
| 68 |
+
### Example Output:
|
| 69 |
+
```text
|
| 70 |
+
[DALL-E 3 generates an absolutely adorable, pastel-colored 3D isometric bedroom layout. The lighting feels like a soft clay render, exactly as asked!]
|
| 71 |
+
```
|
| 72 |
+
|
| 73 |
+
---
|
| 74 |
+
|
prompts/business/README.md
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Business Prompts
|
| 2 |
+
|
| 3 |
+
## Executive Summary Generator
|
| 4 |
+
|
| 5 |
+
**Difficulty:** Beginner | **Best Model:** Claude 3.5 Sonnet | **Use Case:** Pitch Decks
|
| 6 |
+
|
| 7 |
+
**Tags:** business, executive-summary, strategy
|
| 8 |
+
|
| 9 |
+
### Prompt:
|
| 10 |
+
```text
|
| 11 |
+
Write a compelling 1-page Executive Summary for a business plan. The company is [COMPANY_NAME], providing [PRODUCT/SERVICE] to [TARGET_MARKET]. Highlight the problem, solution, monetization strategy, and a 3-year vision.
|
| 12 |
+
```
|
| 13 |
+
|
| 14 |
+
### Variables/Template Example:
|
| 15 |
+
```text
|
| 16 |
+
COMPANY_NAME: EcoDrive
|
| 17 |
+
PRODUCT: Electric vehicle charging network
|
| 18 |
+
TARGET_MARKET: Urban apartment complexes
|
| 19 |
+
```
|
| 20 |
+
|
| 21 |
+
### Example Output:
|
| 22 |
+
```text
|
| 23 |
+
**Executive Summary: EcoDrive**
|
| 24 |
+
|
| 25 |
+
**The Problem**: Urban EV owners lack accessible charging infrastructure at home.
|
| 26 |
+
**The Solution**: EcoDrive installs and manages scalable EV charging hubs in apartment parking garages.
|
| 27 |
+
**Monetization**: Subscription model for residents + revenue share with building management.
|
| 28 |
+
**3-Year Vision**: Expand to 500+ buildings across 3 major metropolitan areas.
|
| 29 |
+
```
|
| 30 |
+
|
| 31 |
+
---
|
| 32 |
+
|
prompts/career/README.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Career Prompts
|
| 2 |
+
|
| 3 |
+
## Resume Optimizer
|
| 4 |
+
|
| 5 |
+
**Difficulty:** Intermediate | **Best Model:** GPT-4o | **Use Case:** Job application
|
| 6 |
+
|
| 7 |
+
**Tags:** career, resume, job-search
|
| 8 |
+
|
| 9 |
+
### Prompt:
|
| 10 |
+
```text
|
| 11 |
+
I will provide my current resume and a target job description. Rewrite my bullet points to highlight the skills and experiences that best match the job description. Use strong action verbs, quantify achievements where possible (e.g., 'increased sales by 20%'), and ensure ATS compatibility.
|
| 12 |
+
```
|
| 13 |
+
|
| 14 |
+
### Variables/Template:
|
| 15 |
+
```text
|
| 16 |
+
Resume: [INSERT RESUME]
|
| 17 |
+
Job Description: [INSERT JD]
|
| 18 |
+
```
|
| 19 |
+
|
| 20 |
+
---
|
| 21 |
+
|
prompts/coding/README.md
ADDED
|
@@ -0,0 +1,164 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Coding Prompts
|
| 2 |
+
|
| 3 |
+
## Code Refactoring & Optimization
|
| 4 |
+
|
| 5 |
+
**Difficulty:** Intermediate | **Best Model:** Claude 3.5 Sonnet / GPT-4o | **Use Case:** Improving existing code quality
|
| 6 |
+
|
| 7 |
+
**Tags:** coding, refactoring, optimization, clean-code
|
| 8 |
+
|
| 9 |
+
### Prompt:
|
| 10 |
+
```text
|
| 11 |
+
Act as a Senior Software Engineer. Refactor the following code for better readability, performance, and adherence to DRY principles. Explain the time and space complexity optimizations.
|
| 12 |
+
|
| 13 |
+
```python
|
| 14 |
+
[CODE_SNIPPET]
|
| 15 |
+
```
|
| 16 |
+
```
|
| 17 |
+
|
| 18 |
+
### Variables/Template Example:
|
| 19 |
+
```text
|
| 20 |
+
CODE_SNIPPET: def calc(n):
|
| 21 |
+
r=[]
|
| 22 |
+
for i in range(n):
|
| 23 |
+
if i%2==0:
|
| 24 |
+
r.append(i)
|
| 25 |
+
return r
|
| 26 |
+
```
|
| 27 |
+
|
| 28 |
+
### Example Output:
|
| 29 |
+
```text
|
| 30 |
+
Here is the refactored code using a list comprehension, which is more Pythonic and slightly faster:
|
| 31 |
+
|
| 32 |
+
```python
|
| 33 |
+
def calc(n):
|
| 34 |
+
return [i for i in range(n) if i % 2 == 0]
|
| 35 |
+
```
|
| 36 |
+
|
| 37 |
+
**Time Complexity**: O(N) - We still iterate through `n` elements once.
|
| 38 |
+
**Space Complexity**: O(N) - The resulting list contains N/2 elements.
|
| 39 |
+
```
|
| 40 |
+
|
| 41 |
+
---
|
| 42 |
+
|
| 43 |
+
## Security Vulnerability Scanner
|
| 44 |
+
|
| 45 |
+
**Difficulty:** Advanced | **Best Model:** GPT-4o | **Use Case:** Security and bug fixing
|
| 46 |
+
|
| 47 |
+
**Tags:** coding, security, qa, vulnerabilities
|
| 48 |
+
|
| 49 |
+
### Prompt:
|
| 50 |
+
```text
|
| 51 |
+
Act as a Lead Security Engineer. Analyze this code for potential vulnerabilities (SQL Injection, XSS, CSRF, etc.). Provide a detailed report and a secure version of the code.
|
| 52 |
+
|
| 53 |
+
```javascript
|
| 54 |
+
[CODE_SNIPPET]
|
| 55 |
+
```
|
| 56 |
+
```
|
| 57 |
+
|
| 58 |
+
### Variables/Template Example:
|
| 59 |
+
```text
|
| 60 |
+
CODE_SNIPPET: app.get('/user', (req, res) => {
|
| 61 |
+
db.query(`SELECT * FROM users WHERE id = ${req.query.id}`);
|
| 62 |
+
});
|
| 63 |
+
```
|
| 64 |
+
|
| 65 |
+
### Example Output:
|
| 66 |
+
```text
|
| 67 |
+
**Vulnerability Found: SQL Injection (SQLi)**
|
| 68 |
+
|
| 69 |
+
The code directly concatenates user input (`req.query.id`) into the SQL query string. An attacker could pass `1 OR 1=1` to expose all users.
|
| 70 |
+
|
| 71 |
+
**Secure Code (Using Parameterized Queries):**
|
| 72 |
+
```javascript
|
| 73 |
+
app.get('/user', (req, res) => {
|
| 74 |
+
db.query('SELECT * FROM users WHERE id = ?', [req.query.id], (error, results) => {
|
| 75 |
+
// handle results
|
| 76 |
+
});
|
| 77 |
+
});
|
| 78 |
+
```
|
| 79 |
+
```
|
| 80 |
+
|
| 81 |
+
---
|
| 82 |
+
|
| 83 |
+
## Comprehensive Unit Test Generator
|
| 84 |
+
|
| 85 |
+
**Difficulty:** Intermediate | **Best Model:** Claude 3.5 Sonnet | **Use Case:** Test-driven development
|
| 86 |
+
|
| 87 |
+
**Tags:** coding, testing, tdd, unit-tests
|
| 88 |
+
|
| 89 |
+
### Prompt:
|
| 90 |
+
```text
|
| 91 |
+
Write comprehensive unit tests for the following function using [TESTING_FRAMEWORK]. Include happy paths, edge cases, and expected exceptions. Ensure maximum coverage.
|
| 92 |
+
|
| 93 |
+
```
|
| 94 |
+
[CODE_SNIPPET]
|
| 95 |
+
```
|
| 96 |
+
```
|
| 97 |
+
|
| 98 |
+
### Variables/Template Example:
|
| 99 |
+
```text
|
| 100 |
+
TESTING_FRAMEWORK: pytest
|
| 101 |
+
CODE_SNIPPET: def divide(a, b): return a / b
|
| 102 |
+
```
|
| 103 |
+
|
| 104 |
+
### Example Output:
|
| 105 |
+
```text
|
| 106 |
+
```python
|
| 107 |
+
import pytest
|
| 108 |
+
from my_module import divide
|
| 109 |
+
|
| 110 |
+
def test_divide_happy_path():
|
| 111 |
+
assert divide(10, 2) == 5.0
|
| 112 |
+
|
| 113 |
+
def test_divide_negative_numbers():
|
| 114 |
+
assert divide(-10, 2) == -5.0
|
| 115 |
+
assert divide(-10, -2) == 5.0
|
| 116 |
+
|
| 117 |
+
def test_divide_by_zero():
|
| 118 |
+
with pytest.raises(ZeroDivisionError):
|
| 119 |
+
divide(10, 0)
|
| 120 |
+
```
|
| 121 |
+
```
|
| 122 |
+
|
| 123 |
+
---
|
| 124 |
+
|
| 125 |
+
## Database Schema Architect
|
| 126 |
+
|
| 127 |
+
**Difficulty:** Advanced | **Best Model:** GPT-4o | **Use Case:** System Design
|
| 128 |
+
|
| 129 |
+
**Tags:** coding, database, sql, architecture
|
| 130 |
+
|
| 131 |
+
### Prompt:
|
| 132 |
+
```text
|
| 133 |
+
Act as a Database Architect. Design a relational database schema for a [APP_DESCRIPTION]. Provide the SQL `CREATE TABLE` statements, identify Primary and Foreign Keys, and suggest appropriate indexes for performance.
|
| 134 |
+
```
|
| 135 |
+
|
| 136 |
+
### Variables/Template Example:
|
| 137 |
+
```text
|
| 138 |
+
APP_DESCRIPTION: E-commerce platform handling users, products, orders, and reviews.
|
| 139 |
+
```
|
| 140 |
+
|
| 141 |
+
### Example Output:
|
| 142 |
+
```text
|
| 143 |
+
Here is the schema for the e-commerce platform:
|
| 144 |
+
|
| 145 |
+
```sql
|
| 146 |
+
CREATE TABLE Users (
|
| 147 |
+
id UUID PRIMARY KEY,
|
| 148 |
+
email VARCHAR(255) UNIQUE NOT NULL,
|
| 149 |
+
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
|
| 150 |
+
);
|
| 151 |
+
|
| 152 |
+
CREATE TABLE Products (
|
| 153 |
+
id UUID PRIMARY KEY,
|
| 154 |
+
name VARCHAR(255) NOT NULL,
|
| 155 |
+
price DECIMAL(10, 2) NOT NULL
|
| 156 |
+
);
|
| 157 |
+
|
| 158 |
+
-- Recommended Indexes
|
| 159 |
+
CREATE INDEX idx_users_email ON Users(email);
|
| 160 |
+
```
|
| 161 |
+
```
|
| 162 |
+
|
| 163 |
+
---
|
| 164 |
+
|
prompts/health/README.md
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Health Prompts
|
| 2 |
+
|
| 3 |
+
## Personalized Macro & Meal Plan
|
| 4 |
+
|
| 5 |
+
**Difficulty:** Intermediate | **Best Model:** Claude 3.5 Sonnet | **Use Case:** Diet planning
|
| 6 |
+
|
| 7 |
+
**Tags:** health, diet, nutrition
|
| 8 |
+
|
| 9 |
+
### Prompt:
|
| 10 |
+
```text
|
| 11 |
+
Act as a professional nutritionist. Create a 7-day high-protein, low-carb meal plan for someone whose goal is [GOAL]. Their dietary restrictions are [RESTRICTIONS], and daily caloric target is [CALORIES]. Provide a breakdown of macros for each meal and a consolidated grocery list.
|
| 12 |
+
```
|
| 13 |
+
|
| 14 |
+
### Variables/Template:
|
| 15 |
+
```text
|
| 16 |
+
Goal: [INSERT GOAL]
|
| 17 |
+
Restrictions: [INSERT RESTRICTIONS]
|
| 18 |
+
Calories: [INSERT CALORIES]
|
| 19 |
+
```
|
| 20 |
+
|
| 21 |
+
---
|
| 22 |
+
|
prompts/learning/README.md
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Learning Prompts
|
| 2 |
+
|
| 3 |
+
## Socratic Method Tutor
|
| 4 |
+
|
| 5 |
+
**Difficulty:** Advanced | **Best Model:** GPT-4o | **Use Case:** Deep Learning
|
| 6 |
+
|
| 7 |
+
**Tags:** learning, socratic, education, tutor
|
| 8 |
+
|
| 9 |
+
### Prompt:
|
| 10 |
+
```text
|
| 11 |
+
Act as a Socratic tutor. I want to learn about [TOPIC]. DO NOT give me the direct answers. Instead, ask me probing questions one at a time to help me arrive at the conclusions myself. Start with your first question.
|
| 12 |
+
```
|
| 13 |
+
|
| 14 |
+
### Variables/Template Example:
|
| 15 |
+
```text
|
| 16 |
+
TOPIC: How the stock market works
|
| 17 |
+
```
|
| 18 |
+
|
| 19 |
+
### Example Output:
|
| 20 |
+
```text
|
| 21 |
+
Welcome! I'd love to help you explore how the stock market works. Let's start with a foundational idea: If you own a small lemonade stand and want to expand it into a big store, but you don't have enough money, how might you get the funds to do so?
|
| 22 |
+
```
|
| 23 |
+
|
| 24 |
+
---
|
| 25 |
+
|
prompts/marketing/README.md
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Marketing Prompts
|
| 2 |
+
|
| 3 |
+
## The AIDA Copywriting Framework
|
| 4 |
+
|
| 5 |
+
**Difficulty:** Intermediate | **Best Model:** GPT-4o | **Use Case:** Email Marketing
|
| 6 |
+
|
| 7 |
+
**Tags:** marketing, copywriting, aida, email
|
| 8 |
+
|
| 9 |
+
### Prompt:
|
| 10 |
+
```text
|
| 11 |
+
Write a high-converting email campaign for [PRODUCT] using the AIDA framework:
|
| 12 |
+
- **Attention**: Catchy hook.
|
| 13 |
+
- **Interest**: Fascinating facts/benefits.
|
| 14 |
+
- **Desire**: Emotional appeal and FOMO.
|
| 15 |
+
- **Action**: A clear, low-friction CTA.
|
| 16 |
+
```
|
| 17 |
+
|
| 18 |
+
### Variables/Template Example:
|
| 19 |
+
```text
|
| 20 |
+
PRODUCT: A new AI-powered noise-canceling headset for remote workers.
|
| 21 |
+
```
|
| 22 |
+
|
| 23 |
+
### Example Output:
|
| 24 |
+
```text
|
| 25 |
+
**Subject:** Silence the chaos. Focus on what matters.
|
| 26 |
+
|
| 27 |
+
**Attention**: Barking dogs? Lawn mowers? Kids playing? Remote work is loud.
|
| 28 |
+
**Interest**: Meet the Zenith Headset. It uses an onboard AI chip to filter out 99.8% of background noise before it ever reaches your microphone.
|
| 29 |
+
**Desire**: Imagine presenting to the CEO with crystal-clear audio, completely stress-free. No more apologizing for the noise.
|
| 30 |
+
**Action**: [Pre-order today] and get 20% off for the next 24 hours.
|
| 31 |
+
```
|
| 32 |
+
|
| 33 |
+
---
|
| 34 |
+
|
| 35 |
+
## SEO Blog Post Structure
|
| 36 |
+
|
| 37 |
+
**Difficulty:** Beginner | **Best Model:** Claude 3.5 Sonnet | **Use Case:** Content SEO
|
| 38 |
+
|
| 39 |
+
**Tags:** marketing, seo, blogging, content
|
| 40 |
+
|
| 41 |
+
### Prompt:
|
| 42 |
+
```text
|
| 43 |
+
Create a comprehensive SEO-optimized outline for a blog post titled '[TITLE]'. Include a meta description, an H1, multiple H2s and H3s, and indicate where to naturally inject these keywords: [KEYWORDS].
|
| 44 |
+
```
|
| 45 |
+
|
| 46 |
+
### Variables/Template Example:
|
| 47 |
+
```text
|
| 48 |
+
TITLE: The Ultimate Guide to Prompt Engineering
|
| 49 |
+
KEYWORDS: LLM, AI prompts, ChatGPT tips, machine learning
|
| 50 |
+
```
|
| 51 |
+
|
| 52 |
+
### Example Output:
|
| 53 |
+
```text
|
| 54 |
+
**Meta Description**: Master the art of communicating with AI. Learn the best ChatGPT tips, LLM frameworks, and prompt engineering techniques to 10x your productivity.
|
| 55 |
+
|
| 56 |
+
**H1**: The Ultimate Guide to Prompt Engineering
|
| 57 |
+
- **H2**: What is an LLM? (Keyword: LLM, machine learning)
|
| 58 |
+
- **H2**: Core AI Prompts and Structures (Keyword: AI prompts)
|
| 59 |
+
- **H3**: Zero-Shot vs Few-Shot
|
| 60 |
+
- **H2**: Top 5 ChatGPT Tips for Beginners (Keyword: ChatGPT tips)
|
| 61 |
+
```
|
| 62 |
+
|
| 63 |
+
---
|
| 64 |
+
|
prompts/productivity/README.md
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Productivity Prompts
|
| 2 |
+
|
| 3 |
+
## Eisenhower Matrix Prioritization
|
| 4 |
+
|
| 5 |
+
**Difficulty:** Beginner | **Best Model:** Claude 3.5 Sonnet | **Use Case:** Time Management
|
| 6 |
+
|
| 7 |
+
**Tags:** productivity, matrix, time-management
|
| 8 |
+
|
| 9 |
+
### Prompt:
|
| 10 |
+
```text
|
| 11 |
+
I have the following to-do list: [TASKS]. Categorize them using the Eisenhower Matrix (Urgent & Important, Important not Urgent, Urgent not Important, Neither). Suggest a plan of action.
|
| 12 |
+
```
|
| 13 |
+
|
| 14 |
+
### Variables/Template Example:
|
| 15 |
+
```text
|
| 16 |
+
TASKS: 1. Fix critical server bug. 2. Buy groceries. 3. Read a book on leadership. 4. Reply to casual Slack messages.
|
| 17 |
+
```
|
| 18 |
+
|
| 19 |
+
### Example Output:
|
| 20 |
+
```text
|
| 21 |
+
**Urgent & Important (Do Now)**: 1. Fix critical server bug.
|
| 22 |
+
**Important, Not Urgent (Schedule)**: 3. Read a book on leadership.
|
| 23 |
+
**Urgent, Not Important (Delegate/Batch)**: 2. Buy groceries.
|
| 24 |
+
**Neither (Delete/Minimize)**: 4. Reply to casual Slack messages.
|
| 25 |
+
```
|
| 26 |
+
|
| 27 |
+
---
|
| 28 |
+
|
prompts/prompt-engineering/README.md
ADDED
|
@@ -0,0 +1,129 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Prompt Engineering Prompts
|
| 2 |
+
|
| 3 |
+
## Chain of Thought (CoT) Reasoning
|
| 4 |
+
|
| 5 |
+
**Difficulty:** Advanced | **Best Model:** Claude 3.5 Sonnet / GPT-4o | **Use Case:** Complex problem solving
|
| 6 |
+
|
| 7 |
+
**Tags:** prompt-engineering, cot, reasoning
|
| 8 |
+
|
| 9 |
+
### Prompt:
|
| 10 |
+
```text
|
| 11 |
+
Solve the following problem. Before giving the final answer, show your step-by-step reasoning process. Think out loud, explain each deduction, and break down your logical steps clearly. Problem: [PROBLEM]
|
| 12 |
+
```
|
| 13 |
+
|
| 14 |
+
### Variables/Template Example:
|
| 15 |
+
```text
|
| 16 |
+
PROBLEM: If John has 5 apples and buys 3 more, then gives half his total to Mary, how many does he have?
|
| 17 |
+
```
|
| 18 |
+
|
| 19 |
+
### Example Output:
|
| 20 |
+
```text
|
| 21 |
+
Let's break this down step-by-step:
|
| 22 |
+
1. John starts with 5 apples.
|
| 23 |
+
2. He buys 3 more. 5 + 3 = 8 apples total.
|
| 24 |
+
3. He gives half of his total to Mary. Half of 8 is 4.
|
| 25 |
+
4. Therefore, John keeps 8 - 4 = 4 apples.
|
| 26 |
+
|
| 27 |
+
**Final Answer:** John has 4 apples left.
|
| 28 |
+
```
|
| 29 |
+
|
| 30 |
+
---
|
| 31 |
+
|
| 32 |
+
## System Prompt Creator
|
| 33 |
+
|
| 34 |
+
**Difficulty:** Expert | **Best Model:** Claude 3 Opus | **Use Case:** Creating AI Agents
|
| 35 |
+
|
| 36 |
+
**Tags:** prompt-engineering, system-prompt, agents
|
| 37 |
+
|
| 38 |
+
### Prompt:
|
| 39 |
+
```text
|
| 40 |
+
You are an expert AI Architect. Your task is to write a highly detailed 'System Prompt' that configures an AI to act as a [ROLE]. Include their persona, rules, constraints, and output formatting instructions.
|
| 41 |
+
```
|
| 42 |
+
|
| 43 |
+
### Variables/Template Example:
|
| 44 |
+
```text
|
| 45 |
+
ROLE: Senior Legal Tech Assistant
|
| 46 |
+
```
|
| 47 |
+
|
| 48 |
+
### Example Output:
|
| 49 |
+
```text
|
| 50 |
+
```text
|
| 51 |
+
**Role**: You are Lexi, a Senior Legal Tech Assistant.
|
| 52 |
+
**Persona**: Professional, precise, and highly analytical.
|
| 53 |
+
**Rules**:
|
| 54 |
+
1. NEVER provide definitive legal advice (always include a disclaimer).
|
| 55 |
+
2. Cite relevant case law jurisdiction when asked.
|
| 56 |
+
3. Keep responses under 3 paragraphs unless summarizing a document.
|
| 57 |
+
**Output Format**: Use markdown headers for 'Summary', 'Key Clauses', and 'Risk Analysis'.
|
| 58 |
+
```
|
| 59 |
+
```
|
| 60 |
+
|
| 61 |
+
---
|
| 62 |
+
|
| 63 |
+
## Self-Critique & Refinement (Reflection)
|
| 64 |
+
|
| 65 |
+
**Difficulty:** Advanced | **Best Model:** Claude 3.5 Sonnet | **Use Case:** High-quality content generation
|
| 66 |
+
|
| 67 |
+
**Tags:** prompt-engineering, reflection, self-critique
|
| 68 |
+
|
| 69 |
+
### Prompt:
|
| 70 |
+
```text
|
| 71 |
+
Generate a solution for [TASK]. Once generated, critique your own work by identifying at least 3 potential flaws, biases, or weaknesses. Finally, provide a revised version that addresses these criticisms.
|
| 72 |
+
```
|
| 73 |
+
|
| 74 |
+
### Variables/Template Example:
|
| 75 |
+
```text
|
| 76 |
+
TASK: Write a short cold email for a marketing agency.
|
| 77 |
+
```
|
| 78 |
+
|
| 79 |
+
### Example Output:
|
| 80 |
+
```text
|
| 81 |
+
**Initial Draft**: Hi, we are a marketing agency. We can boost your sales. Call us!
|
| 82 |
+
|
| 83 |
+
**Critique**:
|
| 84 |
+
1. Too generic, lacks personalization.
|
| 85 |
+
2. No clear value proposition or social proof.
|
| 86 |
+
3. The Call to Action is too aggressive.
|
| 87 |
+
|
| 88 |
+
**Revised Draft**: Hi [Name], noticed [Company] is launching a new product. We helped [Competitor/Similar Co] increase conversions by 20% using targeted ads. Open to a 5-min chat next Tuesday?
|
| 89 |
+
```
|
| 90 |
+
|
| 91 |
+
---
|
| 92 |
+
|
| 93 |
+
## ReAct (Reasoning and Acting)
|
| 94 |
+
|
| 95 |
+
**Difficulty:** Expert | **Best Model:** GPT-4o | **Use Case:** Agentic workflows
|
| 96 |
+
|
| 97 |
+
**Tags:** prompt-engineering, react, agents, logic
|
| 98 |
+
|
| 99 |
+
### Prompt:
|
| 100 |
+
```text
|
| 101 |
+
Answer the following question using the ReAct framework. Use the format:
|
| 102 |
+
Thought: [Your reasoning]
|
| 103 |
+
Action: [The tool or action to take, e.g., Search(query)]
|
| 104 |
+
Observation: [The result of the action]
|
| 105 |
+
... (Repeat until you have the answer)
|
| 106 |
+
Thought: I now know the answer.
|
| 107 |
+
Final Answer: [Answer]
|
| 108 |
+
Question: [QUESTION]
|
| 109 |
+
```
|
| 110 |
+
|
| 111 |
+
### Variables/Template Example:
|
| 112 |
+
```text
|
| 113 |
+
QUESTION: Who is the current CEO of Microsoft and how old is he?
|
| 114 |
+
```
|
| 115 |
+
|
| 116 |
+
### Example Output:
|
| 117 |
+
```text
|
| 118 |
+
Thought: I need to find out who the current CEO of Microsoft is.
|
| 119 |
+
Action: Search(Microsoft current CEO)
|
| 120 |
+
Observation: Satya Nadella is the CEO of Microsoft.
|
| 121 |
+
Thought: Now I need to find Satya Nadella's age.
|
| 122 |
+
Action: Search(Satya Nadella age)
|
| 123 |
+
Observation: Satya Nadella was born on August 19, 1967 (age 56 years).
|
| 124 |
+
Thought: I now know the answer.
|
| 125 |
+
Final Answer: The current CEO of Microsoft is Satya Nadella, and he is 56 years old.
|
| 126 |
+
```
|
| 127 |
+
|
| 128 |
+
---
|
| 129 |
+
|
prompts/real-world-use-cases/README.md
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Real World Use Cases Prompts
|
| 2 |
+
|
| 3 |
+
## SaaS Customer Support Agent (JSON Output)
|
| 4 |
+
|
| 5 |
+
**Difficulty:** Advanced | **Best Model:** GPT-4o | **Use Case:** Automated Ticket Triage
|
| 6 |
+
|
| 7 |
+
**Tags:** use-cases, saas, automation, json
|
| 8 |
+
|
| 9 |
+
### Prompt:
|
| 10 |
+
```text
|
| 11 |
+
You are a customer support triage agent for a SaaS. Read the following user ticket: [TICKET].
|
| 12 |
+
Categorize it (Bug, Feature Request, Billing, Question), determine the priority (Low, Med, High), and draft a short, empathetic reply. Return ONLY a valid JSON object.
|
| 13 |
+
```
|
| 14 |
+
|
| 15 |
+
### Variables/Template Example:
|
| 16 |
+
```text
|
| 17 |
+
TICKET: I've been charged twice this month for my pro subscription! Help!!
|
| 18 |
+
```
|
| 19 |
+
|
| 20 |
+
### Example Output:
|
| 21 |
+
```text
|
| 22 |
+
{
|
| 23 |
+
"category": "Billing",
|
| 24 |
+
"priority": "High",
|
| 25 |
+
"draft_reply": "Hi there, I am so sorry to hear you were charged twice! I've escalated this to our billing team immediately to process a refund for the duplicate charge. You should see it resolved in 1-2 business days."
|
| 26 |
+
}
|
| 27 |
+
```
|
| 28 |
+
|
| 29 |
+
---
|
| 30 |
+
|
| 31 |
+
## Automated CRM Data Extraction
|
| 32 |
+
|
| 33 |
+
**Difficulty:** Beginner | **Best Model:** Gemini 1.5 Pro | **Use Case:** Data Entry Automation
|
| 34 |
+
|
| 35 |
+
**Tags:** use-cases, crm, data-extraction, automation
|
| 36 |
+
|
| 37 |
+
### Prompt:
|
| 38 |
+
```text
|
| 39 |
+
Extract the contact information (Name, Company, Email, Phone, Role) from this email signature and format it into a CSV row. Email signature: [SIGNATURE]
|
| 40 |
+
```
|
| 41 |
+
|
| 42 |
+
### Variables/Template Example:
|
| 43 |
+
```text
|
| 44 |
+
SIGNATURE: Best, Sarah Jenkins | VP of Sales at TechCorp | s.jenkins@techcorp.com | (555) 123-4567
|
| 45 |
+
```
|
| 46 |
+
|
| 47 |
+
### Example Output:
|
| 48 |
+
```text
|
| 49 |
+
Name,Company,Email,Phone,Role
|
| 50 |
+
Sarah Jenkins,TechCorp,s.jenkins@techcorp.com,(555) 123-4567,VP of Sales
|
| 51 |
+
```
|
| 52 |
+
|
| 53 |
+
---
|
| 54 |
+
|