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/Khan/wonder-blocksWrote 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/khan/wonder-blocks/mdc-files)<a href="https://agentmods.dev/rules/khan/wonder-blocks/mdc-files"><img src="https://agentmods.dev/badge/rules/khan/wonder-blocks/mdc-files/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/khan/wonder-blocks/mdc-files"><img src="https://agentmods.dev/badge/rules/khan/wonder-blocks/mdc-files.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.03103 | $0.03103 |
| Opus 5.5 | $0.01241 | $0.01241 |
| Sonnet 5.5 | $0.00621 | $0.00621 |
| Haiku 4.5 | $0.00310 | $0.00310 |
Grade A, and why
mdc-files 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 1mo 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 — 521 lines — stays where its author put it; the contents beside it link to each section on GitHub.
MDC Files Best Practices
This guide covers conventions and best practices for creating and maintaining .mdc cursor rules files that provide context and guidance to AI assistants.
File Structure
Frontmatter Block
⚠️ ALWAYS include YAML frontmatter at the top of every .mdc file:
---
description: Brief description of what this rules file covers
globs: *.ext,*.pattern
alwaysApply: false
---
Frontmatter Properties:
- ✅
description: Short, clear description of the file's purpose (one line) - ✅
globs: Comma-separated list of file patterns that trigger this rule (e.g.,*.test.ts,*.test.tsx) - ✅
alwaysApply: Boolean (trueorfalse) - whether this rule applies to all contexts
✅ DO: Use specific glob patterns
---
description: Jest testing best practices and patterns for unit tests
globs: *.test.ts,*.test.tsx
alwaysApply: false
---
❌ DON'T: Use vague descriptions or missing properties
---
description: Some rules
globs:
alwaysApply: false
---
Document Title
✅ ALWAYS start content with a single H1 heading:
# Document Title
Introduction paragraph explaining the document's purpose and scope.
Best practices:
- ✅ Use a clear, descriptive title
- ✅ Match the title to the
descriptionin frontmatter - ✅ Include a brief introduction after the H1
- ❌ Never use multiple H1 headings in a single document
Markdown Structure
Heading Hierarchy
✅ Use proper heading levels (H1 → H2 → H3 → H4):
# Main Title (H1)
## Major Section (H2)
### Subsection (H3)
#### Sub-subsection (H4)
##### Rarely needed (H5)
Best practices:
- ✅ Use H1 for document title only
- ✅ Use H2 for major sections
- ✅ Use H3 for subsections within major sections
- ✅ Maintain consistent nesting (don't skip levels)
- ❌ Never jump from H2 to H4 without H3
Visual Indicators
✅ Use emoji symbols for emphasis and clarity:
- ✅ Checkmark: Recommended patterns, correct examples
- ❌ Cross mark: Anti-patterns, incorrect examples
- ⚠️ Warning: Critical rules, important notes
- 🥇 Medal: Priority or ranking indicators
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.
- 1mo ago First seen · 521 lines · 3,103 tokens per session scan A f8e57a2247fb
mdc-files is a cursor rule published in the GitHub repository Khan/wonder-blocks (163 stars, last pushed yesterday), licensed MIT. It adds 3,103 tokens to every session, about $0.0124 per session on Opus 5.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-08-30.
Other cursor rules, from other repositories
solid-js
When writing code for Solid.js, follow these rules.
svelte
Cursor rule "svelte" from chakra-ui/ark, covering exporting files and creating stories.
vue
When writing code for Vue.js, follow these rules.
cursorrules
You are using StyleSeed, a design-method engine whose goal is to make expert design judgment repeatable by coding agents, not to replace designers with aesthetic preferences. Preserve approved project choices; report unsupported choices instead of silently restyling the project's design system. PRODUCT-PRINCIPLES.md…
backend
Backend development rules for TT Studio - AI model management backend.
docker-deployment
Docker containerization and deployment rules for TT Studio.