.dinoprompts

The .dinoprompts file serves as your team's prompt library, allowing you to store and reuse battle-tested prompts that understand your data development patterns. This eliminates the need to recreate complex prompts and ensures consistency across your analytics engineering team.

Key Benefits


Step-by-Step Instructions

  1. Open DinoAI by clicking the DinoAI icon (πŸͺ„) in the right panel

  2. Access Prompt Creation by clicking the Prompt option in the chat input

    1. Alternative: Use the bracket symbol shortcut "[" to quickly find prompts

  3. Create the file by selecting "Add .dinoprompts" to automatically create a new file with built-in prompts

  4. Define your prompts using the YAML structure with name and prompt fields

  5. Access your prompts using the prompt quick-open feature in DinoAI


File Structure

The .dinoprompts file uses a simple YAML structure:

prompts:
  - name: "Prompt Name"
    prompt: |
      Multi-line prompt content
      Can include variables like {{ git.diff.withOriginDefaultBranch }}
      
  - name: "Another Prompt"
    prompt: "Single line prompts work too"

Available Variables

DinoAI provides built-in variables you can use in your prompts. Variables enable you to dynamically attach context to your prompts.

Vairable
Descriription

{{ git.diff.withOriginDefaultBranch }}

Includes the git diff between your current branch and the default branch of your repository

{{ editor.currentFile.path }}

Includes the file path of the current opened and selected file in your Code IDE

{{ editor.openFiles.path }}

Includes the file path of the all the opened files in your Code IDE


Git Tracking

.dinoprompts file is git-tracked by default to enable seamless team collaboration on DinoAI configurations.

What This Means

  • .dinoprompts is tracked by git automatically

  • You can commit, modify, and request reviews like any other file in your repository

  • Full change tracking and version history

  • Seamless team collaboration on AI configurations

Disabling Git Tracking

If you haven't agreed internally on rules/prompts: You may encounter a merge conflict when updating your branch. You can use Paradime to resolve it, but we recommend agreeing on common versions for the .dinoprompts file first.

To disable, simply add .dinoprompts to your .gitignore file.

Last updated

Was this helpful?