This directory contains reusable prompt files that extend Copilot Chat with repeatable tasks (e.g., "Write ADR", "Write PRD"). Prompts standardize how assistants operate, capture inputs, and produce consistent outputs.
- In Copilot Chat, type the prompt name or pick it from the quick actions list.
- Many prompts can be invoked like a slash command (e.g.,
/write-adr). If your IDE surfaces prompt files differently, open the prompt and follow its inputs section. - Provide required inputs when asked (see the Inputs section inside each prompt). Defaults are applied when permitted.
- Copy an existing
.prompt.mdfile as a starting point. - Set a clear
descriptionand the minimaltoolsneeded. - Add an Inputs section with
${input:...}placeholders and validation rules. - Define output structure and quality gates so results are consistent and reviewable.
Within a prompt file, you can reference variables by using the ${variableName} syntax. You can reference the following variables:
- Workspace variables -
${workspaceFolder},${workspaceFolderBasename} - Selection variables -
${selection},${selectedText} - File context variables -
${file},${fileBasename},${fileDirname},${fileBasenameNoExtension} - Input variables -
${input:variableName},${input:variableName:placeholder}(pass values to the prompt from the chat input field)