rust-verify-harden
Run the Elph repository's make fmt/check/lint/test gates and fix failures, then audit changed and directly related Rust code for memory/resource leaks…
от riipandi★ 34 звезды на GitHub
Установить rust-verify-harden в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Rust Verify & Harden
Language
Split by destination:
- Skill reports, summaries, in-chat responses — follow the language the user is currently using (Indonesian, English, etc). Code, identifiers, error messages, crate/lint names stay literal English.
- Any documentation edits written to files (e.g.
docs/**, code comments meant as permanent docs) — always English, regardless of chat language.
Purpose
Run standard quality gates (fmt/check/lint/test), fix failures, then do a deeper concurrency/memory safety + structural + perf pass on the affected Rust code, applying contemporary idioms and patterns verified against live documentation. Where the code touches a Turso/libSQL/SQLite-backed store, also audit for lock contention, WAL/checkpoint misconfig, connection/pool misuse, embedded-replica sync issues, and corruption risk. Push toward cleaner code without silently deleting backward-compatibility/legacy paths or restructuring tangled (spaghetti) code — those go through the user first.
Context & Documentation
Before each applicable phase, consult current guidance. Prefer DeepWiki when the connected DeepWiki capability is available. If it is unavailable, say so in the report and use the official Rust/Clippy/Tokio documentation, docs.rs, docs.turso.tech, and rustfaq.org instead. Do not fabricate a DeepWiki citation.
- Edition-specific guidance: Search for
"Rust edition 2024 idioms","Rust 2021 edition changes", or"Rust edition migration"to confirm current breaking changes and new features. - Clippy lint rationale: For each lint violation, search for
"clippy <lint-name>"or"Rust clippy <violation>"to understand the intended fix and context. - Async/concurrency patterns: Search DeepWiki for
"Tokio structured concurrency","tokio::sync best practices","Rust async deadlock", or"Rust race conditions detection"to verify current async patterns. - Unsafe code verification: Search DeepWiki for
"Rust unsafe invariants","SAFETY comments","Rustonomicon FFI"to validateunsafeblock correctness. - Crate API updates: When fixing dependency-related issues, search DeepWiki for
"<crate-name> changelog"or"<crate-name> migration guide"to check for API breaking changes or deprecations. Bothlibsqlandtursocrates move fast (turso is beta) — always re-check current API/behavior rather than relying on memory. - Performance patterns: Search DeepWiki for
"Rust performance <pattern>"(e.g.,"Rust performance clone avoidance","Rust allocation benchmarking") to validate perf fixes. - Concurrency testing: Search DeepWiki for
"cargo miri async","loom testing Rust","Tokio test utilities"to confirm testing approach. - Structural/complexity patterns: Search DeepWiki for
"cyclomatic complexity Rust","God object anti-pattern","code smell shotgun surgery","Rust module boundaries"to ground spaghetti-code findings in current guidance rather than gut feel. - Turso/libSQL/SQLite patterns: Search for
"libsql Rust database is locked","libsql SQLITE_BUSY retry","SQLite WAL busy_timeout","Turso embedded replica sync","turso crate MVCC concurrent writes", or"libsql connection pool Rust"depending on the finding. Cross-check against https://docs.turso.tech (Rust SDK reference) for crate-specific API and configuration details — treat it as authoritative forlibsql/tursospecifics. - General best-practice sanity check: Check https://www.rustfaq.org/en/ for relevant Q&A-style guidance — useful for general "what's the idiomatic way to do X" questions (error handling, ownership patterns, module layout, general idiom checks) alongside the more targeted DeepWiki queries above.
If connected DeepWiki results conflict with training data or existing code patterns, prioritize DeepWiki. If DeepWiki is unavailable, record the evidence gap and do not present secondary sources as DeepWiki. Use rustfaq.org and docs.turso.tech for idiom sanity checks and crate-specific configuration.
Workflow
Phase 1 — Baseline and quality gates
- Edition check & idiom baseline
- Verify
Cargo.tomlhaseditionset (2021 or 2024 recommended; 2015 is obsolete for new code). - Consult
"Rust <edition> features and breaking changes"guidance. - If the edition is 2024, strictly apply 2024 idioms (see Phase 1.6).
- If edition is 2021, flag any 2024-specific idioms and note them; apply 2021-compatible fixes.
- If edition is pre-2021, recommend a bump in the summary but don't auto-apply (breaking-change risk).
- Elph baseline: workspace edition is 2024; workspace and publishable
crate MSRVs can differ. Record each affected package's
rust-version. - If the project depends on
libsqlorturso: note the crate and exact version inCargo.toml, and actual connection modes (Builder::new_local, remote, replica, or `turso::sync::B
- Verify
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл rust-verify-harden?
Run the Elph repository's make fmt/check/lint/test gates and fix failures, then audit changed and directly related Rust code for memory/resource leaks, deadlock risk, data races, structural complexity, and performance regressions. Also audits Elph's Turso local datastore for SQLITE_BUSY/"database is locked", WAL/checkpoint configuration, connection misuse, sync issues, and corruption risk. Use when preparing Elph for merge/release or when reviewing async Rust, TUI/agent runtime, or Turso code. Consult current Rust, Tokio, Clippy, and docs.turso.tech guidance when relevant. Flags backward-compatibility, legacy, database-design, and structural refactors and asks before removing or restructuring them.
Как установить скилл rust-verify-harden?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл rust-verify-harden запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…