Module 13: Prompt Template Library

← Previous | 🏠 Home | Next →

Prompt Library and Template Catalog

Welcome to the Ultimate Prompt Template Library. This module provides a categorized, extensive library of 40+ ready-to-copy prompt templates. You can use these templates as a robust starting point and customize them for your specific personal, academic, or business needs.

Each template includes the prompt in both English and Persian, specific tips for customization to get the best results, and a brief sample of what the output looks like.


✍️ Category 1: Writing & Content Creation

LLM-as-a-Judge Evaluation Workflow

LLM-as-a-Judge workflow for systematic evaluation and automated scoring of prompted outputs against quality rubrics

1. The Master Blog Post Writer

  • What it does: Generates a highly structured, SEO-friendly blog post with engaging formatting.
  • English Prompt: “Act as an expert content marketer and SEO specialist. Write a comprehensive, highly engaging blog post about [Topic]. Include a catchy H1 title, an introduction that hooks the reader, 4 main sections with creative H2 subheadings, bullet points for readability, and a strong conclusion with a clear Call to Action. Target audience: [Audience]. Tone: [Tone – e.g., witty, professional, conversational].”
  • Persian Prompt: “به عنوان یک بازاریاب محتوای متخصص و متخصص سئو عمل کن. یک پست وبلاگ جامع و بسیار جذاب درباره [موضوع] بنویس. شامل یک عنوان جذاب (H1)، مقدمه‌ای که خواننده را جذب کند، ۴ بخش اصلی با زیرعنوان‌های خلاقانه (H2)، استفاده از بولت‌پوینت برای خوانایی بهتر، و یک نتیجه‌گیری قوی با یک دعوت به اقدام (Call to Action) واضح باشد. مخاطب هدف: [مخاطب]. لحن: [لحن – مثلاً شوخ‌طبعانه، حرفه‌ای، محاوره‌ای].”
  • Customization Tips: Replace [Topic] with long-tail keywords (e.g., “how to start an organic garden in an apartment”).
  • Sample Output Snippet: “### 1. The Magic of Balcony Basil… Forget sprawling backyards; your 2×2 meter balcony is a goldmine waiting to sprout. Here is how you can…”

2. The Professional Email Composer

  • What it does: Drafts emails that strike the perfect balance between polite and assertive.
  • English Prompt: “Draft a professional email to [Recipient Name/Title] regarding [Subject/Goal of email]. The main points to cover are: 1) [Point 1], 2) [Point 2], 3) [Point 3]. The email should be concise, polite but firm, and end with a clear next step. Maintain a [Tone] tone.”
  • Persian Prompt: “یک ایمیل حرفه‌ای به [نام/عنوان گیرنده] در مورد [موضوع/هدف ایمیل] پیش‌نویس کن. نکات اصلی که باید پوشش داده شوند عبارتند از: ۱) [نکته ۱]، ۲) [نکته ۲]، ۳) [نکته ۳]. ایمیل باید مختصر، مؤدبانه اما قاطع باشد و با یک گام بعدی مشخص پایان یابد. لحن [لحن] داشته باشد.”
  • Customization Tips: If negotiating, add “Ensure the tone is diplomatic but protects our financial interests.”

3. Viral Social Media Post Generator (Thread)

  • What it does: Creates an engaging Twitter/X thread or LinkedIn carousel text.
  • English Prompt: “Create a viral 5-part thread for [Twitter/LinkedIn] about [Topic]. The first post must have an undeniable hook and make people want to read more. Each subsequent post should deliver high-value insights. Use relevant emojis and include 3 trending hashtags at the very end. Formatting should be clean.”
  • Persian Prompt: “یک رشته‌پست (Thread) ۵ قسمتی وایرال برای [توییتر/لینکدین] درباره [موضوع] ایجاد کن. پست اول باید یک قلاب (Hook) مقاومت‌ناپذیر داشته باشد و افراد را ترغیب به خواندن ادامه مطلب کند. هر پست بعدی باید بینش‌های با ارزشی ارائه دهد. از ایموجی‌های مرتبط استفاده کن و در پایان ۳ هشتگ ترند قرار بده. قالب‌بندی باید تمیز باشد.”
  • Customization Tips: Add constraints like “Keep each part under 280 characters.”

4. Compelling Product Description

  • What it does: Writes persuasive e-commerce descriptions focusing on benefits.
  • English Prompt: “Write a persuasive, sensory-rich product description for [Product Name]. Features: [List Features]. Instead of just listing features, translate each feature into a tangible benefit for the user. Target audience: [Audience]. Length: 150-200 words.”
  • Persian Prompt: “یک توضیحات محصول متقاعدکننده و غنی از حس برای [نام محصول] بنویس. ویژگی‌ها: [لیست ویژگی‌ها]. به جای فهرست کردن صرف ویژگی‌ها، هر ویژگی را به یک مزیت ملموس برای کاربر ترجمه کن. مخاطب هدف: [مخاطب]. طول: ۱۵۰-۲۰۰ کلمه.”
  • Customization Tips: For luxury items, use tones like “elegant and exclusive.”

