code-quality-plugin/skills/code-lint-fix/SKILL.md
Autofix lint errors with biome, ruff, clippy, shellcheck. Use when fixing imports, quoting shell vars, applying clippy fixes, or running detect-and-fix across mixed-language repos.
npx skillsauth add laurigates/claude-plugins code-lint-fixInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Quick reference for running linter autofixes across languages.
| Use this skill when... | Use something else instead when... |
|------------------------|------------------------------------|
| Looking up the autofix command for biome/ruff/clippy/rustfmt/gofmt | Running the auto-detected linter end-to-end → code-lint |
| Recalling common fix patterns (unused imports, prefer-const, quoted shell vars) | Refactoring beyond what the linter can auto-fix → code-refactor |
| Picking the right --fix invocation per language | Detecting smells the linter does not catch → code-antipatterns |
| Scripting a detect-and-fix pass across a polyglot tree | Reviewing broader quality and architecture → code-review |
| Language | Linter | Autofix Command |
|----------|--------|-----------------|
| TypeScript/JS | biome | npx @biomejs/biome check --write . |
| TypeScript/JS | biome format | npx @biomejs/biome format --write . |
| Python | ruff | ruff check --fix . |
| Python | ruff format | ruff format . |
| Rust | clippy | cargo clippy --fix --allow-dirty |
| Rust | rustfmt | cargo fmt |
| Go | gofmt | gofmt -w . |
| Go | go mod | go mod tidy |
| Shell | shellcheck | No autofix (manual only) |
Unused imports
// Before
import { useState, useEffect, useMemo } from 'react';
// Only useState used
// After
import { useState } from 'react';
Prefer const
// Before
let x = 5; // Never reassigned
// After
const x = 5;
Import sorting (I001)
# Before
import os
from typing import List
import sys
# After
import os
import sys
from typing import List
Unused imports (F401)
# Before
import os
import sys # unused
# After
import os
Line too long (E501)
# Before
result = some_function(very_long_argument_one, very_long_argument_two, very_long_argument_three)
# After
result = some_function(
very_long_argument_one,
very_long_argument_two,
very_long_argument_three,
)
Redundant clone
// Before
let s = String::from("hello").clone();
// After
let s = String::from("hello");
Use if let
// Before
match option {
Some(x) => do_something(x),
None => {},
}
// After
if let Some(x) = option {
do_something(x);
}
Quote variables (SC2086)
# Before
echo $variable
# After
echo "$variable"
Use $(...) instead of backticks (SC2006)
# Before
result=`command`
# After
result=$(command)
Auto-detect project linters and run all appropriate fixers in one command:
# Fix mode: detect linters and apply all autofixes
bash "${CLAUDE_PLUGIN_ROOT}/skills/code-lint-fix/scripts/detect-and-fix.sh"
# Check-only mode: report issues without fixing
bash "${CLAUDE_PLUGIN_ROOT}/skills/code-lint-fix/scripts/detect-and-fix.sh" --check-only
The script detects biome, eslint, prettier, ruff, black, clippy, rustfmt, gofmt, golangci-lint, and shellcheck. It reports which linters were found, runs them, and shows modified files. See scripts/detect-and-fix.sh for details.
ruff check --fix . && ruff format .ruff check .Stop and use different approach when:
tools
Scaffold a new ComfyUI custom-node repo (pyproject, CI, release-please, vitest+pytest, JS extension skeleton) in the picker/gesture vein. Use when bootstrapping or init-ing a comfyui node pack.
tools
Orchestrate a ComfyUI node pack from idea to registry: scaffold, create + seed the repo, open the gitops adoption PR. Use when releasing or spinning up a new comfyui node pack.
testing
macOS EndpointSecurity/EDR high CPU & battery drain. Use when Kandji ESF / XProtect pegs a core; trace the exec storm via powermetrics + eslogger.
development
odiff pixel-by-pixel image diffing. Use when comparing screenshots, detecting visual regressions, diffing before/after PNGs, asserting golden images.