lint
БесплатноБез исполняемых скриптовНе проверенLint and format code. Auto-detects ESLint, Biome, Prettier, or language-native formatters and runs them with auto-fix. Reports remaining issues with…
от open-gsd★ 1 399 звёзд на GitHubОб этом скилле
- No arguments: Lint only files changed in the current working tree (
git diff --name-onlyandgit diff --cached --name-only). - A file or directory path: Lint only that specific path (e.g.,
/lint src/utils). --fix: Automatically apply safe fixes. Can be combined with a path (e.g.,/lint src/ --fix).--fixwithout a path: Auto-fix changed files only.
Parse the arguments before proceeding. If --fix is present, set fix mode. If a non-flag argument is present, treat it as the target path.
JavaScript/TypeScript Linters:
Biome — Look for
biome.jsonorbiome.jsoncin the project root.- Lint command:
npx @biomejs/biome check .(or--applywith--fix) - Format command:
npx @biomejs/biome format .(or--writewith--fix) - Biome handles both linting and formatting. No need for a separate formatter if Biome is detected.
- Lint command:
ESLint — Look for
.eslintrc,.eslintrc.*(js, cjs, json, yml, yaml),eslint.config.*(js, mjs, cjs, ts, mts, cts), or an"eslintConfig"key inpackage.json.- Lint command:
npx eslint .(or--fixwith--fix) - Check
package.jsonfor the installed version. ESLint 9+ uses flat config (eslint.config.*).
- Lint command:
JavaScript/TypeScript Formatters (only if Biome was NOT detected):
- Prettier — Look for
.prettierrc,.prettierrc.*,prettier.config.*, or a"prettier"key inpackage.json.- Format check:
npx prettier --check . - Format fix:
npx prettier --write .
- Format check:
Rust:
- rustfmt — Look for
rustfmt.tomlor.rustfmt.toml, orCargo.tomlin the project root.- Format check:
cargo fmt -- --check - Format fix:
cargo fmt - Lint:
cargo clippy(if available)
- Format check:
Go:
- Go tools — Look for
go.modin the project root.- Format check:
gofmt -l . - Format fix:
gofmt -w . - Lint:
golangci-lint run(if installed), otherwisego vet ./...
- Format check:
Python:
Ruff — Look for
ruff.tomlor a[tool.ruff]section inpyproject.toml.- Lint command:
ruff check .(or--fixwith--fix) - Format command:
ruff format .(or--checkwithout--fix)
- Lint command:
Black — Look for a
[tool.black]section inpyproject.toml, orblackin requirements files.- Format check:
black --check . - Format fix:
black .
- Format check:
If no linter or formatter is detected, inform the user and suggest common options for their project type based on the files present.
Step 1: Determine target files
If a path argument was provided, use that path.
If no path argument, get changed files:
git diff --name-only git diff --cached --name-onlyFilter to files that still exist on disk. If no files are changed, inform the user and offer to lint the entire project instead.
Step 2: Run the detected tools
Run the linter and/or formatter against the target files or directory.
- Without
--fix: Run in check/report mode only. Do NOT modify any files. - With
--fix: Run with auto-fix flags enabled.
When running formatters without --fix, show a preview of what would change:
- For Prettier: use
--checkand list files that would change. - For Biome: use
checkwithout--apply. - For Black: use
--check --diffto show the diff preview. - For Ruff: use
--difffor format and standard output for lint. - For rustfmt/gofmt: use
--checkor-lto list files, then show a diff for up to 5 files usingdiff <(command) file.
Step 3: Parse and organize output
Parse the tool output and organize issues:
## Lint Results
### Errors (X issues)
| File | Line | Rule | Message |
|------|------|------|---------|
| ... | ... | ... | ... |
### Warnings (X issues)
| File | Line | Rule | Message |
|------|------|------|---------|
| ... | ... | ... | ... |
### Formatting
- X files would be reformatted
- [list files]
### Summary
- Total issues: X erro
Установить lint в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл lint?
Lint and format code. Auto-detects ESLint, Biome, Prettier, or language-native formatters and runs them with auto-fix. Reports remaining issues with actionable suggestions.
Как установить скилл lint?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл lint запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic