themadorg/madmail/fix-lint
Claude Code and agent skill by themadorg/madmail
- community
Checking that the SKILL.md file is still in the repository.
Run madmail Makefile quality checks (make lint) and fix all formatting, compiler warnings, clippy, and rustdoc issues until clean. Use when the user says fix lint, fix lints, fix warnings, run lint, clean up clippy, or runs /fix-lint.
Install
npx vskill@latest install themadorg/madmail/fix-lintSKILL.md
Fix Lint
Run the repo's Makefile quality targets from the repository root and fix every failure until make lint exits 0.
Do not substitute raw cargo commands when an equivalent make target exists.
Makefile targets (authoritative)
| Target | What it runs | |
|---|---|---|
make fmt | cargo fmt --all — auto-fix formatting | |
make fmt-check | cargo fmt --all -- --check — format only, no writes | |
make check | RUSTFLAGS="-D warnings" cargo check --workspace --all-targets | |
make vet | Alias for make check | |
make lint | fmt-check → check → clippy -D warnings → cargo doc -D warnings |
make lint is the full gate. All compiler warnings are errors (-D warnings).
Workflow (loop until clean)
Use make check mid-loop for a faster compile-only pass; always finish with make lint.
Parsing failures
fmt-check (first step of make lint)
→ Run make fmt. If still failing, fix the file manually to match rustfmt.
cargo check / rustc warnings
→ Fix the underlying issue (unused imports, dead code, type errors, etc.). Warnings are errors via RUSTFLAGS="-D warnings".
clippy
→ Apply the suggested fix. Prefer the minimal change clippy hints at. Do not #[allow(...)] unless the lint is a known false positive — ask the user before suppressing.
rustdoc (cargo doc)
→ Fix doc comments, broken intra-doc links, or missing backticks. Doc warnings are errors via RUSTDOCFLAGS="-D warnings".
Fix principles
- Minimal diffs — fix only what lint reports; no drive-by refactors.
- Match existing style — read surrounding code before editing.
- Workspace scope —
make lintchecks--workspace --all-targets(includes tests, benches, examples). Fix test code too. - No warning suppression by default — resolve the root cause.
- Commit-ready — when
make lintpasses, summarize what was fixed.
Common fixes
| Lint / warning | Typical fix | |
|---|---|---|
unused_imports | Remove the import | |
dead_code | Remove code, or use it; don't silence without reason | |
needless_borrow | Remove & | |
clippy::too_many_arguments | Group into a struct only if already idiomatic in the crate | |
clippy::unwrap_used | Replace with proper error handling matching nearby code | |
missing_docs on public items | Add a one-line /// doc comment | |
Broken #![deny(…)] in lib | Fix the item, not the deny attribute |
What this skill does NOT cover
| Target | Scope | |
|---|---|---|
make test / make test-unit | Tests — run separately after lint is clean | |
make man-lint | Man page groff — use update-cli-docs skill | |
make cov | Coverage — optional, not part of lint | |
build-landing / admin-web | Frontend — only if make lint somehow touches those (it doesn't today) |
Quick reference
Success criterion: `make lint` exits 0 with no errors in stdout/stderr.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.grok/skills/fix-lint/SKILL.md
Popularity
- Repository stars
- 190
- Repository forks
- 20
- 7-day trend score
- 26
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/themadorg/madmail/fix-lint)