Skip to content

⌨️ 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 terminology

When using:

  1. Click to use this prompt
  2. Dialog prompts for variables:
    • Target language: English
    • Content to translate: Hello, world!
  3. Auto-generates final prompt and inserts into input

Advanced Variable Usage:

SyntaxDescriptionExample
{{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 Taking

Category 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

  1. Open prompt panel
  2. Click "New Prompt"
  3. Enter title and content
  4. Select or create category
  5. Save

Use Prompts

  1. Open prompt panel
  2. Click target prompt
  3. Fill in variables (if any)
  4. Auto-inserts into input

Built-in Prompts

Ophel includes several useful prompt templates:

NamePurpose
🌐 Translation AssistantMulti-language translation
⚡ Code OptimizerImprove code quality
📝 Copy EditorPolish text expression
🤔 Deep AnalysisComprehensive analysis

TIP

You can modify built-in prompts or use them as templates for new ones.

Settings

OptionDescriptionDefault
Show Usage CountDisplay usage statistics in listOn
Auto Close PanelClose panel after using promptOn

Shortcuts

ShortcutFunction
Alt + POpen prompt panel
EscClose prompt panel

Released under the CC BY-NC-SA 4.0 License.