Cursor Setup Guide
Complete guide to integrating Bootspring with Cursor, the AI-powered code editor.
Overview#
Cursor is an AI-enhanced code editor built on VS Code. Bootspring complements Cursor by providing:
- Structured Context - CLAUDE.md enhances Cursor's understanding
- Expert Agents - Specialized assistance beyond general AI
- Skill Patterns - Production-ready code patterns
- Development Workflows - Multi-phase orchestration
Prerequisites#
- Cursor installed (cursor.sh)
- Bootspring CLI installed (
npm install -g bootspring) - Node.js 18+ installed
Installing Cursor#
macOS#
Windows#
Download from cursor.sh and run the installer.
Linux#
Bootspring Integration#
Step 1: Initialize Bootspring#
This creates:
CLAUDE.md- Context file (Cursor reads this)bootspring.config.js- Configuration.bootspring/- Local data
Step 2: Cursor Reads CLAUDE.md#
Cursor automatically indexes your project, including CLAUDE.md. This provides:
- Project architecture understanding
- Coding standards and patterns
- Tech stack details
- Custom instructions
Step 3: Configure Cursor Rules#
Create .cursorrules to reference Bootspring context:
# Cursor Rules
## Project Context
Refer to CLAUDE.md for complete project context, architecture, and coding standards.
## Code Generation
- Follow patterns defined in CLAUDE.md
- Use the tech stack specified in project context
- Match existing code style
## When Uncertain
- Check CLAUDE.md for project-specific guidance
- Follow the architecture described in context
- Use established patterns from the codebase
Syncing Context#
Context in CLAUDE.md#
Bootspring generates comprehensive context:
Regenerate After Changes#
Git Hook#
Auto-generate on commit:
Using Both Together#
Cursor for Quick Edits#
Use Cursor's built-in AI for:
- Line completions (Tab)
- Quick edits (Cmd+K)
- Simple questions (Cmd+L)
Bootspring for Complex Tasks#
Use Bootspring CLI for:
- Expert agent consultations
- Production pattern application
- Multi-phase workflows
Terminal Integration#
Cursor Terminal#
Cursor includes an integrated terminal. Use Bootspring directly:
Completions#
Add to your shell profile:
Composer Integration#
Using Composer with Context#
When using Cursor's Composer (Cmd+I):
- Composer reads your
CLAUDE.md - Uses project patterns for generation
- Follows your coding standards
Reference Bootspring Context#
In Composer prompts:
Create a new API endpoint following the patterns in CLAUDE.md for user preferences.
Add Context References#
@CLAUDE.md Create a form component following our established patterns.
Custom Commands#
Cursor Command Palette#
Create .vscode/tasks.json (Cursor uses VS Code format):
Run via: Cmd+Shift+P → "Tasks: Run Task"
Keyboard Shortcuts#
Cursor Shortcuts#
| Shortcut | Action |
|---|---|
| Cmd+K | Inline edit |
| Cmd+L | Chat panel |
| Cmd+I | Composer |
| Cmd+Shift+L | Add to chat |
Custom Bootspring Shortcuts#
Add to Cursor keybindings:
Settings Synchronization#
Cursor Settings#
.vscode/settings.json:
Bootspring Settings#
bootspring.config.js:
Workflow: Cursor + Bootspring#
Feature Development#
-
Plan with Bootspring
Loading code block... -
Design phase - Bootspring agent provides architecture
-
Implement in Cursor - Use Composer for code generation
-
Apply patterns
Loading code block... -
Quality check
Loading code block... -
Commit - Context auto-updates
Code Review#
-
Run security review
Loading code block... -
Fix issues in Cursor - Use Cmd+K for inline fixes
-
Verify with quality check
Loading code block...
Cursor Rules Best Practices#
Reference CLAUDE.md#
# .cursorrules
Always check CLAUDE.md for:
- Project architecture and patterns
- Tech stack and dependencies
- Coding standards and conventions
- Component structure guidelines
When generating code:
1. Read CLAUDE.md first
2. Follow established patterns
3. Match existing code style
4. Use project's preferred libraries
Project-Specific Rules#
# .cursorrules
## Component Structure
- Use Server Components by default (see CLAUDE.md)
- Client Components only for interactivity
- Follow naming conventions in project
## API Routes
- See patterns in CLAUDE.md
- Use Zod for validation
- Handle errors consistently
## Testing
- Jest + React Testing Library
- Follow test patterns in __tests__/
Troubleshooting#
Context Not Updating#
Cursor Not Reading CLAUDE.md#
- Check file exists:
ls CLAUDE.md - Verify it's not gitignored
- Reload Cursor window
- Re-index project: Cmd+Shift+P → "Cursor: Re-index"
Terminal Commands Failing#
Conflicting AI Suggestions#
If Cursor's suggestions conflict with Bootspring patterns:
- Update
.cursorrulesto reference CLAUDE.md - Be explicit about pattern preferences
- Use Bootspring for complex generation
Performance#
Optimize Context Generation#
Cursor Indexing#
Cursor indexes your project. Large contexts may slow indexing:
- Keep CLAUDE.md focused
- Use
.cursorignorefor large files - Exclude generated content
Extensions#
Recommended Extensions#
Install via Cursor's extension panel:
| Extension | Purpose |
|---|---|
| ESLint | Code quality |
| Prettier | Formatting |
| Tailwind CSS IntelliSense | Tailwind support |
| Prisma | Database schema |