code-quality

Automate Ruff linting, Mypy type-checking, and Pytest tests on changed Python files.

10|Updated Dec 26, 2025
One-click install
npx skills add https://github.com/s-hiraoku/synapse-a2a --skill code-quality-s-hiraoku
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-quality
Source: https://github.com/s-hiraoku/synapse-a2a/tree/main/.claude/skills/code-quality
Command: npx skills add https://github.com/s-hiraoku/synapse-a2a --skill code-quality-s-hiraoku

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automatically enforces code quality by running lint (ruff), static type checks (mypy), and tests, helping teams ship reliable software faster.

Core Features & Use Cases

  • Lint with Ruff to identify style and correctness issues
  • Type-check with Mypy to catch type errors and improve reliability
  • Run tests with Pytest to verify behavior
  • Use Case: before merging a feature branch, run code-quality to ensure no regressions and style drift

Quick Start

Run /lint to perform a full code quality sweep on modified files and generate a report.

Frequently Asked Questions about code-quality

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

FAQPage Schema
How do I automate Python lint, type checks, and tests on modified files?

Automate Python code quality by running Ruff for linting, Mypy for static type checks, and Pytest for tests on recently changed files. This integration targets development pipelines, pre-commit hooks, and CI workflows to ensure no regressions or style drift before merging.

Can I run Ruff and Mypy checks before merging a feature branch?

Yes, you can run Ruff and Mypy checks before merging a feature branch to identify style and correctness issues alongside type errors. Executing a full code quality sweep on modified files generates a report verifying behavior and improving reliability.

What is the best way to integrate static analysis into Python CI workflows?

The best way to integrate static analysis into Python CI workflows is applying automated Ruff and Mypy checks to recently changed files. This deterministic approach catches type errors and style issues automatically, helping teams ship reliable software faster without manual review overhead.

Does this code quality automation support auto-fixing lint issues?

Yes, the code quality automation supports optional auto-fixing for lint issues identified by Ruff. It applies deterministic targets to modified files, allowing development pipelines and pre-commit hooks to automatically correct style and correctness issues during the workflow.

Why use Pytest and Mypy together for checking recently changed files?

Using Pytest and Mypy together for checking recently changed files catches both behavioral regressions and type errors. Pytest verifies the code functions correctly while Mypy validates type safety, ensuring comprehensive code quality before changes are merged into the main branch.

How do I start a full code quality sweep on my Python project?

To start a full code quality sweep on your Python project, run the lint command to execute Ruff, Mypy, and Pytest on modified files. This generates a comprehensive report covering style, types, and behavior, ensuring your project meets quality standards automatically.