
Description
ruff is an agent skill that guides an AI assistant in using Ruff, the Python linter and code formatter from Astral. Ruff is written to be extremely fast, and the skill says it replaces several older tools, including Flake8, isort, Black, pyupgrade and autoflake, plus dozens of others. The skill tells the agent to use Ruff for linting and formatting Python code whenever a project shows a [tool.ruff] section in pyproject.toml, or has a ruff.toml or .ruff.toml configuration file. It also tells the agent to avoid making unnecessary changes, so the skill is careful about reformatting code the user did not ask to change. The guide applies when the user is linting, formatting or fixing Python code. It is aimed at Python developers who want an assistant to clean up code using the same tool their project already uses, instead of introducing a different formatter or linter. Install it with npx skills add https://github.com/astral-sh/claude-code-plugins --skill ruff. The security audits all passed.…
Highlights
- Lints and formats Python with Ruff
- Triggers on pyproject.toml and ruff.toml configuration
- Avoids unnecessary changes to code
- Covers replacements for Flake8, isort, Black and pyupgrade
Ratings & Reviews
No ratings yet
Be the first to rate ruff.
People also visit
ruff FAQ
What does the skill do?
It guides the agent to lint, format and fix Python code using Ruff.
When does it apply?
When linting, formatting or fixing Python code, and especially when the project has a [tool.ruff] section or a ruff configuration file.
Which tools does Ruff replace?
The skill lists Flake8, isort, Black, pyupgrade, autoflake and dozens of other tools.
How do I install it?
Run npx skills add https://github.com/astral-sh/claude-code-plugins --skill ruff.
What were the security audit results?
Gen Agent Trust Hub: Pass. Socket: Pass. Snyk: Pass.
What are the best ruff alternatives?
Popular alternatives to ruff include python-code-style, ruff-recursive-fix and python-expert. See all ruff alternatives

















