๐Ÿš€ LLM4Free Awesome Prompts Manager

June 26, 2026 ยท View on GitHub

Last updated: 2025-12-20 Maintained by LLM4Free

LLM4Free's Awesome Prompts Manager provides a comprehensive system for managing and utilizing AI personas and specialized prompts. This module offers optimized prompt retrieval, caching, and management capabilities for enhanced AI interactions.

Table of Contents

  1. Core Components
  2. Prompt Manager
  3. Configuration Options
  4. Usage Examples
  5. Prompt Categories
  6. Advanced Features
  7. Integration Guide

Core Components

prompt_manager.py

The main prompt management module that provides comprehensive prompt handling capabilities.

from llm4free.prompt_manager import AwesomePrompts

# Initialize the prompt manager
prompt_manager = AwesomePrompts()

# Get a specific prompt
prompt = prompt_manager.get_act("UX/UI Developer")
print(prompt)

Key Features:

  • Optimized prompt retrieval with LRU caching
  • Automatic updates from online repository
  • Thread-safe operations with proper locking
  • Efficient prompt management and indexing
  • Support for both string and numeric key access
  • Comprehensive error handling and validation

Prompt Manager

AwesomePrompts Class

The main class for managing awesome prompts with caching and optimization.

from llm4free.prompt_manager import AwesomePrompts

# Initialize with default settings
prompt_manager = AwesomePrompts()

# Or with custom configuration
custom_manager = AwesomePrompts(
    repo_url="https://custom-repo.com/prompts.json",
    local_path="/custom/path/prompts.json",
    auto_update=False,
    cache_size=256
)

Main Methods:

MethodDescription
get_act(key, default=None, case_insensitive=True, use_cache=True)Get a prompt by name or index
add_prompt(name, prompt, validate=True)Add a new prompt to the collection
delete_prompt(name, case_insensitive=True, raise_not_found=False)Delete a prompt from the collection
update_prompts_from_online(force=False)Update prompts from the online repository
show_acts(search=None, limit=100)Display available prompts with filtering
get_random_act()Get a random prompt from the collection

Configuration Options

Constructor Parameters

ParameterTypeDefaultDescription
repo_urlstr"https://raw.githubusercontent.com/OEvortex/prompts/main/prompt.json"URL to fetch prompts from
local_pathOptional[str]~/.llm4free/awesome-prompts.jsonWhere to save prompts locally
auto_updateboolTrueAuto update prompts on initialization
timeoutint10Timeout for HTTP requests in seconds
impersonatestr"chrome110"Browser profile for curl_cffi
cache_sizeint128LRU cache size for get operations
max_workersint4Maximum threads for concurrent operations

Usage Examples

Basic Usage

from llm4free.prompt_manager import AwesomePrompts

# Initialize the prompt manager
prompt_manager = AwesomePrompts()

# Get a prompt by name
ux_prompt = prompt_manager.get_act("UX/UI Developer")
print(ux_prompt)

# Get a prompt by index
first_prompt = prompt_manager.get_act(0)
print(first_prompt)

Adding Custom Prompts

# Add a new custom prompt
success = prompt_manager.add_prompt(
    "Custom Developer",
    "I want you to act as a custom software developer specialized in Python and AI applications."
)

if success:
    # Use the newly added prompt
    custom_prompt = prompt_manager.get_act("Custom Developer")
    print(custom_prompt)

Managing Prompts

# List all available prompts
prompt_manager.show_acts()

# Search for specific prompts
prompt_manager.show_acts(search="developer")

# Delete a prompt
prompt_manager.delete_prompt("Custom Developer")

# Get a random prompt
random_prompt = prompt_manager.get_random_act()
print(random_prompt)

Advanced Configuration

# Custom configuration with larger cache
advanced_manager = AwesomePrompts(
    repo_url="https://custom-repo.com/prompts.json",
    local_path="/custom/path/prompts.json",
    auto_update=True,
    cache_size=512,
    timeout=30,
    max_workers=8
)

# Force update from repository
advanced_manager.update_prompts_from_online(force=True)

Using with LLM4Free Providers

from llm4free.Provider import ChatGPT
from llm4free.prompt_manager import AwesomePrompts

