rust-idioms
БесплатноБез исполняемых скриптовНе проверенEveryday Rust engineering for Skill Doctor — errors, ownership, clippy, APIs, iterators. Use when writing or reviewing Rust that is not specifically about…
от KalarisLabs★ 16 звёзд на GitHubОб этом скилле
Rust idioms
Errors
- Libraries:
thiserrorenums. Nounwrap/expecton recoverable paths. - Binary:
anyhowatmainonly. Map to exit codes in one place. - Do not
panicin L1 because a skill file is malformed. Malformed input is a finding or a skipped file with coverage reduced.
Ownership
- Hot path: borrow (
&[u8],&str,&Path). Own only when storing in aFinding. - Do not
clone()to satisfy the borrow checker if a lifetime orArcwould do. Clippyclone_on_copy/ needless clones must stay clean. PathBufwalks: collect sortedVec<PathBuf>once, then iterate. Do notread_dirtwice.
APIs
- Public core API is small:
scan_bundle(&[u8] | &Path) -> Result<Report>. - Rule IDs and SD class IDs are
&'static stror newtypes, not free-formStringinvented at runtime. - Prefer
enum Severity { Low, Medium, High, Critical }over strings.
Clippy / fmt
cargo fmt --allis not optional.clippy --all-targets -- -D warningsis the style guide. Do not fight clippy with#[allow]unless the allow cites an invariant.unsafeis not an idiom. Loadunsafe-sandboxinstead.
Concurrency
- L1 fan-out:
rayon. Notokioin core. - MCP / optional L4:
tokio. - Shared state:
std::sync/arc_swap/OnceLock. Do not add a new runtime.
Установить rust-idioms в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл rust-idioms?
Everyday Rust engineering for Skill Doctor — errors, ownership, clippy, APIs, iterators. Use when writing or reviewing Rust that is not specifically about perf, unsafe, or YARA.
Как установить скилл rust-idioms?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл rust-idioms запускает скрипты?
Нет, скилл состоит только из инструкций (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