Skip to content
Back to skills

Strict Clippy Check

ASecurity

Enforces zero-tolerance code quality policy using Clippy with strict lints, all warnings treated as errors

  • 8 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 25, 2026
ai-agentsrustgobashrefactoringgitapi

Works with

  • cli
  • api

Security analysis

A100/100

Scanned September 25, 2026

npx -y skills add dravr-ai/dravr-embacle --skill strict-clippy-check --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Strict Clippy Check?

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

Security grade badge for Strict Clippy Check
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/dravr-ai-strict-clippy-check/badge)](https://www.skillsdirectory.com/skills/dravr-ai-strict-clippy-check)

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: strict-clippy-check
description: Enforces zero-tolerance code quality policy using Clippy with strict lints, all warnings treated as errors
user-invocable: true
---

# Strict Clippy Check Skill

## Purpose
Enforces embacle's zero-tolerance code quality policy using Clippy with strict lints.

## Usage
Run this skill before every commit and after refactoring.

## Commands

### Standard Strict Check
```bash
CARGO_BUILD_WARNINGS=deny cargo clippy --all-targets
```

### Fix Auto-Fixable Issues
```bash
CARGO_BUILD_WARNINGS=deny cargo clippy --fix --all-targets --allow-dirty
```

## Linting Configuration

embacle uses `Cargo.toml` lints configuration:

```toml
[lints.clippy]
all = { level = "deny", priority = -1 }
pedantic = { level = "deny", priority = -1 }
nursery = { level = "deny", priority = -1 }
```

## Common Issues & Fixes

### Issue: `unwrap()` detected
```rust
// ❌ Bad
let value = some_option.unwrap();

// ✅ Good
let value = some_option.ok_or(RunnerError::internal("missing value"))?;
```

### Issue: Cast warnings
```rust
// ❌ Might truncate
let small = large_value as u8;

// ✅ Safe conversion with allow attribute
#[allow(clippy::cast_possible_truncation)]
let small = large_value as u8; // validated above
```

## Allowed Exceptions
- `#[allow(clippy::cast_*)]` for validated numeric casts
- `#[allow(clippy::struct_excessive_bools)]` when bools represent capabilities
- `unwrap()` in test code and static data

## Success Criteria
- ✅ Zero Clippy warnings
- ✅ All error handling uses `Result<T, RunnerError>`
- ✅ No `unwrap()` in production code (src/)
- ✅ No `anyhow::anyhow!()` anywhere
- ✅ Public APIs documented

## Related Files
- `Cargo.toml` - Lint configuration
- `.github/workflows/ci.yml` - CI clippy job

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.