Reusable Prompts
Six powerful slash commands for common tasks.
What Are Prompts?
Type / in Copilot Chat to invoke ready-made instructions for specific scenarios.
Available Prompts
/create-readme
Generate a professional README.md file
Auto-detects your project and creates comprehensive documentation:
- Project title & description
- Features list
- Installation instructions
- Usage examples
- API documentation
- Contributing guidelines
- License information
Example:
/create-readme
Best for:
- New projects needing documentation
- Existing projects with missing README
- Standardizing documentation style
/code-review
Perform comprehensive code review
Audits code for:
- Security vulnerabilities
- Performance issues
- Code quality problems
- Best practices violations
Example:
/code-review
Best for:
- Pulling PRs before merging
- Auditing critical modules
- Teaching code quality standards
/generate-tests
Generate unit tests
Creates tests following best practices:
- Happy path scenarios
- Edge cases & boundaries
- Error handling
- Proper test structure
- Language-specific frameworks (xUnit, pytest, Jest)
Example:
/generate-tests
Best for:
- Adding tests to untested code
- Increasing code coverage
- Learning testing best practices
/1-on-1-prep
Prepare for 1-on-1 meeting
Generates agenda and guidance for:
- Opening questions
- Career development discussions
- Feedback exchange
- Action items
- Red flag indicators
Example:
/1-on-1-prep
Best for:
- Team leads & managers
- Regular 1-on-1s
- Difficult conversations
/architecture-decision
Create Architecture Decision Record (ADR)
Documents decisions with:
- Context & problem statement
- Options considered (with pros/cons)
- Decision rationale
- Implementation plan
- Risks & mitigation
- Related decisions
Example:
/architecture-decision
Best for:
- Recording major technical decisions
- Maintaining decision history
- Onboarding new team members
/architecture-review
Comprehensive architecture review and recommendations
Evaluates the system across:
- System design and component boundaries
- Scalability and performance bottlenecks
- Reliability and resilience patterns
- Security architecture and data protection
- Technology stack currency and risks
- Operational readiness (monitoring, logging, CI/CD)
Produces a prioritized action plan with impact/effort and risk.
Example:
/architecture-review
Best for:
- Major architectural changes or reviews
- Scaling readiness assessments
- Security and reliability audits pre-release
How to Use
-
Open Copilot Chat -
Ctrl+Shift+I(Windows) orCmd+Shift+I(Mac) -
Type the command
/create-readme - Select the agent (if prompted)
- Most prompts route to specific agents automatically
- Provide context (if requested)
- Answer clarifying questions
- Attach files if needed
- Review output
- Edit as needed
- Accept or refine
Pro Tips
Combine with Agents
@orchestrator Use /create-readme and /code-review after implementation
Enhance with Context
/code-review Focus on security issues in payment processing
Chain Prompts
/generate-tests then @review the tests for quality
Location
All prompts are stored in:
.github/prompts/*.prompt.md
You can view them to understand how they work!
Create Custom Prompts
Want to add your own prompt? Create a .prompt.md file:
---
description: What this prompt does
agent: codebase
---
# Your Prompt Name
Instructions here...
Store in .github/prompts/ and it appears in autocomplete!
Next Steps
- Agents Guide - When to use each agent
- Workflows - Real examples combining prompts
- Customization - Add project context