Custom commands allow you to create reusable workflows that can be triggered with a simple / prefix in the chat input box. These commands help standardize processes across your team and make common tasks more efficient.
Commands are currently in beta. The feature and syntax may change as we continue to improve it.
Commands are defined as plain Markdown files that can be stored in two locations:
Project commands: Stored in the .cursor/commands directory of your project
Global commands: Stored in the ~/.cursor/commands directory in your home directory
When you type / in the chat input box, Cursor will automatically detect and display available commands from both directories, making them instantly accessible across your workflow.
Try these commands in your projects to get a feel for how they work.
Code review checklist
Copy
Ask AI
# Code Review Checklist## OverviewComprehensive checklist for conducting thorough code reviews to ensure quality, security, and maintainability.## Review Categories### Functionality- [ ] Code does what it's supposed to do- [ ] Edge cases are handled- [ ] Error handling is appropriate- [ ] No obvious bugs or logic errors### Code Quality- [ ] Code is readable and well-structured- [ ] Functions are small and focused- [ ] Variable names are descriptive- [ ] No code duplication- [ ] Follows project conventions### Security- [ ] No obvious security vulnerabilities- [ ] Input validation is present- [ ] Sensitive data is handled properly- [ ] No hardcoded secrets
Security audit
Copy
Ask AI
# Security Audit## OverviewComprehensive security review to identify and fix vulnerabilities in the codebase.## Steps1. **Dependency audit** - Check for known vulnerabilities - Update outdated packages - Review third-party dependencies2. **Code security review** - Check for common vulnerabilities - Review authentication/authorization - Audit data handling practices3. **Infrastructure security** - Review environment variables - Check access controls - Audit network security## Security Checklist- [ ] Dependencies updated and secure- [ ] No hardcoded secrets- [ ] Input validation implemented- [ ] Authentication secure- [ ] Authorization properly configured
Setup new feature
Copy
Ask AI
# Setup New Feature## OverviewSystematically set up a new feature from initial planning through to implementation structure.## Steps1. **Define requirements** - Clarify feature scope and goals - Identify user stories and acceptance criteria - Plan technical approach2. **Create feature branch** - Branch from main/develop - Set up local development environment - Configure any new dependencies3. **Plan architecture** - Design data models and APIs - Plan UI components and flow - Consider testing strategy## Feature Setup Checklist- [ ] Requirements documented- [ ] User stories written- [ ] Technical approach planned- [ ] Feature branch created- [ ] Development environment ready
Create pull request
Copy
Ask AI
# Create PR## OverviewCreate a well-structured pull request with proper description, labels, and reviewers.## Steps1. **Prepare branch** - Ensure all changes are committed - Push branch to remote - Verify branch is up to date with main2. **Write PR description** - Summarize changes clearly - Include context and motivation - List any breaking changes - Add screenshots if UI changes3. **Set up PR** - Create PR with descriptive title - Add appropriate labels - Assign reviewers - Link related issues## PR Template- [ ] Feature A- [ ] Bug fix B- [ ] Unit tests pass- [ ] Manual testing completed
Run tests and fix failures
Copy
Ask AI
# Run All Tests and Fix Failures## OverviewExecute the full test suite and systematically fix any failures, ensuring code quality and functionality.## Steps1. **Run test suite** - Execute all tests in the project - Capture output and identify failures - Check both unit and integration tests2. **Analyze failures** - Categorize by type: flaky, broken, new failures - Prioritize fixes based on impact - Check if failures are related to recent changes3. **Fix issues systematically** - Start with the most critical failures - Fix one issue at a time - Re-run tests after each fix
Onboard new developer
Copy
Ask AI
# Onboard New Developer## OverviewComprehensive onboarding process to get a new developer up and running quickly.## Steps1. **Environment setup** - Install required tools - Set up development environment - Configure IDE and extensions - Set up git and SSH keys2. **Project familiarization** - Review project structure - Understand architecture - Read key documentation - Set up local database## Onboarding Checklist- [ ] Development environment ready- [ ] All tests passing- [ ] Can run application locally- [ ] Database set up and working- [ ] First PR submitted