Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1---2name: ivan-brko-panoptes-clippy-fix3description: Clippy Fix Skill4---56# Clippy Fix Skill78Run clippy with automatic fixes and report code quality improvements.910## Steps11121. **Run clippy with auto-fix**13 ```bash14 cargo clippy --fix --allow-dirty 2>&115 ```16 This will automatically fix issues that clippy knows how to fix safely.17182. **Check remaining warnings**19 ```bash20 cargo lint 2>&121 ```22 Report any warnings that couldn't be auto-fixed.23243. **Verify tests still pass**25 ```bash26 cargo test 2>&127 ```28 Ensure auto-fixes didn't break anything.29304. **Report summary**31 - Number of files modified by auto-fix32 - Remaining warnings requiring manual attention33 - Test results after fixes3435## Common Clippy Fixes3637The following patterns are commonly flagged and auto-fixed:3839| Pattern | Better Alternative |40|---------|-------------------|41| `x.map_or(false, \|v\| ...)` | `x.is_some_and(\|v\| ...)` |42| `container.len() >= 1` | `!container.is_empty()` |43| `!env.contains_key(x).is_none()` | `!env.contains_key(x)` |44| `&foo.to_string()` | `foo.to_string()` (remove needless borrow) |45| Single-element vec via clone | `std::slice::from_ref()` |4647## Manual Fixes Often Required4849These patterns need human judgment:5051- **Cognitive complexity**: Break down large functions52- **Too many arguments**: Consider a struct parameter53- **Missing docs**: Add documentation for public items54- **Panic in library code**: Use Result instead of unwrap/expect5556## Example Output5758```59Clippy Fix Summary:60- Auto-fixed: 9 issues in 4 files61- Remaining warnings: 062- Tests: 223 passed6364Files modified:65- src/claude_json.rs (2 fixes)66- src/tui/views/projects.rs (2 fixes)67- src/tui/views/project_detail.rs (4 fixes)68- src/tui/views/claude_configs.rs (1 fix)69```7071---72> Converted and distributed by [TomeVault](https://tomevault.io/claim/ivan-brko) — claim your Tome and manage your conversions.73<!-- tomevault:4.0:skill_md:2026-04-13 -->
Run npx skillmds@latest add tomevault-io/ivan-brko-panoptes-clippy-fix in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Clippy Fix Skill It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Independent scanners report: SkillSpector: PASS, Skill Scanner: PASS. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
tomevault-io (@tomevault-io) published this skill. Their other Agent Skills are listed on their SkillMD profile.