A community-driven registry for Claude, Cursor, Windsurf, Cline & more. Not affiliated with Anthropic.
Are you the author? Sign in to claim
cursorrules-to-claudemd
Convert Cursor IDE rules (.mdc files) to Claude AI markdown format with intelligent metadata parsing and categorization.
Note: If the video doesn't play, download
assets/demo.mp4to view the demonstration.
https://github.com/user-attachments/assets/407cd34e-c4c0-4a1b-981d-817b85decf20
npx @vooster/c2c
.cursor directories in your project.mdc filesc2c-rules directories next to each .cursor directory_root.md index files with proper relative paths<c2c-rules> sectionsRun the command in any directory containing .cursor folders:
npx @vooster/c2c
The tool will:
.cursor directories in your project tree*.mdc files within them (including nested subdirectories)c2c-rules directories next to each .cursor directory_root.md index files with categorized referencesCLAUDE.md files with proper rule referencesFound Files:

Generated Content:

Given this structure with metadata:
project/
├── .cursor/
│ └── global.mdc (with alwaysApply: true)
├── frontend/
│ └── .cursor/
│ ├── rules.mdc (with description: "React component guidelines")
│ └── components/
│ └── ui-rules.mdc (with globs: "**/*.tsx")
└── backend/
└── .cursor/
└── api/
└── guidelines.mdc (with globs: "**/api/**")
Running npx @vooster/c2c will create:
project/
├── CLAUDE.md (updated with <c2c-rules> section)
├── c2c-rules/
│ ├── _root.md
│ └── global.md
├── frontend/
│ ├── CLAUDE.md (updated with <c2c-rules> section)
│ └── c2c-rules/
│ ├── _root.md
│ ├── rules.md
│ └── components/
│ └── ui-rules.md
└── backend/
├── CLAUDE.md (updated with <c2c-rules> section)
└── c2c-rules/
├── _root.md
└── api/
└── guidelines.md
Each _root.md will contain categorized rules, for example in frontend/c2c-rules/_root.md:
# Rules Collection
read below rules if description matches with your requirement:
- rules
- description: React component guidelines
- path: rules.md
read below rules if glob pattern matches with requirement related files:
- ui-rules
- glob: \*_/_.tsx
- path: components/ui-rules.md
Each CLAUDE.md will be updated with:
<c2c-rules>
- @c2c-rules/_root.md
</c2c-rules>
.mdc files can include YAML frontmatter:
---
alwaysApply: true # Rule always applies (highest priority)
description: string # Rule description for matching (medium priority)
globs: string # Glob pattern for file matching (lowest priority)
---
Your actual rule content goes here...
# Install dependencies
pnpm install
# Build the project
pnpm build
# Run in development mode
pnpm dev
# Run tests
pnpm test
# Run tests in watch mode
pnpm test:watch
# Run tests with coverage
pnpm test:coverage
# Run end-to-end tests
pnpm test:e2e
# Run all tests (unit + e2e)
pnpm test:all
# Publish to npm
pnpm publish:npm
This tool uses a layered architecture:
FileExplorerService: Finds .cursor directories and .mdc filesMetadataParserService: Extracts YAML frontmatterFileConverterService: Converts files and manages output directoriesAdvancedRootFileGeneratorService: Generates categorized index filesClaudeMdService: Updates CLAUDE.md filesFileInfo and CursorRuleMetadataThe project includes comprehensive testing:
See docs/TESTING.md for detailed testing guide.
The tool is designed to work on all major operating systems:
MIT
A practical approach to managing multiple AI agents in Cursor through strict file-tree partitioning and domain boundarie
📄 Configuration files that enhance Cursor AI editor experience with custom rules and behaviors
神奇海螺 cursorrules 阿拉丁神燈想要甚麼許願就有