Skip to content
Prompt

prpm — Cursor Rules

by pr-pm

AI Summary

PRPM Testing Patterns provides Cursor-specific guidance on testing strategies and best practices for the Prompt Package Manager codebase using Vitest, including a test pyramid structure and concrete code examples for developers building or maintaining PRPM.

Install

Copy this and paste it into Claude Code, Cursor, or any AI assistant:

I want to add the "prpm — Cursor Rules" prompt rules to my project.
Repository: https://github.com/pr-pm/prpm

Please read the repo to find the rules/prompt file, then:
1. Download it to the correct location (.cursorrules, .windsurfrules, .github/prompts/, or project root — based on the file type)
2. If there's an existing rules file, merge the new rules in rather than overwriting
3. Confirm what was added

Description

Testing patterns and best practices for PRPM codebase with Vitest

PRPM Testing Patterns

Expert guidance for testing the Prompt Package Manager codebase.

Test Pyramid

• 70% Unit Tests: Format converters, parsers, utilities • 20% Integration Tests: API routes, database operations, CLI commands • 10% E2E Tests: Full workflows (install, publish, search)

Coverage Goals

• Format Converters: 100% coverage (critical path) • CLI Commands: 90% coverage • API Routes: 85% coverage • Utilities: 90% coverage

Format Converter Tests

`typescript describe('toCursor', () => { it('preserves all data in roundtrip', () => { const result = toCursor(canonical); const back = fromCursor(result.content); expect(back).toEqual(canonical); }); it('flags lossy conversions', () => { const result = toCursor(canonicalWithClaudeSpecific); expect(result.lossyConversion).toBe(true); expect(result.qualityScore).toBeLessThan(100); }); }); `

Discussion

0/2000
Loading comments...

Health Signals

MaintenanceCommitted 21d ago
Active
AdoptionUnder 100 stars
96 ★ · Niche
DocsMissing or thin
Undocumented

GitHub Signals

Stars96
Forks11
Issues8
Updated21d ago
View on GitHub
MIT License

My Fox Den

Community Rating

Sign in to rate this booster

Works With

Any AI assistant that accepts custom rules or system prompts

Claude
ChatGPT
Cursor
Windsurf
Copilot
+ more
prpm — Cursor Rules — Prompt | ImAiFox | ImAiFox