⌨️ Prompt Library
Prompt Library is one of Ophel's core features, helping you efficiently manage and use frequently-used prompts.
Overview
Use Cases
- 📝 Save and reuse common prompts
- 🔄 Create dynamic prompts with variable templates
- 📂 Organize prompts by category
- ⚡ Quick access to recent prompts
Advanced Features
Variable Support
Use {{variable}} syntax to define dynamic variables that prompt for input:
Example: Translation Assistant
markdown
You are a professional translator. Please translate the following into {{target_language}}:
{{content_to_translate}}
Requirements:
- Maintain original style
- Natural and fluent translation
- Accurate terminologyWhen using:
- Click to use this prompt
- Dialog prompts for variables:
- Target language:
English - Content to translate:
Hello, world!
- Target language:
- Auto-generates final prompt and inserts into input
Advanced Variable Usage:
| Syntax | Description | Example |
|---|---|---|
{{variable}} | Basic variable | {{topic}} |
{{variable:default}} | With default value | {{language:English}} |
{{variable:option1|option2}} | Dropdown selection | {{style:formal|casual|humorous}} |
Markdown Preview
Real-time preview when editing prompts:
- 📝 Code block syntax highlighting
- 📋 Proper list indentation
- 🔗 Clickable links
- 💡 Variable highlighting
Category Management
Create categories for prompts with auto-assigned colors:
📁 Productivity
├── ✍️ Copy Editing
├── 📊 Data Analysis
└── 📧 Email Writing
📁 Programming
├── 🐛 Debug Assistant
├── 📖 Code Explanation
└── ⚡ Code Optimization
📁 Learning
├── 📚 Concept Explanation
├── 🎯 Practice Problems
└── 📝 Note TakingCategory Features:
- ➕ Create custom categories
- 🎨 Auto-assign category colors
- 📂 Drag prompts into categories
- 🔍 Filter by category
Data Management
Quick Access
Pin Favorites
Pin most-used prompts to the top:
- ⭐ Click star icon to pin/unpin
- 📌 Pinned prompts appear first
- 🔢 Support multiple pinned prompts
Recent Usage
Auto-track usage history for quick access:
- 🕐 Sorted by recent use
- 📊 Show usage count
- 🔄 One-click clear history
Import/Export
Prompt data managed independently:
Export
json
{
"version": "1.0",
"exportTime": "2024-01-15T10:00:00Z",
"prompts": [
{
"id": "xxx",
"title": "Translation Assistant",
"content": "You are a professional translator...",
"category": "Productivity",
"pinned": true,
"useCount": 42
}
],
"categories": ["Productivity", "Programming", "Learning"]
}Import
- 📥 Import Ophel format JSON files
- 🔀 Smart merge: Choose to overwrite or skip duplicates
- 📂 Auto-create missing categories
Usage Flow
Create Prompts
- Open prompt panel
- Click "New Prompt"
- Enter title and content
- Select or create category
- Save
Use Prompts
- Open prompt panel
- Click target prompt
- Fill in variables (if any)
- Auto-inserts into input
Built-in Prompts
Ophel includes several useful prompt templates:
| Name | Purpose |
|---|---|
| 🌐 Translation Assistant | Multi-language translation |
| ⚡ Code Optimizer | Improve code quality |
| 📝 Copy Editor | Polish text expression |
| 🤔 Deep Analysis | Comprehensive analysis |
TIP
You can modify built-in prompts or use them as templates for new ones.
Settings
| Option | Description | Default |
|---|---|---|
| Show Usage Count | Display usage statistics in list | On |
| Auto Close Panel | Close panel after using prompt | On |
Shortcuts
| Shortcut | Function |
|---|---|
Alt + P | Open prompt panel |
Esc | Close prompt panel |
