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/cheerio)<a href="https://agentmods.dev/rules/sanjeed5/awesome-cursor-rules-mdc/cheerio"><img src="https://agentmods.dev/badge/rules/sanjeed5/awesome-cursor-rules-mdc/cheerio/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/rules/sanjeed5/awesome-cursor-rules-mdc/cheerio"><img src="https://agentmods.dev/badge/rules/sanjeed5/awesome-cursor-rules-mdc/cheerio.svg" alt="Reviewed on agentmods" width="80" 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.01487 | $0.01487 |
| Opus 5.5 | $0.00595 | $0.00595 |
| Sonnet 5.5 | $0.00297 | $0.00297 |
| Haiku 4.5 | $0.00149 | $0.00149 |
Grade A, and why
cheerio scanned grade A with 1 finding 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 3mo 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.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
const { data: html } = await axios.get(url, { How it starts
The opening of the file, as written. The whole thing — 173 lines — stays where its author put it; the contents beside it link to each section on GitHub.
cheerio Best Practices
cheerio is your lightweight, server-side jQuery for Node.js, ideal for fast HTML parsing and manipulation. Follow these rules to build efficient, maintainable, and robust scraping solutions.
1. Code Organization & Structure
Always modularize your scraping logic. Separate HTTP requests, HTML parsing, and data persistence. Use async/await for all asynchronous operations.
✅ GOOD: Modular & Asynchronous Structure
// index.js
import * as cheerio from 'cheerio';
import axios from 'axios';
import { writeFile } from 'fs/promises';
async function fetchAndParse(url) {
try {
const { data: html } = await axios.get(url, {
headers: { 'User-Agent': 'YourScraper/1.0' }
});
const $ = cheerio.load(html);
const products = [];
$('.product-item').each((i, el) => {
const $el = $(el);
const name = $el.find('.product-name').text().trim();
const price = $el.find('.product-price').text().trim();
const imageUrl = $el.find('img').attr('src');
// Always check for existence before pushing
if (name) {
products.push({ name, price, imageUrl });
}
});
return products;
} catch (error) {
console.error(`Error scraping ${url}:`, error.message);
throw error;
}
}
async function main() {
const targetUrl = 'https://www.example.com/products';
const scrapedData = await fetchAndParse(targetUrl);
await writeFile('products.json', JSON.stringify(scrapedData, null, 2), 'utf8');
console.log('Scraping complete. Data saved to products.json');
}
main();
2. Common Patterns & Anti-patterns
2.1. Selector Efficiency
Keep selectors specific and scoped. Avoid broad selectors that force cheerio to traverse large portions of the DOM. Chain .find() for nested elements.
// ❌ BAD: Overly broad, inefficient
const allLinks = $('a').map((i, el) => $(el).attr('href')).get();
// ✅ GOOD: Scoped to relevant section
const productLinks = $('#product-grid a.product-link').map((i, el) => $(el).attr('href')).get();
// ✅ GOOD: Chain .find() for precision
const productName = $('.product-card').first().find('h2.title').text().trim();
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.
- 3mo ago First seen · 173 lines · 0 tokens per session scan A 9395712033a5
cheerio is a cursor rule published in the GitHub repository sanjeed5/awesome-cursor-rules-mdc (3,588 stars, last pushed 8d ago), licensed CC0-1.0. It adds 1,487 tokens to every session, about $0.0059 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
cheerio compared with cursor rules from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| cheeriosanjeed5/awesome-cursor-rules-mdc | Cursor rule | 3.6k | 8d ago | CC0-1.0 | A | 1,487 | Cursor |
| webrtcAcKeskin/contexture | Cursor rule | 2 | yesterday | MIT | A | 1,211 | Cursor |
| chrome-extension-manifest-rulesWebDevPeterGriffin/The-VibeCode-Bible | Cursor rule | 42 | 27d ago | none | A | 0 | Cursor |
| vasu-playwright-utilsvasu31dev/playwright-ts-lib | Cursor rule | 25 | 8mo ago | MIT | A | 14 | Cursor |
| vla-registrypdufour/browser-use-wasm | Cursor rule | 15 | 5mo ago | none | A | 468 | Cursor |
| safarischmitzjimmy1-star/macos-automator-vision-mcp | Cursor rule | 0 | 29d ago | MIT | A | 0 | Cursor |
| scrapySolihatun1/AI-Cursor-Scraping-Assistant | Cursor rule | 7 | 9mo ago | MIT | A | 955 | Cursor |