@vooster/c2c
v1.0.3
Published
Convert Cursor IDE rules to Claude AI markdown format
Downloads
25
Readme
@vooster/c2c - Cursor to Claude Converter
Convert Cursor IDE rules (.mdc files) to Claude AI markdown format with intelligent metadata parsing and categorization.
Installation
npx @vooster/c2cUsage
Run the command in any directory containing .cursor folders:
npx @vooster/c2cThe tool will:
- Recursively find all
.cursordirectories - Locate all
*.mdcfiles within them (including nested subdirectories) - Parse metadata (alwaysApply, description, globs) from files
- Convert them to markdown files in a
c2c-rulesdirectory (with metadata stripped) - Generate an advanced
_root.mdindex file with categorized references:- Rules that always apply
- Rules that apply based on description matching
- Rules that apply based on glob pattern matching
Example
Given this structure with metadata:
project/
├── frontend/
│ └── .cursor/
│ ├── rules.mdc (with alwaysApply: true)
│ └── components/
│ └── ui-rules.mdc (with globs: "**/*.vue")
└── backend/
└── .cursor/
└── api/
└── guidelines.mdc (with description: "API guidelines")Running npx @vooster/c2c will create:
c2c-rules/
├── _root.md
├── frontend/
│ ├── rules.md
│ └── components/
│ └── ui-rules.md
└── backend/
└── api/
└── guidelines.mdThe _root.md will contain:
# Cursor Rules Collection
always apply below rules
- rules: @frontend/rules.md
apply below rules if requirement matches
- guidelines
- description: API guidelines
- path: @backend/api/guidelines.md
apply below rules if glob pattern matches with related files:
- ui-rules
- glob: **/*.vue
- path: @frontend/components/ui-rules.mdDevelopment
# Install dependencies
pnpm install
# Run tests
pnpm test
# Build
pnpm build
# Run in development
pnpm devLicense
MIT
