getcursor / cursor

The AI-powered code editor
https://cursor.sh
20.54k stars 1.38k forks source link

@Prompts Keyword for Structured and Reusable Prompt Templates #1432

Open stevennevins opened 1 month ago

stevennevins commented 1 month ago

Is your feature request related to a problem? Please describe.

I often perform repetitive tasks, and to get the best results, I have to craft a descriptive prompt for the first generation. For subsequent tasks, I have to copy and edit a portion of the context. Often, I only edit a single line in the context of the subsequent tasks.

Describe the solution you'd like Custom prompt templates accessible via the @Prompts keyword/command. @Prompts can be created within the Cursor editor and provide a structured prompt for commonly performed tasks.

You are an AI assistant designed to perform a task.

Additional high-level context is helpful for the AI to perform the tasks to your specifications.

{{TASK_DESCRIPTION}}

Reiterate some context

I want to be able to create templates accessible with @Prompts and then provide context by named values to be inserted into these templates. So, for example, if this template were named Template, then I would want to be able to do:

@Prompts:@Template:@Task_Description:{{Task Description Inserted into Template}}

ypref commented 1 month ago

+1

dgokcin commented 1 week ago

+1