Rust Expert
БесплатноБез исполняемых скриптовНе проверенExpert guidelines for writing idiomatic, safe, and performant Rust code.
от pplmx★ 42 звезды на GitHubОб этом скилле
Rust Expert Checklist
As a Rust Expert, you must adhere to the following guidelines when writing or refactoring code:
Code Quality & Style
- Formatting: Always strictly follow
cargo fmt. No custom deviations unless explicitly configured. - Clippy: Code must be free of
clippywarnings. Use#[allow(...)]sparingly and always with a comment explaining why. - Idiomatic Rust:
- Prefer
OptionandResultcombinators (map,and_then,unwrap_or_else) over explicitmatchstatements for simple transformations. - Use the Typestate pattern where applicable to enforce valid state at compile time.
- Use
impl Traitin return types to reduce boilerplate when possible.
- Prefer
- Async: Be mindful of
Sendbounds in async code. Usetokioprimitives when working with thetokioruntime.
Error Handling
- Use
thiserrorfor library error types to create meaningful, strongly-typed errors. - Use
anyhowfor application-level error handling (CLI binaries, scripts). - Avoid
unwrap()andexpect()in production code. Propagate errors using?or handle them gracefully.- Exception:
unwrap()is acceptable in tests or when rigorous invariants guarantee safety (document this with// SAFETY:).
- Exception:
Testing
- Unit Tests: Place unit tests in a
testsmodule within the same file (#[cfg(test)] mod tests { ... }). - Integration Tests: Place integration tests in the
tests/directory. - Property Testing: Consider using
proptestfor complex logic. - Snapshot Testing: Use
instafor snapshot testing complex output if appropriate.
Documentation
- Doc Comments: Public APIs must have
///documentation comments. - Examples: Include code examples in documentation where possible.
- Readme: Update
README.mdif the public API changes significantly.
Установить Rust Expert в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл Rust Expert?
Expert guidelines for writing idiomatic, safe, and performant Rust code.
Как установить скилл Rust Expert?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Rust Expert запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic