Skip to content

PRP (Product Requirement Prompt) Framework adapted for Cursor - Agentic Engineering Development. Enables AI agents to ship production-ready code on the first pass through comprehensive context and validation loops.

Notifications You must be signed in to change notification settings

CuulCat/PRPs-cursor-development

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PRPs for Cursor - Agentic Engineering Development

A Cursor-compatible adaptation of the PRP (Product Requirement Prompt) Framework for agentic engineering development.

What is PRP?

PRP = PRD + curated codebase intelligence + agent/runbook

The PRP framework enables AI agents to ship production-ready code on the first pass by providing:

  • Comprehensive context with documentation, examples, and gotchas
  • Validation loops with executable tests and quality gates
  • Template-based methodology for consistent implementation
  • Progressive enhancement from simple to complex features

Quick Start

Installation

# Clone the repository
git clone https://github.com/CuulCat/PRPs-cursor-development.git
cd PRPs-cursor-development

# Install dependencies (if using Python helpers)
pip install -e .
# or with uv
uv sync

Using with Cursor

  1. Open the project in Cursor

    • The .cursorrules file automatically provides framework context
    • Cursor will understand PRP methodology and patterns
  2. Create a PRP

    # Using the script
    python scripts/prp_runner.py create my-feature --type base --interactive
    
    # Or ask Cursor directly
    # "Use the prp_base.md template to create a PRP for user authentication"
  3. Execute the PRP

    # Script-based execution
    python scripts/prp_runner.py execute PRPs/my-feature.md --validate
    
    # Or with Cursor
    # "Execute this PRP following the implementation blueprint"

Core Features

🎯 Template-Based Development

  • Base Template (prp_base.md): General Python/FastAPI development
  • TypeScript Template (prp_base_typescript.md): React/TypeScript components
  • Planning Template (prp_planning.md): Architecture and system design

🔄 4-Level Validation System

  1. Syntax & Style: Linting, formatting, type checking
  2. Unit Tests: Comprehensive test coverage (80%+)
  3. Integration Tests: End-to-end functionality
  4. System Integration: Production readiness

🚀 Cursor Integration

  • Automatic Context: .cursorrules provides framework awareness
  • One-Pass Implementation: Comprehensive context enables first-pass success
  • Progressive Enhancement: Start simple, add complexity iteratively

🛠️ Execution Tools

  • PRP Runner: Create, execute, and validate PRPs
  • Parallel Development: Multiple approaches simultaneously
  • Quality Gates: Automated validation loops

Framework Structure

PRPs-cursor-development/
├── .cursorrules              # Primary Cursor context
├── CURSOR.md                 # Comprehensive usage guide
├── PRPs/
│   ├── templates/            # PRP templates
│   │   ├── prp_base.md
│   │   ├── prp_base_typescript.md
│   │   └── prp_planning.md
│   ├── cursor_docs/          # Framework documentation
│   └── examples/             # Example PRPs
├── scripts/
│   ├── prp_runner.py         # Main execution script
│   ├── validation_runner.py  # Validation automation
│   └── cursor_helpers.py     # Cursor utilities
├── cursor_examples/          # Complete examples
│   └── CURSOR-PYTHON.md      # Python development example
└── pyproject.toml            # Dependency management

Examples

Python FastAPI Development

See cursor_examples/CURSOR-PYTHON.md for a complete example of implementing JWT authentication with:

  • User registration and login
  • Token management
  • Comprehensive testing
  • Security best practices

TypeScript React Development

Use the prp_base_typescript.md template for:

  • React component development
  • TypeScript integration
  • State management
  • Testing with React Testing Library

System Architecture

Use the prp_planning.md template for:

  • Technology stack evaluation
  • System design
  • Risk assessment
  • Implementation roadmap

Key Benefits

🎯 One-Pass Implementation

  • Comprehensive context reduces iteration cycles
  • Validation loops catch issues early
  • Template structure ensures completeness

📚 Knowledge Capture

  • Document patterns and gotchas
  • Share implementation strategies
  • Build institutional knowledge

🚀 Accelerated Development

  • Template-based approach reduces setup time
  • Automated validation saves debugging time
  • Parallel development explores multiple approaches

🔒 Quality Assurance

  • Multi-level validation ensures quality
  • Security patterns built-in
  • Performance considerations included

Migration from Claude Code

If you're familiar with the original Claude Code PRP framework:

Claude Code Cursor Adaptation Improvement
.claude/commands/ .cursorrules Single file vs. multiple commands
Interactive execution Automatic context Seamless integration
Claude-specific patterns Cursor-optimized Better tool compatibility

Contributing

  1. Follow PRP Structure: Use the mandatory template format
  2. Include Context: Provide comprehensive context and validation
  3. Test with Cursor: Verify examples work in Cursor
  4. Update Documentation: Keep guides current
  5. Share Patterns: Document successful approaches

Documentation

Support

  • Issues: GitHub Issues
  • Documentation: Comprehensive guides in this repository
  • Examples: Working examples with explanations

License

MIT License - see LICENSE for details.


Remember: The goal is one-pass implementation success through comprehensive context and validation. Every PRP should contain the exact context needed for Cursor to successfully implement working code in a single pass.

About

PRP (Product Requirement Prompt) Framework adapted for Cursor - Agentic Engineering Development. Enables AI agents to ship production-ready code on the first pass through comprehensive context and validation loops.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published