Step-by-step workflow
1
Open your project in Cursor
Cursor indexes all files so AI understands full project context.
2
Use Composer for full-file review
Press Cmd+I (Mac) or Ctrl+I (Windows) to open Composer.
@filename Review for: 1) Security vulnerabilities, 2) Performance issues, 3) Code that breaks existing patterns, 4) Missing error handling. List issues with line numbers and suggest fixes.
3
Fix issues in context
Ask Cursor to apply fixes directly. Review the diff before accepting.
Fix the security issue on line [X]. Also check if same issue exists elsewhere in @codebase and fix those too.
4
Generate documentation
Add docs to the updated code.
Add JSDoc comments to all exported functions in this file. For each: purpose, parameters with types, return value, usage example.
5
Write tests
Generate tests for the reviewed code.
Write unit tests for all functions in @filename using [Jest/Vitest]. Cover: happy path, edge cases, error conditions.
Pro tips
→
Set up .cursorrules with coding standards — applied automatically
→
Use "Explain" mode to understand complex code first
→
Review one module at a time for large codebases
Why this matters for India
// india context
Cursor free tier gives 2000 completions/month — plenty for solo developers and small teams