What problem does it solve?
This Skill mitigates the risk of introducing low-quality code, bugs, or technical debt into the main codebase. It automates the enforcement of critical quality standards, ensuring that all code meets predefined benchmarks before integration, saving time on manual reviews and bug fixing.
Core Features & Use Cases
- Comprehensive Quality Gates: Automatically checks for 80%+ test coverage, passing tests, successful builds, clean linting (ruff), and clean type checking (mypy).
- Pre-PR Validation: Designed to run before Pull Request creation, providing immediate feedback on code quality and preventing substandard code from entering the integration pipeline.
- Semantic Versioning Integration: Works with
git-workflow-manager to calculate appropriate semantic version bumps based on code changes, maintaining consistent versioning.
- Use Case: Before submitting a feature for review, run
run_quality_gates.py to get an instant, comprehensive report on your code's quality. If any gate fails, you'll know exactly what to fix, ensuring your PRs are always merge-ready.
Quick Start
Example: Run all quality gates
python .claude/skills/quality-enforcer/scripts/run_quality_gates.py