awesome-cursor-rules-mdc is a generator that creates Cursor MDC rule files from structured library information, using semantic search and language models to gather and organize guidance. Developers use it to produce reusable rules for libraries in Cursor, and the catalogue includes 200 of those rules.
Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add rules/sanjeed5/awesome-cursor-rules-mdc/richgit clone --depth 1 https://github.com/sanjeed5/awesome-cursor-rules-mdcWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/rules/sanjeed5/awesome-cursor-rules-mdc/rich)<a href="https://agentmods.dev/rules/sanjeed5/awesome-cursor-rules-mdc/rich"><img src="https://agentmods.dev/badge/rules/sanjeed5/awesome-cursor-rules-mdc/rich.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.01749 | $0.01749 |
| Opus 5 | $0.00874 | $0.00874 |
| Sonnet 5 | $0.00350 | $0.00350 |
| Haiku 4.5 | $0.00175 | $0.00175 |
Grade A, and why
rich scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 225 lines — stays where its author put it; the contents beside it link to each section on GitHub.
rich Best Practices
rich transforms plain terminal output into engaging, readable interfaces. These rules ensure your rich applications are performant, testable, and follow modern Python best practices.
1. Code Organization: Centralize Console Management
Instantiate Console once per application run. Avoid creating new Console objects in every function or module, as this leads to inconsistent styling, performance overhead, and potential issues with interactive elements. Pass the Console instance explicitly or use a global singleton pattern for CLI applications.
❌ BAD: Repeated Console instantiation
# module_a.py
from rich.console import Console
def do_something():
console = Console() # New console every time
console.print("Doing something...")
# module_b.py
from rich.console import Console
def do_another_thing():
console = Console() # Another new console
console.print("Doing another thing...")
✅ GOOD: Single Console instance
# main.py
from rich.console import Console
from .module_a import do_something
from .module_b import do_another_thing
console = Console() # Instantiate once at the top-level
def main():
console.print("[bold green]Starting application...[/bold green]")
do_something(console)
do_another_thing(console)
console.print("[bold green]Application finished.[/bold green]")
if __name__ == "__main__":
main()
# module_a.py
from rich.console import Console
def do_something(console: Console): # Pass console explicitly
console.print("Doing something...")
# module_b.py
from rich.console import Console
def do_another_thing(console: Console): # Pass console explicitly
console.print("Doing another thing...")
2. Output: Always Use console.print()
For any output intended to be styled or managed by rich, use console.print(). Mixing print() with console.print() can lead to unpredictable output order and styling issues, especially with interactive elements like progress bars or live displays.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- yesterday First seen · 225 lines · 1,749 tokens per session scan A d1dc0294a5de
rich is a cursor rule published in the GitHub repository sanjeed5/awesome-cursor-rules-mdc (3,571 stars, last pushed 3mo ago), licensed CC0-1.0. It adds 1,749 tokens to every session, about $0.0087 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
Other cursor rules, from other repositories
python_tests
We use the unit tests to cover internal behavior that can work without the web / backend counterpart. We aim for 95%+ unit test coverage of our Python code in lib/streamlit.
python-llm-ml-workflow-cursorrules-prompt-file
Cursor rules for Python LLM & ML development with workflow integration.
python
Python best practices and patterns for modern software development with Flask and SQLite.
python-containerization-cursorrules-prompt-file
Cursor rules for Python development with containerization integration.
python-django-general
通用的 Python 和 Django 规则,专注于编码风格、错误处理和整个项目的 Django 约定。.
python-general-coding-standards
应用一般 Python 编码标准,包括类型提示、使用 Pydantic 进行输入验证、后台任务、CORS 处理、安全工具、PEP 8 合规性和全面测试。.