Slash Commands
Trigger specific actions with /jasper commands in any PR comment.
Available Commands
Use these commands in any pull request comment to trigger specific Jasper actions:
/jasper explain
Understanding
Get a detailed explanation of what the PR does. Perfect for understanding complex changes or onboarding new reviewers.
/jasper improve
Enhancement
Get concrete suggestions for improving code quality, performance, and maintainability.
/jasper security
Security
Perform a deep security analysis of the code changes. Identifies vulnerabilities and provides remediation guidance.
/jasper summary
Documentation
Generate a comprehensive PR summary suitable for the PR description or release notes.
/jasper review
Full Review
Trigger a complete code review covering all aspects: correctness, security, performance, and code quality.
/jasper help
Help
Display a list of all available commands with descriptions. Useful for quick reference.
Usage Examples
Basic Usage
Simply type a command in any PR comment:
/jasper explain
With Additional Context
Add specific focus areas after the command:
/jasper explain the authentication flow
/jasper improve focus on database queries
/jasper security check the file upload handling
Alternative Syntax
You can also use the @jasper mention with commands:
@jasper explain
@jasper /jasper security
Command Output
Each command produces a detailed response tailored to its purpose. Responses are formatted in Markdown with clear sections, code examples where relevant, and actionable recommendations.
Credit Usage
Each slash command (except /jasper help) consumes one review credit from your organization's balance.
Best Practices
- Use
/jasper securityfor sensitive changes - Authentication, payments, file handling, API endpoints - Use
/jasper explainfor complex PRs - Help reviewers understand large or intricate changes - Use
/jasper improvebefore merging - Get final suggestions for polish - Use
/jasper summaryfor release notes - Generate consistent PR descriptions
Combining with Chat
After running a slash command, you can follow up with questions using @jasper:
/jasper security
... (Jasper posts security analysis)
@jasper Can you explain the SQL injection risk in more detail?
... (Jasper provides more context)
See Chat with Jasper for more on interactive conversations.
New to Jasper? try it free.