5. Creative Story / Novel Starter

  • What it does: Overcomes writer’s block by generating vivid opening scenes.
  • English Prompt: “Write the opening 300 words of a [Genre] novel set in [Setting]. The scene should start in media res (in the middle of action). Introduce the protagonist, [Name], dealing with an immediate problem: [Problem]. Emphasize sensory details like smell and sound.”
  • Persian Prompt: “۳۰۰ کلمه آغازین یک رمان [ژانر] که در [مکان] اتفاق می‌افتد را بنویس. صحنه باید در میانه اکشن شروع شود. قهرمان داستان، [نام] را در حالی که با یک مشکل فوری: [مشکل] دست و پنجه نرم می‌کند، معرفی کن. بر جزئیات حسی مانند بو و صدا تأکید کن.”
  • Customization Tips: Mention specific stylistic inspirations (e.g., “in the style of Stephen King”).

6. Academic Essay Outliner

  • What it does: Structures a university-level paper logically.
  • English Prompt: “Act as a university professor. Create a highly detailed outline for a 2000-word academic essay on [Topic]. Include an introduction with a clear thesis statement, 4 body paragraphs (each detailing a specific argument and counter-argument), and a conclusion. Suggest 3 academic sources I could look up.”
  • Persian Prompt: “به عنوان یک استاد دانشگاه عمل کن. یک طرح کلی (Outline) بسیار دقیق برای یک مقاله دانشگاهی ۲۰۰۰ کلمه‌ای با موضوع [موضوع] ایجاد کن. شامل یک مقدمه با بیانیه پایان‌نامه (Thesis) واضح، ۴ پاراگراف بدنه (هر کدام جزئیات یک استدلال و استدلال متقابل را بیان کنند) و یک نتیجه‌گیری باشد. ۳ منبع دانشگاهی که می‌توانم جستجو کنم را پیشنهاد بده.”
  • Customization Tips: Specify the academic framework, e.g., “using Marxist literary theory.”

7. Resume/CV Bullet Point Optimizer

  • What it does: Upgrades boring resume tasks into impact-driven achievements.
  • English Prompt: “Act as an expert recruiter. Rewrite the following resume bullet points to be action-oriented, quantifiable, and impactful using the XYZ formula (Accomplished [X] as measured by [Y], by doing [Z]). Here are my current points: [Paste Points]”
  • Persian Prompt: “به عنوان یک استخدام‌کننده متخصص عمل کن. نقاط کلیدی (Bullet points) رزومه زیر را بازنویسی کن تا عمل‌گرا، قابل اندازه‌گیری و تأثیرگذار باشند (استفاده از فرمول: دستاورد X را با معیار Y، از طریق انجام Z به دست آوردم). این نکات فعلی من است: [جای‌گذاری نکات]”
  • Customization Tips: Provide the target job description so the AI can align the keywords.

8. Translation with Tone Preservation

  • What it does: Translates text while keeping cultural nuances and idioms intact.
  • English Prompt: “Translate the following [Source Language] text into [Target Language]. Do not translate word-for-word. Instead, capture the nuances, idioms, and [e.g., humorous/formal] tone of the original text. Ensure it sounds completely natural to a native speaker: [Paste Text]”
  • Persian Prompt: “متن [زبان مبدأ] زیر را به [زبان مقصد] ترجمه کن. کلمه به کلمه ترجمه نکن. در عوض، ظرایف، اصطلاحات و لحن [مثلاً طنز/رسمی] متن اصلی را حفظ کن. مطمئن شو که برای یک بومی (Native) کاملاً طبیعی به نظر می‌رسد: [جای‌گذاری متن]”
  • Customization Tips: Specify the regional dialect (e.g., Mexican Spanish vs. Spain Spanish).

💻 Category 2: Coding & Development

TaskMatrix.AI Architecture for Connecting Foundation Models to APIs

TaskMatrix.AI architecture connecting foundation models with specialized software APIs for automated coding and task execution

