cursor-project/prompt-manager
About
Efficient management and quick access to AI Prompt templates for Cursor/VSCode
AI & Machine LearningMeasured star growth
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.en.md
Original中文 | English
Prompt Manager

Efficient management and quick access to AI Prompt templates for Cursor/VSCode
Authors
Yuki |
Jinhui |
Cursor |
Claude |
Note: All code in this repository is generated by Cursor + Claude
📋 Table of Contents
- Features
- Quick Start
- Demo
- Core Features
- User Interface
- Usage Guide
- Keyboard Shortcuts
- Configuration
- Import/Export
- Editor Integration
- Technical Architecture
- FAQ
- Support & Feedback
✨ Features
🎯 Core Highlights
- 📝 Complete Prompt Lifecycle Management - Create, edit, delete, and organize with categories
- 🔍 Smart Search - Full-text search across titles, content, tags, and categories
- 📁 Hierarchical Category System - Flexible category management with unlimited levels
- 💾 Data Import/Export - JSON format supporting backup and cross-device sync
- 🔗 Multi-Editor Integration - Perfect compatibility with Cursor, VSCode and other mainstream editors
- 💬 Chat Integration - One-click send prompts to chat interface
- 📊 Usage Statistics - Automatic usage tracking with intelligent sorting recommendations
- ⚡ Performance Optimization - Debounced search, lazy loading, smooth experience
🚀 Technical Advantages
- Full TypeScript Stack - Complete type system with excellent development experience
- Event-Driven Architecture - Reactive UI updates with real-time synchronization
- Singleton Pattern Design - Efficient resource utilization and clear state management
- Factory Pattern Integration - Automatic adaptation to multiple editor environments
- Async Operation Optimization - Non-blocking UI with smooth operations
🚀 Quick Start
Installation
Install from VSCode Marketplace
Press Ctrl+Shift+X in VSCode to open Extensions panel Search for "Prompt Manager for IDE" Click InstallCursor Plugin Installation
Due to Cursor plugin fetch delay, you can download it here: https://marketplace.visualstudio.com/items?itemName=prompt-manager-dev.prompt-manager-for-ide
Local Installation
# After downloading the .vsix file code --install-extension prompt-manager-for-ide-xxx.vsix
First Use
- Activate Extension - Automatically activated after installation, find Prompt Manager icon in Activity Bar
- Browse Default Templates - Extension comes with pre-built templates for code review, technical documentation, problem analysis, etc.
- Add Custom Prompts - Click the ➕ button or use shortcut
Shift+P - Start Using - Select a prompt, automatically copied to clipboard or double-click to send to Chat
🎥 Demo
https://github.com/user-attachments/assets/d56490ff-c262-4ed4-b88c-989afb54ea5d
🛠 Core Features
Prompt Management
- Create Prompts - Support for title, content, description, tags, and categories
- Edit Prompts - Modify anytime with automatic save of modification time
- Delete Prompts - Support for individual deletion and batch cleanup
- Simple Management - Easy organization with category-based structure
Category System
- Default Categories - Three basic categories: General, Programming, Writing
- Custom Categories - Create personalized category structures
- Category Operations - Support for editing, deleting, and exporting entire categories
- Uncategorized Management - Automatically collect uncategorized prompts
Search & Filtering
- Real-time Search - Search as you type, supports both Chinese and English
- Multi-field Search - Search across titles, content, descriptions, tags, and category names
- Search Highlighting - Clear display of matching results
- Search History - Remember commonly used search terms
🎨 User Interface
Activity Bar View
- Prompt Tree List - Display all prompts organized by category hierarchy
- Context Menu - Quick access to edit, delete, copy and other operations
- Search Box - Real-time filtering of displayed results
- Toolbar Buttons - Common functions like add, refresh, settings
Quick Picker
- Smart Sorting - Based on usage frequency and update time
- Preview Information - Display prompt content preview
- Category Indicators - Clear display of category membership
- Operation Hints - Show available operation methods
📖 Usage Guide
Basic Operations
1. Creating Prompts
Method 1: Activity Bar → Click ➕ button
Method 2: Command Palette → "Prompt Manager: Add New Prompt"
Method 3: Shortcut Shift+P → Select "Add New Prompt"
2. Using Prompts
Method 1: Activity Bar → Double-click prompt item
Method 2: Shortcut Shift+P → Select prompt
Method 3: Right-click menu → "Copy to Clipboard" or "Send to Chat"
3. Managing Categories
Create Category: Right-click empty area in Activity Bar → "Add Category"
Edit Category: Right-click category → "Edit Category"
Delete Category: Right-click category → "Delete Category"
Advanced Features
Smart Search
// Search syntax examples
code # Search all content containing "code"
react hooks # Search React Hooks related content
@programming # Search content in programming category
#bug # Search prompts containing bug tag
Batch Operations
Export All: Command Palette → "Prompt Manager: Export Prompts"
Export Category: Right-click category → "Export Category"
Import Data: Command Palette → "Prompt Manager: Import Prompts"
⌨️ Keyboard Shortcuts
| Shortcut | Function | Description |
|---|---|---|
Shift+P |
Show Prompt List | Quick picker |
Ctrl+K Ctrl+S |
Search Prompts | Search in TreeView |
F2 |
Edit Selected Item | Rename in TreeView |
Delete |
Delete Selected Item | Delete in TreeView |
Ctrl+C |
Copy Prompt | Copy in TreeView |
💡 Tip: Keyboard shortcuts can be customized in settings
⚙️ Configuration
Default Action Mode
{
"promptManager.defaultAction": "copy" // or "chat"
}
copy- Copy to clipboard when selecting a promptchat- Send to chat interface when selecting a prompt
Custom Configuration File Location
Windows: %APPDATA%\Code\User\settings.json
macOS: ~/Library/Application Support/Code/User/settings.json
Linux: ~/.config/Code/User/settings.json
💾 Import/Export
Supported Formats
- JSON Format - Standard data exchange format
- Version Compatibility - Supports backward-compatible version upgrades
- Integrity Verification - Automatic data format validation during import
Export Data Structure
{
"version": "1.0.0",
"exportedAt": "2024-01-01T00:00:00.000Z",
"prompts": [
{
"id": "unique-id",
"title": "Prompt Title",
"content": "Prompt Content",
"description": "Description Information",
"categoryId": "Category ID",
"tags": ["Tag1", "Tag2"],
"createdAt": "2024-01-01T00:00:00.000Z",
"updatedAt": "2024-01-01T00:00:00.000Z",
"usageCount": 0
}
],
"categories": [
{
"id": "category-id",
"name": "Category Name",
"description": "Category Description",
"icon": "Icon Name",
"sortOrder": 0,
"createdAt": "2024-01-01T00:00:00.000Z"
}
],
"metadata": {
"totalCount": 1,
"categoryCount": 1,
"exportedBy": "Prompt Manager"
}
}
Import Notes
- Conflict Handling - Prompts with the same ID will be overwritten
- Category Creation - Non-existent categories will be automatically created
- Data Validation - Invalid data will be filtered but won't affect import
🔗 Editor Integration
Cursor Integration
- Environment Detection - Automatically recognize Cursor environment
- Chat Commands - Send directly to Cursor Chat
- Quick Operations - Support right-click menu sending
VSCode Integration
- Native Support - Perfect compatibility with VSCode environment
- Command Palette - All features accessible through command palette
- Settings Sync - Support VSCode settings synchronization
Universal Features
- Clipboard Integration - One-click copy prompt content
- Editor Insertion - Direct insertion at current editor position
- Smart Recognition - Automatically select optimal integration method based on environment
🏗 Technical Architecture
Core Design Patterns
- Singleton Pattern - PromptManager and various Service instances
- Factory Pattern - ChatIntegrationFactory automatically selects integration services
- Strategy Pattern - PromptActionStrategies handle different operations
- Event-Driven - Reactive UI update mechanism
Service Layer Architecture
PromptManager (Core Business Logic)
├── StorageService (Data Persistence)
├── UIService (User Interface)
├── ClipboardService (Clipboard Operations)
├── ImportExportService (Import/Export)
├── ChatIntegrationFactory (Chat Integration)
│ ├── CursorIntegrationService
│ └── VSCodeIntegrationService
└── EditorEnvironmentDetector (Environment Detection)
Data Flow
UI Operations → PromptManager → Service Layer → Storage Layer
↓
Event Notifications → UI Updates
❓ FAQ
Q: How much storage space does the extension use?
A: The extension itself is about 2MB, with prompt data stored in VSCode's globalState, typically ranging from a few KB to several MB.
Q: Is the data secure? Will it be lost?
A: Data is stored in VSCode's official storage mechanism, with the same security level as VSCode settings. Regular export backups are recommended.
Q: Does it support team sharing?
A: Team sharing can be achieved through export/import functionality. Cloud sync features may be considered in future versions.
Q: Why isn't Chat integration working?
A: Please check: 1) Whether you're in a supported editor 2) Editor version compatibility 3) Whether there's an active editor window
Q: Can I modify the default example prompts?
A: Yes, all prompts (including examples) can be freely edited or deleted.
Q: Does it support Markdown format?
A: Prompt content supports any plain text format, including Markdown, code, etc.
🆘 Support & Feedback
Issue Reporting
- GitHub Issues - Submit Issues
- Feature Requests - Feature Requests
Contributing
- Code Contributions - Pull requests are welcome
- Documentation Improvements - Help improve documentation and examples
- Bug Reports - Detailed error reproduction steps
Version History
- v0.0.1 - Initial version with core features
Acknowledgments
Thanks to all users for their feedback and suggestions that make this extension better!
If this extension helps you, please consider giving it a ⭐️
Explore related projects
Loading…