Path: blob/main/extensions/copilot/assets/prompts/skills/agent-customization/references/prompts.md
13405 views
Prompts (.prompt.md)
Reusable task templates triggered on-demand in chat. Single focused task with parameterized inputs.
Locations
| Path | Scope |
|---|---|
.github/prompts/*.prompt.md | Workspace |
<profile>/prompts/*.prompt.md | User profile |
Frontmatter
Model fallback is supported:
Template
Context references: Use Markdown links for files ([config](./config.json)) and #tool:<name> for tools.
Invocation
Chat: Type
/→ select from prompts and skillsCommand:
Chat: Run Prompt...Editor: Open prompt file → play button
Both prompts and skills appear as slash commands in chat. Skills provide multi-step workflows with bundled assets; prompts are single focused tasks.
Tip: Use chat.promptFilesRecommendations to show prompts as actions when starting a new chat.
Tool Priority
When both prompt and custom agent define tools:
Tools from prompt file
Tools from referenced custom agent
Default tools for selected agent
When to Use
Generate test cases for specific code
Create READMEs from specs
Summarize metrics with custom parameters
One-off generation tasks
Core Principles
Single task focus: One prompt = one well-defined task
Output examples: Show expected format when quality depends on structure
Reuse over duplication: Reference instruction files instead of copying
Anti-patterns
Multi-task prompts: "create and test and deploy" in one prompt
Vague descriptions: Descriptions that don't help users understand when to use
Over-tooling: Many tools when the task only needs search or file access