agentleFS
d-oitd-oit/rust-2026-template/.agents/skills/lint-rust/SKILL.md

lint-rust

Skill15 starsChanged 5 months agoMITView on GitHub

Run comprehensive linting and static analysis on Rust code including clippy, format check, security audit, supply chain, and unused dependencies. Use before committing, during CI, or when reviewing code quality. Triggers: "lint rust", "clippy", "static analysis", "code quality".

  • Installs packages

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 5 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Run comprehensive linting and static analysis on Rust code.

    line 21
  2. Distinctive:

    When reviewing code quality

    line 27
  3. Distinctive:

    After adding new dependencies

    line 28
  4. Very specific:

    All clippy lints pass with -D warnings

    line 71
  5. Distinctive:

    No known security vulnerabilities

    line 73
  6. Distinctive:

    All licenses are allowed

    line 74

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Skill: lint-rust

Purpose

Run comprehensive linting and static analysis on Rust code.

Trigger Conditions

  • Before committing code
  • During CI/CD pipeline
  • When reviewing code quality
  • After adding new dependencies

Prerequisites

  • cargo clippy (bundled with Rust)
  • cargo audit (cargo install cargo-audit)
  • cargo deny (cargo install cargo-deny)
  • cargo machete (cargo install cargo-machete)

Steps

1. Clippy strict mode

cargo clippy --workspace --all-targets --all-features -- -D warnings

2. Format check

cargo fmt --all -- --check

3. Security audit

cargo audit

4. Supply chain check

cargo deny check

5. Unused dependencies

cargo machete

Success Criteria

  • All clippy lints pass with -D warnings
  • Format is consistent
  • No known security vulnerabilities
  • All licenses are allowed
  • No unused dependencies

Related Skills

  • build-rust - Building the project
  • test-rust - Running tests
  • release-rust - Release preparation

Rationalizations

RationalizationReality
"Clippy passes, so the code is clean."Clippy alone doesn't check licenses, security, or unused deps. Run the full suite.
"cargo audit shows no advisories, we're safe."Audit only checks known advisories. Also run cargo-deny for license compliance.
"I'll skip machete — unused deps aren't a big deal."Unused deps increase compile time and attack surface. Remove them.

Red Flags

  • Running only cargo clippy without cargo fmt --check
  • Skipping cargo audit or cargo deny in CI
  • Ignoring -D warnings flag (allows warnings to accumulate)

References

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.