quality-gates
Run ruff + pytest and fix issues minimally.
When & Why to Use This Skill
The Quality Gates skill is designed to automate and streamline the Python development workflow by integrating Ruff for linting and Pytest for unit testing. It ensures high code quality by identifying syntax errors, style violations, and functional regressions early, providing a systematic approach to fixing issues minimally and safely before code is committed or merged.
Use Cases
- Pre-PR Validation: Run a comprehensive suite of linting and tests to ensure code integrity and style compliance before creating a pull request.
- Incremental Development Feedback: Execute quality checks after completing specific code modules to catch and resolve bugs immediately during the implementation phase.
- Automated Code Refactoring: Utilize the skill to identify and apply minimal, low-risk fixes for common linting issues and test failures, reducing manual debugging time.
- Continuous Integration Readiness: Use as a local 'gate' to ensure that the codebase passes all essential checks before triggering expensive or time-consuming CI/CD pipelines.
| name | quality-gates |
|---|---|
| description | Run ruff + pytest and fix issues minimally. |
| allowed-tools | Bash, Read, Grep, Glob, Write |
Quality Gates Skill
When to use
- After implementing a meaningful chunk
- Before creating a PR or switching tasks
Procedure
- Run scripts/quality_gate.ps1
- If failures:
- fix smallest diff
- re-run
- Stop if the fix is risky and propose options.