A VS Code extension (also works in Cursor Desktop) that improves natural language prompts before sending them to AI. It makes prompts clearer, adds missing context, and structures them for higher-quality AI output.
- π§ Enhance selected text or type in a new prompt
- π― Command Palette integration:
Cursor Enhancer: Enhance Prompt - π» Cross-platform: Works inside Cursor Desktop and VS Code
- βοΈ Configurable backend API endpoint
- π¨ Flexible output: Replace selection or open new document
- π‘οΈ Error handling: Graceful fallbacks when backend is unavailable
First, clone this repository and set up the backend server:
git clone https://github.com/KingReaper6940/CursorEnhancer.git
cd cursor-enhancer/backend
npm installCreate a .env file with your OpenAI API key:
cp env.example .env
# Edit .env and add your OpenAI API key:
# OPENAI_API_KEY=sk-your-actual-api-key-hereStart the backend server:
npm startThe API will be available at http://localhost:3000/api/enhance.
The extension is available on the VS Code Marketplace:
- Open VS Code or Cursor
- Go to Extensions (
Ctrl+Shift+X) - Search for "Cursor Prompt Enhancer"
- Click Install
Build and package the extension:
cd .. # Back to root directory
npm install
npm install -g @vscode/vsce
npm run compile
vsce packageThis creates a cursor-prompt-enhancer-0.0.1.vsix file.
For Cursor Desktop:
cursor --install-extension cursor-prompt-enhancer-0.0.1.vsixFor VS Code:
code --install-extension cursor-prompt-enhancer-0.0.1.vsixOr manually:
- Open Cursor/VS Code
- Press
Ctrl+Shift+P(Cmd+Shift+P on Mac) - Run "Extensions: Install from VSIX"
- Select the
.vsixfile
For development and testing:
# In the root directory
npm install
npm run compileThen press F5 in VS Code to launch a new Extension Development Host window.
- Select text in any file (your prompt to enhance)
- Press
Ctrl+Shift+P(Cmd+Shift+P on Mac) to open Command Palette - Type "Enhance Prompt" and select "Cursor Enhancer: Enhance Prompt"
- Choose to Replace Selection or Open New Document
If no text is selected, the extension will prompt you to enter text manually.
Before:
make a login form
After:
Create a modern, responsive login form component with the following specifications:
**Requirements:**
- Use HTML5 semantic elements and CSS3 for styling
- Include email and password input fields with proper validation
- Add "Remember Me" checkbox and "Forgot Password" link
- Implement form validation with real-time feedback
- Use CSS Grid or Flexbox for responsive layout
- Ensure accessibility (ARIA labels, proper focus management)
**Styling:**
- Modern, clean design with subtle shadows and rounded corners
- Consistent color scheme (primary, secondary, accent colors)
- Hover and focus states for interactive elements
- Mobile-first responsive design
**Functionality:**
- Client-side validation for email format and password requirements
- Form submission handling with loading states
- Error message display for validation failures
- Success feedback after submission
**Expected Output:**
- Complete HTML structure
- CSS styles (or styled-components if React)
- JavaScript for form validation and submission
- Responsive breakpoints for mobile, tablet, and desktop
The extension can be configured through VS Code settings:
{
"cursorEnhancer.apiUrl": "http://localhost:3000/api/enhance"
}- Open VS Code/Cursor settings (
Ctrl+,orCmd+,) - Search for "Cursor Enhancer"
- Modify the "Api Url" setting
Or edit your settings.json directly:
{
"cursorEnhancer.apiUrl": "https://your-custom-endpoint.com/api/enhance"
}Request:
{
"prompt": "your prompt text here"
}Response:
{
"success": true,
"enhanced_prompt": "enhanced version of your prompt",
"original_prompt": "your original prompt",
"timestamp": "2024-01-01T00:00:00.000Z"
}Error Response:
{
"success": false,
"error": "error message"
}{
"status": "healthy",
"timestamp": "2024-01-01T00:00:00.000Z"
}- Node.js 16+
- npm or yarn
- VS Code or Cursor Desktop
- OpenAI API key
# Clone the repository
git clone https://github.com/yourname/cursor-enhancer.git
cd cursor-enhancer
# Install dependencies
npm install
# Compile TypeScript
npm run compile
# Package extension
vsce package# Compile TypeScript in watch mode
npm run watch
# Run linting
npm run lint
# Package for distribution
npm run packagecd backend
# Install dependencies
npm install
# Start in development mode (with auto-reload)
npm run dev
# Production start
npm start- Ensure the backend server is running:
cd backend && npm start - Check if the server is accessible: visit
http://localhost:3000/health - Verify the API URL in extension settings
- Create a
.envfile in thebackenddirectory - Add your OpenAI API key:
OPENAI_API_KEY=sk-your-key-here - Restart the backend server
- The extension has a 30-second timeout
- Check your internet connection
- Verify OpenAI API quota and billing status
- Reload the window:
Ctrl+Shift+Pβ "Developer: Reload Window" - Check if the extension is enabled in the Extensions view
- Try reinstalling the VSIX file
This extension is published on the VS Code Marketplace and can be installed directly from within VS Code or Cursor:
- Open VS Code or Cursor
- Go to Extensions (
Ctrl+Shift+XorCmd+Shift+X) - Search for "Cursor Prompt Enhancer"
- Click Install
π Install from VS Code Marketplace
- Publisher: Vrishn Viswa Sathyamoorthy
- Version: 0.0.1
- License: Proprietary (Personal Use Only)
- Last Updated: September 19, 2024
This project is licensed under a Proprietary License - Personal Use Only.
- Personal use only - Install and use on your personal devices
- Personal projects - Use for personal projects and learning
- Individual installation - Install on your own machines
- Commercial use - Use in any commercial products or services
- Redistribution - Share, resell, or distribute to others
- Modification - Create derivative works or modified versions
- Reverse engineering - Decompile or reverse engineer the software
- Public display - Use in public demonstrations or performances
Copyright (c) 2024 Vrishn Viswa Sathyamoorthy. All rights reserved.
For licensing inquiries, contact: vrishnviswa.sathyamoorthy@gmail.com
Full license text: See LICENSE file in this repository.
This is a proprietary project with limited contribution opportunities due to licensing restrictions.
- Use the GitHub Issues page
- Include steps to reproduce, expected vs actual behavior
- Add relevant logs and system information
- Open an issue with the "enhancement" label
- Describe the feature and its use case
- Note: Implementation will be done by the project maintainer
Due to the proprietary license, external contributions are not accepted. All development and modifications are handled by the project maintainer to preserve the proprietary nature of the software.
- Add configuration UI for API settings
- Implement prompt templates/presets
- Add keyboard shortcuts
- Improve error messages and user feedback
- Support for multiple AI providers (Anthropic, Cohere, etc.)
- Local/offline enhancement using smaller models
- Prompt history and favorites
- Batch enhancement for multiple selections
- Direct integration with Cursor's chat interface
- Smart context detection (file type, project structure)
- Collaborative prompt sharing
- Advanced customization options
- Vrishn Viswa Sathyamoorthy (@KingReaper6940) - Creator & Maintainer
- OpenAI for the GPT-4 API
- VS Code Extension API documentation
- Cursor for inspiration
- The open-source community for various dependencies
- π§ Email: vrishnviswa.sathyamoorthy@gmail.com
- π Issues: GitHub Issues
- π¬ Discussions: GitHub Discussions
- π Documentation: Wiki
Made with β€οΈ for the developer community
β Star on GitHub β’ π Report Bug β’ π‘ Request Feature