python-quality

Enforce Python code quality with Ruff linting and Pyright type checking.

15|4|Updated Jan 20, 2026
One-click install
npx skills add https://github.com/cofin/flow --skill python-quality-cofin
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: python-quality
Source: https://github.com/cofin/flow/tree/main/skills/python-quality
Command: npx skills add https://github.com/cofin/flow --skill python-quality-cofin

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill addresses the challenge of maintaining high-quality, consistent, and error-free Python code by integrating powerful linting and type-checking tools.

Core Features & Use Cases

  • Linting & Formatting: Utilizes Ruff to enforce style guides, catch common errors, and automatically format code.
  • Type Checking: Employs Pyright and Based-Pyright for robust static analysis to detect type-related bugs before runtime.
  • Use Case: When developing a new Python module, run this Skill to automatically format the code according to project standards and verify that all type annotations are correct and consistently applied, preventing potential runtime errors.

Quick Start

Run the python-quality skill to check and format all Python files in the current directory.

Frequently Asked Questions about python-quality

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run Python linting and type checking together?

Python linting and type checking can be run together by applying Ruff for style enforcement and Pyright for static type analysis. This combination automatically formats code and detects type-related bugs before runtime.

What is the best way to enforce Python code style guides and prevent type errors?

Enforcing Python code style and preventing type errors is best achieved through integrated static analysis. Using Ruff for automated formatting and Pyright for type safety ensures adherence to project standards and prevents potential runtime errors.

Can I use Ruff and Pyright to check all Python files in my current directory?

Yes, Ruff and Pyright can check all Python files in the current directory. Running an integrated quality skill applies Ruff for formatting and Pyright for type analysis across the entire project scope automatically.

Does integrated Python type checking catch runtime errors before execution?

Integrated Python type checking catches runtime errors before execution by employing Pyright and Based-Pyright for robust static analysis. This process detects type-related bugs and verifies that all type annotations are correctly applied.

Why do I need static type analysis for Python module development?

Static type analysis for Python module development is needed to verify type annotations and prevent potential runtime errors. It employs robust static analysis tools like Pyright to detect type-related bugs early in the development workflow.

What are the limitations of using Ruff for Python formatting and linting?

Ruff for Python formatting and linting focuses on style guides and common errors but does not perform static type analysis. It must be paired with Pyright to detect type-related bugs and ensure complete code correctness.