Catalog / Skills

Rust Trait API Design

Design and review Rust trait APIs, generic bounds, dispatch models, and conversion contracts for clear public interfaces. Use when designing, refactoring, or reviewing traits, generics, trait objects, associated types, impl Trait, From/TryFrom, AsRef, Borrow, or crate APIs.

Rustv0.1.0MITrusttraitsgenericsapi-designtrait-objects

Install

npx skills add LVTD-LLC/skills --skill rust-trait-api-design

From `SKILL.md`

Use this skill to make Rust APIs generic where useful, concrete where simpler, and object-safe when dynamic dispatch is part of the design. Optimize for the smallest capability contract that callers and implementors can understand.