python-quality-checker

Validate Python code formatting, typing, linting, and security issues.

25|2|Updated Oct 26, 2025
One-click install
npx skills add https://github.com/matteocervelli/llms --skill python-quality-checker
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: python-quality-checker
Source: https://github.com/matteocervelli/llms/tree/main/.claude/skills/python-quality-checker
Command: npx skills add https://github.com/matteocervelli/llms --skill python-quality-checker

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires black, mypy, flake8, ruff, bandit.

What problem does it solve?

This Skill helps Python teams enforce code quality by combining formatting, type checking, linting, and security analysis to catch issues early and speed up reviews.

Core Features & Use Cases

  • Code formatting: Enforce Black formatting across the codebase.
  • Type checking: Use mypy to catch type errors before runtime.
  • Linting: Apply flake8/ruff to detect stylistic and logical issues.
  • Security analysis: Run Bandit to surface common vulnerabilities.
  • Quality gates: Produce a consolidated report suitable for CI.

Use case: Run in CI before merges to ensure PEP 8, type safety, and security standards.

Quick Start

  • Run Black to check formatting: black --check .
  • Run mypy for type checks: mypy .
  • Run flake8 for linting: flake8 .
  • Run bandit for security: bandit -r .

Frequently Asked Questions about python-quality-checker

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

FAQPage Schema
How do I automate Python code quality checks in CI/CD?

Automate Python code quality checks by running Black for formatting, mypy for type safety, flake8/ruff for linting, and bandit for security analysis in your CI pipeline. This Skill consolidates all four tools into a single quality gate that produces a comprehensive report before merging.

Can I enforce Black formatting, type checking, and linting together?

Yes. This Skill combines Black formatting enforcement, mypy type checking, flake8/ruff linting, and bandit security scanning into one integrated workflow. Run it as a pre-commit hook or CI step to catch formatting, typing, linting, and security issues simultaneously.

What security vulnerabilities does bandit catch in Python code?

Bandit identifies common Python security vulnerabilities including hardcoded secrets, SQL injection risks, insecure deserialization, and weak cryptography patterns. This Skill integrates bandit into your quality pipeline so security findings surface alongside formatting and linting results.

How do I set up mypy type checking for an existing Python codebase?

This Skill runs mypy to validate type annotations and catch type errors before runtime. It works with existing codebases in CI/CD pipelines and pre-commit hooks, outputting type safety reports that integrate with Black, flake8/ruff, and bandit results.

Do I need all these tools or can I use just one linter?

Each tool serves a distinct purpose: Black handles formatting, mypy catches type errors, flake8/ruff detect style and logic issues, and bandit finds security problems. This Skill runs them together to enforce comprehensive quality standards; using all four catches issues individually linters miss.

What's the difference between flake8 and ruff for Python linting?

Both tools detect linting issues, but ruff is faster and more configurable for modern Python projects. This Skill supports both flake8 and ruff, letting you choose based on your team's preferences while maintaining consistent output in consolidated quality reports.