| name | lint |
| description | Run linters and formatters to fix code style issues. Use when cleaning up style violations, formatting code, or after implementation to ensure code meets project standards. |
Lint
Run the full linting and formatting suite for the detected project type(s).
Instructions
Run these commands based on project type. All detected languages run for polyglot projects.
([ -f pyproject.toml ] || [ -f requirements.txt ]) && {
ruff check --fix . 2>&1 || true
ruff format . 2>&1 || true
mypy . 2>&1 || true
}
[ -f package.json ] && {
if grep -q '"lint:eslint"' package.json 2> /dev/null; then
bun run lint:eslint 2>&1 || true
else
bun run lint 2>&1 || true
fi
bun run format --if-present 2>&1 || true
[ -f tsconfig.json ] && bunx tsc --noEmit 2>&1 || true
}
[ -f go.mod ] && {
golangci-lint run --fix ./... 2>&1 || true
golangci-lint fmt ./... 2>&1 || true
}
Summary
After running, report:
- Any linting errors that couldn't be auto-fixed (Ruff, ESLint, or golangci-lint)
- Any formatting issues
- Type errors (mypy or TypeScript)