lint
How to lint and typecheck in this project. Load when implementing or verifying code.
When & Why to Use This Skill
This Claude skill automates project-specific linting and typechecking to ensure code quality and consistency. By integrating standard tools like ESLint, TypeScript, and Ruff, it helps developers identify and fix syntax errors, type mismatches, and style violations in real-time during the implementation or verification phase, significantly reducing technical debt.
Use Cases
- Static Code Analysis: Automatically verify code against project-specific rules and type systems to catch potential bugs before they reach production.
- Automated Code Formatting: Utilize auto-fix commands to instantly resolve common stylistic issues such as improper import ordering and unused variables.
- Multi-Language Support: Seamlessly manage linting and typechecking across various environments including JavaScript/TypeScript (ESLint/tsc), Python (Ruff/mypy), and Go.
| name | lint |
|---|---|
| description | How to lint and typecheck in this project. Load when implementing or verifying code. |
| allowed-tools | Bash |
Lint Skill
Project-specific linting and typechecking.
Lint Commands
# Run linter
# TODO: Add your lint command
npx eslint {files}
# ruff check {files}
# golangci-lint run
# Auto-fix
npx eslint {files} --fix
# ruff check {files} --fix
Typecheck Commands
# Run typecheck
# TODO: Add your typecheck command
npx tsc --noEmit
# mypy {files}
# go build ./...
Common Issues
Import Order
Run auto-fix to sort imports.
Unused Variables
Remove or prefix with _.
Type Errors
Check that types match expected signatures.