A simple Python script to generate structured prompts for AI assistants.
- 🎨 Beautiful ASCII art interface
- 📝 Interactive questionnaire to build prompts
- 📋 Copy to clipboard functionality
- 💾 Multiple export formats:
- XML format with structured data
- Plain text (.txt)
- Markdown (.md)
- 🌍 Cross-platform compatibility
- Make sure you have Python 3 installed
- The script will automatically install required dependencies (
pyperclip)
Run the script with:
python pyprompter.pyOr if you made it executable:
./pyprompter.py-
The script will display an ASCII art banner
-
You'll be asked a series of questions:
- Role: What is the AI's role?
- Context: What is the context?
- Objectives: What are the objectives?
- Methodology: What methodology should be followed?
- Avoid: What should be avoided?
- Output Format: What output format is expected?
- Constraints: Are there any specific constraints?
- Examples: Do you have any examples to provide?
-
Press Enter to skip any question
-
The script will generate a structured prompt based on your answers
-
Choose how to export your prompt:
- Copy to clipboard
- Save as XML
- Save as text file
- Save as Markdown
- Do all of the above
You are a Python expert developer.
Context: Working on a web scraping project
Objectives:
Create a robust web scraper that can handle dynamic content
Methodology to follow:
Use best practices and error handling
Things to avoid:
Don't violate robots.txt or terms of service
Expected output format:
Clean, well-documented Python code
- Python 3.6+
- pyperclip (automatically installed)
Free to use and modify!