Command Palette

Search for a command to run...

Назад к скиллам
скилл № 28838

Lint

Lint and format checks across changed ecosystems without a full build, honoring config-file opt-in; --fix formats only, --code-fix applies semantic lint…

БесплатноБез исполняемых скриптов
melodic-softwareот melodic-software★ 34 звезды на GitHub

Установить Lint в Claude Code и Claude Desktop

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

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

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

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

Lint

Arguments. [ecosystem] [--fix|--code-fix] [--yes] [--dry-run] [--all-files] [--unattended]. e.g., /toolchain:lint, /toolchain:lint dotnet, /toolchain:lint --fix, /toolchain:lint --code-fix --yes, /toolchain:lint all, /toolchain:lint --unattended

Repository context. Gather first

Run each command below as its own Bash call, all sent together in one message (worktree isolation). Keep any bound in the command's own pipe (output limits). Unless this section says otherwise, treat a failure (not a repository, git unavailable) as an unknown value and carry on. Keep these as body calls, never ## Pre-computed context lines (gather-block convention).

  • Working tree status (empty = clean), git status --porcelain | head -20
  • Current branch, git branch --show-current

Purpose

Run lint and format checks across affected ecosystems in one command. Fills the gap between "no check" and /verification:confirm (if enabled) (build+test+lint):

Skill What it runs Speed
/toolchain:lint Lint + format only Fast (~5-15s)
/toolchain:check Build + test + lint Medium (~30-60s)
/verification:confirm (if enabled) Build + test + lint + outcome verification Medium+

Use /toolchain:lint for quick feedback during development. Use /verification:confirm (if enabled) before committing.

The command surface is resolved, not hardcoded. /toolchain:lint resolves each ecosystem's lint-cmd/check-cmd/fix-cmd/code-fix-cmd through the shared three-rung ladder in ${CLAUDE_PLUGIN_ROOT}/reference/resolution-ladder.md. Shared with /toolchain:check: the consuming repo's tracked docs/conventions/ecosystems/<ecosystem>.yaml (or the legacy .claude/ecosystems/ file for a name absent there) is authoritative when present, then inference from its build files, then asking. The plugin ships no default command: a key nothing resolves is reported unresolved and runs nothing.

The secret scan is lint's own. It runs from this skill, not from a record, under its own opt-in, in attended and unattended runs alike: see Secret scan. Any other scan, a workflow-security scan included, runs only from a command the ladder resolves.

Two mutators, two gates. Format-only and code-changing autofixes are separate keys and separate flags. Bare --fix must never run semantic lint autofixes (ruff check --fix, golangci-lint --fix, biome check --write, …).

Arguments

$ARGUMENTS, optional ecosystem filter and/or mode flags.

Ecosystem filters (if omitted, auto-detect from changed files):

/toolchain:lint accepts any covered ecosystem id, meaning one recorded, stated or inferred this run (resolution ladder "Covered ecosystems"), each resolved per the ladder. A consumer record such as docs/conventions/ecosystems/rust.yaml makes rust a filter. Aliases: py → python; ts/node → typescript; shell → bash; ps/pwsh → powershell; md → markdown; golang → go; xc/text → cross-cutting. Literal all runs every applicable ecosystem.

Mode flags:

Flag Effect
(default) Check mode. Report violations, no file modifications
--fix or fix Format-only fix mode. Run each ecosystem's non-null fix-cmd (whitespace / import layout / style). Does not run code-fix-cmd.
--code-fix Code-changing fix mode. Run each ecosystem's non-null code-fix-cmd behind the confirmation gate. Mutually exclusive with --fix in one invocation; if both appear, prefer --code-fix and note that --fix was ignored.
--yes / -y Skip the interactive confirmation prompt for --code-fix. Required for non-interactive / headless --code-fix applies. Inert for check mode and for --fix.
--dry-run With --code-fix: emit the plan (commands + scoped files) and stop. Mutate nothing. Implies the plan half of the confirmation gate.
--all-files With --code-fix: allow applying when the scoped file count exceeds the file-cap (default 40). Without it, over-cap runs stop after the plan.
--unattended Marks the run unattended. A run without it is still unattended when the ladder's "Run kind" says so, including one that cannot tell whether a person i
Полный SKILL.md на GitHub

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

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

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

FAQ

Что делает скилл Lint?

Lint and format checks across changed ecosystems without a full build, honoring config-file opt-in; --fix formats only, --code-fix applies semantic lint autofixes behind confirmation. Use when: 'lint this', 'format check', 'run prettier/ruff/eslint', or quick lint/format feedback. Not for build and test: /toolchain:check.

Как установить скилл Lint?

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

Скилл Lint запускает скрипты?

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

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

Сравнить Lint с