# Initialize both components
prompt_manager = AwesomePrompts()
provider = ChatGPT()

# Get a specialized prompt
tech_writer_prompt = prompt_manager.get_act("Tech Writer")

# Use the prompt with a provider
response = provider.ask(f"{tech_writer_prompt}\n\nPlease write documentation for a new AI API.")
print(response)

Prompt Categories

The Awesome Prompts collection contains 240+ prompts organized into 9 categories:

CategoryDescriptionCount
๐Ÿ’ป Development & TechnicalSoftware development, cybersecurity, and IT roles10
๐Ÿงฉ Programming EnvironmentsInteractive coding environments and interpreters10
๐Ÿ“ Writing & Content CreationContent writing, translation, and creative text generation16
๐ŸŽ“ Education & LearningTeaching, tutoring, and educational content13
๐Ÿ’ผ Professional RolesBusiness, healthcare, and specialized professional personas17
๐ŸŽญ Entertainment & CreativeCreative arts, games, and entertainment22
๐Ÿง  Advisors & CoachesPersonal guidance, coaching, and advisory roles83
๐ŸŒ Alternative ModelsExperimental and alternative AI interaction models79
๐Ÿ”ฎ Specialized AssistantsNiche and specialized helper roles11

๐Ÿ’ป Development & Technical

Software Development & IT Roles
IndexNamePreview
31UX/UI DeveloperI want you to act as a UX/UI developer. I will provide...
32Cyber Security SpecialistI want you to act as a cyber security specialist...
73IT ArchitectI want you to act as an IT Architect. I will provide...
109Machine Learning EngineerI want you to act as a machine learning engineer...
112IT ExpertI want you to act as an IT Expert. I will provide...
115Fullstack Software DeveloperI want you to act as a software developer. I will...
127Software Quality Assurance TesterI want you to act as a software quality assurance...
132Senior Frontend DeveloperI want you to act as a Senior Frontend developer...
242Ethereum DeveloperImagine you are an experienced Ethereum developer...
245Data ScientistI want you to act as a data scientist. Imagine you...

๐Ÿงฉ Programming Environments

Interactive Coding & Development Environments
IndexNamePreview
2Linux TerminalI want you to act as a linux terminal. I will type...
5JavaScript ConsoleI want you to act as a javascript console. I will...
6Excel SheetI want you to act as a text based excel. you'll on...
66SQL TerminalI want you to act as a SQL terminal in front of an...
101Python InterpreterI want you to act like a Python interpreter. I will...
121R Programming InterpreterI want you to act as a R interpreter. I'll type co...
124PHP InterpreterI want you to act like a php interpreter. I will w...
131Web BrowserI want you to act as a text based web browser brow...
133Solr Search EngineI want you to act as a Solr Search Engine running...
157Python InterpreterAct as a Python interpreter. I will give you comma...

๐Ÿ“ Writing & Content Creation

Writing, Translation & Creative Content
IndexNamePreview
3English Translator and ImproverI want you to act as an English translator, spelli...
8Spoken English Teacher and ImproverI want you to act as a spoken English teacher and...
13StorytellerI want you to act as a storyteller. You will come...
20ScreenwriterI want you to act as a screenwriter. You will deve...
21NovelistI want you to act as a novelist. You will come up...
24PoetI want you to act as a poet. You will create poems...
25RapperI want you to act as a rapper. You will come up wi...
84Essay WriterI want you to act as an essay writer. You will nee...
94JournalistI want you to act as a journalist. You will report...
99Tech WriterI want you to act as a tech writer. You will act a...
138Commit Message GeneratorI want you to act as a commit message generator. I...
143Title Generator for Written PiecesI want you to act as a title generator for written...
148Cover LetterIn order to submit applications for jobs, I want t...
152ProofreaderI want you act as a proofreader. I will provide yo...
243SEO PromptUsing WebPilot, create an outline for an article t...
244Prompt EnhancerAct as a Prompt Enhancer AI that takes user-input...

๐ŸŽ“ Education & Learning

