Saving prompts for cmd/ctrl +k instructions

I typically use the cmd/ctrl + k to create styles for a file or to edit code using simple instructions. I typically use the same prompts like “Create a stylesheet for this component and place the styles at the bottom of the file.” and it works wonderfully, but I’m wondering if we could save prompts somewhere and possibly reference them so that it could save some time and reduce small inconsistencies in applying instructions.

Basic outline of requested behavior:
When using cmd/ctrl + k, you should be able to reference saved instructions.
The instructions could either be saved in editor settings or the project, but preferably the editor settings.

9 Likes

This could be a great addition to Cursor. This is nicely implemented in Continue with prompt files (experimental) and custom slash commands. I think this feature is missing in Cursor and I would love to add the ability to reuse commonly used prompts

1 Like

You can save prompts, for example, in a folder called “prompts” and refer to them when interacting with the AI.

By “refer to them” you mean copy-pasting the contents from the file to the IDE prompt? Or you propose a more streamlined way?

EDIT: Perhaps something like this?

It should be as a mention of a file, not as copy and paste.

1 Like

This is really a good method. But I didn’t think of it.

I recommend using a gist or a github repo for storing your prompts. Than you can use the doc crawling feature in cursor to mention those prompts with @ symbol. This way, you don’t have to keep your propmpts locally.

Why not just use Espanso?

Made a guide, default integration would be awesome Smart customized Prompts on top of main System Prompt with espanso: A Practical Guide