{"id":25554711,"url":"https://github.com/sanjeed5/awesome-cursor-rules-mdc","last_synced_at":"2026-02-20T21:30:18.487Z","repository":{"id":277998144,"uuid":"934159469","full_name":"sanjeed5/awesome-cursor-rules-mdc","owner":"sanjeed5","description":"Curated list of awesome Cursor Rules .mdc files","archived":false,"fork":false,"pushed_at":"2025-02-17T12:50:27.000Z","size":330,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-17T13:27:19.222Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sanjeed5.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-17T11:23:04.000Z","updated_at":"2025-02-17T12:49:12.000Z","dependencies_parsed_at":"2025-02-17T13:27:26.110Z","dependency_job_id":"52a97590-33f0-48e7-8718-7726bcbd1a74","html_url":"https://github.com/sanjeed5/awesome-cursor-rules-mdc","commit_stats":null,"previous_names":["sanjeed5/awesome-cursor-rules-mdc"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanjeed5%2Fawesome-cursor-rules-mdc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanjeed5%2Fawesome-cursor-rules-mdc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanjeed5%2Fawesome-cursor-rules-mdc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanjeed5%2Fawesome-cursor-rules-mdc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sanjeed5","download_url":"https://codeload.github.com/sanjeed5/awesome-cursor-rules-mdc/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239848676,"owners_count":19707210,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-20T13:41:50.203Z","updated_at":"2026-02-20T21:30:18.427Z","avatar_url":"https://github.com/sanjeed5.png","language":"Python","funding_links":[],"categories":["Python","Rules","HarmonyOS","语言资源库","Configuration \u0026 Rules","Cursor Resources","Cursor Rules","Extensions, Skills \u0026 Rules"],"sub_categories":["Windows Manager","awesome-library","Cursor Rules","Meta"],"readme":"# Awesome Cursor Rules .mdc [![Awesome](https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg)](https://github.com/sindresorhus/awesome)\n\nAll thanks to the awesome content on https://github.com/PatrickJS/awesome-cursorrules which was processed using LLMs to create this. Waiting for this to be integrated into the awesome https://cursor.directory/ ([PR raised](https://github.com/PatrickJS/awesome-cursorrules/pull/60))\n\n\n# Cursor Rules MDC Converter\n\nThis script converts Cursor rules from various formats to the `.mdc` format, using LLM to intelligently process and structure the rules.\n\n## Setup\n\n1. Install dependencies using `uv`:\n```bash\nuv venv\nsource .venv/bin/activate  # On Unix/macOS\n.venv\\Scripts\\activate     # On Windows\nuv sync\n```\n\n2. Set up your environment variables:\nCreate a `.env` file with your LLM API key:\n```\nGEMINI_API_KEY=your_api_key_here\n```\n\n## Usage\n\nThe script processes files from the `awesome-cursorrules/rules` directory and:\n1. Creates `.mdc` versions in the same folder as the original files.\n2. Creates a new folder structure in `awesome-cursor-mdc-rules` with the converted files.\n3. Generates a conversion report in `conversion_report.json` after processing.\n\n### Test Mode\n\nBy default, the script runs in test mode, which only processes 2 folders. To process all folders:\n\n1. Open `convert_to_mdc.py`\n2. Find the line `test_mode = True`\n3. Change it to `test_mode = False`\n\n### Running the Script\n\n```bash\nuv run convert_to_mdc.py\n```\n\n### Analyzing Conversion Status\n\nTo analyze the conversion status and generate a report, run the following command:\n\n```bash\nuv run test_conversion.py\n```\n\nThis will compare the source and output folders, providing a summary of the conversion process and saving the report as `conversion_report.json`.\n\n## Features\n\n- Retries on API failures with exponential backoff\n- Processes files in both original location and separate directory\n- Maintains folder structure\n- Detailed logging\n- Test mode for initial validation\n\n## Error Handling\n\nThe script includes comprehensive error handling:\n- Logs errors for individual file processing\n- Continues processing even if some files fail\n- Retries LLM API calls on failure\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsanjeed5%2Fawesome-cursor-rules-mdc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsanjeed5%2Fawesome-cursor-rules-mdc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsanjeed5%2Fawesome-cursor-rules-mdc/lists"}