Skip to content
Back to skills

Lint

ASecurity

Check code quality and formatting before committing changes

  • 8 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added May 29, 2026
toolsrustgobash

Works with

  • cli

Security analysis

A100/100

Scanned May 29, 2026

npx -y skills add zjunlp/Skills --skill lint --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Lint?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Lint
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/zjunlp-lint/badge)](https://www.skillsdirectory.com/skills/zjunlp-lint)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: lint
description: Check code quality and formatting before committing changes
---

# Lint Skill

Check code quality and formatting before committing changes.

## Usage
Run this skill to check for lint errors and formatting issues.

## Instructions

1. Run the lint check:
   ```bash
   make lint
   ```

2. If clippy reports warnings or errors, fix them before proceeding

3. Check formatting:
   ```bash
   make fmt CHECK=1
   ```

4. If formatting check fails, apply formatting:
   ```bash
   make fmt
   ```

5. If license headers are missing, add them:
   ```bash
   cd src/redisearch_rs && cargo license-fix
   ```

## Common Clippy Fixes

- **Document unsafe blocks**: Add `// SAFETY:` comment explaining why the unsafe code is sound
- **Use `#[expect(...)]`**: Prefer over `#[allow(...)]` for lint suppressions

## Rust-Specific Checks

For Rust-only linting:
```bash
cd src/redisearch_rs && cargo clippy --all-targets --all-features
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.