code-quality-gate

Run Ruff and Mypy pre-commit checks to enforce code quality.

3|5|Updated Dec 19, 2025
One-click install
npx skills add https://github.com/drillan/note-mcp --skill code-quality-gate
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-quality-gate
Source: https://github.com/drillan/note-mcp/tree/main/.claude/skills/code-quality-gate
Command: npx skills add https://github.com/drillan/note-mcp --skill code-quality-gate

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill ensures code quality standards are met automatically before commits or PRs, preventing low-quality changes from entering the codebase.

Core Features & Use Cases

  • Ruff linting: Detects style and minor logic issues.
  • Ruff formatting: Ensures consistent formatting.
  • Mypy type checks: Enforces static typing and type-safety.

Quick Start

Before committing, run the Code Quality Gate to verify lint, format, and type checks pass.

Frequently Asked Questions about code-quality-gate

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

FAQPage Schema
How do I prevent low-quality code from being committed to my Python project?

Code quality gates automatically run pre-commit checks using Ruff and Mypy to catch style, type, import, security, and performance issues before commits are allowed, preventing quality problems from entering the codebase.

What does Ruff linting and formatting do in a pre-commit workflow?

Ruff linting detects style and logic issues while Ruff formatting ensures consistent code formatting. Together they enforce style standards and fix fixable issues automatically as part of pre-commit validation.

Can I use static type checking with Mypy as a commit gate?

Yes, Mypy type checking is integrated into the pre-commit gate to enforce static typing and type-safety, preventing commits when type violations are detected and providing remediation steps.

How do I set up automated quality checks before pull requests?

Configure the quality gate to run Ruff checks, formatting, and Mypy type validation in a staged pipeline that executes before commits and PRs, returning pass/fail outcomes with actionable fix steps.

What happens when code quality checks fail at commit time?

Failed quality checks block the commit and provide standardized remediation steps, allowing you to fix style, import, type, security, and performance concerns before resubmitting.