
leonardomso/rust-skills
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
레오나르돔소/러스트-스킬은 https://github.com/leonardomso/rust-skills.에서 수입된 에이전트 스킬 후보입니다.
개요
레오나르돔소/러스트-스킬은 https://github.com/leonardomso/rust-skills.에서 수입된 에이전트 스킬 후보입니다.
개요(AI 번역)
265개의 Rust 규칙을 AI 코딩 에이전트가 더 나은 코드를 작성할 수 있습니다. 현재 사용 시 Rust 1.96 (2024년 판).
클로드 코드, 커서, 윈드서프, 코파일럿, 코덱스, 에이더, 제드, 앰프, 클라인 등 스킬을 지원하는 거의 모든 에이전트와 함께 작동합니다.
왜
기본 상태에서 코딩 에이전트는 평균적 Rust를 작성합니다 — 빌린 검사기를 피하기 위해 복제하고, .unwrap()를 피하며, impl Trait가 될 때 Box 를 선택합니다. 이 규칙들은 전문가 러스트가 실제로 어떤 모습인지 인코딩합니다: 관용구적이고, 빠르며, 안전합니다. 각 규칙은 작고 집중되어 있어, 에이전트는 앞에 있는 코드와 관련된 것만 끌어옵니다.
설치
그게 전부입니다. CLI가 어떤 에이전트가 있는지 파악하고 스킬을 적절한 위치에 설치합니다.
사용하는 법
설치 후에는 에이전트에게 문의하세요:
에이전트가 관련 규칙을 불러와서 코드에 적용합니다.
실제 행동을 보러
에이전트에게 다음과 같은 기능을 검토해 달라고 요청하세요:
이 규칙들이 로드된 상태에서, &String 대신 &str를 선택하고,
불필요한 clone()와 할당을 하며, 당황하지 않고 Option를 반환합니다:
여기 뭐가 있어?
265개의 규칙이 26개 카테고리로 나뉩니다:
| 카테고리 | 규칙 | 무엇을 다루는지 |
|---|
이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.
README
원문 README의 일부입니다. 원문 보기.
Rust Skills
265 Rust rules your AI coding agent can use to write better code. Current for Rust 1.96 (2024 edition).
Works with Claude Code, Cursor, Windsurf, Copilot, Codex, Aider, Zed, Amp, Cline, and pretty much any other agent that supports skills.
Why
Out of the box, coding agents write average Rust — they clone to dodge the borrow checker, .unwrap() everything, and reach for Box when impl Trait would do. These rules encode what expert Rust actually looks like: idiomatic, fast, and safe. Each rule is small and focused, so the agent pulls in only what’s relevant to the code in front of it.
Install
npx add-skill leonardomso/rust-skills
That’s it. The CLI figures out which agents you have and installs the skill to the right place.
How to use it
After installing, just ask your agent:
/rust-skills review this function
/rust-skills is my error handling idiomatic?
/rust-skills check for memory issues
/rust-skills is this unsafe block sound?
The agent loads the relevant rules and applies them to your code.
See it in action
Ask the agent to review a function like this:
// before
fn first_word(s: &String) -> String {
s.clone().split_whitespace().next().unwrap().to_string()
}
With these rules loaded, it knows to take &str instead of &String, drop the
needless clone() and allocation, and return an Option instead of panicking:
// after — applies own-slice-over-vec, own-borrow-over-clone, anti-unwrap-abuse
fn first_word(s: &str) -> Option {
s.split_whitespace().next()
}
What’s in here
265 rules split into 26 categories:
| Category | Rules | What it covers |
|---|---|---|
| Ownership & Borrowing | 12 | When to borrow vs clone, Arc/Rc, lifetimes |
| Error Handling | 12 | thiserror for libs, anyhow for apps, the ? operator |
| Memory | 17 | SmallVec, arenas, avoiding allocations, mem::take, drop order |
| Unsafe Code | 7 | SAFETY: comments, Miri, MaybeUninit, 2024-edition unsafe |
| API Design | 17 | Builder pattern, newtypes, sealed traits, FromIterator |
| Async | 18 | Tokio patterns, channels, async fn in traits, cancel safety |
| Concurrency | 4 | rayon, scoped threads, atomic ordering, thread-locals |
| Optimization | 12 | LTO, inlining, PGO, SIMD |
| Numeric & Arithmetic | 5 | Overflow handling, as vs TryFrom, float compare, NonZero |
| Type Safety | 13 | Newtypes, parse don’t validate, Deref, Display/Debug |
| Trait & Generics Design | 6 | dyn vs generic, associated types, blanket impls, object safety, orphan rule |
추천 도구
다른 키워드를 입력하거나 필터를 제거해 보세요.
설치
npx skillfish add leonardomso/rust-skills