程序员努力
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市场
a

awesome-cursor-rules-mdc

awesome-cursor-rules-mdc高频

by sanjeed5

综合评分详见右侧面板

Curated list of awesome Cursor Rules .mdc files

代码生成

安装此 Skill

一键安装(GitHub 托管)
git clone https://github.com/sanjeed5/awesome-cursor-rules-mdc ~/.claude/skills/awesome-cursor-rules-mdc

简介

awesome-cursor-rules-mdc 是一个社区驱动的项目,用于从结构化 JSON 数据自动生成 Cursor 编辑器的 MDC(Markdown Cursor)规则文件。它利用 Exa 进行语义搜索以获取最佳实践,并借助 Gemini、OpenAI 或 Anthropic 等 LLM 生成详细内容,支持并行处理、断点续跑和智能重试。该项目可帮助开发者快速为各类库创

SKILL.md 预览

MDC Rules Generator

Disclaimer: This project is not officially associated with or endorsed by Cursor. It is a community-driven initiative to enhance the Cursor experience.

This project generates Cursor MDC (Markdown Cursor) rule files from a structured JSON file containing library information. It uses Exa for semantic search and LLM (Gemini) for content generation.

Star History Chart

Features

  • Generates comprehensive MDC rule files for libraries
  • Uses Exa for semantic web search to gather best practices
  • Leverages LLM to create detailed, structured content
  • Supports parallel processing for efficiency
  • Tracks progress to allow resuming interrupted runs
  • Smart retry system that focuses on failed libraries by default

Prerequisites

  • Python 3.8+
  • uv for dependency management
  • API keys for:
    • Exa (for semantic search)
    • LLM provider (Gemini, OpenAI, or Anthropic)

Installation

  1. Clone this repository:

    git clone https://github.com/sanjeed5/awesome-cursor-rules-mdc.git
    cd awesome-cursor-rules-mdc
    
  2. Install dependencies using uv:

    uv sync
    
  3. Set up environment variables: Create a .env file in the project root with your API keys (see .env.example):

    EXA_API_KEY=your_exa_api_key
    GEMINI_API_KEY=your_google_gemini_api_key  # For Gemini
    # Or use one of these depending on your LLM choice:
    # OPENAI_API_KEY=your_openai_api_key
    # ANTHROPIC_API_KEY=your_anthropic_api_key
    

Usage

Run the generator script with:

uv run src/generate_mdc_files.py

By default, the script will only process libraries that failed in previous runs.

Command-line Options

  • --test: Run in test mode (process only one library)
  • --tag TAG: Process only libraries with a specific tag
  • --library LIBRARY: Process only a specific library
  • --output OUTPUT_DIR: Specify output directory for MDC files
  • --verbose: Enable verbose logging
  • --workers N: Set number of parallel workers
  • --rate-limit N: Set API rate limit calls per minute
  • --regenerate-all: Process all libraries, including previously completed ones

Examples

# Process failed libraries (default behavior)
uv run src/generate_mdc_files.py

# Regenerate all libraries
uv run src/generate_mdc_files.py --regenerate-all

# Process only Python libraries
uv run src/generate_mdc_files.py --tag python

# Process a specific library
uv run src/generate_mdc_files.py --library react

Adding New Rules

Adding support for new libraries is simple:

  1. Edit the rules.json file:

    • Add a new entry to the libraries array:
    {
      "name": "your-library-name",
      "tags": ["relevant-tag1", "relevant-tag2"]
    }
    
  2. Generate the MDC files:

    • Run the generator script:
    uv run src/generate_mdc_files.py
    
    • The script automatically detects and processes new libraries
  3. Contribute back:

    • Test your new rules with real projects
    • Consider raising a PR to contribute your additions back to the community

Configuration

The script uses a config.yaml file for configuration. You can modify this file to adjust:

  • API rate limits
  • Output directories
  • LLM model selection
  • Processing parameters

Project Structure

.
├── src/                  # Main source code directory
│   ├── generate_mdc_files.py  # Main generator script
│   ├── config.yaml       # Configuration file
│   ├── mdc-instructions.txt   # Instructions for MDC generation
│   ├── logs/             # Log files directory
│   └── exa_results/      # Directory for Exa search results
├── rules-mdc/            # Output directory for generated MDC files
├── rules.json            # Input file with library information
├── pyproject.toml        # Project dependencies and metadata
├── .env.example          # Example environment variables
└── LICENSE               # MIT License

License

MIT License

统计信息

高频

使用频率(自动计算)

448

Fork

Python

语言

CC0-1.0

开源协议

2026/5/19

更新

综合评分

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

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

标签

CursorMDC规则代码生成AI辅助开发LLM语义搜索

链接

GitHub

相关Skills

l

llm-cursor-rules

llm-cursor-rules

My go-to rules for using Cursor and LLMs in software development.

代码生成中频
a

andrej-karpathy-skills

andrej-karpathy-skills

A single CLAUDE.md file to improve Claude Code behavior, derived from Andrej Karpathy's observations on LLM coding pitfalls.

代码生成中频
f

flutter-ai-rules

flutter-ai-rules

Flutter AI Skills and Rules for Claude, Codex, Cursor, and Other AI-Powered IDEs

代码生成中频
r

rules_template

rules_template

If using CLINE/RooCode/Cursor/Windsurf Setup these rules. Usable for newbies riding AI wave and experienced folks both . Combines: (1) Memory,(2) Reasoning into subtasks (3) Promp…

代码生成中频