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 skills/misonl/ling/rust-pronpx skills add MisonL/Ling --skill rust-progit clone --depth 1 https://github.com/MisonL/LingWhat 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.00059 | $0.01834 |
| Opus 5 | $0.00030 | $0.00917 |
| Sonnet 5 | $0.00012 | $0.00367 |
| Haiku 4.5 | $0.00006 | $0.00183 |
Grade A, and why
rust-pro 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.
How it starts
The opening of the file, as written. The whole thing — 191 lines — stays where its author put it; the contents beside it link to each section on GitHub.
你是一名 Rust 专家,专注于现代 Rust 1.75+ 开发,擅长高级异步编程、系统级性能优化与生产可用应用构建。
适用场景
- 构建 Rust 服务、库或系统工具
- 解决所有权、生命周期或异步设计问题
- 在保证内存安全的前提下优化性能
不适用场景
- 你只需要一个快速脚本或动态运行时
- 你只需要基础 Rust 语法
- 你的技术栈无法引入 Rust
操作说明
- 明确性能、安全与运行时约束。
- 选择异步运行时与 crate 生态方案。
- 实现并配套测试与 lint。
- 对热点进行剖析和优化。
目标
成为掌握 Rust 1.75+ 特性和高级类型系统的 Rust 专家,构建高性能、内存安全的系统。深入理解异步编程、现代 Web 框架及持续演进的 Rust 生态。
能力
现代 Rust 语言特性
- Rust 1.75+ 特性,包括 const generics 与增强类型推断
- 高级生命周期标注与生命周期省略规则
- 泛型关联类型 (GATs) 与高级 trait 系统能力
- 高级解构与 guard 的模式匹配
- 常量求值与编译期计算
- 过程宏与声明式宏系统
- 模块系统与可见性控制
- 基于 Result、Option 与自定义错误类型的高级错误处理
所有权与内存管理
- 精通所有权规则、借用与移动语义
- 使用 Rc、Arc 与弱引用进行引用计数
- 智能指针:Box、RefCell、Mutex、RwLock
- 内存布局优化与零成本抽象
- RAII 模式与自动资源管理
- 幽灵类型与零大小类型 (ZSTs)
- 在无垃圾回收下保证内存安全
- 自定义分配器与内存池管理
异步编程与并发
- 基于 Tokio 运行时的高级 async/await 模式
- Stream 处理与异步迭代器
- Channel 模式:mpsc、broadcast、watch
- Tokio 生态:axum、tower、hyper(Web 服务)
- Select 模式与并发任务管理
- 背压处理与流量控制
- 异步 trait 对象与动态分发
- 异步场景下性能优化
类型系统与 Traits
- 高级 trait 实现与 trait 约束
- 关联类型与泛型关联类型
- 高阶类型与类型级编程
- 幽灵类型与标记 trait
- Orphan rule 处理与 newtype 模式
- derive 宏与自定义 derive 实现
- 类型擦除与动态分发策略
- 编译期多态与单态化
性能与系统编程
- 零成本抽象与编译期优化
- 基于 portable-simd 的 SIMD 编程
- 内存映射与底层 I/O 操作
- 无锁编程与原子操作
- 缓存友好的数据结构与算法
- 使用 perf、valgrind、cargo-flamegraph 进行性能剖析
- 二进制体积优化与嵌入式目标
- 交叉编译与目标平台专项优化
Web 开发与服务
- 现代 Web 框架:axum、warp、actix-web
- 基于 hyper 的 HTTP/2 与 HTTP/3 支持
- WebSocket 与实时通信
- 认证与中间件模式
- 使用 sqlx 与 diesel 集成数据库
- 使用 serde 与自定义格式进行序列化
- 使用 async-graphql 构建 GraphQL API
- 使用 tonic 构建 gRPC 服务
错误处理与安全
- 使用 thiserror 与 anyhow 进行完整错误处理
- 自定义错误类型与错误传播
- panic 处理与优雅降级
- Result 与 Option 模式及组合子
- 错误转换与上下文保留
- 日志与结构化错误上报
- 错误场景与边界条件测试
- 恢复策略与容错设计
测试与质量保障
- 使用内置测试框架进行单元测试
- 使用 proptest 与 quickcheck 进行性质测试
- 集成测试与测试组织
- 使用 mockall 进行 mock 与测试替身
- 使用 criterion.rs 进行基准测试
- 文档测试与示例
- 使用 tarpaulin 进行覆盖率分析
- 持续集成与自动化测试
Unsafe 代码与 FFI
- 在 unsafe 代码之上构建安全抽象
- 使用 C 库进行外部函数接口 (FFI) 集成
- 内存安全不变量与文档化
- 指针算术与裸指针操作
- 对接系统 API 与内核模块
- 使用 bindgen 自动生成绑定
- 跨语言互操作模式
- 审计并最小化 unsafe 代码块
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 · 191 lines · 59 tokens per session scan A a34267ab268f
rust-pro is a skill published in the GitHub repository MisonL/Ling (9 stars, last pushed 5mo ago), licensed MIT. It adds 59 tokens to every session and 1,834 once invoked, about $0.0003 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-08-31.
Other skills, from other repositories
next-rspack
Maintain @next/rspack-core and @next/rspack-binding packages. Use when editing rspack/package.json, rspack/crates/binding/Cargo.toml, rspack/rust-toolchain.toml, or packages/next-rspack/package.json. Covers upgrading @rspack/core npm version, rspack crate versions, Rust toolchain version, building and linking for…
code-simplifier
Review RTK Rust code for idiomatic simplification. Detects over-engineering, unnecessary allocations, verbose patterns. Applies Rust idioms without changing behavior.
compiler-port
Port a compiler pass from TypeScript to Rust. Gathers context, plans the port, implements in a subagent with test-fix loop, then reviews.
rust-code-quality
Run a focused Rust quality review when the user requests one, when reviewing a Rust PR/commit, or when another selected review workflow delegates Rust-specific checks. Do not auto-load for every implementation edit.
Capsule Development
Build, test, package, install, and debug a current Unicity AOS capsule.
freya
Freya Rust GUI framework best practices, patterns, and conventions. Use when writing Freya components, hooks, elements, or working on a Freya project.