Skip to main content
skill CX Codex

lint — Claude Code skill: what it does, how to install

Checks formatting and lint rules for C and Rust code prior to committing. Catches style mismatches and flags strict build warnings.

no license ★ 6,244 updated 2026-10-29

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add RediSearch/RediSearch --skill lint -a claude-code
Open on GitHub

What lint does

This skill outlines verification steps before committing code to RediSearch. For C and C++, it executes clang-format using rules from .clang-format with the -Werror flag. If issues arise, it formats files in place. Next, ./build.sh runs to guarantee that critical warnings like implicit function declarations or incompatible pointer types cause immediate build failures.

On the Rust side, the instructions handle make lint and formatting checks via make fmt CHECK=1. A targeted check can run directly through cargo clippy targeting src/redisearch_rs/Cargo.toml. When copyright notes are missing, the skill calls cargo license-fix inside the src/redisearch_rs directory.

Every unsafe block strictly needs an accompanying // SAFETY: comment, while lint suppressions must use #[expect(...)] over #[allow(...)].

What it helps with

  • verify C and C++ source formatting against .clang-format
  • run Clippy inspections and formatting checks across Rust packages
  • insert missing project license headers with cargo license-fix
  • annotate unsafe Rust blocks with required // SAFETY: remarks

Example prompts for the agent

  • Check formatting on modified C sources and verify the build
  • Run clippy on the Rust components and list all warnings
  • Apply missing license headers to files in redisearch_rs

How to install lint

1Skills CLI (Vercel)

npx skills add RediSearch/RediSearch --skill lint -a claude-code

2Manually: put the files in place

~/.claude/skills/lint/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/lint/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about lint

How do I install lint in Claude Code?

Run npx skills add RediSearch/RediSearch --skill lint -a claude-code in your terminal.

What does the lint skill do?

It guides linters and compilers across C and Rust trees, validating clang formatting, Clippy rules, and build flags before commits.

What Clippy practices does the skill enforce?

It expects unsafe code blocks to contain a // SAFETY: note and favors #[expect(...)] over #[allow(...)] for lint suppressions.

Similar skills

All skills for Testing and QA →

From the same set4

Project sponsors

Companies that keep this analytics open