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.
git 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/pyramid)<a href="https://agentmods.dev/rules/sanjeed5/awesome-cursor-rules-mdc/pyramid"><img src="https://agentmods.dev/badge/rules/sanjeed5/awesome-cursor-rules-mdc/pyramid.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.1 | $0.02309 | $0.02309 |
| Opus 5 | $0.01154 | $0.01154 |
| Sonnet 5 | $0.00462 | $0.00462 |
| Haiku 4.5 | $0.00231 | $0.00231 |
Grade A, and why
pyramid 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 4d ago.
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 — 299 lines — stays where its author put it; the contents beside it link to each section on GitHub.
pyramid Best Practices
Pyramid is a flexible, "pay-only-what-you-use" Python web framework. To build robust and scalable Pyramid applications, adhere to these modern best practices.
1. Code Organization and Structure
Organize your application for clarity, testability, and scalability. Avoid monolithic __init__.py files.
1.1. Enforce Code Style with black and flake8
Always format your code automatically and lint it. Integrate black and flake8 with pre-commit hooks.
❌ BAD - Inconsistent Formatting & Linting
# Inconsistent spacing, line length, and missing imports
from pyramid.view import view_config
import os
def my_view(request):
data = request.json_body
if data and 'name' in data:
return {'status': 'ok', 'message': f"Hello, {data['name']}!"}
return {'status': 'error', 'message': 'Name is required.'}
✅ GOOD - Automated Formatting & Linting
# Ensure your pre-commit setup handles this automatically
# Example .pre-commit-config.yaml:
# - repo: https://github.com/psf/black
# rev: 23.1.0
# hooks: [- id: black]
# - repo: https://github.com/PyCQA/flake8
# rev: 6.0.0
# hooks: [- id: flake8]
from pyramid.view import view_config
from pyramid.response import Response
from typing import Dict, Any
@view_config(route_name="hello", renderer="json")
def my_view(request) -> Dict[str, str]:
"""Handles a greeting request."""
data: Dict[str, Any] = request.json_body
if data and "name" in data:
return {"status": "ok", "message": f"Hello, {data['name']}!"}
return Response(json_body={"status": "error", "message": "Name is required."}, status=400)
1.2. Modularize Configuration
Separate your application's configuration (routes, views, security) into distinct modules. Use config.include() to compose your application.
❌ BAD - Monolithic __init__.py
# myapp/__init__.py
from pyramid.config import Configurator
from pyramid.view import view_config
def main(global_config, **settings):
with Configurator(settings=settings) as config:
config.add_route('home', '/')
config.add_route('users', '/users')
config.add_route('user_detail', '/users/{id}')
@view_config(route_name='home', renderer='json')
def home_view(request):
return {'project': 'myapp'}
# ... hundreds of lines of routes and views ...
return config.make_wsgi_app()
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.
- 4d ago First seen · 299 lines · 2,309 tokens per session scan A 20dfafc3f17e
pyramid 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 2,309 tokens to every session, about $0.0115 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.
py-fast-api
Cursor rules for Python FastAPI backend development and best practices.
python
Python best practices and patterns for modern software development with Flask and SQLite.
python--typescript-guide-cursorrules-prompt-file
Cursor rules for Python development with TypeScript guide integration.
django-python
Rules for writing Python services at PostHog (Python servers powered by the Django framework).
10-backend-python
Backend Python development rules for FastAPI, SQLAlchemy 2.x, async patterns, and Alembic migrations.