Skip to main content

An AI-powered prompt enhancement tool

Project description

Prompt Enhancer

An AI-powered CLI tool for enhancing prompts with context awareness and multiple suggestion support.

Features

  • 🧠 AI-powered prompt enhancement
  • 🔍 Context-aware suggestions based on workspace analysis
  • 🎨 Multiple enhancement styles (Standard, Technical, Creative, etc.)
  • 📝 Multiple suggestions with interactive selection
  • 📚 Prompt history management
  • 🔎 Search and analyze prompts
  • 📤 Export functionality

Installation

From PyPI

pip install prompt-enhancer

From Source

git clone https://github.com/yourusername/prompt-enhancer.git
cd prompt-enhancer
pip install -e .

Configuration

On first run, you'll be prompted to enter your Groq API key. You can get an API key from Groq Console.

The API key will be securely saved in ~/.prompt_enhancer/config.json.

Alternatively, you can set it in your environment:

export GROQ_API_KEY=your_api_key_here

Usage

Start the interactive shell:

prompt-enhancer

Available Commands

  • enhance "your prompt" - Enhance a prompt
  • /enhance "your prompt" - Context-aware enhancement
  • enhance -2 "your prompt" - Get 2 suggestions
  • enhance -3 "your prompt" - Get 3 suggestions
  • copy - Copy current prompt to clipboard
  • history - View prompt history
  • search <term> - Search saved prompts
  • styles - List enhancement styles
  • analyze - Analyze current prompt
  • help - Show all commands

Enhancement Styles

  • standard - Clear and effective
  • technical - Technical specification format
  • creative - Innovative approaches
  • concise - Minimal and focused
  • detailed - Comprehensive breakdown

Examples

# Basic enhancement
prompt-enhancer> enhance "create a website"

# Context-aware enhancement
prompt-enhancer> /enhance "create an API endpoint"

# Multiple suggestions
prompt-enhancer> enhance -3 "write a blog post"

# Save with tags
prompt-enhancer> save web development frontend

# Search history
prompt-enhancer> search website

Development

Setup Development Environment

# Clone the repository
git clone https://github.com/yourusername/prompt-enhancer.git
cd prompt-enhancer

# Create virtual environment
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate

# Install in development mode
pip install -e ".[dev]"

Running Tests

pytest

License

MIT License

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

prompt_enhancer-1.0.1.tar.gz (12.9 kB view details)

Uploaded Source

Built Distribution

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

prompt_enhancer-1.0.1-py3-none-any.whl (14.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: prompt_enhancer-1.0.1.tar.gz
  • Upload date:
  • Size: 12.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.7

File hashes

Hashes for prompt_enhancer-1.0.1.tar.gz
Algorithm Hash digest
SHA256 b5079c29ce02afdec298cdfea27af0b0750882737b3473b6d082aa8dd5ed5ea7
MD5 34210de3a283db78dcab1078d74ba6d8
BLAKE2b-256 5223bf0bf74816cbfbfd95b52cd9e347b542f7ecc80833ae9d243280921a8da0

See more details on using hashes here.

File details

Details for the file prompt_enhancer-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for prompt_enhancer-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 44521f5cb0e5d8c0b8adba2588bda4122cd535f09776f92a2422259ca2de31d1
MD5 552dcfd4b8819390c0d55be1b9460150
BLAKE2b-256 e7dacfb65d17ea075417bb281f6213ef4030c2598d4cc6811c089f1194c63802

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