agentleFS
pr-pmpr-pm/prpm/.cursor/rules/format-conversion.mdc

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

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
  1. Distinctive:

    Limitations: No structured tools/persona definitions

    line 21
  2. Distinctive:

    Always warn users about:

    line 56
  3. Very specific:

    No invalid fields: version, author, mcpServers

    line 67
  4. Distinctive:

    Keep content simple and readable

    line 75
  5. Distinctive:

    Always test: Canonical → Format → Canonical

    line 78
  6. Distinctive:

    Test Round-Trips: Ensure canonical format is stable

    line 87

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
format-conversion.mdc
---
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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.