Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

run-linters

БесплатноБез исполняемых скриптовНе проверен

Run the linters (clippy, rustfmt, Markdown, links, YAML, TOML, cspell, shellcheck) with the linter binary. Use when linting, fixing formatting, or checking…

torrustот torrust★ 539 звёзд на GitHub

Об этом скилле

Run Linters

Quick Reference

Run All Linters

linter all

Always run linter all before every commit. It must exit with code 0.

Run a Single Linter

linter markdown     # Markdown (markdownlint)
linter lychee       # Local Markdown file and fragment links
linter yaml         # YAML (yamllint)
linter toml         # TOML (taplo)
linter cspell       # Spell checker (cspell)
linter clippy       # Rust code analysis (clippy)
linter rustfmt      # Rust formatting (rustfmt)
linter shellcheck   # Shell scripts (shellcheck)

Common Workflows

Before Any Commit

linter all          # Must pass with exit code 0

Debug a Failing Full Run

# Identify which linter is failing
linter markdown
linter lychee
linter yaml
linter toml
linter cspell
linter clippy
linter rustfmt
linter shellcheck

CI-Only or Newly Introduced Linter Failure

When CI reports a linter failure that does not reproduce locally, first identify the failed workflow job, matrix value, and command from its log. Refresh the installed Rust toolchains and record their versions before classifying the warning or changing source:

rustup update
rustup show active-toolchain
rustc --version
rustc +nightly --version
linter all

If the failure reproduces after the update, fix or document the warning using the current diagnostic. For Clippy warnings from macro expansion or another tool limitation, follow the exception decision framework and record the toolchain version and diagnostic origin in the issue evidence. If it still does not reproduce, investigate the CI job environment before adding an unverified suppression.

Fix Clippy Warnings

When clippy warnings appear, always try the suggested fix first before adding allowances:

# Run clippy to see specific warnings
linter clippy

# Apply suggested fixes from clippy output
# See: .claude/skills/fix-clippy-warnings/SKILL.md

Related Skills

During Development (Rust only)

linter clippy       # Check logic and code quality
linter rustfmt      # Check formatting

Fixing Common Issues

Rust Formatting Errors (rustfmt)

cargo fmt           # Auto-fix all Rust source files

Formatting rules from rustfmt.toml:

  • max_width = 130
  • group_imports = "StdExternalCrate"
  • imports_granularity = "Module"

Rust Clippy Errors

Warnings are errors (configured as -D warnings in .cargo/config.toml). Fix the underlying issue — do not #[allow(...)] unless truly unavoidable.

Example: unused variable → use _var prefix or actually use the value.

Markdown Errors (markdownlint)

Common issues:

  • Trailing whitespace
  • Missing blank line before headings
  • Incorrect heading levels
  • Lines exceeding 120 characters

Configuration in .markdownlint.json.

YAML Errors (yamllint)

Common issues:

  • Trailing spaces
  • Inconsistent indentation (2 spaces expected)
  • Missing newline at end of file

Configuration in .yamllint-ci.yml.

TOML Errors (taplo)

taplo fmt **/*.toml   # Auto-fix TOML formatting

Spell Check Errors (cspell)

For legitimate technical terms not in dictionaries, add them to project-words.txt (one per line) and run ./contrib/dev-tools/git/format-project-words.sh. The pre-commit hook runs the formatter automatically and requests restaging if it changes the dictionary.

Shell Script Errors (shellcheck)

Fix the reported issue in the shell script. Common: use instead of [ ], quote variables, avoid eval.

Linter Details

See references/linters.md for detailed documentation on each linter.

Configuration

The linter binary has no configuration file of its own. It is a thin wrapper that delegates to each tool, which reads its own config file from the project root:

File Used by
.markdownlint.json markdownlint
.yamllint-ci.yml yamllint
.taplo.toml taplo
cspell.json cspell
lychee.toml lychee
rustfmt.toml rustfmt

Note: Files listed in .gitignore are not automatically excluded from linting. Each tool has its own ignore mechanism (e.g. .markdownlintignore for markdownlint, and the ignorePaths list in cspell.json for cspell). Add .gitignore paths to the appropriate per-linter ignore file when needed.

Полный SKILL.md на GitHub

Установить run-linters в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/linters.md

FAQ

Что делает скилл run-linters?

Run the linters (clippy, rustfmt, Markdown, links, YAML, TOML, cspell, shellcheck) with the linter binary. Use when linting, fixing formatting, or checking one tool's findings.

Как установить скилл run-linters?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл run-linters запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить run-linters с