configure-linting
БесплатноБез исполняемых скриптовНе проверенSet up linters (Biome, Ruff, Clippy) and wire them into pre-commit and CI. Use when a repo has no linter config, migrating ESLint to Biome, or auditing lint…
от laurigates★ 61 звезда на GitHubОб этом скилле
/configure:linting
Check and configure linting tools against modern best practices.
When to Use This Skill
| Use this skill when... | Use another approach when... |
|---|---|
| Setting up modern linting (Biome, Ruff, Clippy) | Just running linter (use /code:lint skill) |
| Migrating from ESLint/Prettier to Biome | Linters already properly configured |
| Validating linter configuration | Fixing specific lint errors (run linter and fix) |
| Ensuring language-specific best practices | Simple script with no linting needs |
| Configuring pre-commit lint integration | Debugging linter issues (check linter logs) |
Context
- Project root: !
pwd - Biome config: !
find . -maxdepth 1 -name 'biome.json' -o -name 'biome.jsonc' - Ruff config: !
find . -maxdepth 1 -name 'pyproject.toml' -exec grep -l 'tool.ruff' {} + - Clippy config: !
find . -maxdepth 1 -name 'Cargo.toml' -exec grep -l 'lints.clippy' {} + - Legacy linters: !
find . -maxdepth 1 \( -name '.eslintrc*' -o -name '.flake8' -o -name '.pylintrc' \) - Package files: !
find . -maxdepth 1 \( -name 'package.json' -o -name 'pyproject.toml' -o -name 'Cargo.toml' \) - Pre-commit config: !
find . -maxdepth 1 -name '.pre-commit-config.yaml' - CI workflows: !
find . -path '*/.github/workflows/*' -maxdepth 3 -name '*.yml'
Parameters
Parse from $ARGUMENTS:
--check-only: Report linting compliance status without modifications--fix: Apply all fixes automatically without prompting--linter <biome|ruff|clippy>: Override auto-detection and force specific linter
Modern linting preferences:
- JavaScript/TypeScript: Biome (unified linter + formatter, fast)
- Python: Ruff (replaces flake8, isort, pyupgrade)
- Rust: Clippy with workspace lints
Execution
Execute this linting configuration check:
Step 1: Detect project language and existing linters
Read the values in Context and determine:
| Indicator | Language | Detected Linter |
|---|---|---|
biome.json |
JavaScript/TypeScript | Biome |
pyproject.toml [tool.ruff] |
Python | Ruff |
.flake8 |
Python | Flake8 (legacy) |
Cargo.toml [lints.clippy] |
Rust | Clippy |
If --linter flag is set, use that linter regardless of detection.
Step 2: Verify latest tool versions
Use WebSearch or WebFetch to check current versions:
- Biome: Check biomejs.dev or GitHub releases
- Ruff: Check docs.astral.sh/ruff or GitHub releases
- Clippy: Check Rust releases
Step 3: Analyze current linter configuration
For each detected linter, check configuration completeness:
Biome (for JS/TS):
- Config file exists with linter rules
- Formatter configured
- File patterns and ignores set
- Recommended rules enabled
Ruff (for Python):
pyproject.tomlhas[tool.ruff]section- Rules selected (E, F, I, N, etc.)
- Line length and target Python version set
Clippy:
Cargo.tomlhas[lints.clippy]section- Pedantic lints enabled
- Workspace-level lints if applicable
Step 4: Generate compliance report
Print a compliance report covering:
- Config file status (exists / missing)
- Linter enabled status
- Rules configuration (recommended / minimal / missing)
- Formatter integration
- Ignore patterns
- Lint scripts in package.json / Makefile
- Pre-commit hook integration
- CI/CD check integration
End with overall issue count and recommendations.
If --check-only is set, stop here.
Step 5: Configure linting (if --fix or user confirms)
Apply configuration using templates from REFERENCE.md.
For Biome (JS/TS):
- Install Biome as dev dependency
- Create
biome.jsonwith recommended rules - Add npm scripts (
lint,lint:fix,format,check)
For Ruff (Python):
- Install Ruff via
uv add --group dev ruff - Add
[tool.ruff]section topyproject.toml - Configure rules, line length, target version
For Clippy (Rust):
- Add
[lints.clippy]section toCargo.toml - Enable pedantic lints
- Configure workspace-level lints if applicable
If legacy linters are detected (ESLint, Flake8, etc.), offer migration. See migration guides in REFERENCE.md.
Step 6: Configure pre-commit and CI integration
- Add linter pre-commit hook to
.pre-commit-config.yaml - Add linter CI check to GitHub Actions workflow
- Use templates from REFERENCE.md
Step 7: Update standards tracking
Update .project-standards.yaml:
components:
linting: "2025.1"
linting_tool: "[biome|ruff|clippy]"
linting_pre_commit: true
linting_ci: true
Step 8: Print final compliance report
Print a summary of all changes applied, scripts added, integrations configured, and next steps for the user.
For detailed c
Установить configure-linting в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
GlobGrepReadWriteEditBash(find *)Bash(bun add *)Bash(bun remove *)Bash(npm install *)Bash(uv add *)Bash(uv remove *)Bash(cargo clippy *)Bash(jq *)Bash(grep *)AskUserQuestionTodoWriteWebSearchWebFetchВложенные файлы
FAQ
Что делает скилл configure-linting?
Set up linters (Biome, Ruff, Clippy) and wire them into pre-commit and CI. Use when a repo has no linter config, migrating ESLint to Biome, or auditing lint rules.
Как установить скилл configure-linting?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл configure-linting запускает скрипты?
Нет, скилл состоит только из инструкций (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