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/wangqiqi/cursor-ai-rules/rust-basicsgit clone --depth 1 https://github.com/wangqiqi/cursor-ai-rulesWhat 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.00310 |
| Opus 5 | $0.00000 | $0.00155 |
| Sonnet 5 | $0.00000 | $0.00062 |
| Haiku 4.5 | $0.00000 | $0.00031 |
Grade A, and why
rust-basics 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 2d 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.
What it actually says
🦀 Rust 开发规则
版本: v4.4.0 | 已拆分所有权/类型/实践至独立规则
⚠️ 执行原则
- MUST 确保内存安全和线程安全
- NEVER 忽略编译器警告
- ALWAYS 使用 Cargo 进行依赖管理
- DO NOT 泄漏敏感信息到错误消息
- MUST 编写清晰的文档注释
🎯 适用场景
- 系统级编程、高性能计算
- 网络服务、分布式系统
- 嵌入式、WebAssembly、区块链
📚 详细规范引用
- 所有权:见
@rust-basics-ownership(借用、生命周期、Rc/Arc) - 类型系统:见
@rust-basics-types(错误处理、泛型、特征、异步) - 实践:见
@rust-basics-practices(项目结构、Cargo、依赖管理)
引用: @rust-basics-ownership @rust-basics-types @rust-basics-practices
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.
- 2d ago First seen · 35 lines · 0 tokens per session scan A d49c0aac6c4d
rust-basics is a cursor rule published in the GitHub repository wangqiqi/cursor-ai-rules (15 stars, last pushed 3mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 310 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
rust
When working on imageflow, we want to preserve comments in the code - ALWAYS - since they help us remember corner cases. Always repeat them back out into the new code. And always load /imageflowtypes/src/lib.rs into memory, since we use it in every rust file.
core
Core STT/TTS abstraction layer documentation.
rust-architect
PoolAI — Rust Architect workflow: runtime stack, MSYS2, target/ disk, pre-push checks, docs sync.
collection-iterators
How to implement and test iterators on APAS-VERUS collection modules.
table-of-contents-standard
Standard section ordering and TOC format for Verus source files.
ptt-commands
Commands for building and running Proof Time Tests (PTTs).