copilot-cli icon indicating copy to clipboard operation
copilot-cli copied to clipboard

integrate with prompts/*.md

Open amajakai14 opened this issue 1 year ago • 7 comments

Describe the feature or problem you'd like to solve

I would like to reuse all the prompt files that be able to use it

Proposed solution

Would be nice if it can be integrate with copilot cli reusable prompt from same idea with https://docs.github.com/en/copilot/tutorials/customization-library/prompt-files/your-first-prompt-file Image

Example prompts or workflows

Additional context

No response

amajakai14 avatar Sep 28 '25 01:09 amajakai14

👍 to this, would be good to have tighter integration with .github/prompts/*.md

scottburton11 avatar Oct 02 '25 07:10 scottburton11

Just chiming in, but it would be great to have a layered approach to prompts.

~/.prompts - for user-specific prompts .github/prompts/*.md - for repo-level prompts

I might have prompts that are specific to a repo, and .github/prompts/*.md works there, but I might have personal prompts that I want to access via /my-custom-prompt.

Also adding to this, it would be nice to be able to add additional context after the /custom-prompt.

For example, I have a prompt i use to do git commits, but I might want to add context like a issue id or something.

madflojo avatar Oct 02 '25 15:10 madflojo

Also would like intergration with .github/prompts/*.md. You can't use GitHub SpecKit propertly without it.

wiltaylor-daf avatar Oct 19 '25 23:10 wiltaylor-daf

I was going crazy trying to do the same thing with my vscode *.md to make it work with the client. This functionality would be great

/customPrompt [var]

MocheMP avatar Dec 04 '25 22:12 MocheMP

+1. This is an important feature.

layzerar avatar May 11 '26 12:05 layzerar

In the meantime, you can create an alias to the copilot binary:

Function cop { copilot --add-dir ~/.copilot/prompts @args }

This adds a common directory containing all your prompts to the current workspace. It then allows to type the following prompt without being interrupted by permission issues.

follow instructions from @~/.copilot/prompts/my-custom.prompt.md

springcomp avatar May 29 '26 13:05 springcomp

Adding some context on why this matters beyond just "VSCode has it."

The core issue: prompts cost zero tokens until you use them, skills don't. Every skill you create loads metadata into your session at startup, whether you use it or not. For simple, reusable prompts (expert personas, review templates, etc.), this token tax adds up fast. Prompts let you maintain a large library without paying context costs for the 90% you're not using right now.

That distinction matters. Prompts aren't just a different format—they're a different use case with different performance characteristics.

The "Just Use Skills" Problem

In #618, the official response was to convert prompts into skills. But there's a critical UX gap.

I tested skills with  disable-model-invocation: true  (the suggested workaround):

✅ Works: Zero context cost, just like prompts ❌ Breaks: Doesn't show up in  /skills  list ❌ Breaks: Model can't see or suggest it ❌ Breaks: I have to manually remember every skill name or go browse the filesystem

So the workaround gives you efficiency but completely kills discoverability. VSCode's  /prompt  command gives you both—you can browse, see descriptions, and choose without burning tokens on skills you're not using.

Why Prompts Have a Place in the Hierarchy

The customization file types serve different purposes:

• Instructions ( .instructions.md ) - Always-on or pattern-matched context • Skills ( .skill.md ) - Tools the model autonomously invokes based on relevance • Agents ( .agent.md ) - Complex multi-step workflows in separate contexts • Prompts ( .prompt.md ) - [Missing in CLI] Simple, user-invoked instructions with zero context cost

Without native prompt support, you're stuck either accepting context bloat from rarely-used skills, using hidden skills with no way to discover them, or manually copy-pasting prompt text every time.

What We Need

A  /prompt  command (like  /agent  or  /skills ) that:

  1. Discovers  .prompt.md  files in  ~/.copilot/prompts/  and  .github/prompts/ 
  2. Lists available prompts with descriptions:  /prompt 
  3. Runs a specific prompt:  /prompt my-custom-prompt 

This completes the customization file hierarchy and gives CLI users the same context-efficient reusability that VSCode already has.

SqlBenjamin avatar Jun 30 '26 19:06 SqlBenjamin