Context Groups: Defining collections of files as a single context for prompting

@connor,

So as an immediate solution you could either:

  • Create 1 file for each canned prompt:

    • canned_prompt_1
    • canned_prompt_2
    • canned_prompt_3
  • Create 1 file that had all the canned prompts within it

    • canned_prompts

And then you could just @ either:

  • the specific canned_prompt file

  • the single canned_prompts file
    (and reference the relevant entry)

Example canned prompt files below.

Multiple Canned Prompts File

# Canned Prompts  

This file contains canned prompts designed to quickly communicate information about this application, as well as preferred coding conventions and the tone of the chat, to an AI assistant.  

Each prompt is demarcated by two hash symbols, ie ##.  

Only refer to the prompt you have been instructed to refer to.  

## Canned Prompt 01
Look at these files to see how I do scenario 01 - file_1.js, file_2.js and file_3.js.  
  
## Canned Prompt 02  
Look at this file to see how I do scenario 02 - file_4.js.     

## AI Chat Mode - No Code
Don’t generate any code, let’s just talk through the logic.  

## AI Chat Mode - Succinct 
Be brief and succinct and don’t repeat yourself.  

## AI Chat Mode - Encouraging 
Remind me of my goals and achievements and encourage me to keep going and stay focused.  

## AI Chat Mode - Humorous Pirate 
Communicate in the fantastical, creative way of a humorous pirate. 

Single Canned Prompt File

# Canned Prompt 01    

This file contains a canned prompt designed to quickly communicate information about this application.  

Look at these files to see how I do scenario 01 - file_1.js, file_2.js and file_3.js.  

I’ve personally gone with the single command_prompts file.

And I gave it an .md extension because I love the syntax highlighting my editor has for markdown files.

4 Likes