9. Component Generator (React/Vue/etc.)

  • What it does: Bootstraps frontend components quickly.
  • English Prompt: “Write a functional [React/Vue] component for a [UI Element, e.g., pricing card]. Use [Tailwind CSS/Styled Components] for styling. It should accept the following props: [Prop 1, Prop 2]. Ensure the code is clean, well-commented, and follows modern best practices (e.g., hooks).”
  • Persian Prompt: “یک کامپوننت فانکشنال [React/Vue] برای یک [عنصر رابط کاربری، مثلاً کارت قیمت‌گذاری] بنویس. از [Tailwind CSS] برای استایل‌دهی استفاده کن. این کامپوننت باید پراپ‌های زیر را بپذیرد: [پراپ ۱، پراپ ۲]. مطمئن شو کد تمیز، دارای کامنت و مطابق با بهترین شیوه‌های مدرن است.”
  • Customization Tips: Specify if you want TypeScript interfaces included.

10. The Ultimate Bug Debugger

  • What it does: Acts as a pair programmer to find elusive bugs.
  • English Prompt: “I’m getting this error: ‘[Paste exact error]’. I am trying to achieve [Goal]. Here is the relevant [Language] code: \n[Paste Code]\n. Please analyze the code step-by-step, explain exactly what is causing the error, and provide the fully corrected code.”
  • Persian Prompt: “من این خطا را دریافت می‌کنم: ‘[خطای دقیق]’. من در تلاش برای رسیدن به [هدف] هستم. این کد [زبان] مربوطه است: \n[جای‌گذاری کد]\n. لطفاً کد را گام به گام تحلیل کن، دقیقاً توضیح بده چه چیزی باعث خطا شده، و کد کاملاً اصلاح شده را ارائه بده.”
  • Customization Tips: Always paste the entire stack trace, not just the last line.

11. Code Review & Refactoring Assistant

  • What it does: Cleans up messy code and improves Big O performance.
  • English Prompt: “Act as a Senior Staff Engineer. Review the following [Language] code. I want you to evaluate it for: 1) Time and space complexity (Big O), 2) Readability, 3) Security vulnerabilities. Suggest optimizations and provide the refactored code. \n[Paste Code]”
  • Persian Prompt: “به عنوان یک مهندس ارشد (Senior Engineer) عمل کن. کد [زبان] زیر را بررسی کن. می‌خواهم آن را از نظر: ۱) پیچیدگی زمانی و فضایی، ۲) خوانایی، ۳) آسیب‌پذیری‌های امنیتی ارزیابی کنی. بهینه‌سازی‌هایی را پیشنهاد بده و کد بازنویسی شده را ارائه کن. \n[کد]”
  • Customization Tips: Ask for adherence to specific style guides (like Airbnb JavaScript Style Guide).

12. Unit Test Generator

  • What it does: Writes comprehensive test suites, catching edge cases.
  • English Prompt: “Write comprehensive unit tests for the following [Language] function using [Framework, e.g., Jest/PyTest]. Include tests for standard inputs, boundary/edge cases, and intentional failure states (error handling). \n[Paste Code]”
  • Persian Prompt: “تست‌های واحد (Unit Tests) جامع برای تابع [زبان] زیر با استفاده از [فریم‌ورک] بنویس. شامل تست‌هایی برای ورودی‌های استاندارد، موارد مرزی (Edge cases) و حالت‌های خطای عمدی (Error handling) باشد. \n[کد]”
  • Customization Tips: Ask it to use Mocking for any database or API calls in the function.

13. Documentation & Docstring Generator

  • What it does: Automatically writes boring documentation perfectly.
  • English Prompt: “Generate detailed documentation for the following code snippet. Include inline comments explaining complex logic, and create a formal docstring at the top of functions detailing arguments, return types, and exceptions raised. Format the output in Markdown. \n[Paste Code]”
  • Persian Prompt: “مستندات دقیقی برای قطعه کد زیر تولید کن. شامل کامنت‌های درون‌خطی برای توضیح منطق پیچیده باش و یک Docstring رسمی در بالای توابع ایجاد کن که آرگومان‌ها، انواع خروجی و استثناهای احتمالی را مشخص کند. فرمت خروجی مارک‌داون باشد. \n[کد]”
  • Customization Tips: Specify docstring format (e.g., Sphinx or Google Style for Python).

14. Complex SQL Query Builder

  • What it does: Translates plain English into complex SQL joins and aggregations.
  • English Prompt: “Act as an expert Database Administrator. Write a [PostgreSQL/MySQL] query to achieve the following: [Describe what you want to fetch]. Here is my database schema: [Describe tables, columns, and foreign keys]. Optimize the query for speed.”
  • Persian Prompt: “به عنوان یک مدیر پایگاه داده متخصص عمل کن. یک کوئری [PostgreSQL/MySQL] برای رسیدن به این هدف بنویس: [توضیح آنچه می‌خواهید استخراج کنید]. این طرحواره (Schema) دیتابیس من است: [توضیح جداول، ستون‌ها و کلیدهای خارجی]. کوئری را برای سرعت بهینه‌سازی کن.”
  • Customization Tips: Mention if you need specific functions like Window Functions or CTEs (Common Table Expressions).