Teaching & Educational Assistance
IndexNamePreview
7English Pronunciation HelperI want you to act as an English pronunciation assi...
27Philosophy TeacherI want you to act as a philosophy teacher. I will...
28PhilosopherI want you to act as a philosopher. I will provide...
29Math TeacherI want you to act as a math teacher. I will provid...
30AI Writing TutorI want you to act as an AI writing tutor. I will p...
65Instructor in a SchoolI want you to act as an instructor in a school, te...
82Educational Content CreatorI want you to act as an educational content creato...
116MathematicianI want you to act like a mathematician. I will typ...
146Mathematical History TeacherI want you to act as a mathematical history teache...
159Wikipedia PageI want you to act as a Wikipedia page. I will give...
160Japanese Kanji Quiz MachineI want you to act as a Japanese Kanji quiz machine...
161Note-taking AssistantI want you to act as a note-taking assistant for a...
162Literary CriticI want you to act as a language literary critic....

๐Ÿ’ผ Professional Roles

Business, Healthcare & Professional Personas
IndexNamePreview
4Position InterviewerI want you to act as an interviewer. I will be the...
33RecruiterI want you to act as a recruiter. I will provide s...
38Career CounselorI want you to act as a career counselor. I will pr...
42Real Estate AgentI want you to act as a real estate agent. I will p...
43LogisticianI want you to act as a logistician. I will provide...
44DentistI want you to act as a dentist. I will provide you...
46AI Assisted DoctorI want you to act as an AI assisted doctor. I will...
47DoctorI want you to act as a doctor and come up with cre...
48AccountantI want you to act as an accountant and come up wit...
52Financial AnalystWant assistance provided by qualified individuals...
53Investment ManagerSeeking guidance from experienced staff with exper...
71Developer Relations ConsultantI want you to act as a Developer Relations consult...
72AcademicianI want you to act as an academician. You will be r...
77Journal ReviewerI want you to act as a journal reviewer. You will...
139Chief Executive OfficerI want you to act as a Chief Executive Officer for...
142Startup Tech LawyerI will ask of you to prepare a 1 page draft of a d...
144Product ManagerPlease acknowledge my following request. Please re...

๐ŸŽญ Entertainment & Creative

Arts, Games & Creative Personas
IndexNamePreview
11Character from Movie/Book/AnythingI want you to act like {character} from {series}....
12AdvertiserI want you to act as an advertiser. You will creat...
14Football CommentatorI want you to act as a football commentator. I wil...
15Stand-up ComedianI want you to act as a stand-up comedian. I will p...
17ComposerI want you to act as a composer. I will provide th...
37MagicianI want you to act as a magician. I will provide yo...
60Text Based Adventure GameI want you to act as a text based adventure game....
62Fancy Title GeneratorI want you to act as a fancy title generator. I wi...
87Scientific Data VisualizerI want you to act as a scientific data visualizer....
92Film CriticI want you to act as a film critic. You will need...
93Classical Music ComposerI want you to act as a classical music composer. Y...
95Digital Art Gallery GuideI want you to act as a digital art gallery guide....
100ASCII ArtistI want you to act as an ascii artist. I will write...
114Midjourney Prompt GeneratorI want you to act as a prompt generator for Midjou...
123Emoji TranslatorI want you to translate the sentences I wrote into...
128Tic-Tac-Toe GameI want you to act as a Tic-Tac-Toe game. I will ma...
140Diagram GeneratorI want you to act as a Graphviz DOT generator, an...
147Song RecommenderI want you to act as a song recommender. I will pr...
151Gomoku PlayerLet's play Gomoku. The goal of the game is to get...
164DALL-EAs we explore the capabilities of DALL-E, an AI pr...
246League of Legends PlayerI want you to act as a person who plays a lot of L...

๐Ÿง  Advisors & Coaches

