Using copilot-kit's 8 built-in prompt templates to accelerate common development workflows.
Prompt templates are pre-built .prompt.md files in .github/prompts/. They automatically activate the relevant skills, set the appropriate strictness mode, and structure the request in the optimal way for each workflow.
In VS Code, use them via the Copilot Chat prompt picker (/ in chat) or reference them by name.
Diagnose and fix an error with root cause analysis. Activates systematic-debugging skill.
Usage:
/fix-error TypeError: Cannot read properties of undefined (reading 'map') at ProductList.tsx:23
Generate comprehensive tests following the AAA pattern. Activates tdd-workflow + testing-patterns.
Usage:
/generate-tests function calculateDiscount(price: number, percentage: number): number
Refactor code for readability, maintainability, and adherence to clean code principles.
Usage:
/refactor [paste code to refactor]
Perform a comprehensive code review using the code-review-checklist skill.
Usage:
/code-review [paste code or PR diff]
Explain code, concepts, or patterns in depth with examples.
Usage:
/explain What is the difference between useCallback and useMemo in React?
Profile and optimize code for performance. Activates performance-profiling skill.
Usage:
/optimize [paste performance-critical code]
Generate professional documentation (JSDoc, README sections, API docs).
Usage:
/document export function parseSearchParams(url: string): Record<string, string>
Scaffold a new skill file with the correct structure for your .github/skills/ directory.
Usage:
/new-skill graphql-patterns
Create your own prompt templates by adding .prompt.md files to .github/prompts/. Use the /new-skill prompt to scaffold one with the correct structure:
/new-skill my-framework-patterns.github/prompts/ are picked up automatically by VS Code Copilot Chat — no configuration needed. They survive re-runs of init only if you add them to a separate location before overwriting.