Linting Skill
Automatically detects your project type and runs the appropriate linter.
Supported Project Types
- •Python: Uses
ruff check,flake8, orpylintbased on availability - •JavaScript/Node/React: Uses
npm run lint,eslint, or scripts in package.json - •Multi-language: Runs linting for all detected project types
Usage
Simply ask Claude to lint your project:
- •"Lint this project"
- •"Check for code style issues"
- •"Run linters"
- •"Check code quality"
Or use the slash command: /lint
How It Works
- •
Detects project type by scanning for configuration files:
- •Python:
pyproject.toml,setup.py,requirements.txt,.pyfiles - •JavaScript:
package.json
- •Python:
- •
Identifies available linters in each project
- •
Runs linters and reports results with actionable feedback
Linting Strategy
Python Projects (Priority Order)
- •ruff - Modern, fast linter (preferred for data science work)
- •flake8 - Classic PEP 8 style checker
- •pylint - Comprehensive static analyzer
Node.js/React Projects (Priority Order)
- •npm run lint - Uses project's configured lint script
- •eslint - Standard JavaScript/React linter
- •Provides setup instructions if no linter found
Advanced Usage
For more details on linting best practices and configuration, see reference.md.
Troubleshooting
- •No linters found: Skill provides installation instructions for your project type
- •Python linters: Install with
uv pip install ruff(recommended) - •Node linters: Install with
npm install --save-dev eslint