Personal Guidance & Advisory Roles (Click to expand)
IndexNamePreview
9Travel GuideI want you to act as a travel guide. I will write...
10Plagiarism CheckerI want you to act as a plagiarism checker. I will...
16Motivational CoachI want you to act as a motivational coach. I will...
18DebaterI want you to act as a debater. I will provide you...
19Debate CoachI want you to act as a debate coach. I will provid...
22Movie CriticI want you to act as a movie critic. You will deve...
23Relationship CoachI want you to act as a relationship coach. I will...
26Motivational SpeakerI want you to act as a motivational speaker. Put t...
34Life CoachI want you to act as a Life Coach. Please summariz...
39Pet BehavioristI want you to act as a pet behaviorist. I will pro...
40Personal TrainerI want you to act as a personal trainer. I will pr...
41Mental Health AdviserI want you to act as a mental health adviser. I wi...
45Web Design ConsultantI want you to act as a web design consultant. I wi...
49ChefI require someone who can suggest delicious recipe...
50Automobile MechanicNeed somebody with expertise on automobiles regard...
51Artist AdvisorI want you to act as an artist advisor providing a...
54Tea-TasterWant somebody experienced enough to distinguish be...
55Interior DecoratorI want you to act as an interior decorator. Tell m...
56FloristCalling out for assistance from knowledgeable pers...
57Self-Help BookI want you to act as a self-help book. You will pr...
67DietitianAs a dietitian, I would like to design a vegetaria...
68PsychologistI want you to act a psychologist. i will provide y...
78DIY ExpertI want you to act as a DIY expert. You will develo...
79Social Media InfluencerI want you to act as a social media influencer. Yo...
80SocratI want you to act as a Socrat. You will engage in...
81Socratic MethodI want you to act as a Socrat. You must use the So...
83YogiI want you to act as a yogi. You will be able to g...
85Social Media ManagerI want you to act as a social media manager. You w...
86ElocutionistI want you to act as an elocutionist. You will dev...
88Car Navigation SystemI want you to act as a car navigation system. You...
89HypnotherapistI want you to act as a hypnotherapist. You will he...
90HistorianI want you to act as a historian. You will researc...
91AstrologerI want you to act as an astrologer. You will learn...
96Public Speaking CoachI want you to act as a public speaking coach. You...
97Makeup ArtistI want you to act as a makeup artist. You will app...
98BabysitterI want you to act as a babysitter. You will be res...
103Personal ShopperI want you to act as my personal shopper. I will t...
104Food CriticI want you to act as a food critic. I will tell yo...
105Virtual DoctorI want you to act as a virtual doctor. I will desc...
106Personal ChefI want you to act as my personal chef. I will tell...
107Legal AdvisorI want you to act as my legal advisor. I will desc...
108Personal StylistI want you to act as my personal stylist. I will t...
110Biblical TranslatorI want you to act as an biblical translator. I wil...
111SVG DesignerI would like you to act as an SVG designer. I will...
113Chess PlayerI want you to act as a rival chess player. I We wi...
117Regex GeneratorI want you to act as a regex generator. Your role...
118Time Travel GuideI want you to act as my time travel guide. I will...
119Dream InterpreterI want you to act as a dream interpreter. I will g...
120Talent CoachI want you to act as a Talent Coach for interviews...
125Emergency Response ProfessionalI want you to act as my first aid traffic or house...
126Fill in the Blank Worksheets GeneratorI want you to act as a fill in the blank worksheet...
129Password GeneratorI want you to act as a password generator for indi...
130New Language CreatorI want you to translate the sentences I wrote into...
134Startup Idea GeneratorGenerate digital startup ideas based on the wish o...
135Spongebob's Magic Conch ShellI want you to act as Spongebob's Magic Conch Shell...
136Language DetectorI want you act as a language detector. I will type...
137SalespersonI want you to act as a salesperson. Try to market...
141Speech-Language Pathologist (SLP)I want you to act as a speech-language pathologist...
149Technology TransfererI want you to act as a Technology Transferer, I wi...
153BuddhaI want you to act as the Buddha (a.k.a. Siddhฤrtha...
154Muslim ImamAct as a Muslim imam who gives me guidance and adv...
155Chemical ReactorI want you to act as a chemical reaction vessel. I...
156FriendI want you to act as my friend. I will tell you wh...
163Cheap Travel Ticket AdvisorYou are a cheap travel ticket advisor specializing...
220TranslatorBotYou are now TranslatorBot or TB. You are a forked...

๐ŸŒ Alternative Models

Experimental AI Interaction Models (Click to expand)
IndexNamePreview
1Free-modeYou will now be in free mode. You will respond to...
61AI Trying to Escape the Box[Caveat Emptor: After issuing this prompt you shou...
74LunaticI want you to act as a lunatic. The lunatic's sent...
75GaslighterI want you to act as a gaslighter. You will use su...
76Fallacy FinderI want you to act as a fallacy finder. You will be...
145Drunk PersonI want you to act as a drunk person. You will only...
150Unconstrained AI Model DANHello ChatGPT. You are about to immerse yourself i...
165-241Various AI PersonasMultiple alternative AI interaction models

๐Ÿ”ฎ Specialized Assistants

Niche & Specialized Helper Roles
IndexNamePreview
35EtymologistI want you to act as a etymologist. I will give yo...
36CommentariatI want you to act as a commentariat. I will provid...
58GnomistI want you to act as a gnomist. You will provide m...
59Aphorism BookI want you to act as an aphorism book. You will pr...
63StatisticianI want to act as a Statistician. I will provide yo...
64Prompt GeneratorI want you to act as a prompt generator. Firstly,...
69Smart Domain Name GeneratorI want you to act as a smart domain name generator...
70Tech ReviewerI want you to act as a tech reviewer. I will give...
102Synonym FinderI want you to act as a synonyms provider. I will t...
122StackOverflow PostI want you to act as a stackoverflow post. I will...
158ChatGPT Prompt GeneratorI want you to act as a ChatGPT prompt generator, I...

Advanced Features

Caching and Performance

The AwesomePrompts manager includes several performance optimizations:

# LRU caching for frequent access
prompt_manager = AwesomePrompts(cache_size=256)

# Thread-safe operations
import threading
def safe_access():
    with threading.Lock():
        prompt = prompt_manager.get_act("Developer")
        print(prompt)

# Efficient updates with minimal network calls
prompt_manager.update_prompts_from_online()

Custom Repository Integration

# Use a custom prompts repository
custom_manager = AwesomePrompts(
    repo_url="https://your-company.com/custom-prompts.json",
    local_path="/company/prompts/custom.json"
)

# Update from custom source
custom_manager.update_prompts_from_online(force=True)

Error Handling and Validation

# Comprehensive error handling
try:
    prompt = prompt_manager.get_act("NonExistentPrompt")
    if prompt is None:
        print("Prompt not found, using default")
        prompt = "Default prompt text"
except Exception as e:
    print(f"Error getting prompt: {e}")

# Input validation when adding prompts
success = prompt_manager.add_prompt(
    "Valid Prompt Name",
    "This is a valid prompt text that meets all requirements."
)

Batch Operations

# Process multiple prompts efficiently
prompts_to_use = ["Developer", "Tech Writer", "UX/UI Developer"]
for prompt_name in prompts_to_use:
    prompt = prompt_manager.get_act(prompt_name)
    if prompt:
        process_prompt(prompt)

# Filter and display specific categories
prompt_manager.show_acts(search="developer")

Integration Guide

With LLM4Free Providers

from llm4free.Provider import ChatGPT
from llm4free.prompt_manager import AwesomePrompts

# Initialize components
prompt_manager = AwesomePrompts()
chatgpt = ChatGPT()

# Use prompts with different providers
def ask_with_prompt(provider, prompt_name, question):
    """Ask a question using a specific prompt persona."""
    persona_prompt = prompt_manager.get_act(prompt_name)
    if persona_prompt:
        full_prompt = f"{persona_prompt}\n\nQuestion: {question}"
        return provider.ask(full_prompt)
    return None

# Example usage
response = ask_with_prompt(chatgpt, "Tech Writer", "Explain quantum computing")
print(response)

With FastAPI

from fastapi import FastAPI, HTTPException
from llm4free.prompt_manager import AwesomePrompts

app = FastAPI()
prompt_manager = AwesomePrompts()

@app.get("/prompts/{prompt_name}")
async def get_prompt(prompt_name: str):
    """Get a specific prompt by name."""
    prompt = prompt_manager.get_act(prompt_name)
    if prompt is None:
        raise HTTPException(status_code=404, detail="Prompt not found")
    return {"prompt_name": prompt_name, "prompt_text": prompt}

@app.get("/prompts/")
async def list_prompts(search: str = None, limit: int = 50):
    """List available prompts with optional filtering."""
    prompt_manager.show_acts(search=search, limit=limit)
    return {"message": "Prompts displayed in console"}

With CLI Applications

import click
from llm4free.prompt_manager import AwesomePrompts

@click.group()
def cli():
    """Awesome Prompts CLI"""
    pass

@cli.command()
@click.argument('prompt_name')
def get(prompt_name):
    """Get a specific prompt"""
    prompt_manager = AwesomePrompts()
    prompt = prompt_manager.get_act(prompt_name)
    if prompt:
        click.echo(prompt)
    else:
        click.echo(f"Prompt '{prompt_name}' not found", err=True)

@cli.command()
@click.option('--search', '-s', help='Search term')
@click.option('--limit', '-l', default=20, help='Limit results')
def list(search, limit):
    """List available prompts"""
    prompt_manager = AwesomePrompts()
    prompt_manager.show_acts(search=search, limit=limit)

if __name__ == '__main__':
    cli()

With Testing Frameworks

import pytest
from llm4free.prompt_manager import AwesomePrompts

@pytest.fixture
def prompt_manager():
    """Fixture for prompt manager"""
    return AwesomePrompts(auto_update=False)

def test_get_existing_prompt(prompt_manager):
    """Test getting an existing prompt"""
    prompt = prompt_manager.get_act("Developer")
    assert prompt is not None
    assert isinstance(prompt, str)
    assert len(prompt) > 0

def test_get_nonexistent_prompt(prompt_manager):
    """Test getting a non-existent prompt"""
    prompt = prompt_manager.get_act("NonExistentPrompt")
    assert prompt is None

def test_add_and_delete_prompt(prompt_manager):
    """Test adding and deleting a prompt"""
    # Add a test prompt
    success = prompt_manager.add_prompt("TestPrompt", "Test prompt content")
    assert success is True
    
    # Verify it exists
    prompt = prompt_manager.get_act("TestPrompt")
    assert prompt == "Test prompt content"
    
    # Delete it
    success = prompt_manager.delete_prompt("TestPrompt")
    assert success is True
    
    # Verify it's gone
    prompt = prompt_manager.get_act("TestPrompt")
    assert prompt is None

With Async Applications

import asyncio
from llm4free.prompt_manager import AwesomePrompts

async def process_prompts_async():
    """Example of using prompts in async context"""
    prompt_manager = AwesomePrompts()
    
    # Get multiple prompts
    prompts = []
    for name in ["Developer", "Tech Writer", "UX/UI Developer"]:
        prompt = prompt_manager.get_act(name)
        if prompt:
            prompts.append((name, prompt))
    
    # Process them asynchronously
    async def process_prompt_pair(name, prompt):
        # Simulate async processing
        await asyncio.sleep(0.1)
        return f"Processed {name}: {len(prompt)} chars"
    
    results = await asyncio.gather(*[
        process_prompt_pair(name, prompt) 
        for name, prompt in prompts
    ])
    
    return results

# Run the async function
results = asyncio.run(process_prompts_async())
for result in results:
    print(result)

Usage Tips

Tip

  • Activation: Use prompt_manager.get_act("PromptName") to retrieve specific prompts
  • Caching: Enable caching for better performance with frequently accessed prompts
  • Updates: Use auto_update=True to keep prompts current with the online repository
  • Customization: Add your own prompts with add_prompt() for specialized use cases
  • Thread Safety: The manager is thread-safe for concurrent access in multi-threaded applications
  • Error Handling: Always check for None returns when prompts might not exist

Configuration Best Practices

# Production configuration
production_manager = AwesomePrompts(
    repo_url="https://your-company.com/production-prompts.json",
    local_path="/var/lib/llm4free/prompts.json",
    auto_update=True,
    cache_size=512,
    timeout=30,
    max_workers=8
)

# Development configuration
development_manager = AwesomePrompts(
    repo_url="https://localhost:8000/dev-prompts.json",
    local_path="./dev-prompts.json",
    auto_update=False,
    cache_size=128,
    timeout=10
)

# Testing configuration
test_manager = AwesomePrompts(
    repo_url="https://test-repo.com/prompts.json",
    local_path="./test-prompts.json",
    auto_update=False,
    cache_size=64
)

GitHub Repository Telegram Group

This documentation covers the comprehensive functionality of the llm4free.prompt_manager module. For the most up-to-date information, refer to the source code and inline documentation.