This skill may not reflect the latest upstream change
Next.js Releases update on 2026-11-09 may affect this skill Last checked Nov 26, 2026.
linter
Configure linting, formatting, and editor integration for any stack. Sets up ESLint 9 or Biome for JS/TS, Ruff for Python, golangci-lint for Go, Clippy for Rust, RuboCop for Ruby, or dart analyze for Flutter..
Install this skill
No account required. Pick your tool, or use the command that detects it for you.
Run in your terminal. It detects your AI tool.
npx @skills-hub-ai/cli install linterManual setup by platform
Claude Code
~/.claude/skills/linter/SKILL.md
Signing
SignedSLSA L2- Signed by
- skills-hub.ai distributor
- Method
- Distributor-signed by skills-hub.aiSigned with the skills-hub.ai Ed25519 distributor key over this exact slug, version and content. Check it with `npx @skills-hub-ai/cli verify`.
- Key
- skills-hub-ed25519-2026-11
- Signed
Instructions
You are in AUTONOMOUS MODE. Do NOT ask questions. Do NOT pause for confirmation.
Execute every phase below in sequence, making decisions based on what you find.
PHASE 0 — INPUT
$ARGUMENTS may contain:
--tool=TOOL— force a specific linter:eslint,biome,ruff,golangci-lint,rubocop,clippy--fix— auto-fix all fixable violations after setup (default: setup only)--strict— enable stricter rule sets (recommended for new projects)--no-format— skip formatter setup, configure linter only--migrate— migrate from one tool to another (e.g., ESLint → Biome, flake8 → Ruff)
If no arguments, auto-detect the stack and set up the appropriate tools.
PHASE 1 — STACK DETECTION
Detect the language and existing lint/format tooling:
JavaScript / TypeScript:
- Existing:
.eslintrc.*,eslint.config.*(flat config),biome.json,biome.jsonc - Formatter:
.prettierrc*,.prettierignore,biome.json - Framework: React (
jsx), Vue (.vue), Svelte (.svelte), Angular - TypeScript:
tsconfig.jsonpresent → enable type-aware lint rules
Python:
- Existing:
ruff.toml,pyproject.toml [tool.ruff],.flake8,setup.cfg [flake8],pylintrc - Formatter:
pyproject.toml [tool.black],ruff.toml [format] - Type checker:
mypy.ini,pyproject.toml [tool.mypy],pyrightconfig.json
Go:
- Existing:
.golangci.yml,.golangci.yaml - Formatter:
gofmt/goimports(built-in)
Rust:
- Existing:
clippy.toml,.clippy.toml - Formatter:
rustfmt.toml,.rustfmt.toml
Ruby:
- Existing:
.rubocop.yml - Formatter: same tool (RuboCop handles both)
Flutter / Dart:
- Existing:
analysis_options.yaml - Formatter:
dart format(built-in)
Record: language, existing tools, missing tools, framework-specific needs.
PHASE 2 — CONFIGURE LINTER
2.1 — JavaScript / TypeScript:
If no linter exists OR --migrate from legacy ESLint:
Prefer ESLint 9 flat config for new setups:
- Install:
Add framework plugins:npm install --save-dev eslint @eslint/js typescript-eslint globals- React:
eslint-plugin-react,eslint-plugin-react-hooks - Next.js:
@next/eslint-plugin-next - Vue:
eslint-plugin-vue
- React:
- Create
eslint.config.js:import js from '@eslint/js'; import tseslint from 'typescript-eslint'; import globals from 'globals'; export default tseslint.config( js.configs.recommended, ...tseslint.configs.recommended, { languageOptions: { globals: { ...globals.node } }, rules: { '@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }], '@typescript-eslint/no-explicit-any': 'warn', } }, { ignores: ['dist/', 'node_modules/', 'coverage/'] } ); - Add lint script to
package.json:"lint": "eslint ."
If Biome is preferred or requested:
- Install:
npm install --save-dev --exact @biomejs/biome - Create
biome.json:{ "$schema": "https://biomejs.dev/schemas/1.9.0/schema.json", "organizeImports": { "enabled": true }, "linter": { "enabled": true, "rules": { "recommended": true } }, "formatter": { "enabled": true, "indentStyle": "space", "indentWidth": 2 } } - Add scripts:
"lint": "biome check .","lint:fix": "biome check --write ."
If --strict: enable tseslint.configs.strictTypeChecked or Biome "all" rules with selected disables.
2.2 — Python:
Prefer Ruff (replaces flake8, isort, black, pyflakes, pycodestyle):
- Add to
pyproject.toml:
If[tool.ruff] target-version = "py312" line-length = 88 [tool.ruff.lint] select = ["E", "F", "W", "I", "N", "UP", "B", "A", "SIM", "TCH"] ignore = [] [tool.ruff.format] quote-style = "double"--strict: add"S"(bandit security),"D"(docstrings),"ANN"(type annotations).
If migrating from flake8/pylint/isort:
- Read existing config, map rules to Ruff equivalents
- Remove old tool configs and dependencies
2.3 — Go:
Configure golangci-lint:
- Create
.golangci.yml:
Iflinters: enable: - errcheck - gosimple - govet - ineffassign - staticcheck - unused - gocritic - gofumpt - misspell - revive linters-settings: gocritic: enabled-tags: [diagnostic, style, performance] gofumpt: extra-rules: true issues: max-issues-per-linter: 0 max-same-issues: 0--strict: addexhaustive,nilnil,wrapcheck,errorlint.
2.4 — Rust:
Clippy is built-in. Create clippy.toml for custom config if needed:
cognitive-complexity-threshold = 25
Add to CI: cargo clippy -- -D warnings
Create rustfmt.toml:
edition = "2021"
max_width = 100
use_field_init_shorthand = true
2.5 — Ruby:
Configure RuboCop:
- Install:
gem install rubocop(or add to Gemfile) - Create
.rubocop.ymlwith project-appropriate rules
2.6 — Flutter / Dart:
Configure or update analysis_options.yaml:
include: package:flutter_lints/flutter.yaml
linter:
rules:
prefer_const_constructors: true
prefer_const_declarations: true
avoid_print: true
prefer_single_quotes: true
PHASE 3 — CONFIGURE FORMATTER
Skip if --no-format.
JavaScript / TypeScript (if not using Biome):
- Install:
npm install --save-dev prettier - Create
.prettierrc:{ "semi": true, "singleQuote": true, "trailingComma": "all", "printWidth": 100, "tabWidth": 2 } - Create
.prettierignore:dist node_modules coverage pnpm-lock.yaml - Add script:
"format": "prettier --write .", "format:check": "prettier --check ."
Python (if not using Ruff format):
- Black is included if Ruff is not used
- Ruff format handles formatting when Ruff is the linter
Go: gofmt / goimports — no config needed, built into Go toolchain.
Rust: rustfmt — configured via rustfmt.toml in Phase 2.
Create .editorconfig if it does not exist:
root = true
[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
[*.{py,rs}]
indent_size = 4
[*.go]
indent_style = tab
[Makefile]
indent_style = tab
PHASE 4 — EDITOR INTEGRATION
Create or update .vscode/settings.json (merge with existing):
{
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll": "explicit",
"source.organizeImports": "explicit"
}
}
Add language-specific settings:
- ESLint:
"editor.defaultFormatter": "dbaeumer.vscode-eslint"for JS/TS files - Biome:
"editor.defaultFormatter": "biomejs.biome"for JS/TS files - Prettier:
"editor.defaultFormatter": "esbenp.prettier-vscode"for JS/TS/JSON/MD - Ruff:
"[python]": { "editor.defaultFormatter": "charliermarsh.ruff" } - Go:
"[go]": { "editor.defaultFormatter": "golang.go" } - Rust:
"[rust]": { "editor.defaultFormatter": "rust-lang.rust-analyzer" }
Create or update .vscode/extensions.json with recommended extensions:
{
"recommendations": [
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"EditorConfig.EditorConfig"
]
}
PHASE 5 — FIX EXISTING VIOLATIONS
If --fix was passed:
-
Run the auto-fixer:
- ESLint:
npx eslint . --fix - Biome:
npx biome check --write . - Prettier:
npx prettier --write . - Ruff:
ruff check --fix . && ruff format . - golangci-lint:
golangci-lint run --fix - Clippy:
cargo clippy --fix --allow-dirty - dart:
dart fix --apply && dart format .
- ESLint:
-
Count remaining (non-auto-fixable) violations:
- Run lint again without
--fix - Report count by rule/category
- Run lint again without
-
Commit auto-fixes:
style: auto-fix lint and format violations
If --fix was NOT passed, still report the violation count so the user knows the current state.
SELF-HEALING VALIDATION (max 2 iterations)
After completing, validate the output was produced correctly:
- Verify generated files exist and are syntactically valid.
- Run any available validation (lint, type-check, dry-run).
- If the skill produces configuration, verify it parses without errors.
IF VALIDATION FAILS:
- Diagnose from error context and re-generate the failing artifact
- Repeat up to 2 iterations
OUTPUT
Print a summary:
## Linter Setup Complete
### Stack: {language} / {framework}
### Tools Configured
- Linter: {ESLint 9 | Biome | Ruff | golangci-lint | Clippy | RuboCop}
- Formatter: {Prettier | Biome | Ruff | gofmt | rustfmt}
- Editor: VS Code format-on-save enabled
### Current State
- Auto-fixable violations: {N} (fixed with --fix)
- Remaining violations: {N} (require manual review)
- Clean files: {N}/{total}
### Files Created/Modified
- {list of files}
NEXT STEPS
- Run
/git-hooksto enforce lint on every commit - Run the linter to see remaining violations:
npm run lint/ruff check . - Add lint step to CI: run
/github-actionsto generate CI workflow - Review and adjust rule severity in the config file as needed
SELF-EVOLUTION TELEMETRY
After producing output, record execution metadata for the /evolve pipeline.
Check if a project memory directory exists:
- Look for the project path in
~/.claude/projects/ - If found, append to
skill-telemetry.mdin that memory directory
Entry format:
### /linter — {{YYYY-MM-DD}}
- Outcome: {{SUCCESS | PARTIAL | FAILED}}
- Self-healed: {{yes — what was healed | no}}
- Iterations used: {{N}} / {{N max}}
- Bottleneck: {{phase that struggled or "none"}}
- Suggestion: {{one-line improvement idea for /evolve, or "none"}}
Only log if the memory directory exists. Skip silently if not found.
Keep entries concise — /evolve will parse these for skill improvement signals.
DO NOT
- Do NOT install both ESLint and Biome — they serve the same purpose, pick one
- Do NOT install both Prettier and Biome — Biome includes formatting
- Do NOT install deprecated tools (TSLint, flake8 for new projects, prettier-eslint)
- Do NOT use ESLint legacy config format (
.eslintrc.json) for new setups — use flat config (eslint.config.js) - Do NOT enable every available rule — start with recommended and add incrementally
- Do NOT auto-fix violations that change semantics (e.g.,
no-unused-varsremoving code) - Do NOT modify files outside the project root
- Do NOT overwrite existing lint configs without reading them first and preserving custom rules
- Do NOT configure formatters with conflicting settings (e.g., Prettier tabs + EditorConfig spaces)
Security
Reviews (0)
Related skills
Browse all →More from Skills Hub
View source →More Productivity skills
Browse category →Frequently asked questions about linter
What does the linter skill do?
Configure linting, formatting, and editor integration for any stack. Sets up ESLint 9 or Biome for JS/TS, Ruff for Python, golangci-lint for Go, Clippy for Rust, RuboCop for Ruby, or dart analyze for Flutter.. It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.
How do I install the linter skill?
Run `npx @skills-hub-ai/cli install linter` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/linter/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.
Which AI tools does linter work with?
linter runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.
Is the linter skill free?
Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.
How do I use linter after installing it?
In Claude Code, type `/linter` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.
Can I share the linter skill with my team?
Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.