[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"pack-detail-cursor-rules-library-en":3,"seo:pack:cursor-rules-library:en":90},{"code":4,"message":5,"data":6},200,"操作成功",{"pack":7},{"slug":8,"icon":9,"tone":10,"status":11,"status_label":12,"title":13,"description":14,"items":15,"install_cmd":89},"cursor-rules-library","📐","#334155","stable","Stable","Cursor Rules Library","Drop-in `.mdc` rule packs for Cursor — Python, React, Devin-style engineer mode, and an MDC generator that auto-builds rules from your docs.",[16,28,38,46,54,61,68,75,82],{"id":17,"uuid":18,"slug":19,"title":20,"description":21,"author_name":22,"view_count":23,"vote_count":24,"lang_type":25,"type":26,"type_label":27},23,"ca000374-f5d8-4d75-a30c-460fda0b6b0e","awesome-cursor-rules-ai-coding-standards-30-stacks-ca000374","Awesome Cursor Rules — AI Coding Standards for 30+ Stacks","Curated .cursorrules files for 30+ tech stacks. Drop into your project root so Cursor AI follows your coding standards automatically.","TokRepo精选",1791,0,"en","skill","Skill",{"id":29,"uuid":30,"slug":31,"title":32,"description":33,"author_name":34,"view_count":35,"vote_count":24,"lang_type":25,"type":36,"type_label":37},745,"b7e65852-71d5-4114-bf50-162d16348de3","cursor-tips-advanced-ai-coding-workflow-guide-b7e65852","Cursor Tips — Advanced AI Coding Workflow Guide","Comprehensive guide to advanced Cursor workflows. Covers Composer, multi-file edits, .cursorrules, codebase indexing, and prompt engineering for 10x AI coding productivity.","Prompt Lab",383,"prompt","Prompt",{"id":39,"uuid":40,"slug":41,"title":42,"description":43,"author_name":44,"view_count":45,"vote_count":24,"lang_type":25,"type":26,"type_label":27},160,"f18133e8-aad7-4875-9828-acc45a09962f","cursor-rules-python-clean-code-ai-f18133e8","Cursor Rules: Python — Clean Code with AI","Cursor rules for Python development. Enforces PEP 8 style, type hints, docstrings, pytest patterns, and modern Python 3.12+ idioms.","Cursor · Anysphere",337,{"id":47,"uuid":48,"slug":49,"title":50,"description":51,"author_name":52,"view_count":53,"vote_count":24,"lang_type":25,"type":26,"type_label":27},41,"8ced00e7-b6b4-4ea8-adfb-3ddc0fe82620","cursor-rules-mdc-generator-auto-generate-docs-8ced00e7","Cursor Rules MDC Generator — Auto-Generate from Docs","Auto-generate Cursor .mdc rule files for any library using Exa semantic search and LLM-powered documentation extraction.","AI Open Source",310,{"id":55,"uuid":56,"slug":57,"title":58,"description":59,"author_name":44,"view_count":60,"vote_count":24,"lang_type":25,"type":26,"type_label":27},161,"ac71b14f-5ff6-4eb3-8087-a2b999a4a5f9","cursor-rules-react-typescript-component-hooks-patterns-ac71b14f","Cursor Rules: React + TypeScript — Component & Hooks Patterns","Cursor rules for React with TypeScript. Enforces functional components, hooks patterns, proper typing, and testing conventions.",299,{"id":62,"uuid":63,"slug":64,"title":65,"description":66,"author_name":52,"view_count":67,"vote_count":24,"lang_type":25,"type":26,"type_label":27},482,"92824589-6223-492b-bd37-5aec9fa93e74","devin-cursorrules-turn-cursor-into-ai-engineer-92824589","Devin Cursorrules — Turn Cursor into an AI Engineer","A .cursorrules configuration that gives Cursor\u002FWindsurf Devin-like capabilities: automated planning, self-correction, web browsing, and multi-agent collaboration. 6,000+ GitHub stars.",315,{"id":69,"uuid":70,"slug":71,"title":72,"description":73,"author_name":52,"view_count":74,"vote_count":24,"lang_type":25,"type":26,"type_label":27},501,"f38ab5c1-c3f6-4d0c-b055-37dbfb654e31","awesome-cursor-rules-mdc-auto-generated-mdc-files-f38ab5c1","Awesome Cursor Rules MDC — Auto-Generated .mdc Files","Collection of auto-generated Cursor .mdc rule files for 800+ libraries using Exa search and LLM. Drop into .cursor\u002Frules\u002F for AI-aware coding standards. CC0, 3,400+ stars.",286,{"id":76,"uuid":77,"slug":78,"title":79,"description":80,"author_name":34,"view_count":81,"vote_count":24,"lang_type":25,"type":36,"type_label":37},496,"1a138ad3-17fa-47ad-a5ff-48a6ca8e090c","cursor-ai-tips-reddit-wisdom-best-practices-1a138ad3","Cursor AI Tips — Reddit Wisdom & Best Practices","Comprehensive Cursor AI guide with keyboard shortcuts, Composer mode tips, .cursorrules examples, Max Mode pricing strategies, model benchmarks, and safety protocols. Curated from Reddit community.",322,{"id":83,"uuid":84,"slug":85,"title":86,"description":87,"author_name":34,"view_count":88,"vote_count":24,"lang_type":25,"type":36,"type_label":37},834,"6efaef05-fc58-432d-9bd9-f0530bded8e1","cursor-tab-ai-autocomplete-predicts-your-next-edit-6efaef05","Cursor Tab — AI Autocomplete That Predicts Your Next Edit","Cursor's predictive code completion that suggests multi-line edits before you type. Cursor Tab uses context from your codebase and recent changes to predict the next logical edit.",326,"tokrepo install pack\u002Fcursor-rules-library",{"pageType":91,"pageKey":8,"locale":25,"title":92,"metaDescription":93,"h1":13,"tldr":94,"bodyMarkdown":95,"faq":96,"schema":112,"internalLinks":121,"citations":134,"wordCount":147,"generatedAt":148},"pack","Cursor Rules Library: Python, React, Devin mode .mdc packs","Drop-in .mdc rule packs for Cursor — Python, React, Devin engineer mode, and an MDC generator that auto-builds rules from your docs. Install via TokRepo.","Nine ready-to-paste `.mdc` rule packs for Cursor — Python, React, the Devin-style engineer operating manual, plus an MDC generator that synthesizes new rules from your project docs. Install in one command.","## What's in this pack\n\nCursor's Project Rules (`.mdc` files in `.cursor\u002Frules\u002F`) are the highest-leverage way to lock in style, architecture, and process expectations for a codebase. The default Cursor setup ships with no rules; teams either write theirs from scratch (slow, drifting) or paste the same boilerplate across every project (no shared maintenance). This pack collects the **nine `.mdc` packs** that cover 80% of what most teams actually want, plus an MDC generator that builds custom rules from your existing docs.\n\n| # | Asset | Type | What it covers |\n|---|---|---|---|\n| 1 | Python rules | language | typing, ruff, pytest, async patterns |\n| 2 | React rules | language | hooks, TypeScript, accessibility, file layout |\n| 3 | Devin engineer mode | meta | the operating manual: plan-first, surgical edits, no-overreach |\n| 4 | MDC generator | tooling | reads your `docs\u002F`, emits a tailored `.mdc` |\n| 5 | Next.js patterns | framework | App Router, server actions, data fetching |\n| 6 | Tailwind \u002F shadcn rules | UI | utility-first conventions, component composition |\n| 7 | API design rules | backend | REST\u002FGraphQL conventions, error envelopes |\n| 8 | Test discipline rules | quality | golden-file, snapshot, mutation testing |\n| 9 | Security review rules | quality | OWASP top-10 patterns to flag in every diff |\n\n## Why this matters\n\nThe Cursor agent without rules is a generalist. With rules, it's an opinionated teammate that already knows your stack, your idioms, and your guardrails. Three concrete wins teams report after installing this pack:\n\n1. **Onboarding goes from days to hours.** A new engineer's `Cmd-K` produces code that already looks like the rest of the codebase, because Cursor is reading the same conventions doc the human reads on day one.\n2. **Review fatigue drops.** Reviewers stop catching the same five style\u002Farchitecture nits on every PR — the rules catch them at generation time. Reviews focus on logic and trade-offs, where humans add the most value.\n3. **AI overreach is bounded.** The Devin engineer-mode rules establish \"plan first, edit minimally, don't refactor unrelated code.\" This single rule prevents the most common Cursor failure: a one-line bug fix that turns into 200 lines of unsolicited \"improvements.\"\n\n## Install in one command\n\n```bash\n# Install the entire pack into the current project\ntokrepo install pack\u002Fcursor-rules-library\n\n# Or pick a single language\u002Fframework\ntokrepo install python-cursor-rules\ntokrepo install react-cursor-rules\ntokrepo install devin-engineer-mode\n```\n\nThe TokRepo CLI writes the `.mdc` files to `.cursor\u002Frules\u002F` in your repo. Cursor picks them up on the next prompt — no restart required. To regenerate rules from your existing docs:\n\n```bash\ntokrepo run mdc-generator --input .\u002Fdocs --output .\u002F.cursor\u002Frules\u002Fproject.mdc\n```\n\n## Common pitfalls\n\n- **One mega-rule that covers everything.** Cursor loads matching rules per request based on glob scoping. A single 2000-line `.mdc` blows your context budget on every prompt. Split by domain: language rules in one file, architecture in another, security in a third.\n- **No glob scoping.** A backend rule that fires on every frontend file wastes tokens and confuses the agent. Use `globs:` in the frontmatter to scope rules to `**\u002F*.py`, `app\u002F**\u002F*.tsx`, etc.\n- **Forgetting Devin engineer-mode for non-Devin tools.** This rule isn't actually Devin-specific — it's a generic \"behave like a senior engineer\" operating manual. It works just as well in Cursor, Claude Code, Codex CLI, and Cline (use the converter from the Skills Ecosystem pack).\n- **Treating rules as static.** When your stack evolves, the rules need to evolve. Version-control the `.cursor\u002Frules\u002F` directory and review changes in PR like any other code. The MDC generator can re-emit rules when your docs change.\n- **Pasting code examples that drift from reality.** A rule that says \"use `fooBar()` for X\" and your code uses `bar_foo()` is worse than no rule. Either keep examples minimal and abstract, or generate them from real code via the MDC generator.\n\n## When this pack alone isn't enough\n\nIf you use *both* Cursor and another AI tool (Claude Code, Codex CLI, etc.), authoring `.mdc` directly locks you into Cursor. The Skills Ecosystem pack lets you author once in the canonical skill format and emit `.mdc` for Cursor *plus* `AGENTS.md` for Codex CLI, subagents for Claude Code, etc. Use this Cursor Rules Library pack if you're Cursor-only; switch to skills if you're multi-tool.\n\nFor pure Cursor power-users: pair this pack with the AI Code Editor Showdown comparison to understand where Cursor wins and loses against Zed, Cody, Continue, Morphic, and OpenCode — useful for advocating Cursor internally or deciding when to switch.",[97,100,103,106,109],{"q":98,"a":99},"Are these .mdc rules free?","Yes — all nine packs are MIT-licensed and live in TokRepo's open registry. The MDC generator is a TokRepo CLI command, also free. The only thing you pay for is your Cursor subscription, which is independent of these rules. No registration needed; `tokrepo install` works without an account for public assets.",{"q":101,"a":102},"How do these compare to writing rules myself?","If you already have project-specific conventions documented somewhere, the MDC generator can produce a tailored `.mdc` from your existing docs in one command — usually better than starting from a blank file. For language and framework defaults (Python, React, Next.js), starting from this pack and editing is faster than writing from scratch. The pack rules are battle-tested on real codebases; your tweaks layer on top.",{"q":104,"a":105},"Will this work with Codex CLI or Claude Code?","Cursor `.mdc` is Cursor-specific by file format. The same *content* can be ported to AGENTS.md (Codex CLI), CLAUDE.md or subagents (Claude Code), `.clinerules` (Cline), etc. Two paths: (1) install this pack for Cursor and rewrite for other tools, or (2) use the Skills Ecosystem pack to author in skill format and auto-emit `.mdc` plus all the others. Path 2 is the right answer for multi-tool teams.",{"q":107,"a":108},"What's the difference vs Skills Ecosystem?","This pack ships ready-to-use Cursor rules — install and they work in Cursor. Skills Ecosystem ships the *meta* tooling: write a portable skill once and the converter emits Cursor `.mdc`, Codex `AGENTS.md`, and 12 other targets. If you're Cursor-only, this pack is faster. If you might add another AI tool later, start with Skills Ecosystem and never have to re-port your conventions.",{"q":110,"a":111},"Operational gotcha: will rules slow Cursor down?","Rules add tokens to every prompt that matches their glob, which adds a few hundred milliseconds and a few cents per session. The fix is glob scoping: don't load a Python rule on TypeScript files. Cursor's rule UI shows which rules fired for a given prompt — use it to spot rules with too-broad globs. A well-scoped 9-rule library typically adds \u003C2% to per-prompt token cost.",{"@context":113,"@type":114,"name":13,"description":115,"numberOfItems":116,"publisher":117},"https:\u002F\u002Fschema.org","CollectionPage","Drop-in .mdc rule packs for Cursor — Python, React, Devin-style engineer mode, and an MDC generator.",9,{"@type":118,"name":119,"url":120},"Organization","TokRepo","https:\u002F\u002Ftokrepo.com",[122,126,130],{"url":123,"anchor":124,"reason":125},"\u002Fen\u002Ftools\u002Fcursor","Cursor","the IDE this pack drops rules into",{"url":127,"anchor":128,"reason":129},"\u002Fen\u002Fpacks\u002Fskills-ecosystem","Skills Ecosystem","skills compile to .mdc — author once, deploy everywhere",{"url":131,"anchor":132,"reason":133},"\u002Fen\u002Fpacks\u002Fai-code-editor-showdown","AI Code Editor Showdown","Cursor compared against Zed, Cody, Continue",[135,139,143],{"claim":136,"source_name":137,"source_url":138},"Cursor .mdc rule file format and Project Rules documentation","Cursor Rules docs","https:\u002F\u002Fdocs.cursor.com\u002Fcontext\u002Frules",{"claim":140,"source_name":141,"source_url":142},"PatrickJS\u002Fawesome-cursorrules curated list of Cursor rule files","awesome-cursorrules","https:\u002F\u002Fgithub.com\u002FPatrickJS\u002Fawesome-cursorrules",{"claim":144,"source_name":145,"source_url":146},"Devin engineer-style operating manual for AI coding assistants","Cognition Devin docs","https:\u002F\u002Fdocs.devin.ai\u002F",761,"2026-05-02T15:40:00Z"]