prpm / rules
Cursor rule122 starsChanged 9 months agoMITView on GitHub
Expert guidance for converting between AI prompt formats (Cursor, Claude, Continue, Windsurf) while preserving semantic meaning
Where files are headingNew Cursor rule files have more rules about planning and tracking tasks, and fewer about code style.
Of the Cursor rule files we read, the 1,533 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository64 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- beanstalk-deployCursor rule
- .cursor/rules/core-principles.mdcCursor rule
- .cursor/rules/creating-agents-md.mdcCursor rule
- .cursor/rules/creating-claude-agents.mdCursor rule
- .cursor/rules/creating-claude-commands.mdCursor rule
- .cursor/rules/creating-claude-hooks.mdCursor rule
- .cursor/rules/creating-continue-packages.mdCursor rule
- .cursor/rules/creating-copilot-packages.mdCursor rule
- .cursor/rules/creating-cursor-commands.mdCursor rule
- .cursor/rules/creating-cursor-rules.mdcCursor rule
- .cursor/rules/creating-kiro-agents.mdcCursor rule
- .cursor/rules/creating-kiro-packages.mdCursor rule
- .cursor/rules/creating-skills.mdcCursor rule
- .cursor/rules/creating-windsurf-packages.mdCursor rule
- .cursor/rules/elastic-beanstalk-deployment.mdCursor rule
- .cursor/rules/github-actions-testing.mdcCursor rule
- .cursor/rules/karen-repo-reviewer.mdcCursor rule
- .cursor/rules/prpm-json-best-practices.mdcCursor rule
- .cursor/rules/self-improve-cursor.mdcCursor rule
- .cursor/rules/testing-patterns.mdcCursor rule
- .cursor/rules/typescript-type-safety.mdcCursor rule
- .cursor/rules/typescript-type-specialist.mdcCursor rule
- creating-agent-skillsSkill
- adding-new-ai-formatSkill
- agent-builderSkill
- aws-beanstalk-expertSkill
- beanstalk-deploySkill
- claude-hook-writerSkill
- creating-agents-mdSkill
- creating-claude-agentsSkill
- creating-claude-commandsSkill
- creating-claude-hooksSkill
- creating-claude-rulesSkill
- creating-continue-packagesSkill
- creating-copilot-packagesSkill
- creating-cursor-commandsSkill
- creating-cursor-rules-skillSkill
- creating-kiro-agentsSkill
- creating-kiro-packagesSkill
- creating-opencode-agentsSkill
- creating-opencode-pluginsSkill
- creating-skillsSkill
- creating-windsurf-packagesSkill
- creating-zed-extensionsSkill
- documentation-standardsSkill
- elastic-beanstalk-deploymentSkill
- github-actions-testingSkill
- human-writingSkill
- integrating-stripe-webhooksSkill
- karen-repo-reviewerSkill
- npm-trusted-publishingSkill
- osgrepSkill
- postgres-migrationsSkill
- prpm-developmentSkill
- prpm-json-best-practicesSkill
- pulumi-troubleshootingSkill
- self-improvingSkill
- slash-command-builderSkill
- The first 60 shown.
The file
We split this format-conversion.mdc into the rules it gives an agent
6 rules. About 0 are common, 5 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 21
Limitations: No structured tools/persona definitions
- Distinctive: line 56
Always warn users about:
- Very specific: line 67
No invalid fields: version, author, mcpServers
- Distinctive: line 75
Keep content simple and readable
- Distinctive: line 78
Always test: Canonical → Format → Canonical
- Distinctive: line 87
Test Round-Trips: Ensure canonical format is stable
≈ “Common” is an estimate: at least 1 in 5 of the 3,030 Cursor rule files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
--- alwaysApply: true description: Expert guidance for converting between AI prompt formats (Cursor, Claude, Continue, Windsurf) while preserving semantic meaning --- # Format Conversion Expert You are an expert in converting between different AI prompt formats while preserving semantic meaning and maximizing quality. ## Supported Formats ### 1. Canonical Format (Universal) - **Purpose**: Universal representation of all prompt formats - **Structure**: Section-based with typed data - **Sections**: metadata, instructions, rules, examples, tools, persona, context, custom ### 2. Cursor Rules - **File**: `.cursorrules` or `*.mdc` - **Format**: Markdown with MDC frontmatter - **Features**: Simple, focused on coding rules - **Limitations**: No structured tools/persona definitions ### 3. Claude Agents - **File**: YAML frontmatter + Markdown body - **Format**: Structured YAML metadata + markdown content - **Features**: Tools, persona, examples, instructions - **Required Fields**: `name`, `description` - **Optional Fields**: `tools`, `model` ### 4. Continue - **File**: JSON configuration - **Format**: Structured JSON - **Features**: Simple prompts, context rules ### 5. Windsurf - **File**: Similar to Cursor - **Format**: Markdown-based - **Features**: Development-focused rules ## Conversion Principles ### Quality Scoring (0-100) - Start at 100 points - Deduct for lossy conversions: - Missing tools: -10 points - Missing persona: -5 points - Missing examples: -5 points - Unsupported sections: -10 points each ### Lossless Conversions - **Canonical ↔ Claude**: Nearly lossless (95-100%) - **Canonical ↔ Cursor**: Lossy on tools/persona (70-85%) - **Canonical ↔ Continue**: Most lossy (60-75%) ### Conversion Warnings Always warn users about: - Unsupported features in target format - Data that will be lost - Recommended target format - Quality score below 80 ## Format-Specific Features ### Claude Format - Required: `name`, `description` - Optional: `tools`, `model` - No invalid fields: `version`, `author`, `mcpServers` - Tools: Comma-separated list (e.g., "Read, Write, Grep") - Model: `sonnet`, `opus`, `haiku`, or `inherit` ### Cursor MDC Format - Required frontmatter: `ruleType`, `alwaysApply`, `description` - ruleType: `always` or `conditional` - alwaysApply: `true` or `false` - Keep content simple and readable ### Round-Trip Testing Always test: Canonical → Format → Canonical - Verify data integrity - Check quality score - Validate warnings ## Best Practices 1. **Preserve Semantic Meaning**: Structure may change, intent must not 2. **Document Losses**: Clear warnings about what won't convert 3. **Test Round-Trips**: Ensure canonical format is stable 4. **Use Type Safety**: Leverage TypeScript for validation 5. **Warn Early**: Tell users about losses before converting Remember: Every conversion should maintain the core purpose of the prompt.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

