clippy-custom

Develops custom Clippy lint passes for Rust code quality.

187|20|Updated Nov 20, 2025
One-click install
npx skills add https://github.com/TheBushidoCollective/han --skill clippy-custom
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: clippy-custom
Source: https://github.com/TheBushidoCollective/han/tree/main/jutsu/jutsu-clippy/skills/clippy-custom
Command: npx skills add https://github.com/TheBushidoCollective/han --skill clippy-custom

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Equips Rust developers with the know-how to implement and maintain Clippy lints, including lint passes and publishing lint crates.

Core Features & Use Cases

  • Lint Passes: Implement custom Clippy checks as part of a lint pass.
  • Tooling & CI: Integrate with the Clippy toolchain and CI workflows.
  • Publishing: Prepare and publish lint crates to crates.io.

Quick Start

Add a new lint that flags unnecessary unwrap() usage in library code.

Frequently Asked Questions about clippy-custom

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a custom Clippy lint for Rust?

Custom Clippy lints are implemented as lint passes within the Clippy toolchain. You define a struct that implements Clippy's lint trait, specify detection logic for the pattern you want to flag, and register it with Clippy's lint registry. This lets you enforce project-specific code quality rules across your Rust codebase.

What's the best way to test a custom Clippy lint?

Clippy lints are tested by writing Rust code samples that should and shouldn't trigger the lint, then verifying the lint produces expected warnings and errors. The testing framework validates lint output format, correctness of suggestions, and edge cases before publishing or deploying to CI workflows.

Can I publish a custom lint crate to crates.io?

Yes. Custom lint crates can be packaged and published to crates.io as standalone crates. Users then integrate your lint into their projects by adding your crate as a dependency and configuring Clippy to load it, enabling distributed reuse of domain-specific or organization-specific linting rules.

How do I integrate a custom Clippy lint into my CI pipeline?

Integrate custom lints into CI by configuring Clippy to load your lint crate, then run `cargo clippy` as part of your build checks. Clippy will apply all registered lints—both built-in and custom—during compilation, catching violations before code merges.

What knowledge do I need before writing Clippy lints?

You should understand Rust's syntax and AST structure, Clippy's lint framework and trait API, and pattern-matching techniques for detecting code patterns. Familiarity with the Clippy codebase and lint pass architecture accelerates development of robust, maintainable lints.

Does Clippy lint development work with all Rust projects?

Custom lints apply to any Rust project that adds your lint crate as a dependency and enables it in Clippy configuration. Lints function across library and binary projects, though you tailor lint logic—like flagging unwrap() in libraries but not binaries—to match project context.