Skip to main content

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.

ProductivityOfficialCertifiedAI reviewed Jul 21, 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..

v2.0.17 installs

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 linter
Or get the file:
Browse all CLI commands →
Manual setup by platform

Claude Code

~/.claude/skills/linter/SKILL.md

Setup guide →

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
0Save

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.json present → 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:

  1. Install:
    npm install --save-dev eslint @eslint/js typescript-eslint globals
    
    Add framework plugins:
    • React: eslint-plugin-react, eslint-plugin-react-hooks
    • Next.js: @next/eslint-plugin-next
    • Vue: eslint-plugin-vue
  2. 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/'] }
    );
    
  3. Add lint script to package.json: "lint": "eslint ."

If Biome is preferred or requested:

  1. Install: npm install --save-dev --exact @biomejs/biome
  2. 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
      }
    }
    
  3. 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):

  1. Add to pyproject.toml:
    [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"
    
    If --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:

  1. Create .golangci.yml:
    linters:
      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
    
    If --strict: add exhaustive, 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:

  1. Install: gem install rubocop (or add to Gemfile)
  2. Create .rubocop.yml with 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):

  1. Install: npm install --save-dev prettier
  2. Create .prettierrc:
    {
      "semi": true,
      "singleQuote": true,
      "trailingComma": "all",
      "printWidth": 100,
      "tabWidth": 2
    }
    
  3. Create .prettierignore:
    dist
    node_modules
    coverage
    pnpm-lock.yaml
    
  4. 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:

  1. 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 .
  2. Count remaining (non-auto-fixable) violations:

    • Run lint again without --fix
    • Report count by rule/category
  3. 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:

  1. Verify generated files exist and are syntactically valid.
  2. Run any available validation (lint, type-check, dry-run).
  3. 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


  1. Run /git-hooks to enforce lint on every commit
  2. Run the linter to see remaining violations: npm run lint / ruff check .
  3. Add lint step to CI: run /github-actions to generate CI workflow
  4. 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.md in 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-vars removing 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)
This skill doesn’t include stateful context yet, instructions only. Learn about stateful skills.

Security

Loading security scan...

Reviews (0)

Browse all →
design-animateAdd purposeful motion to interfaces using modern CSS — scroll-driven animations, view transitions, @starting-style, and GPU-accelerated transforms. Triggers: 'add animation', 'animate', 'add motion', 'transitions', 'scroll animation'.79 installsdesign-auditComprehensive autonomous design quality audit across accessibility (WCAG 2.2), performance, theming, responsive/adaptive design, and anti-pattern detection. Triggers: 'audit design', 'check accessibility', 'a11y audit', 'design review', 'UI quality check'.62 installsdiagramGenerate Mermaid architecture diagrams from your codebase. Produces C4 context and container diagrams, sequence diagrams for key flows, ER diagrams from database schemas, and module dependency graphs. Use when you need architecture diagrams, system diagrams, database ERD, sequence diagrams, dependency visualization, or C4 model diagrams.57 installssecureFull-stack security posture assessment with 0-100 risk scoring. Scans dependency vulnerabilities (npm audit, pip-audit, cargo audit, govulncheck), dangerous code patterns (SQL injection, eval, command injection, ReDoS, innerHTML, XSS vectors), authentication gaps (missing auth middleware.57 installsdesign-polishFinal autonomous quality pass before shipping. Fixes alignment, spacing, consistency, typography hierarchy, color harmony, motion timing, and every micro-detail that separates good from great..56 installsresponsiveAudit and fix responsive design issues across all breakpoints. Scans for fixed widths that cause mobile overflow, missing media query variants, non-responsive images, undersized touch targets below 48px, unreadable typography, and horizontal scroll violations..50 installs

More from Skills Hub

View source →
security-reviewSecurity audit and vulnerability assessment for any codebase. Scans for authentication bypasses, missing auth middleware, broken JWT validation (algorithm confusion, weak secrets, missing expiry), OAuth state and PKCE flaws, IDOR and horizontal privilege escalation.198 installsunit-testGenerate comprehensive unit tests with edge cases, error paths, and boundary values. Triggers: you need to add unit tests, increase code coverage, test edge cases, or verify error handling paths.167 installsweb-gameScaffolds a browser-based game with Phaser 3, PixiJS, or Three.js including game loop, asset pipeline, responsive canvas, input handling, audio, save/load, and deployment to itch.io or web. Triggers: on: "web game", "browser game", "html5 game", "phaser game", "pixi game".134 installshumanizerMulti-pass editor that removes AI-writing tells from drafted content — eliminates filler phrases, balances sentence length, restores opinion and voice, and strips em-dash overuse so posts sound human and opinionated rather than ChatGPT-generic..133 installsflutterBuilds Flutter applications from videos, screenshots, descriptions, or app clone requests. Triggers on: flutter app, build a mobile app, replicate this app in Flutter, build from video, build from screenshots, clone this app, build an app, make an app like, recreate this UI.129 installsdesign-to-codeTurn a design into production-quality frontend code: extract a design system with tokens and components, make layouts responsive across breakpoints, add dark mode with WCAG-compliant theming, then run a UX audit to validate everything..126 installs

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.