A local-first tool that captures and analyzes Cursor prompts for quality and effectiveness
Project description
Cursor Prompts
A local-first tool that captures and analyzes Cursor prompts for quality and effectiveness.
Installation
pip install cursor-prompts
Setup
-
Configure hooks:
cursor-prompts setupThis creates hooks in
~/.cursor/and initializes storage in~/.prompt-analyzer/. -
Use Cursor normally - prompts are captured automatically.
-
Review your prompts:
cursor-prompts stats # View statistics cursor-prompts examples --type rejected # See problematic prompts cursor-prompts recommend # Generate Cursor rules and commands recommendations
Quick Commands
cursor-prompts stats [--since 7d]- Show summary statisticscursor-prompts examples [--type rejected|repeated|all] [--limit N]- Show examplescursor-prompts recommend [--since 30d] [--project PATH] [--no-open]- Generate Cursor rules and commands recommendations from recent promptscursor-prompts storage- Show storage infocursor-prompts storage clear [--older-than 30d]- Clear old prompts
Analysis Criteria
Prompts are scored 0-100 with deductions for:
- Rejected Suggestions (-30): AI response was rejected
- Repeated Prompts (-20): Same/similar prompt sent multiple times (>80% similarity within session or 5-minute window)
- Vague Requests (-15): Very short prompts or single-word questions lacking context
The tool provides contextual suggestions for improvement based on detected issues.
Recommendations
The recommend command analyzes your prompts to generate Cursor rules and commands recommendations:
- Global patterns: Identifies common patterns across all your projects
- Project-specific: Generates recommendations tailored to specific projects
- Existing detection: Scans for existing
.cursorrulesfiles and commands to avoid duplicates - Interactive HTML: Opens a browser page with all recommendations, organized by project
Example usage:
cursor-prompts recommend # Analyze last 30 days
cursor-prompts recommend --since 7d # Analyze last 7 days
cursor-prompts recommend --project /path # Analyze specific project
cursor-prompts recommend --no-open # Save HTML without opening browser
Storage
All data is stored locally:
- Database:
~/.prompt-analyzer/data/prompts.db - Config:
~/.prompt-analyzer/config.json - Hooks:
~/.cursor/hooks.jsonand~/.cursor/hooks/cursor-prompts.js
Requirements
- Python 3.8+
- Cursor IDE
- Node.js (for hook execution)
Development
pip install -e ".[dev]"
pytest
License
MIT License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cursor_prompts-1.0.0.tar.gz.
File metadata
- Download URL: cursor_prompts-1.0.0.tar.gz
- Upload date:
- Size: 30.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1bd51f1bedb2dad2eddfaa863342d49227995012217ce76b44f49b0d16a4ad1b
|
|
| MD5 |
e5131d5112180ca4e58346f18530e02f
|
|
| BLAKE2b-256 |
d0f812c33b9af673acc7b974c5a2746d066bf5a86a861283f0979fe1553926da
|
File details
Details for the file cursor_prompts-1.0.0-py3-none-any.whl.
File metadata
- Download URL: cursor_prompts-1.0.0-py3-none-any.whl
- Upload date:
- Size: 31.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f08662e76fceb1b2dd788656f380adba76c5ef4cf0672d36f27fc5f44e722aa8
|
|
| MD5 |
43a1a65aad6addafba3d814da49784cb
|
|
| BLAKE2b-256 |
c1c846c52d557e3f7a46c79afe1cb92307f6030ea2093b8429944ab9a1f0a287
|