lint
Detects the repository's formatters and linters from mise.toml, the task runner and config files, runs them and fixes the findings without disabling a rule to pass. Use when code needs linting or form
SKILL.mdskills/quality/lint/SKILL.md
GitHubLint
Run the repository's own formatters and linters and fix what they report.
When to use
- Before committing or opening a pull request.
- When a lint or format job fails in CI.
Steps
- Detect the tooling from
mise.tomlfirst, then the task runner, then config files. Prefer thelint:<tool>task targets over calling a tool directly when they exist. - Match the tool to the file type:
golangci-lint fmt(gofumpt),go vet,golangci-lintfor Go;ruff check,ruff formatfor Python;eslintoroxlintfor JavaScript and TypeScript;shellcheck,shfmtfor shell;yamllintfor YAML;markdownlintfor Markdown;actionlintfor GitHub Actions;tofu fmt,tflint,trivy configfor OpenTofu;ansible-lintfor Ansible;helm lintfor Helm charts;hadolintfor container images. - Run the formatter before the linter. Formatting noise mixed into a lint fix makes the diff unreadable.
- Fix findings at the cause. Never disable a rule repository wide to silence one finding.
- A justified exception is inline, narrow and names the rule and the reason. No blanket ignore file.
- Keep configuration changes in a commit separate from the fixes they enable.
- If a tool is missing locally, name it and the install command. Never skip the check silently.
- Report what ran, what was fixed and what remains, with the reason.
A linter enforces a community default and gets configured, never reimplemented. A rule that
only this repository cares about belongs to conformance-checks, not a new linter config.
Guardrails
- Tooling detected from the repository. No new tool introduced without asking.
- Formatter and linter both run. Formatting committed separately from fixes.
- Findings fixed at the cause. Exceptions narrow, inline and justified.
- Missing tools reported, never skipped silently.
- Final result reported honestly, including what still fails.
References
conformance-checksfor rules no linter knows.