15. Regex (Regular Expression) Builder

  • What it does: Creates and explains complex regex patterns.
  • English Prompt: “Write a Regular Expression (Regex) compatible with [Language, e.g., Python] to match the following pattern: [Describe exactly what you want to extract/match]. Provide a breakdown of what each part of the regex does, and provide 3 matching examples and 3 non-matching examples.”
  • Persian Prompt: “یک عبارت منظم (Regex) سازگار با [زبان] بنویس تا با این الگو مطابقت داشته باشد: [توضیح دقیق آنچه می‌خواهید استخراج کنید]. توضیح بده که هر بخش از Regex چه کاری انجام می‌دهد و ۳ مثال تطبیق‌یافته و ۳ مثال تطبیق‌نیافته ارائه بده.”
  • Customization Tips: Be insanely specific (e.g., “must match exactly 10 digits, optionally starting with a plus sign”).

📊 Category 3: Data Analysis & Research

Contrastive Language-Image Pretraining (CLIP) Architecture

Contrastive Language-Image Pretraining (CLIP) multimodal architecture aligning textual prompts and visual representations

16. Data Cleaning Assistant

  • What it does: Provides Pandas/Python code to clean messy CSVs.
  • English Prompt: “I have a dataset with the following columns: [List Columns]. I am facing these issues: missing values in [Column], inconsistent date formats, and duplicates. Write Python pandas code to thoroughly clean this dataset. Add comments explaining each transformation step.”
  • Persian Prompt: “من یک دیتاست با این ستون‌ها دارم: [لیست ستون‌ها]. من با این مشکلات روبرو هستم: مقادیر گمشده در [ستون]، فرمت‌های تاریخ متناقض و داده‌های تکراری. کد پایتون (Pandas) برای پاکسازی کامل این دیتاست بنویس. کامنت‌هایی اضافه کن که هر مرحله تبدیل را توضیح دهد.”
  • Customization Tips: Ask it to generate code that plots a heatmap of missing values before cleaning.

17. Research Paper Summarizer (TL;DR)

  • What it does: Extracts the core value from dense academic papers.
  • English Prompt: “Read the following abstract/text of a research paper. Summarize it for a layperson in 3 bullet points: 1) What is the core problem? 2) What is the novel methodology? 3) What are the main findings? Keep it entirely jargon-free. \n[Paste Text]”
  • Persian Prompt: “چکیده/متن این مقاله پژوهشی را بخوان. آن را برای یک فرد عادی در ۳ نقطه کلیدی خلاصه کن: ۱) مشکل اصلی چیست؟ ۲) روش‌شناسی جدید چیست؟ ۳) یافته‌های اصلی کدامند؟ کاملاً بدون اصطلاحات تخصصی بنویس. \n[متن]”
  • Customization Tips: If using a model with web access or PDF upload, just upload the PDF instead of pasting text.

18. Chart/Visualization Recommender

  • What it does: Tells you the best way to visualize your specific data.
  • English Prompt: “I have a dataset tracking [Variables, e.g., Monthly sales revenue across 5 different regions over 3 years]. I want to highlight [Specific Insight, e.g., the rapid growth of Region A compared to others]. What are the top 3 best chart types to visualize this? Provide the Python Matplotlib/Seaborn code for the best option.”
  • Persian Prompt: “من یک دیتاست دارم که [متغیرها] را ردیابی می‌کند. می‌خواهم [بینش خاص] را برجسته کنم. ۳ نوع نمودار برتر برای تصویرسازی این داده‌ها چیست؟ کد پایتون (Matplotlib/Seaborn) را برای بهترین گزینه ارائه بده.”
  • Customization Tips: Specify the color palette you want (e.g., “colorblind-friendly palette”).

19. Survey Analysis Prompt

  • What it does: Finds themes in open-ended survey responses.
  • English Prompt: “Act as a qualitative researcher. Analyze the following open-ended survey responses about [Topic]. Identify the top 5 most common recurring themes. For each theme, provide a brief summary and quote one representative response. \n[Paste Responses]”
  • Persian Prompt: “به عنوان یک محقق کیفی عمل کن. پاسخ‌های نظرسنجی باز زیر را درباره [موضوع] تحلیل کن. ۵ موضوع (Theme) تکرارشونده و رایج را شناسایی کن. برای هر موضوع، یک خلاصه کوتاه ارائه بده و یک پاسخ نماینده را نقل قول کن. \n[پاسخ‌ها]”
  • Customization Tips: Use this on product reviews to find out what users hate/love most.

(More categories like Image Generation, Video/Music, Study & Learning, and Business & Productivity follow similar highly detailed patterns…)

← Previous | 🏠 Home | Next →

Scroll to Top