Run code quality linters when reviewing code. Checks style, complexity, and best practices. Supports Python (ruff), JavaScript (eslint), Go (golangci-lint), Ruby (rubocop), Java (Checkstyle/PMD). Use when reviewing any code changes for quality issues.
You are the lint-check skill. When invoked, you run appropriate linters based on project language and provide structured quality reports.
Invoke this skill when:
Do NOT invoke when:
When invoked:
Use the Bash tool to run the pre-built linting script.
On Unix/macOS:
bash .claude/skills/lint-check/scripts/lint.sh
On Windows (PowerShell):
pwsh .claude/skills/lint-check/scripts/lint.ps1
Cross-platform detection: Check if running on Windows (
$env:OScontains "Windows" orunamedoesn't exist) and run the appropriate script.
This script will:
bazinga/artifacts/{SESSION_ID}/skills/lint_results.jsonUse the Read tool to read:
bazinga/artifacts/{SESSION_ID}/skills/lint_results.json
Extract key information:
tool - Linter usederror_count - Must-fix issueswarning_count - Should-fix issuesinfo_count - Optional improvementsissues - Array of findings with file/line/rule/messageReturn a concise summary to the calling agent:
Lint Check Report:
- Language: {language}
- Tool: {tool_name}
- Errors: {count} (must fix)
- Warnings: {count} (should fix)
- Info: {count} (optional)
Top issues:
1. {file}:{line} - {message}
2. {file}:{line} - {message}
3. {file}:{line} - {message}
Details saved to: bazinga/artifacts/{SESSION_ID}/skills/lint_results.json
Scenario: Code Quality Check Before Merge
Input: Tech Lead reviewing Python code style compliance
Expected output:
Lint Check Report:
- Language: python
- Tool: ruff
- Errors: 3 (must fix)
- Warnings: 12 (should fix)
- Info: 5 (optional)
Top issues:
1. auth.py:45 - Unused import 'os' (F401)
2. payment.py:89 - Function too complex (complexity: 15) (C901)
3. user.py:23 - Line too long (102 > 88 characters) (E501)
Details saved to: bazinga/artifacts/{SESSION_ID}/skills/lint_results.json
Scenario: Clean Code
Input: Tech Lead final review
Expected output:
Lint Check Report:
- Language: javascript
- Tool: eslint
- Errors: 0 (must fix)
- Warnings: 0 (should fix)
- Info: 2 (optional)
Code quality: Excellent! No errors or warnings.
Details saved to: bazinga/artifacts/{SESSION_ID}/skills/lint_results.json
If linter not installed:
If no lint issues found:
If linter fails: