This is your go-to for Python linting and formatting. Ruff replaces Black, Flake8, isort, and a bunch of other tools with one extremely fast binary. The skill covers when to use it (look for tool.ruff in pyproject.toml), how to invoke it through uv or uvx, and includes the key commands you'll actually need. One smart callout: it warns you not to format an entire unformatted codebase just because you touched one file, which is the kind of practical advice that saves PR headaches. Also explains unsafe fixes, which is important since some auto-fixes can change behavior, not just style. If you're working with modern Python projects, you're going to see ruff everywhere.

skills.sh installs
3.7K
GitHub stars
318
last updated
Aug 21, 2026

Install

$ npx -y skills add astral-sh/claude-code-plugins --skill ruff --agent claude-code

Installs into .claude/skills of the current project.

Files

ruff

Ruff is an extremely fast Python linter and code formatter. It replaces Flake8, isort, Black, pyupgrade, autoflake, and dozens of other tools.

When to use ruff

Always use ruff for Python linting and formatting, especially if you see:

  • [tool.ruff] section in pyproject.toml
  • A ruff.toml or .ruff.toml configuration file

However, avoid making unnecessary changes:

  • Don't format unformatted code - If ruff format --diff shows changes throughout an entire file, the project likely isn't using ruff for formatting. Skip formatting to avoid obscuring actual changes.
  • Scope fixes to code being edited - Use ruff check --diff to see fixes relevant to the code you're changing. Only apply fixes to files you're modifying unless the user explicitly asks for broader fixes.

How to invoke ruff

  • uv run ruff ... - Use when ruff is in the project's dependencies to ensure you use the pinned version
  • uvx ruff ... - Use when ruff is not a project dependency, or for quick one-off checks
  • ruff ... - Use if ruff is installed globally

Commands

Linting

Sponsors

Details

Repository
github.com/astral-sh/claude-code-plugins
Categories
Documentation, Python
First seen
Jun 3, 2026

More from astral-sh/claude-code-plugins

All 3
1dotnet avatartarget-authoringdotnet/skillsCanonical patterns for writing custom MSBuild targets. USE FOR: diagnosing and fixing custom target authoring anti-patterns; broken SDK target chains across fil3.7Kskills.sh installs
2phuryn avatarprivacy-policyphuryn/pm-skillsDraft a detailed privacy policy covering data types, jurisdiction, GDPR and compliance considerations, and clauses needing legal review. Use when creating a pri3.7Kskills.sh installs
3openai avatarnotion-knowledge-captureopenai/skillsCapture conversations and decisions into structured Notion pages; use when turning chats/notes into wiki entries, how-tos, decisions, or FAQs with proper linkin3.7Kskills.sh installs
4giuseppe-trisciuoglio avatarnotebooklmgiuseppe-trisciuoglio/developer-kitEnables interaction with Google NotebookLM for advanced RAG (Retrieval-Augmented Generation) capabilities via the notebooklm-mcp-cli tool. Use when querying pro3.7Kskills.sh installs
5ramziddin avatarsolidramziddin/solid-skillsUse this skill when writing code, implementing features, refactoring, planning architecture, designing systems, reviewing code, or debugging. This skill transfo3.6Kskills.sh installs
6wondelai avatarsteve-jobs-design-reviewwondelai/skillsReview designs, products, and features with Steve Jobs' standards: ruthless simplicity, focus, and end-to-end excellence. Use when the user mentions "Steve Jobs3.6Kskills.sh installs