PY

python-linting

Uses Ruff to detect and fix code style violations and quality issues in Python projects.

Install

mkdir -p .claude/skills/python-linting && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/5667" && unzip -o skill.zip -d .claude/skills/python-linting && rm skill.zip

Installs to .claude/skills/python-linting

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

This skill helps lint Python code using ruff. Use when the user asks to "lint", "check code quality", or "fix style issues".
124 chars · catalog description✓ has a “when” trigger
Beginner

Key capabilities

  • Identify code quality and style violations
  • Automatically fix fixable linting errors
  • Check Python code against style rules

How it works

It executes the Ruff linter to scan Python files for style and quality issues, offering both reporting and auto-fix capabilities.

Inputs & outputs

You give it
ruff check .
You get back
List of style violations or fixed code

When to use python-linting

  • Linting Python files
  • Fixing style violations
  • Checking code quality

About this skill

Python Linting Skill

This skill provides instructions for linting Python code using ruff.

How to Lint

Run ruff to check for issues:

ruff check .

To automatically fix issues:

ruff check --fix .

Common Options

  • --select E,W - Only check for errors and warnings
  • --ignore E501 - Ignore line length errors
  • --fix - Automatically fix fixable issues

Example Output

example.py:1:1: F401 [*] `os` imported but unused
example.py:5:5: E302 Expected 2 blank lines, found 1
Found 2 errors (1 fixable).

When not to use it

  • For non-Python codebases

Prerequisites

Pythonruff

Limitations

  • Requires ruff installation
  • Limited to Python linting

How it compares

It automates the identification and resolution of style violations, whereas manual review is prone to oversight.

Compared to similar skills

python-linting side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
python-linting (this skill)47moReviewBeginner
python-testing-patterns772moReviewIntermediate
python-anti-patterns64moReviewIntermediate
codex-code-review17moReviewIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry