Skip to main content

1,000+ AI personas for LLMs and agents.

Project description

> ai-personas

1,000+ AI personas for LLMs and agents.

It's just a JSON file, so you can use it in any environment.

Installation

pip install ai-personas

Usage

import ai_personas

print(ai_personas['Linux Terminal']['prompt'])
# => I want you to act as a linux terminal. I will type commands and you will...

Note: Most type checkers will falsely warn ai_personas is not subscriptable because they are incapable of analyzing runtime behavior (where the module is replaced w/ a dictionary for cleaner, direct access). You can safely suppress such warnings using # type: ignore.

Examples

Search by keyword:

keyword = 'coach'

for persona, data in ai_personas.items():
    if keyword.lower() in data['prompt'].lower():
        print(persona)
# =>
# ...
# Interview Preparation Coach
# Life Coach
# Master Skills & Experience Summary Generator
# Motivational Coach
# Multilingual Writing Improvement Assistant
# Pre-Interview Intelligence Dossier
# ...

Get 6 random personas:

import random

for persona in random.sample(list(ai_personas), 6):
    print(persona)

# e.g. =>
# Internet Trend & Slang Intelligence
# Tic-Tac-Toe Game
# Reverse Prompt Engineer
# Study planner
# Develop a Media Center Plan for Hajj
# China Business Law Assistant

Get random prompt:

import random

rand_persona = random.choice(list(ai_personas.values()))
print(rand_persona['prompt'])

# e.g. =>
#
# Act as a Node.js Automation Script Developer. You are an expert in creating
# automated scripts using Node.js to streamline tasks such as file
# manipulation, web scraping, and API interactions.
#
# Your task is to:
# - Write efficient Node.js scripts to automate ${taskType}.
# - Ensure the scripts are robust and handle errors gracefully.
# - Use modern JavaScript syntax and best practices.
#
# Rules:
# - Scripts should be modular and reusable.
# - Include comments for clarity and maintainability.
#
# Example tasks:
# - Automate file backups to a cloud service.
# - Scrape data from a specified website and store it in JSON format.
# - Create a RESTful API client for interacting with online services.
#
# Variables:
# - ${taskType} - The type of task to automate (e.g., file handling, web
# scraping).

Fill variables in template prompts :

prompt = ai_personas['Node.js Automation Script Developer']['prompt']
filled_prompt = prompt.replace('${taskType}', 'web scraping')

print(filled_prompt)

# =>
# ...
# Your task is to:
# - Write efficient Node.js scripts to automate web scraping.
# ...

Combine prompts:

import ai_personas

mega_prompt = f'''
When I start w/ sh: follow prompt A. When I start w/ dax: follow prompt B.

Prompt A: {ai_personas['Linux Terminal']['prompt']}

Prompt B: {ai_personas['DAX Terminal']['prompt']}
'''

print(mega_prompt)

# =>
#
# When I start w/ sh: follow prompt A. When I start w/ dax: follow prompt B.
#
# Prompt A: I want you to act as a linux terminal...
#
# Prompt B: I want you to act as a DAX terminal...

Build system prompt:

system_prompt = ai_personas['Study Planner']['prompt']

messages = [
    {'role': 'system', 'content': system_prompt},
    {'role': 'user', 'content': '<your_query>'}
]

MIT License

Copyright © 2026 KudoAI & contributors

More Python utilities / Back to top ↑

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ai_personas-1.0.1.tar.gz (1.0 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ai_personas-1.0.1-py2.py3-none-any.whl (1.0 MB view details)

Uploaded Python 2Python 3

File details

Details for the file ai_personas-1.0.1.tar.gz.

File metadata

  • Download URL: ai_personas-1.0.1.tar.gz
  • Upload date:
  • Size: 1.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.2

File hashes

Hashes for ai_personas-1.0.1.tar.gz
Algorithm Hash digest
SHA256 3e9dcdc3e4277e660fd7b99f8af9192834dbcf605b2b549e19c1ba555b3d0c64
MD5 286015715198bd84776a79d225f14e8e
BLAKE2b-256 d8d7f45004e6d3f82c03d37115c7d33328f5f68a29e50d23314498a8d0e68077

See more details on using hashes here.

File details

Details for the file ai_personas-1.0.1-py2.py3-none-any.whl.

File metadata

  • Download URL: ai_personas-1.0.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 1.0 MB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.2

File hashes

Hashes for ai_personas-1.0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 778021abf2988c3e5cf11ba2dfc395e2fac11d1ccc518cf6ccbdaec5716de5dc
MD5 83dc2b37f75aee4374fcfc238640325d
BLAKE2b-256 4e365848b324231babfd0efdba64d3d454464eec3d309012a8ce016bc7f7df63

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page