Cursor Commands
Pre-built Cursor custom commands installed by dxai project when you enable the cursor-commands feature. They land in .cursor/commands/<name>.md so Cursor can run them as slash commands (e.g. /pr).
Commands
Section titled “Commands”| Slash command | File | Title | Step 1 |
|---|---|---|---|
/pr | pr.md | Create Pull Request | Look at all staged and unstaged changes with git diff |
/fix-issue | fix-issue.md | Fix GitHub Issue | Accept an issue number as input |
/review | review.md | Code Review | Run the linter on all changed files |
/test-all | test-all.md | Run All Tests | Detect the test framework being used (jest, vitest, pytest, go test, etc.) |
/refactor | refactor.md | Refactor Module | Accept a file or directory path as input |
Full bodies
Section titled “Full bodies”Each generated file is a Cursor command body. The full text is reproduced below for reference.
# Create Pull Request
1. Look at all staged and unstaged changes with `git diff`2. Write a clear commit message following conventional commits format3. Stage all changes and commit4. Push to the current branch5. Use `gh pr create` to open a PR with a descriptive title and body6. Return the PR URL when done/fix-issue
Section titled “/fix-issue”# Fix GitHub Issue
1. Accept an issue number as input2. Fetch the issue details using `gh issue view`3. Analyze the issue description and any linked code4. Find the relevant files in the codebase5. Implement the fix following project conventions6. Write tests for the fix7. Run the test suite to verify8. Create a PR that references the issue with "Fixes #<number>"/review
Section titled “/review”# Code Review
1. Run the linter on all changed files2. Run the full test suite3. Check for common issues: - Unused imports or variables - Missing error handling - Missing TypeScript types - Hardcoded values that should be config - Console.log statements that should be removed - Missing tests for new functionality4. Summarize findings with severity levels (critical, warning, suggestion)/test-all
Section titled “/test-all”# Run All Tests
1. Detect the test framework being used (jest, vitest, pytest, go test, etc.)2. Run the full test suite3. If any tests fail, analyze the failures4. Suggest fixes for failing tests5. Provide a summary of test results/refactor
Section titled “/refactor”# Refactor Module
1. Accept a file or directory path as input2. Analyze the current code structure3. Identify code smells: duplication, long functions, deep nesting, etc.4. Propose a refactoring plan5. Wait for approval before proceeding6. Implement the refactoring step by step7. Run tests after each step to ensure nothing breaks8. Provide a before/after summary