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 enhancementenhance -2 "your prompt"- Get 2 suggestionsenhance -3 "your prompt"- Get 3 suggestionscopy- Copy current prompt to clipboardhistory- View prompt historysearch <term>- Search saved promptsstyles- List enhancement stylesanalyze- Analyze current prompthelp- Show all commands
Enhancement Styles
standard- Clear and effectivetechnical- Technical specification formatcreative- Innovative approachesconcise- Minimal and focuseddetailed- 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b5079c29ce02afdec298cdfea27af0b0750882737b3473b6d082aa8dd5ed5ea7
|
|
| MD5 |
34210de3a283db78dcab1078d74ba6d8
|
|
| BLAKE2b-256 |
5223bf0bf74816cbfbfd95b52cd9e347b542f7ecc80833ae9d243280921a8da0
|
File details
Details for the file prompt_enhancer-1.0.1-py3-none-any.whl.
File metadata
- Download URL: prompt_enhancer-1.0.1-py3-none-any.whl
- Upload date:
- Size: 14.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
44521f5cb0e5d8c0b8adba2588bda4122cd535f09776f92a2422259ca2de31d1
|
|
| MD5 |
552dcfd4b8819390c0d55be1b9460150
|
|
| BLAKE2b-256 |
e7dacfb65d17ea075417bb281f6213ef4030c2598d4cc6811c089f1194c63802
|