Rust 测试与基准测试技能 — 单元测试(#[test]、#[cfg(test)])、断言宏、测试属性(#[should_panic]、#[ignore])、集成测试(tests/)、文档测试(doctest)、cargo test 运行器、基准测试(#[bench]、cargo bench)、代码覆盖率。基于 The Book ch 11 与 Rustdoc Book。当用户需要编写测试、运行基准测试或保证代码质量时激活。
632 skills available
Rust 测试与基准测试技能 — 单元测试(#[test]、#[cfg(test)])、断言宏、测试属性(#[should_panic]、#[ignore])、集成测试(tests/)、文档测试(doctest)、cargo test 运行器、基准测试(#[bench]、cargo bench)、代码覆盖率。基于 The Book ch 11 与 Rustdoc Book。当用户需要编写测试、运行基准测试或保证代码质量时激活。
Rust 不安全代码与 FFI 技能 — unsafe 五种超能力(裸指针、unsafe fn、可变静态变量、unsafe trait、union)、裸指针操作与 NonNull、FFI 外部函数接口(extern \"C\"、#[link]、#[no_mangle])、内存操作(MaybeUninit、ManuallyDrop、transmute、offset_of!)、类型布局控制(#[repr])、Pin、全局分配器。基于 The Book ch 19 与 The Rustonomicon。当用户需要与 C 交互、编写 unsafe 代码或操作裸内存时激活。
The canonical knowledge base for designing Agent Skills. Contains distilled Agent Skills specifications (naming conventions, frontmatter rules, directory structure, progressive disclosure), official best practices, description optimization techniques, script safety guidelines, and evaluation frameworks (TRACE). Use when designing a new skill, reviewing an existing skill for compliance, needing to know what makes a good skill, wondering about frontmatter rules or naming conventions, or when the user mentions "设计技能", "创建技能", "技能规范", "技能命名规则", "SKILL.md 怎么写", "frontmatter 规范", "技能最佳实践", "技能目录结构", "渐进式披露", "Agent Skills 规范".
Create exercise directory structures with sections, problems, solutions, and explainers that pass linting.