Back to skills
SKILL.md
Strict Clippy Check
ASecurityEnforces 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
Works with
Security analysis
100/100npx -y skills add dravr-ai/dravr-embacle --skill strict-clippy-check --agent claude-codeAre you the author of Strict Clippy Check?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/dravr-ai-strict-clippy-check)---
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
Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.