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/khan/wonder-blocks/mdc-filesgit clone --depth 1 https://github.com/Khan/wonder-blocksWhat 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.00000 | $0.03103 |
| Opus 5 | $0.00000 | $0.01551 |
| Sonnet 5 | $0.00000 | $0.00621 |
| Haiku 4.5 | $0.00000 | $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 3d 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.
- 3d 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 5d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 3,103 tokens. 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
watch-radial-instruments
Source: docs/agents/watch-radial-instruments.md Regenerate: npm run agents:sync -w packages/openbridge-webcomponents -->.
external-scale
Source: docs/agents/external-scale.md Regenerate: npm run agents:sync -w packages/openbridge-webcomponents -->.
a11y
Source: docs/agents/a11y.md Regenerate: npm run agents:sync -w packages/openbridge-webcomponents -->.
ar
Source: docs/agents/ar.md Regenerate: npm run agents:sync -w packages/openbridge-webcomponents -->.
pages
Source: docs/agents/pages.md Regenerate: npm run agents:sync -w packages/openbridge-webcomponents -->.
backend
Backend development rules for TT Studio - AI model management backend.