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.zipInstalls 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".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
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
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.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| python-linting (this skill) | 4 | 7mo | Review | Beginner |
| python-testing-patterns | 77 | 2mo | Review | Intermediate |
| python-anti-patterns | 6 | 4mo | Review | Intermediate |
| codex-code-review | 1 | 7mo | Review | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by OpenHands
View all by OpenHands →You might also like
python-testing-patterns
wshobson
Implement comprehensive testing strategies with pytest, fixtures, mocking, and test-driven development. Use when writing Python tests, setting up test suites, or implementing testing best practices.
python-anti-patterns
wshobson
Common Python anti-patterns to avoid. Use as a checklist when reviewing code, before finalizing implementations, or when debugging issues that might stem from known bad practices.
codex-code-review
tyrchen
Perform comprehensive code reviews using OpenAI Codex CLI. This skill should be used when users request code reviews, want to analyze diffs/PRs, need security audits, performance analysis, or want automated code quality feedback. Supports reviewing staged changes, specific files, entire directories, or git diffs.
dead-code
parcadei
Find unused functions and dead code in the codebase
python-review
jometzg
Review Python code for correctness, reliability, security, performance, type/async pitfalls, and missing test coverage.
validation
aidotters
コード品質検証と受け入れテストの共通ロジック。validate-code と acceptance-test スキルから使用。