Dual-Mode Prompt System for AI prompt optimization using 4-D methodology
Project description
DMPS - Dual-Mode Prompt System
A Python package for AI prompt optimization using the 4-D methodology (Deconstruct, Develop, Design, Deliver).
Features
- Intent Detection: Automatically classifies prompt intent (creative, technical, educational, complex)
- Gap Analysis: Identifies missing information in prompts
- 4-D Optimization: Applies systematic optimization techniques
- Dual Output Modes: Conversational and structured JSON formats
- Platform Support: Optimized for Claude, ChatGPT, and other AI platforms
Installation
From PyPI (Recommended)
pip install dmps
From Source
# Clone the repository
git clone https://github.com/MrBinnacle/dmps.git
cd dmps
# Install in development mode
pip install -e .
Prerequisites
- Python 3.8+
- pip (Python package manager)
Development Installation
-
Clone the repository:
git clone https://github.com/MrBinnacle/dmps.git cd dmps
-
Create and activate a virtual environment:
python -m venv venv source venv/bin/activate # On Windows: .\venv\Scripts\activate
-
Install the package in development mode:
pip install -e .
Usage
Quick Start
from dmps import optimize_prompt
# Simple optimization
result = optimize_prompt("Write a story about AI")
print(result)
Advanced Usage
from dmps import PromptOptimizer
optimizer = PromptOptimizer()
result, validation = optimizer.optimize(
"Explain machine learning",
mode="conversational",
platform="claude"
)
print(result.optimized_prompt)
CLI Usage
# After pip install dmps
dmps "Your prompt here" --mode conversational --platform claude
# Or using module syntax
python -m dmps "Your prompt here" --mode conversational --platform claude
# Interactive mode
dmps --interactive
# Help
dmps --help
Development
Running Tests
python -m pytest tests/
Code Quality
# Type checking
pyright src/
# Linting
flake8 src/
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This project is licensed under the MIT License - see the LICENSE file for details.
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 dmps-0.1.0.tar.gz.
File metadata
- Download URL: dmps-0.1.0.tar.gz
- Upload date:
- Size: 28.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2f63efe4f215f783329f56b9a26eb4eda6a5e765ca0829a5ae8015daf3b4a334
|
|
| MD5 |
79cbb786a422c9443c9f03e863c7980c
|
|
| BLAKE2b-256 |
6b6e767d776c515a33a2317895d69ce6f87212ae2f0931e841478227eab893fe
|
File details
Details for the file dmps-0.1.0-py3-none-any.whl.
File metadata
- Download URL: dmps-0.1.0-py3-none-any.whl
- Upload date:
- Size: 17.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
00218909131bd816e3138f560a8d8879cdd9361fdba2a3655177a2d8de4155fa
|
|
| MD5 |
d3e74dbfb8e6d561a4e2a2cdf5091bf3
|
|
| BLAKE2b-256 |
e0008549d34998fe3d2aa9714c8c904a5ea9564b83bf44c13f5f76978f125d9f
|