GitHub Copilot prompt files
Create one manually invoked command for one focused task. Inspect the active
VS Code prompt schema and available agent/tool identifiers first.
Workflow
- Define the input variables, attached context, output artifact, allowed tools,
and completion evidence.
- Store workspace prompts as
.github/prompts/<name>.prompt.md; use user scope
only for a genuinely cross-project command.
- Add only needed frontmatter:
name, description, argument-hint, agent,
model, and tools are currently supported.
- Write an ordered task contract. Use
${input:name:placeholder} for missing
values and relative Markdown links for repository context.
- Give the prompt the smallest tool list. A prompt's
tools overrides tools
inherited from its selected agent; unavailable tools can be ignored.
- Run from the editor and slash menu, then verify the output rather than the
response wording.
Rules
- Use a prompt for deliberate one-task invocation. Use a skill for automatic
discovery, multi-step expertise, scripts, or resources.
- Omit
model unless the task genuinely requires a verified model capability.
- Do not hardcode current selections, secrets, absolute paths, or undocumented
tool identifiers.
- Reference shared instructions instead of duplicating them.
- Ask only for inputs not discoverable from the workspace.
Read the prompt contract, use evaluated
patterns, and follow verification.
Completion
Frontmatter parses; every input is consumed; links resolve; tools are available
and least privilege; the slash command is discoverable; positive and malformed
inputs produce the declared artifacts; a nearby non-command task stays outside.
1---2name: github-copilot-prompt-files3description: >-4 Use for creating, reviewing, or debugging GitHub Copilot reusable prompt files and slash commands in Visual Studio Code, including .github/prompts/*.prompt.md, inputs, context links, agent selection, and tool selection. Do not use for always-on rules, multi-step Agent Skills, custom personas, or VS Code extension commands.5argument-hint: "[repeatable task, inputs, expected output, and allowed tools]"6metadata:7 source: https://skillmd.com/skills/schattenspiegel/github-copilot-prompt-files8---910# GitHub Copilot prompt files1112Create one manually invoked command for one focused task. Inspect the active13VS Code prompt schema and available agent/tool identifiers first.1415## Workflow16171. Define the input variables, attached context, output artifact, allowed tools,18 and completion evidence.192. Store workspace prompts as `.github/prompts/<name>.prompt.md`; use user scope20 only for a genuinely cross-project command.213. Add only needed frontmatter: `name`, `description`, `argument-hint`, `agent`,22 `model`, and `tools` are currently supported.234. Write an ordered task contract. Use `${input:name:placeholder}` for missing24 values and relative Markdown links for repository context.255. Give the prompt the smallest tool list. A prompt's `tools` overrides tools26 inherited from its selected agent; unavailable tools can be ignored.276. Run from the editor and slash menu, then verify the output rather than the28 response wording.2930## Rules3132- Use a prompt for deliberate one-task invocation. Use a skill for automatic33 discovery, multi-step expertise, scripts, or resources.34- Omit `model` unless the task genuinely requires a verified model capability.35- Do not hardcode current selections, secrets, absolute paths, or undocumented36 tool identifiers.37- Reference shared instructions instead of duplicating them.38- Ask only for inputs not discoverable from the workspace.3940Read [the prompt contract](references/artifact-contracts.md), use [evaluated41patterns](references/patterns.md), and follow [verification](references/verification.md).4243## Completion4445Frontmatter parses; every input is consumed; links resolve; tools are available46and least privilege; the slash command is discoverable; positive and malformed47inputs produce the declared artifacts; a nearby non-command task stays outside.