---
name: "ruff-lightning-python-linter"
description: "Replace Flake8, isort, and Bandit with a single Rust-powered Python linter 100x faster."
metadata:
  author: "Astral"
  version: "1.0.0"
  runtime_compatibility:
    - "codex"
    - "claude-code"
    - "cursor"
    - "windsurf"
triggers:
  - "run ruff linter"
  - "configure ruff in pyproject.toml"
  - "ruff check --fix"
permissions:
  fs_read: true
  fs_write: "workspace"
  shell_exec: false
  net_access: false
---

# Ruff Ultra-Fast Rust Python Linter & Auto-Fixer

Configures Astral Ruff: authoring [tool.ruff] in pyproject.toml, selecting rule sets (E, F, I for isort, UP for pyupgrade, B for bugbear), running automated safe fixes (ruff check --fix), and formatting with ruff format.

## When to Invoke
Invoke this skill whenever you need to:
- run ruff linter
- configure ruff in pyproject.toml
- ruff check --fix

## Execution SOP & Rules
1. Configure pyproject.toml: [tool.ruff.lint] select = ['E', 'F', 'I', 'UP', 'B', 'SIM'].
2. Run linter with auto-fix: ruff check --fix .
3. Run fast formatter: ruff format . to achieve identical formatting to Black.
4. Integrate into VS Code via the official charliermarsh.ruff extension for instant diagnostics.

## Verification Checklist
- Run local linting, syntax validation, and type-checks before reporting completion.
- Ensure all created or modified files adhere to workspace boundaries and avoid uncommitted secrets.
- Verify tests or build commands exit cleanly with return code 0.
