ovh/shai/rust-lint

Claude Code and agent skill by ovh/shai

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Check and fix Rust build warnings and clippy warnings across the project

Install

npx vskill@latest install ovh/shai/rust-lint

SKILL.md

Rust Lint

Purpose

Run cargo build and cargo clippy to surface compiler and linter warnings, then fix them systematically.

Procedure

1. Gather Warnings

Run both commands and capture all output:

bash
cargo build 2>&1
cargo clippy --all-targets 2>&1

If the project uses a workspace, warnings will cover all crates. If you only want to lint a specific crate:

bash
cargo clippy -p <crate-name> --all-targets 2>&1
2. Categorize Warnings

Group warnings into categories:

  • Unused imports / variables: Remove or prefix with _.
  • Dead code: Remove unused functions, structs, or fields. If they are part of a public API, document them with #[allow(dead_code)] only if genuinely needed.
  • Needless lifetimes: Remove explicit lifetime annotations that the compiler can infer.
  • Clippy style warnings: Apply the suggested fix (e.g., unwrap_or_default(), is_empty(), len() == 0 → is_empty()).
  • Missing documentation: Add doc comments to public items.
  • Improper regex / format strings: Fix as suggested.
3. Fix Warnings

For each warning:

  1. Read the surrounding code using the read tool to understand context.
  2. Apply the fix using edit or multiedit.
  3. Re-run the specific check to confirm the warning is resolved:
bash
cargo clippy -p <crate-name> --all-targets 2>&1 | grep -A 5 "<warning pattern>"
4. Verify

After all fixes:

  • Run cargo build and confirm no warnings remain.
  • Run cargo clippy --all-targets and confirm no warnings remain.
  • Run cargo test to ensure nothing broke.
  • Run cargo fmt --check to ensure formatting is clean.

Guidelines

  • Fix one category of warnings at a time to keep changes reviewable.
  • Never suppress a warning with #[allow(...)] unless there is a justified reason — document it in a comment.
  • Prefer clippy's suggested fixes when available.
  • If a warning is a false positive, add a targeted #[allow(...)] with a comment explaining why.
  • Keep commits focused: one logical fix per commit (e.g., "fix: remove unused imports").
  • Do not introduce new dependencies to silence warnings.
  • If a warning originates from a dependency, consider upgrading or ignoring it via clippy.toml or #![allow] at the crate level.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
626
Repository forks
62
7-day trend score
0

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/ovh/shai/rust-lint/badge)](https://verified-skill.com/skills/ovh/shai/rust-lint)

Something wrong with this skill or its page? Tell us.