PromptML is a Visual Studio Code extension designed to streamline the creation, management, and validation of Language Model (LLM) prompts. It provides a structured approach to working with prompts, offering versioning capabilities and predefined templates.
- Predefined templates for common prompt structures:
- Basic Prompt
- Question-Answer
- Context-Question-Answer
- GPT-4 Conversation
- Two saving options:
- Quick save:
promptml.savePrompt
- Save with custom version:
promptml.savePromptWithVersion
- Quick save:
- Automatic versioning and timestamps
- Custom save locations
- Validate prompts against selected templates
- Ensure all required fields are present and of the correct type
- Get template suggestions as you type
- Triggered when you start a new JSON object with '{'
- Introduces
.prp
file extension for prompts - JSON-based syntax highlighting for
.prp
files
- Shows "LLM PROMPT DETECTED" in the status bar when working with
.prp
files
- Open Visual Studio Code
- Go to the Extensions view (Ctrl+Shift+X or Cmd+Shift+X)
- Search for "PromptML"
- Click Install
- Create a new file with
.json
or.prp
extension - Start typing '{' to get template suggestions
- Fill in the prompt details
- Use the command palette (Ctrl+Shift+P or Cmd+Shift+P) to access PromptML commands:
- "Save PromptML"
- "Save PromptML with Version"
- "PromptML: Check and Suggest Template"
Save PromptML
: Quickly save the current promptSave PromptML with Version
: Save the prompt with a custom name and versionPromptML: Check and Suggest Template
: Validate the current prompt against available templates
This extension contributes the following settings:
promptml.saveLocation
: Custom location to save prompts. Leave empty to use the default location in the workspace.
- Visual Studio Code v1.60.0 or higher
[List any known issues or limitations here]
Initial release of PromptML
Contributions are welcome! Please feel free to submit a Pull Request.
This extension is licensed under the MIT License.