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
npx skills add RediSearch/RediSearch --skill lint -a claude-codeWhat 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-code2Manually: put the files in place
~/.claude/skills/lint/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/lint/
1Skills CLI (Vercel)
npx skills add RediSearch/RediSearch --skill lint -a codex2Manually: put the files in place
.agents/skills/lint/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add RediSearch/RediSearch --skill lint -a cursor2Manually: put the files in place
.cursor/skills/lint/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install RediSearch/RediSearch .skills/lint/SKILL.md2Manually: put the files in place
.github/skills/lint/SKILL.md1Skills CLI (Vercel)
npx skills add RediSearch/RediSearch --skill lint -a gemini-cli2Platform CLI
gemini skills install https://github.com/RediSearch/RediSearch --path .skills/lintManually: put the files in place
.devin/skills/lint/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add RediSearch/RediSearch --skill lint -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
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.