mcpField
L
lint

lint

github.com/helderbertoTesting & quality1955 installsUpdated 4d ago
Repository

About lint

A project linting skill that detects the repository’s existing linter or formatter, runs its check, and reports errors with file and line references. It avoids assuming a toolchain and only applies fixes when requested.

Key features

  1. 01Detects project-defined lint tasks
  2. 02Falls back to ecosystem tools
  3. 03Runs lint checks
  4. 04Reports errors by file and line
  5. 05Applies fixes only on request

Use cases

  1. 01Check code style before a change is merged
  2. 02Identify lint errors in an unfamiliar repository
  3. 03Fix lint issues when explicitly requested

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/helderberto/agent-skills --skill lint

After installing, type/lintin Claude Code to confirm it loaded.

Details

From the project README

Linting

Run the project's linter/formatter — detect it, don't assume a toolchain.

Detection

Prefer a task the project already defines, then fall back to the ecosystem tool:

EcosystemCheckFix
Nodepackage.json lint (eslint/biome)lint:fix
Pythonruff check / flake8ruff check --fix
Gogolangci-lint run / gofmt -lgofmt -w
Rustcargo clippy / cargo fmt --checkcargo fmt
elseMakefile / CI lint target—

Workflow

  1. Detect the linter (project task first, then ecosystem default)
  2. Run the check command
  3. For fixes: run the fix variant (only when requested)
  4. Report file:line references for all errors

Rules

  • Prefer the project's defined task over a raw tool call
  • Never invent a linter the project doesn't use

Error Handling

  • If no linter or task found → report which config/task is expected and stop
  • If the linter exits with parse errors → report each file-level parse error separately with file:line
  • If the linter config is missing → report which config is expected and stop

Comments

Markdown supported