themadorg/madmail/fix-lint

Claude Code and agent skill by themadorg/madmail

Trust tier 2
  • community
LLM review pending
Source check pending

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-lint

SKILL.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)

TargetWhat it runs
make fmtcargo fmt --all — auto-fix formatting
make fmt-checkcargo fmt --all -- --check — format only, no writes
make checkRUSTFLAGS="-D warnings" cargo check --workspace --all-targets
make vetAlias for make check
make lintfmt-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)

1. make fmt # auto-fix rustfmt issues first
2. make lint # full quality gate
3. Fix reported issues in code
4. make fmt # re-format after edits
5. make lint # verify
6. Repeat 3–5 until exit 0

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)
Diff in /path/to/file.rs:42:

→ Run make fmt. If still failing, fix the file manually to match rustfmt.

cargo check / rustc warnings
warning: …
--> crates/foo/src/bar.rs:10:5

→ Fix the underlying issue (unused imports, dead code, type errors, etc.). Warnings are errors via RUSTFLAGS="-D warnings".

clippy
error: …
--> crates/foo/src/bar.rs:20:9
= help: …
= note: `#[deny(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)
error: …
--> crates/foo/src/lib.rs:5:1

→ 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 lint checks --workspace --all-targets (includes tests, benches, examples). Fix test code too.
  • No warning suppression by default — resolve the root cause.
  • Commit-ready — when make lint passes, summarize what was fixed.

Common fixes

Lint / warningTypical fix
unused_importsRemove the import
dead_codeRemove code, or use it; don't silence without reason
needless_borrowRemove &
clippy::too_many_argumentsGroup into a struct only if already idiomatic in the crate
clippy::unwrap_usedReplace with proper error handling matching nearby code
missing_docs on public itemsAdd a one-line /// doc comment
Broken #![deny(…)] in libFix the item, not the deny attribute

What this skill does NOT cover

TargetScope
make test / make test-unitTests — run separately after lint is clean
make man-lintMan page groff — use update-cli-docs skill
make covCoverage — optional, not part of lint
build-landing / admin-webFrontend — only if make lint somehow touches those (it doesn't today)

Quick reference

bash
# User says "fix lint" — run this loop:
make fmt && make lint
# fix issues → make fmt && make lint
# repeat until clean

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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/themadorg/madmail/fix-lint/badge)](https://verified-skill.com/skills/themadorg/madmail/fix-lint)

Something wrong with this skill or its page? Tell us.