Skip to main content

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

  1. Configure hooks:

    cursor-prompts setup
    

    This creates hooks in ~/.cursor/ and initializes storage in ~/.prompt-analyzer/.

  2. Use Cursor normally - prompts are captured automatically.

  3. 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 statistics
  • cursor-prompts examples [--type rejected|repeated|all] [--limit N] - Show examples
  • cursor-prompts recommend [--since 30d] [--project PATH] [--no-open] - Generate Cursor rules and commands recommendations from recent prompts
  • cursor-prompts storage - Show storage info
  • cursor-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 .cursorrules files 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.json and ~/.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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cursor_prompts-1.0.0.tar.gz (30.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cursor_prompts-1.0.0-py3-none-any.whl (31.0 kB view details)

Uploaded Python 3

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

Hashes for cursor_prompts-1.0.0.tar.gz
Algorithm Hash digest
SHA256 1bd51f1bedb2dad2eddfaa863342d49227995012217ce76b44f49b0d16a4ad1b
MD5 e5131d5112180ca4e58346f18530e02f
BLAKE2b-256 d0f812c33b9af673acc7b974c5a2746d066bf5a86a861283f0979fe1553926da

See more details on using hashes here.

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

Hashes for cursor_prompts-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f08662e76fceb1b2dd788656f380adba76c5ef4cf0672d36f27fc5f44e722aa8
MD5 43a1a65aad6addafba3d814da49784cb
BLAKE2b-256 c1c846c52d557e3f7a46c79afe1cb92307f6030ea2093b8429944ab9a1f0a287

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page