程序员努力
AI导航AI编程实战PromptMCP市场Skills市场

程序员努力

AI 编程资源库 - 聚合 AI 编程教程、提示词、MCP 与 Skills 资源

内容栏目

  • AI导航
  • AI编程实战
  • Prompt
  • MCP市场
  • Skills市场
  • 全站搜索

教程分类

  • 进阶技巧
  • 入门指南
  • 最佳实践
  • Claude Code
  • Cline教程
  • GitHub Copilot
  • Cursor教程
  • 提示词工程

关于

  • 关于我们
  • GitHub

© 2026 程序员努力. All rights reserved.

冀ICP备15004808号-7

首页教程PromptMCPSkills
← 返回Skills市场
c

cursorrules-to-claudemd

cursorrules-to-claudemd低频

by Vooster-AI

综合评分详见右侧面板

# C2C - Cursor to Claude Code Convert Cursor IDE rules (`.mdc` files) to Claude AI markdown format with intelligent metadata parsing and categorization. ## Demo > **Note**: If the video doesn't pla…

其他

安装此 Skill

一键安装(GitHub 托管)
git clone https://github.com/Vooster-AI/cursorrules-to-claudemd ~/.claude/skills/cursorrules-to-claudemd

SKILL.md 预览

C2C - Cursor to Claude Code

Convert Cursor IDE rules (.mdc files) to Claude AI markdown format with intelligent metadata parsing and categorization.

Demo

Note: If the video doesn't play, download assets/demo.mp4 to view the demonstration.

https://github.com/user-attachments/assets/407cd34e-c4c0-4a1b-981d-817b85decf20

Installation

npx @vooster/c2c

Features

  • 🔍 Automatic Discovery: Recursively finds all .cursor directories in your project
  • 📝 Metadata Parsing: Extracts YAML frontmatter (alwaysApply, description, globs) from .mdc files
  • 🗂️ Smart Categorization: Organizes rules by priority (always apply → description → globs)
  • 📁 Separate Directories: Creates c2c-rules directories next to each .cursor directory
  • 🔗 Auto-linking: Generates _root.md index files with proper relative paths
  • 📄 CLAUDE.md Integration: Automatically updates or creates CLAUDE.md with <c2c-rules> sections

Usage

Run the command in any directory containing .cursor folders:

npx @vooster/c2c

The tool will:

  1. Recursively find all .cursor directories in your project tree
  2. Locate all *.mdc files within them (including nested subdirectories)
  3. Parse YAML metadata from each file's frontmatter
  4. Create c2c-rules directories next to each .cursor directory
  5. Convert files to markdown format (stripping metadata)
  6. Generate _root.md index files with categorized references
  7. Update or create CLAUDE.md files with proper rule references

Result Screenshots

Found Files: Found Files

Generated Content: Generated Content

Example

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>

Metadata Format

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

Development

# 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

Architecture

This tool uses a layered architecture:

  • Presentation Layer: CLI interface using Commander.js
  • Application Layer: Core business logic services
    • FileExplorerService: Finds .cursor directories and .mdc files
    • MetadataParserService: Extracts YAML frontmatter
    • FileConverterService: Converts files and manages output directories
    • AdvancedRootFileGeneratorService: Generates categorized index files
    • ClaudeMdService: Updates CLAUDE.md files
  • Domain Layer: Type definitions for FileInfo and CursorRuleMetadata
  • Infrastructure Layer: File system operations

Testing

The project includes comprehensive testing:

  • Unit Tests: 58 tests covering all services and utilities
  • E2E Tests: 21 tests covering complete workflows and cross-platform compatibility
  • Total: 79 tests with full coverage

See docs/TESTING.md for detailed testing guide.

Cross-Platform Support

The tool is designed to work on all major operating systems:

  • ✅ Windows (handles backslashes and CRLF line endings)
  • ✅ macOS (tested on Darwin)
  • ✅ Linux (standard Unix compatibility)

License

MIT

统计信息

低频

使用频率(自动计算)

5

Fork

TypeScript

语言

2025/7/21

更新

综合评分

1.9
社区认可
1
使用热度
3
文档完整
3
功能丰富
1
维护活跃
1

基于社区认可、使用热度、文档完整度、功能丰富度、维护活跃度自动计算

链接

GitHub

相关Skills

C

CowAgent

CowAgent

Open-source super AI assistant & Agent Harness. Plans tasks, runs tools and skills, self-evolves with memory and knowledge. Multi-model, multi-channel. Lightweight, extensible, on…

其他中频
O

OpenMontage

OpenMontage

World's first open-source, agentic video production system. 12 production pipelines, 100+ tools, 700+ agent skill and production-knowledge files. Turn your AI coding assistant int…

其他中频
a

agent-skills

agent-skills

Production-grade engineering skills for AI coding agents.

其他中频
s

superpowers

superpowers

An agentic skills framework & software development methodology that works.

其他中频